Package com.google.common.primitives
Class ImmutableLongArray.AsList
- All Implemented Interfaces:
Serializable
,Iterable<Long>
,Collection<Long>
,List<Long>
,RandomAccess
,SequencedCollection<Long>
- Enclosing class:
ImmutableLongArray
static class ImmutableLongArray.AsList
extends AbstractList<Long>
implements RandomAccess, Serializable
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, iterator, listIterator, listIterator, remove, removeRange, set
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addAll, addFirst, addLast, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, toArray, toArray
-
Field Details
-
parent
-
-
Constructor Details
-
AsList
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceCollection<Long>
- Specified by:
size
in interfaceList<Long>
- Specified by:
size
in classAbstractCollection<Long>
-
get
-
contains
- Specified by:
contains
in interfaceCollection<Long>
- Specified by:
contains
in interfaceList<Long>
- Overrides:
contains
in classAbstractCollection<Long>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<Long>
- Overrides:
lastIndexOf
in classAbstractList<Long>
-
subList
-
spliterator
- Specified by:
spliterator
in interfaceCollection<Long>
- Specified by:
spliterator
in interfaceIterable<Long>
- Specified by:
spliterator
in interfaceList<Long>
-
equals
- Specified by:
equals
in interfaceCollection<Long>
- Specified by:
equals
in interfaceList<Long>
- Overrides:
equals
in classAbstractList<Long>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<Long>
- Specified by:
hashCode
in interfaceList<Long>
- Overrides:
hashCode
in classAbstractList<Long>
-
toString
- Overrides:
toString
in classAbstractCollection<Long>
-