Class ShortLists.UnmodifiableRandomAccessList

  • All Implemented Interfaces:
    ShortCollection, ShortIterable, ShortList, java.io.Serializable, java.lang.Comparable<java.util.List<? extends java.lang.Short>>, java.lang.Iterable<java.lang.Short>, java.util.Collection<java.lang.Short>, java.util.List<java.lang.Short>, java.util.RandomAccess
    Enclosing class:
    ShortLists

    public static class ShortLists.UnmodifiableRandomAccessList
    extends ShortLists.UnmodifiableList
    implements java.util.RandomAccess, java.io.Serializable
    An unmodifiable wrapper class for random-access lists.
    See Also:
    Serialized Form
    • Method Detail

      • subList

        public ShortList subList​(int from,
                                 int to)
        Description copied from interface: ShortList
        Returns a type-specific view of the portion of this list from the index from, inclusive, to the index to, exclusive.

        Note that this specification strengthens the one given in List.subList(int,int).

        Specified by:
        subList in interface java.util.List<java.lang.Short>
        Specified by:
        subList in interface ShortList
        Overrides:
        subList in class ShortLists.UnmodifiableList
        See Also:
        List.subList(int,int)