Class DoubleLists.UnmodifiableRandomAccessList

  • All Implemented Interfaces:
    DoubleCollection, DoubleIterable, DoubleList, java.io.Serializable, java.lang.Comparable<java.util.List<? extends java.lang.Double>>, java.lang.Iterable<java.lang.Double>, java.util.Collection<java.lang.Double>, java.util.List<java.lang.Double>, java.util.RandomAccess
    Enclosing class:
    DoubleLists

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

      • subList

        public DoubleList subList​(int from,
                                  int to)
        Description copied from interface: DoubleList
        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 DoubleList
        Specified by:
        subList in interface java.util.List<java.lang.Double>
        Overrides:
        subList in class DoubleLists.UnmodifiableList
        See Also:
        List.subList(int,int)