Package com.google.common.primitives
Class Shorts.ShortArrayAsList
- All Implemented Interfaces:
Serializable,Iterable<Short>,Collection<Short>,List<Short>,RandomAccess
- Enclosing class:
- Shorts
private static class Shorts.ShortArrayAsList
extends AbstractList<Short>
implements RandomAccess, Serializable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final short[](package private) final intprivate static final long(package private) final intFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionShortArrayAsList(short[] array) ShortArrayAsList(short[] array, int start, int end) -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, iterator, listIterator, listIterator, remove, removeRangeMethods inherited from class java.util.AbstractCollection
addAll, containsAll, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
array
final short[] array -
start
final int start -
end
final int end -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ShortArrayAsList
ShortArrayAsList(short[] array) -
ShortArrayAsList
ShortArrayAsList(short[] array, int start, int end)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<Short>- Specified by:
sizein interfaceList<Short>- Specified by:
sizein classAbstractCollection<Short>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Short>- Specified by:
isEmptyin interfaceList<Short>- Overrides:
isEmptyin classAbstractCollection<Short>
-
get
-
contains
- Specified by:
containsin interfaceCollection<Short>- Specified by:
containsin interfaceList<Short>- Overrides:
containsin classAbstractCollection<Short>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Short>- Overrides:
lastIndexOfin classAbstractList<Short>
-
set
-
subList
-
equals
- Specified by:
equalsin interfaceCollection<Short>- Specified by:
equalsin interfaceList<Short>- Overrides:
equalsin classAbstractList<Short>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Short>- Specified by:
hashCodein interfaceList<Short>- Overrides:
hashCodein classAbstractList<Short>
-
toString
- Overrides:
toStringin classAbstractCollection<Short>
-
toShortArray
short[] toShortArray()
-