Package one.microstream.collections
Class Singleton<E>
java.lang.Object
one.microstream.collections.Singleton<E>
- Type Parameters:
- E-
- All Implemented Interfaces:
- Iterable<E>,- Consumer<E>,- CapacityCarrying,- ExtendedBag<E>,- ExtendedCollection<E>,- ExtendedList<E>,- ExtendedSequence<E>,- ReleasingCollection<E>,- Sized,- Sortable<E>,- XGettingBag<E>,- XGettingCollection<E>,- XGettingEnum<E>,- XGettingList<E>,- XGettingSequence<E>,- XGettingSet<E>,- XIndexIterable<E>,- XIterable<E>,- XJoinable<E>,- XOrderingEnum<E>,- XOrderingSequence<E>,- XReference<E>,- XReferencing<E>,- XReplacingBag<E>,- XReplacingCollection<E>,- XSettingList<E>,- XSettingSequence<E>,- XSortableEnum<E>,- XSortableSequence<E>,- Reference<E>,- Referencing<E>,- Copyable
- Direct Known Subclasses:
- LinkReference.Default
public class Singleton<E> extends Object implements XReference<E>
Singleton dummy collection used to pass a single instance masked as a collection.
 
As there is always only one element, this type can be a List and a Set (Enum) at the same time, enabling it to be used in any type situation.
- See Also:
- Constant
- 
Nested Class SummaryNested classes/interfaces inherited from interface one.microstream.collections.interfaces.ExtendedCollectionExtendedCollection.Creator<E,C extends ExtendedCollection<E>>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingCollectionXGettingCollection.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingEnumXGettingEnum.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingListXGettingList.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingSequenceXGettingSequence.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterableXIterable.Executor<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XReplacingBagXReplacingBag.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XSettingListXSettingList.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XSortableEnumXSortableEnum.Creator<E>
- 
Constructor SummaryConstructors Constructor Description Singleton()
- 
Method SummaryModifier and Type Method Description booleanapplies(Predicate<? super E> predicate)Eat(long index)booleancontains(E element)booleancontainsAll(XGettingCollection<? extends E> elements)booleancontainsId(E element)Special version of contains() that guarantees to use identity comparison (" == ") when searching for the given element regardless of the collection's internal logic.
 This method has the same behavior asXGettingCollection.containsSearched(Predicate)with aPredicateimplementation that checks for object identity.booleancontainsSearched(Predicate<? super E> predicate)Singleton<E>copy()Creates a true copy of this list which references th same elements in the same order as this list does at the time the method is called.<T extends Consumer<? super E>>
 TcopySelection(T target, long... indices)<T extends Consumer<? super E>>
 TcopyTo(T target)longcount(E element)longcountBy(Predicate<? super E> predicate)<T extends Consumer<? super E>>
 Tdistinct(T target)<T extends Consumer<? super E>>
 Tdistinct(T target, Equalator<? super E> equalator)Equalator<? super E>equality()booleanequals(XGettingCollection<? extends E> samples, Equalator<? super E> equalator)Returnstrueif the passed collection is of the same type as this collection andthis.equalsContent(list, equalator)yieldstrue.booleanequalsContent(XGettingCollection<? extends E> samples, Equalator<? super E> equalator)Returnstrueif all elements of this list and the passed list are sequentially equal as defined by the passed equalator.<T extends Consumer<? super E>>
 Texcept(XGettingCollection<? extends E> other, Equalator<? super E> equalator, T target)Singleton<E>fill(long offset, long length, E element)<T extends Consumer<? super E>>
 TfilterTo(T target, Predicate<? super E> predicate)Efirst()Eget()Convenience alias forfirst().booleanhasVolatileElements()Tells if this collection contains volatile elements.
 An element is volatile, if it can become no longer reachable by the collection without being removed from the collection.Constant<E>immure()Provides an instance of an immutable collection type with equal behavior and data as this instance.longindexBy(Predicate<? super E> predicate)longindexOf(E element)<T extends Consumer<? super E>>
 Tintersect(XGettingCollection<? extends E> other, Equalator<? super E> equalator, T target)booleanisEmpty()booleanisFull()Returns true if the current capacity cannot be increased any more.booleanisSorted(Comparator<? super E> comparator)<P extends Consumer<? super E>>
 Piterate(P procedure)<P extends IndexedAcceptor<? super E>>
 PiterateIndexed(P procedure)Iterator<E>iterator()<A> Ajoin(BiConsumer<? super E,? super A> joiner, A aggregate)Elast()longlastIndexBy(Predicate<? super E> predicate)longlastIndexOf(E element)ListIterator<E>listIterator()ListIterator<E>listIterator(long index)Emax(Comparator<? super E> comparator)longmaximumCapacity()Returns the maximum amount of elements this carrier instance can contain.
 The actual value may be depend on the configuration of the concrete instance or may depend only on the implementation of the carrier (meaning it is constant for all instances of the implementation, e.g.longmaxIndex(Comparator<? super E> comparator)Emin(Comparator<? super E> comparator)longminIndex(Comparator<? super E> comparator)static <E> Singleton<E>New(E element)booleannullAllowed()booleannullContained()one.microstream.collections.Singleton.OldSingletonold()Epeek()Epoll()Singleton<E>range(long fromIndex, long toIndex)longremainingCapacity()Returns the amount of elements this carrier instance can collect before reaching its maximimum capacity.longreplace(E element, E replacement)longreplace(Predicate<? super E> predicate, E substitute)longreplaceAll(XGettingCollection<? extends E> elements, E replacement)booleanreplaceOne(E element, E replacement)booleanreplaceOne(Predicate<? super E> predicate, E substitute)Singleton<E>reverse()longscan(Predicate<? super E> predicate)Iterates through the collection and returns the index of the last element that the passedPredicateapplied to ("scanning").Esearch(Predicate<? super E> predicate)Eseek(E sample)Returns the first contained element matching the passed sample as defined by the collection's equality logic or null, if no fitting element is contained.booleanset(long index, E element)Singleton<E>set(long index, E[] elements, int offset, int length)Singleton<E>set(long index, XGettingSequence<? extends E> elements, long offset, long length)voidset(E element)Singleton<E>setAll(long index, E... elements)voidsetFirst(E element)EsetGet(long index, E element)voidsetLast(E element)Singleton<E>shiftBy(long sourceIndex, long distance)Singleton<E>shiftBy(long sourceIndex, long distance, long length)Singleton<E>shiftTo(long sourceIndex, long targetIndex)Singleton<E>shiftTo(long sourceIndex, long targetIndex, long length)longsize()Singleton<E>sort(Comparator<? super E> comparator)longsubstitute(Function<? super E,? extends E> mapper)longsubstitute(Predicate<? super E> predicate, Function<E,E> mapper)Singleton<E>swap(long indexA, long indexB)Singleton<E>swap(long indexA, long indexB, long length)Object[]toArray()E[]toArray(Class<E> type)Singleton<E>toReversed()<T extends Consumer<? super E>>
 Tunion(XGettingCollection<? extends E> other, Equalator<? super E> equalator, T target)SingletonView<E>view()SingletonView<E>view(long lowIndex, long highIndex)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.collections.types.XGettingCollectionequals, hashCode, intSize
- 
Constructor Details- 
Singletonpublic Singleton()
 
- 
- 
Method Details- 
New
- 
getConvenience alias forfirst().- Specified by:
- getin interface- Referencing<E>
- Specified by:
- getin interface- XGettingCollection<E>
- Specified by:
- getin interface- XGettingSequence<E>
- Specified by:
- getin interface- XReferencing<E>
- Returns:
- the contained element.
- See Also:
- XGettingSequence.at(long),- XGettingSequence.first(),- XGettingSequence.last()
 
- 
copyDescription copied from interface:XGettingSequenceCreates a true copy of this list which references th same elements in the same order as this list does at the time the method is called. The elements themselves are NOT copied (no deep copying).
 The type of the returned list is the same as of this list if possible (i.e.: a SubList can not meaningful return a true copy that references its elements but still is a SubList)- Specified by:
- copyin interface- Copyable
- Specified by:
- copyin interface- XGettingBag<E>
- Specified by:
- copyin interface- XGettingCollection<E>
- Specified by:
- copyin interface- XGettingEnum<E>
- Specified by:
- copyin interface- XGettingList<E>
- Specified by:
- copyin interface- XGettingSequence<E>
- Specified by:
- copyin interface- XGettingSet<E>
- Specified by:
- copyin interface- XReference<E>
- Specified by:
- copyin interface- XReferencing<E>
- Specified by:
- copyin interface- XReplacingBag<E>
- Specified by:
- copyin interface- XSettingList<E>
- Specified by:
- copyin interface- XSettingSequence<E>
- Specified by:
- copyin interface- XSortableEnum<E>
- Specified by:
- copyin interface- XSortableSequence<E>
- Returns:
- a copy of this list
 
- 
iterate- Specified by:
- iteratein interface- XGettingEnum<E>
- Specified by:
- iteratein interface- XGettingSet<E>
- Specified by:
- iteratein interface- XIterable<E>
 
- 
join
- 
iterateIndexed- Specified by:
- iterateIndexedin interface- XIndexIterable<E>
 
- 
immureDescription copied from interface:XGettingListProvides an instance of an immutable collection type with equal behavior and data as this instance.If this instance already is of an immutable collection type, it returns itself. - Specified by:
- immurein interface- XGettingBag<E>
- Specified by:
- immurein interface- XGettingCollection<E>
- Specified by:
- immurein interface- XGettingEnum<E>
- Specified by:
- immurein interface- XGettingList<E>
- Specified by:
- immurein interface- XGettingSequence<E>
- Specified by:
- immurein interface- XGettingSet<E>
- Specified by:
- immurein interface- XReference<E>
- Specified by:
- immurein interface- XReferencing<E>
- Returns:
- an immutable copy of this collection instance.
 
- 
listIterator- Specified by:
- listIteratorin interface- XGettingList<E>
- Specified by:
- listIteratorin interface- XReference<E>
- Specified by:
- listIteratorin interface- XReferencing<E>
 
- 
listIterator- Specified by:
- listIteratorin interface- XGettingList<E>
- Specified by:
- listIteratorin interface- XReference<E>
- Specified by:
- listIteratorin interface- XReferencing<E>
 
- 
oldpublic final one.microstream.collections.Singleton.OldSingleton old()- Specified by:
- oldin interface- XGettingCollection<E>
- Specified by:
- oldin interface- XGettingList<E>
- Specified by:
- oldin interface- XReference<E>
- Specified by:
- oldin interface- XReferencing<E>
 
- 
range- Specified by:
- rangein interface- XGettingEnum<E>
- Specified by:
- rangein interface- XGettingList<E>
- Specified by:
- rangein interface- XGettingSequence<E>
- Specified by:
- rangein interface- XReference<E>
- Specified by:
- rangein interface- XReferencing<E>
- Specified by:
- rangein interface- XSettingList<E>
- Specified by:
- rangein interface- XSettingSequence<E>
 
- 
toReversed- Specified by:
- toReversedin interface- XGettingEnum<E>
- Specified by:
- toReversedin interface- XGettingList<E>
- Specified by:
- toReversedin interface- XGettingSequence<E>
- Specified by:
- toReversedin interface- XReference<E>
- Specified by:
- toReversedin interface- XReferencing<E>
- Specified by:
- toReversedin interface- XSettingList<E>
- Specified by:
- toReversedin interface- XSettingSequence<E>
- Specified by:
- toReversedin interface- XSortableEnum<E>
- Specified by:
- toReversedin interface- XSortableSequence<E>
 
- 
copySelection- Specified by:
- copySelectionin interface- XGettingSequence<E>
- Specified by:
- copySelectionin interface- XReference<E>
- Specified by:
- copySelectionin interface- XReferencing<E>
 
- 
first- Specified by:
- firstin interface- XGettingSequence<E>
- Specified by:
- firstin interface- XReference<E>
- Specified by:
- firstin interface- XReferencing<E>
 
- 
at- Specified by:
- atin interface- XGettingSequence<E>
- Specified by:
- atin interface- XReference<E>
- Specified by:
- atin interface- XReferencing<E>
 
- 
indexOf- Specified by:
- indexOfin interface- XGettingSequence<E>
- Specified by:
- indexOfin interface- XReference<E>
- Specified by:
- indexOfin interface- XReferencing<E>
 
- 
indexBy- Specified by:
- indexByin interface- XGettingSequence<E>
- Specified by:
- indexByin interface- XReference<E>
- Specified by:
- indexByin interface- XReferencing<E>
 
- 
isSorted- Specified by:
- isSortedin interface- XGettingSequence<E>
- Specified by:
- isSortedin interface- XReference<E>
- Specified by:
- isSortedin interface- XReferencing<E>
 
- 
last- Specified by:
- lastin interface- XGettingSequence<E>
- Specified by:
- lastin interface- XReference<E>
- Specified by:
- lastin interface- XReferencing<E>
 
- 
lastIndexOf- Specified by:
- lastIndexOfin interface- XGettingSequence<E>
- Specified by:
- lastIndexOfin interface- XReference<E>
- Specified by:
- lastIndexOfin interface- XReferencing<E>
 
- 
lastIndexBy- Specified by:
- lastIndexByin interface- XGettingSequence<E>
- Specified by:
- lastIndexByin interface- XReference<E>
- Specified by:
- lastIndexByin interface- XReferencing<E>
 
- 
maxIndex- Specified by:
- maxIndexin interface- XGettingSequence<E>
- Specified by:
- maxIndexin interface- XReference<E>
- Specified by:
- maxIndexin interface- XReferencing<E>
 
- 
minIndex- Specified by:
- minIndexin interface- XGettingSequence<E>
- Specified by:
- minIndexin interface- XReference<E>
- Specified by:
- minIndexin interface- XReferencing<E>
 
- 
peek- Specified by:
- peekin interface- XGettingSequence<E>
- Specified by:
- peekin interface- XReference<E>
- Specified by:
- peekin interface- XReferencing<E>
 
- 
poll- Specified by:
- pollin interface- XGettingSequence<E>
- Specified by:
- pollin interface- XReference<E>
- Specified by:
- pollin interface- XReferencing<E>
 
- 
scanDescription copied from interface:XGettingSequenceIterates through the collection and returns the index of the last element that the passedPredicateapplied to ("scanning").- Specified by:
- scanin interface- XGettingSequence<E>
- Specified by:
- scanin interface- XReference<E>
- Specified by:
- scanin interface- XReferencing<E>
- Returns:
- the index of the last positively tested element.
 
- 
view- Specified by:
- viewin interface- XGettingBag<E>
- Specified by:
- viewin interface- XGettingCollection<E>
- Specified by:
- viewin interface- XGettingEnum<E>
- Specified by:
- viewin interface- XGettingList<E>
- Specified by:
- viewin interface- XGettingSequence<E>
- Specified by:
- viewin interface- XReference<E>
- Specified by:
- viewin interface- XReferencing<E>
 
- 
view- Specified by:
- viewin interface- XGettingEnum<E>
- Specified by:
- viewin interface- XGettingList<E>
- Specified by:
- viewin interface- XGettingSequence<E>
- Specified by:
- viewin interface- XReference<E>
- Specified by:
- viewin interface- XReferencing<E>
 
- 
containsSearched- Specified by:
- containsSearchedin interface- XGettingCollection<E>
- Specified by:
- containsSearchedin interface- XReference<E>
- Specified by:
- containsSearchedin interface- XReferencing<E>
 
- 
applies- Specified by:
- appliesin interface- XGettingCollection<E>
- Specified by:
- appliesin interface- XReference<E>
- Specified by:
- appliesin interface- XReferencing<E>
 
- 
contains- Specified by:
- containsin interface- XGettingCollection<E>
- Specified by:
- containsin interface- XReference<E>
- Specified by:
- containsin interface- XReferencing<E>
 
- 
containsAll- Specified by:
- containsAllin interface- XGettingCollection<E>
- Specified by:
- containsAllin interface- XReference<E>
- Specified by:
- containsAllin interface- XReferencing<E>
 
- 
containsIdDescription copied from interface:XGettingCollectionSpecial version of contains() that guarantees to use identity comparison (" == ") when searching for the given element regardless of the collection's internal logic.
 This method has the same behavior asXGettingCollection.containsSearched(Predicate)with aPredicateimplementation that checks for object identity. The only difference is a performance and usability advantage- Specified by:
- containsIdin interface- XGettingCollection<E>
- Specified by:
- containsIdin interface- XReference<E>
- Specified by:
- containsIdin interface- XReferencing<E>
- Parameters:
- element- the element to be searched in the collection by identity.
- Returns:
- whether this collection contains exactely the given element.
 
- 
copyTo- Specified by:
- copyToin interface- XGettingCollection<E>
- Specified by:
- copyToin interface- XReference<E>
- Specified by:
- copyToin interface- XReferencing<E>
 
- 
filterTo- Specified by:
- filterToin interface- XGettingCollection<E>
- Specified by:
- filterToin interface- XReference<E>
- Specified by:
- filterToin interface- XReferencing<E>
 
- 
count- Specified by:
- countin interface- XGettingCollection<E>
- Specified by:
- countin interface- XReference<E>
- Specified by:
- countin interface- XReferencing<E>
 
- 
countBy- Specified by:
- countByin interface- XGettingCollection<E>
- Specified by:
- countByin interface- XReference<E>
- Specified by:
- countByin interface- XReferencing<E>
 
- 
distinct- Specified by:
- distinctin interface- XGettingCollection<E>
- Specified by:
- distinctin interface- XReference<E>
- Specified by:
- distinctin interface- XReferencing<E>
 
- 
distinct- Specified by:
- distinctin interface- XGettingCollection<E>
- Specified by:
- distinctin interface- XReference<E>
- Specified by:
- distinctin interface- XReferencing<E>
 
- 
equality- Specified by:
- equalityin interface- XGettingCollection<E>
- Specified by:
- equalityin interface- XReference<E>
- Specified by:
- equalityin interface- XReferencing<E>
 
- 
equalspublic final boolean equals(XGettingCollection<? extends E> samples, Equalator<? super E> equalator)Description copied from interface:XGettingCollectionReturnstrueif the passed collection is of the same type as this collection andthis.equalsContent(list, equalator)yieldstrue.- Specified by:
- equalsin interface- XGettingCollection<E>
- Specified by:
- equalsin interface- XReference<E>
- Specified by:
- equalsin interface- XReferencing<E>
 
- 
equalsContentpublic final boolean equalsContent(XGettingCollection<? extends E> samples, Equalator<? super E> equalator)Description copied from interface:XGettingCollectionReturnstrueif all elements of this list and the passed list are sequentially equal as defined by the passed equalator.Note that for colletion types that don't have a defined order of elements, this method is hardly usable (as is XGettingCollection.equals(Object)for them as defined inCollection). The core problem of comparing collections that have no defined order is that they aren't really reliably comparable to any other collection.- Specified by:
- equalsContentin interface- XGettingCollection<E>
- Specified by:
- equalsContentin interface- XReference<E>
- Specified by:
- equalsContentin interface- XReferencing<E>
- equalator- the equalator to use to determine the equality of each element
- Returns:
- trueif this list is equal to the passed list, false otherwise
 
- 
exceptpublic final <T extends Consumer<? super E>> T except(XGettingCollection<? extends E> other, Equalator<? super E> equalator, T target)- Specified by:
- exceptin interface- XGettingCollection<E>
- Specified by:
- exceptin interface- XReference<E>
- Specified by:
- exceptin interface- XReferencing<E>
 
- 
hasVolatileElementspublic final boolean hasVolatileElements()Description copied from interface:XGettingCollectionTells if this collection contains volatile elements.
 An element is volatile, if it can become no longer reachable by the collection without being removed from the collection. Examples areWeakReferenceofSoftReferenceor implementations of collection entries that remove the element contained in an entry by some means outside the collection.
 Note thatWeakReferenceinstances that are added to a a simple (non-volatile) implementation of a collection do NOT make the collection volatile, as the elements themselves (the reference instances) are still strongly referenced.- Specified by:
- hasVolatileElementsin interface- ExtendedCollection<E>
- Specified by:
- hasVolatileElementsin interface- XGettingCollection<E>
- Specified by:
- hasVolatileElementsin interface- XReference<E>
- Specified by:
- hasVolatileElementsin interface- XReferencing<E>
- Returns:
- trueif the collection contains volatile elements.
 
- 
intersectpublic final <T extends Consumer<? super E>> T intersect(XGettingCollection<? extends E> other, Equalator<? super E> equalator, T target)- Specified by:
- intersectin interface- XGettingCollection<E>
- Specified by:
- intersectin interface- XReference<E>
- Specified by:
- intersectin interface- XReferencing<E>
 
- 
isEmptypublic final boolean isEmpty()- Specified by:
- isEmptyin interface- Sized
- Specified by:
- isEmptyin interface- XReference<E>
- Specified by:
- isEmptyin interface- XReferencing<E>
 
- 
iterator- Specified by:
- iteratorin interface- Iterable<E>
- Specified by:
- iteratorin interface- XGettingCollection<E>
- Specified by:
- iteratorin interface- XReference<E>
- Specified by:
- iteratorin interface- XReferencing<E>
 
- 
max- Specified by:
- maxin interface- XGettingCollection<E>
- Specified by:
- maxin interface- XReference<E>
- Specified by:
- maxin interface- XReferencing<E>
 
- 
min- Specified by:
- minin interface- XGettingCollection<E>
- Specified by:
- minin interface- XReference<E>
- Specified by:
- minin interface- XReferencing<E>
 
- 
nullContainedpublic final boolean nullContained()- Specified by:
- nullContainedin interface- XGettingCollection<E>
- Specified by:
- nullContainedin interface- XReference<E>
- Specified by:
- nullContainedin interface- XReferencing<E>
 
- 
seekDescription copied from interface:XGettingCollectionReturns the first contained element matching the passed sample as defined by the collection's equality logic or null, if no fitting element is contained. (For collections using referential equality, this method is basically just a variation ofXGettingCollection.contains(Object)with a different return type. For collections with data-dependant equality, the returned element might be the same as the passed one or a data-wise equal one, depending on the content of the collection)- Specified by:
- seekin interface- XGettingCollection<E>
- Specified by:
- seekin interface- XReference<E>
- Specified by:
- seekin interface- XReferencing<E>
 
- 
search- Specified by:
- searchin interface- XGettingCollection<E>
- Specified by:
- searchin interface- XReference<E>
- Specified by:
- searchin interface- XReferencing<E>
 
- 
sizepublic final long size()- Specified by:
- sizein interface- Sized
- Specified by:
- sizein interface- XGettingCollection<E>
- Specified by:
- sizein interface- XReference<E>
- Specified by:
- sizein interface- XReferencing<E>
 
- 
toArray- Specified by:
- toArrayin interface- XGettingCollection<E>
- Specified by:
- toArrayin interface- XReference<E>
- Specified by:
- toArrayin interface- XReferencing<E>
 
- 
toArray- Specified by:
- toArrayin interface- XGettingCollection<E>
- Specified by:
- toArrayin interface- XReference<E>
- Specified by:
- toArrayin interface- XReferencing<E>
 
- 
unionpublic final <T extends Consumer<? super E>> T union(XGettingCollection<? extends E> other, Equalator<? super E> equalator, T target)- Specified by:
- unionin interface- XGettingCollection<E>
- Specified by:
- unionin interface- XReference<E>
- Specified by:
- unionin interface- XReferencing<E>
 
- 
nullAllowedpublic final boolean nullAllowed()- Specified by:
- nullAllowedin interface- ExtendedCollection<E>
- Specified by:
- nullAllowedin interface- XReference<E>
- Specified by:
- nullAllowedin interface- XReferencing<E>
 
- 
remainingCapacitypublic final long remainingCapacity()Description copied from interface:CapacityCarryingReturns the amount of elements this carrier instance can collect before reaching its maximimum capacity.- Specified by:
- remainingCapacityin interface- CapacityCarrying
- Specified by:
- remainingCapacityin interface- XReference<E>
- Specified by:
- remainingCapacityin interface- XReferencing<E>
 
- 
isFullpublic final boolean isFull()Description copied from interface:CapacityCarryingReturns true if the current capacity cannot be increased any more.- Specified by:
- isFullin interface- CapacityCarrying
- Specified by:
- isFullin interface- XReference<E>
- Specified by:
- isFullin interface- XReferencing<E>
 
- 
maximumCapacitypublic final long maximumCapacity()Description copied from interface:CapacityCarryingReturns the maximum amount of elements this carrier instance can contain.
 The actual value may be depend on the configuration of the concrete instance or may depend only on the implementation of the carrier (meaning it is constant for all instances of the implementation, e.g.Integer.MAX_VALUE)- Specified by:
- maximumCapacityin interface- CapacityCarrying
- Specified by:
- maximumCapacityin interface- XReference<E>
- Specified by:
- maximumCapacityin interface- XReferencing<E>
- Returns:
- the maximum amount of elements this carrier instance can contain.
 
- 
replaceOne- Specified by:
- replaceOnein interface- XReference<E>
- Specified by:
- replaceOnein interface- XReplacingBag<E>
 
- 
replace- Specified by:
- replacein interface- XReference<E>
- Specified by:
- replacein interface- XReplacingBag<E>
 
- 
replaceAll- Specified by:
- replaceAllin interface- XReference<E>
- Specified by:
- replaceAllin interface- XReplacingBag<E>
 
- 
replaceOne- Specified by:
- replaceOnein interface- XReference<E>
- Specified by:
- replaceOnein interface- XReplacingBag<E>
 
- 
replace- Specified by:
- replacein interface- XReference<E>
- Specified by:
- replacein interface- XReplacingBag<E>
 
- 
substitute- Specified by:
- substitutein interface- XReplacingCollection<E>
 
- 
substitute- Specified by:
- substitutein interface- XReplacingBag<E>
 
- 
set- Specified by:
- setin interface- XReference<E>
- Specified by:
- setin interface- XSettingSequence<E>
 
- 
setGet- Specified by:
- setGetin interface- XReference<E>
- Specified by:
- setGetin interface- XSettingSequence<E>
 
- 
setFirst- Specified by:
- setFirstin interface- XReference<E>
- Specified by:
- setFirstin interface- XSettingSequence<E>
 
- 
setLast- Specified by:
- setLastin interface- XReference<E>
- Specified by:
- setLastin interface- XSettingSequence<E>
 
- 
shiftTo- Specified by:
- shiftToin interface- XOrderingEnum<E>
- Specified by:
- shiftToin interface- XOrderingSequence<E>
- Specified by:
- shiftToin interface- XReference<E>
- Specified by:
- shiftToin interface- XSortableEnum<E>
- Specified by:
- shiftToin interface- XSortableSequence<E>
 
- 
shiftTo- Specified by:
- shiftToin interface- XOrderingEnum<E>
- Specified by:
- shiftToin interface- XOrderingSequence<E>
- Specified by:
- shiftToin interface- XReference<E>
- Specified by:
- shiftToin interface- XSortableEnum<E>
- Specified by:
- shiftToin interface- XSortableSequence<E>
 
- 
shiftBy- Specified by:
- shiftByin interface- XOrderingEnum<E>
- Specified by:
- shiftByin interface- XOrderingSequence<E>
- Specified by:
- shiftByin interface- XReference<E>
- Specified by:
- shiftByin interface- XSortableEnum<E>
- Specified by:
- shiftByin interface- XSortableSequence<E>
 
- 
shiftBy- Specified by:
- shiftByin interface- XOrderingEnum<E>
- Specified by:
- shiftByin interface- XOrderingSequence<E>
- Specified by:
- shiftByin interface- XReference<E>
- Specified by:
- shiftByin interface- XSortableEnum<E>
- Specified by:
- shiftByin interface- XSortableSequence<E>
 
- 
set
- 
fill- Specified by:
- fillin interface- XReference<E>
- Specified by:
- fillin interface- XSettingList<E>
 
- 
setAll- Specified by:
- setAllin interface- XReference<E>
- Specified by:
- setAllin interface- XSettingList<E>
- Specified by:
- setAllin interface- XSettingSequence<E>
 
- 
set- Specified by:
- setin interface- XReference<E>
- Specified by:
- setin interface- XSettingList<E>
- Specified by:
- setin interface- XSettingSequence<E>
 
- 
setpublic final Singleton<E> set(long index, XGettingSequence<? extends E> elements, long offset, long length)- Specified by:
- setin interface- XReference<E>
- Specified by:
- setin interface- XSettingList<E>
- Specified by:
- setin interface- XSettingSequence<E>
 
- 
swap- Specified by:
- swapin interface- XOrderingEnum<E>
- Specified by:
- swapin interface- XOrderingSequence<E>
- Specified by:
- swapin interface- XReference<E>
- Specified by:
- swapin interface- XSettingList<E>
- Specified by:
- swapin interface- XSettingSequence<E>
- Specified by:
- swapin interface- XSortableEnum<E>
- Specified by:
- swapin interface- XSortableSequence<E>
 
- 
swap- Specified by:
- swapin interface- XOrderingEnum<E>
- Specified by:
- swapin interface- XOrderingSequence<E>
- Specified by:
- swapin interface- XReference<E>
- Specified by:
- swapin interface- XSettingList<E>
- Specified by:
- swapin interface- XSettingSequence<E>
- Specified by:
- swapin interface- XSortableEnum<E>
- Specified by:
- swapin interface- XSortableSequence<E>
 
- 
reverse- Specified by:
- reversein interface- XOrderingEnum<E>
- Specified by:
- reversein interface- XOrderingSequence<E>
- Specified by:
- reversein interface- XReference<E>
- Specified by:
- reversein interface- XSettingList<E>
- Specified by:
- reversein interface- XSettingSequence<E>
- Specified by:
- reversein interface- XSortableEnum<E>
- Specified by:
- reversein interface- XSortableSequence<E>
 
- 
sort- Specified by:
- sortin interface- Sortable<E>
- Specified by:
- sortin interface- XReference<E>
- Specified by:
- sortin interface- XSettingList<E>
- Specified by:
- sortin interface- XSettingSequence<E>
- Specified by:
- sortin interface- XSortableEnum<E>
- Specified by:
- sortin interface- XSortableSequence<E>
 
 
-