Package it.unimi.dsi.fastutil.objects
Class ObjectBigLists.Singleton<K>
java.lang.Object
java.util.AbstractCollection<K>
it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
it.unimi.dsi.fastutil.objects.AbstractObjectBigList<K>
it.unimi.dsi.fastutil.objects.ObjectBigLists.Singleton<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<K>,ObjectBigList<K>,it.unimi.dsi.fastutil.objects.ObjectCollection<K>,it.unimi.dsi.fastutil.objects.ObjectIterable<K>,it.unimi.dsi.fastutil.Size64,it.unimi.dsi.fastutil.Stack<K>,Serializable,Cloneable,Comparable<it.unimi.dsi.fastutil.BigList<? extends K>>,Iterable<K>,Collection<K>
- Enclosing class:
ObjectBigLists
public static class ObjectBigLists.Singleton<K>
extends AbstractObjectBigList<K>
implements Serializable, Cloneable
An immutable class representing a type-specific singleton big list.
This class may be useful to implement your own in case you subclass a type-specific big list.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectBigList
AbstractObjectBigList.ObjectRandomAccessSubList<K>, AbstractObjectBigList.ObjectSubList<K> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAll(long i, Collection<? extends K> c) Adds all of the elements in the specified collection to this list (optional operation).booleanaddAll(Collection<? extends K> c) voidclear()clone()booleanReturns true if this list contains the specified element.get(long i) longit.unimi.dsi.fastutil.objects.ObjectBigListIterator<K> Returns a type-specific big-list iterator on this type-specific big list.it.unimi.dsi.fastutil.objects.ObjectBigListIterator<K> listIterator(long i) Returns a type-specific list iterator on this type-specific big list starting at a given index.remove(long i) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) longsize64()it.unimi.dsi.fastutil.objects.ObjectSpliterator<K> Returns a type-specific spliterator on the elements of this big-list.subList(long from, long to) Returns a type-specific view of the portion of this type-specific big list from the indexfrom, inclusive, to the indexto, exclusive.Object[]toArray()Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectBigList
add, add, addElements, addElements, compareTo, ensureIndex, ensureRestrictedIndex, equals, forEach, getElements, hashCode, iterator, lastIndexOf, peek, pop, push, removeElements, set, setElements, size, size, top, toStringMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toArrayMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
containsAll, isEmpty, parallelStream, removeIf, stream, toArray, toArrayMethods inherited from interface it.unimi.dsi.fastutil.objects.ObjectBigList
addAll, addAll, addAll, addAll, getElements, setElements, setElementsMethods inherited from interface it.unimi.dsi.fastutil.Stack
isEmpty
-
Constructor Details
-
Singleton
-
-
Method Details
-
get
- Specified by:
getin interfaceit.unimi.dsi.fastutil.BigList<K>
-
remove
- Specified by:
removein interfaceCollection<K>- Overrides:
removein classAbstractCollection<K>
-
remove
Description copied from class:AbstractObjectBigList- Specified by:
removein interfaceit.unimi.dsi.fastutil.BigList<K>- Overrides:
removein classAbstractObjectBigList<K>
-
contains
Description copied from class:AbstractObjectBigListReturns true if this list contains the specified element.- Specified by:
containsin interfaceCollection<K>- Overrides:
containsin classAbstractObjectBigList<K>- See Also:
-
indexOf
- Specified by:
indexOfin interfaceit.unimi.dsi.fastutil.BigList<K>- Overrides:
indexOfin classAbstractObjectBigList<K>
-
toArray
- Specified by:
toArrayin interfaceCollection<K>- Overrides:
toArrayin classAbstractCollection<K>
-
listIterator
Description copied from class:AbstractObjectBigListReturns a type-specific big-list iterator on this type-specific big list.- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.BigList<K>- Specified by:
listIteratorin interfaceObjectBigList<K>- Overrides:
listIteratorin classAbstractObjectBigList<K>- See Also:
-
listIterator
Description copied from class:AbstractObjectBigListReturns a type-specific list iterator on this type-specific big list starting at a given index.- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.BigList<K>- Specified by:
listIteratorin interfaceObjectBigList<K>- Overrides:
listIteratorin classAbstractObjectBigList<K>- See Also:
-
spliterator
Description copied from interface:ObjectBigListReturns a type-specific spliterator on the elements of this big-list.BigList spliterators must report at least
Spliterator.SIZEDandSpliterator.ORDERED.See
List.spliterator()for more documentation on the requirements of the returned spliterator (despiteBigListnot being aList, most of the same requirements apply.- Specified by:
spliteratorin interfaceCollection<K>- Specified by:
spliteratorin interfaceIterable<K>- Specified by:
spliteratorin interfaceObjectBigList<K>- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.objects.ObjectCollection<K>- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.objects.ObjectIterable<K>- Returns:
-
subList
Description copied from interface:ObjectBigListReturns a type-specific view of the portion of this type-specific big list from the indexfrom, inclusive, to the indexto, exclusive.- Specified by:
subListin interfaceit.unimi.dsi.fastutil.BigList<K>- Specified by:
subListin interfaceObjectBigList<K>- Overrides:
subListin classAbstractObjectBigList<K>- See Also:
-
addAll
Description copied from class:AbstractObjectBigListAdds all of the elements in the specified collection to this list (optional operation).- Specified by:
addAllin interfaceit.unimi.dsi.fastutil.BigList<K>- Overrides:
addAllin classAbstractObjectBigList<K>
-
addAll
Description copied from class:AbstractObjectBigList- Specified by:
addAllin interfaceCollection<K>- Overrides:
addAllin classAbstractObjectBigList<K>
-
removeAll
- Specified by:
removeAllin interfaceCollection<K>- Overrides:
removeAllin classAbstractCollection<K>
-
retainAll
- Specified by:
retainAllin interfaceCollection<K>- Overrides:
retainAllin classAbstractCollection<K>
-
clear
public void clear()Description copied from class:AbstractObjectBigList- Specified by:
clearin interfaceCollection<K>- Overrides:
clearin classAbstractObjectBigList<K>
-
size64
public long size64()- Specified by:
size64in interfaceit.unimi.dsi.fastutil.Size64
-
clone
-