Class ObjectLists.SynchronizedRandomAccessList<K>

  • All Implemented Interfaces:
    ObjectCollection<K>, ObjectIterable<K>, ObjectList<K>, java.io.Serializable, java.lang.Comparable<java.util.List<? extends K>>, java.lang.Iterable<K>, java.util.Collection<K>, java.util.List<K>, java.util.RandomAccess
    Enclosing class:
    ObjectLists

    public static class ObjectLists.SynchronizedRandomAccessList<K>
    extends ObjectLists.SynchronizedList<K>
    implements java.util.RandomAccess, java.io.Serializable
    A synchronized wrapper class for random-access lists.
    See Also:
    Serialized Form
    • Method Detail

      • subList

        public ObjectList<K> subList​(int from,
                                     int to)
        Description copied from interface: ObjectList
        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<K>
        Specified by:
        subList in interface ObjectList<K>
        Overrides:
        subList in class ObjectLists.SynchronizedList<K>
        See Also:
        List.subList(int,int)