Modul speiger.src.collections
Klasse BooleanLinkedList
java.lang.Object
java.util.AbstractCollection<Boolean>
speiger.src.collections.booleans.collections.AbstractBooleanCollection
speiger.src.collections.booleans.lists.AbstractBooleanList
speiger.src.collections.booleans.lists.BooleanLinkedList
- Alle implementierten Schnittstellen:
Iterable<Boolean>,Collection<Boolean>,List<Boolean>,BooleanCollection,BooleanIterable,BooleanStack,BooleanList,BooleanPriorityDequeue,BooleanPriorityQueue,ISizeProvider
public class BooleanLinkedList
extends AbstractBooleanList
implements BooleanPriorityDequeue, BooleanStack
A Type-Specific LinkedList implementation of list that is written to reduce (un)boxing
This implementation is optimized to improve how data is processed with interfaces like BooleanStack
and with optimized functions that use type-specific implementations for primitives and optimized logic for bulk actions.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a new LinkedList.BooleanLinkedList(boolean... a) Creates a new LinkedList with a Copy of the arrayBooleanLinkedList(boolean[] a, int length) Creates a new LinkedList with a Copy of the array with a custom lengthBooleanLinkedList(boolean[] a, int offset, int length) Creates a new LinkedList with a Copy of the array with in the custom range.BooleanLinkedList(Collection<? extends Boolean> c) Veraltet.Creates a new LinkedList a copy with the contents of the Collection.Creates a new LinkedList a copy with the contents of the List. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanadd(boolean e) A Type-Specific implementation of add function that delegates toList.add(int, Object)voidadd(int index, boolean e) A Type-Specific add Function to reduce (un)boxingbooleanaddAll(boolean[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of WrappingbooleanaddAll(int index, Collection<? extends Boolean> c) Veraltet.booleanaddAll(int index, BooleanCollection c) A Type-Specific addAll Function to reduce (un)boxingbooleanaddAll(int index, BooleanList c) A Type-Specific and optimized addAll function that allows a faster transfer of elementsvoidaddElements(int from, boolean[] a, int offset, int length) A function to fast add elements to the listvoidclear()clears all elements within the PriorityQueue, this does not resize the backing arraysbooleancontains(boolean e) A Type-Specific implementation of contains.booleanVeraltet.copy()A Function that does a shallow clone of the Collection itself.intcount(BooleanPredicate filter) Helper function to reduce stream usage that allows to count the valid elements.booleandequeue()Method to extract a element from the PriorityQueuebooleanA Method to remove a element from the last place instead of the firstvoidenqueue(boolean e) Method to insert a element into the PriorityQueuevoidenqueueFirst(boolean e) Method to insert a element into the first Index instead of the last.boolean[]extractElements(int from, int to) A function to fast extract elements out of the list, this removes the elements that were fetched.booleanfindFirst(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for the first match.booleanfirst()Shows the element that is to be returned next<E> voidforEach(E input, ObjectBooleanConsumer<E> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.voidforEach(BooleanConsumer action) A Type Specific foreach function that reduces (un)boxingvoidforEachIndexed(IntBooleanConsumer action) A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.booleangetBoolean(int index) A Type-Specific get function to reduce (un)boxingboolean[]getElements(int from, boolean[] a, int offset, int length) A function to fast fetch elements from the listbooleanHelper method that returns the first element of a List.booleanHelper method that returns the last element of a List.intindexOf(boolean e) The indexOf implementation iterates over all elements and compares them to the search value.intVeraltet.booleanlast()Peeking function for the last elementintlastIndexOf(boolean e) The lastIndexOf implementation iterates over all elements and compares them to the search value.intVeraltet.listIterator(int index) A Type-Specific Iterator of listIteratorbooleanmatchesAll(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for all matches.booleanmatchesAny(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for any matches.booleanmatchesNone(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for no matches.voidAllows to notify the Queue to be revalidate its databooleanpeek(int index) Peeking function to see whats inside the queue.booleanpop()Removes the Object on top of the stack.voidpush(boolean e) Inserts a given Object on top of the stackbooleanreduce(boolean identity, BooleanBooleanUnaryOperator operator) Performs a reduction on the elements of this Iterablebooleanreduce(BooleanBooleanUnaryOperator operator) Performs a reduction on the elements of this IterablebooleanremBoolean(boolean e) A Type-Specific implementation of remove.booleanremoveAll(Collection<?> c) Veraltet.booleanA Type-Specific implementation of removeAll.booleanA Type-Specific removeAll function that reduces (un)boxing.booleanremoveBoolean(int index) A Type-Specific remove function to reduce (un)boxingvoidremoveElements(int from, int to) a function to fast remove elements from the list.booleanremoveFirst(boolean e) Removes the first found element in the queuebooleanHelper method that removes and returns the first element of a List.booleanVeraltet.booleanremoveLast(boolean e) Removes the last found element in the queuebooleanHelper method that removes and returns the last element of a List.voidVeraltet.booleanretainAll(Collection<?> c) Veraltet.booleanA Type-Specific implementation of retainAll.booleanA Type-Specific retainAll function that reduces (un)boxing.booleanset(int index, boolean e) A Type-Specific set function to reduce (un)boxingintsize()Provides the amount of elements currently in the stackA Type Specific Type Splititerator to reduce boxing/unboxingbooleanswapRemove(int index) A Highly Optimized remove function that removes the desired element.booleanswapRemoveBoolean(boolean e) A Highly Optimized remove function that removes the desired element.Object[]toArray()<E> E[]toArray(E[] a) boolean[]toBooleanArray(boolean[] a) A Type-Specific implementation of toArray.Von Klasse geerbte Methoden speiger.src.collections.booleans.lists.AbstractBooleanList
add, addAll, addAll, addAll, equals, hashCode, indexedIterator, indexedIterator, iterator, listIterator, reversed, size, subListVon Klasse geerbte Methoden speiger.src.collections.booleans.collections.AbstractBooleanCollection
add, containsAll, containsAll, containsAny, containsAny, remove, toBooleanArrayVon Klasse geerbte Methoden java.util.AbstractCollection
isEmpty, toStringVon Schnittstelle geerbte Methoden speiger.src.collections.booleans.collections.BooleanCollection
addAll, addAll, containsAll, containsAny, containsAny, pour, toBooleanArrayVon Schnittstelle geerbte Methoden speiger.src.collections.booleans.collections.BooleanIterable
arrayflatMap, asAsync, distinct, filter, flatMap, forEach, iterator, limit, map, peek, pourAsList, repeat, sortedVon Schnittstelle geerbte Methoden speiger.src.collections.booleans.lists.BooleanList
add, addElements, addElements, addIfAbsent, addIfPresent, get, getElements, remove, remove, set, sort, sort, synchronize, synchronize, unmodifiable, unstableSort, unstableSortVon Schnittstelle geerbte Methoden speiger.src.collections.booleans.queues.BooleanPriorityDequeue
enqueueAllFirst, enqueueAllFirst, enqueueAllFirst, enqueueAllFirst, synchronizeQueue, synchronizeQueueVon Schnittstelle geerbte Methoden speiger.src.collections.booleans.queues.BooleanPriorityQueue
enqueueAll, enqueueAll, enqueueAll, enqueueAll, isEmpty, toBooleanArrayVon Schnittstelle geerbte Methoden speiger.src.collections.booleans.collections.BooleanStack
isEmpty, pushTop, toBooleanArray, topVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArrayVon Schnittstelle geerbte Methoden java.util.List
containsAll, isEmpty
-
Konstruktordetails
-
BooleanLinkedList
public BooleanLinkedList()Creates a new LinkedList. -
BooleanLinkedList
Veraltet.Creates a new LinkedList a copy with the contents of the Collection.- Parameter:
c- the elements that should be added into the list
-
BooleanLinkedList
Creates a new LinkedList a copy with the contents of the Collection.- Parameter:
c- the elements that should be added into the list
-
BooleanLinkedList
Creates a new LinkedList a copy with the contents of the List.- Parameter:
l- the elements that should be added into the list
-
BooleanLinkedList
public BooleanLinkedList(boolean... a) Creates a new LinkedList with a Copy of the array- Parameter:
a- the array that should be copied
-
BooleanLinkedList
public BooleanLinkedList(boolean[] a, int length) Creates a new LinkedList with a Copy of the array with a custom length- Parameter:
a- the array that should be copiedlength- the desired length that should be copied
-
BooleanLinkedList
public BooleanLinkedList(boolean[] a, int offset, int length) Creates a new LinkedList with a Copy of the array with in the custom range.- Parameter:
a- the array that should be copiedoffset- the starting offset of where the array should be copied fromlength- the desired length that should be copied- Löst aus:
IllegalStateException- if offset is smaller then 0IllegalStateException- if the offset + length exceeds the array length
-
-
Methodendetails
-
add
public boolean add(boolean e) Beschreibung aus Klasse kopiert:AbstractBooleanListA Type-Specific implementation of add function that delegates toList.add(int, Object)- Angegeben von:
addin SchnittstelleBooleanCollection- Angegeben von:
addin SchnittstelleBooleanList- Setzt außer Kraft:
addin KlasseAbstractBooleanList- Parameter:
e- the element to add- Gibt zurück:
- true if the list was modified
- Siehe auch:
-
add
public void add(int index, boolean e) Beschreibung aus Schnittstelle kopiert:BooleanListA Type-Specific add Function to reduce (un)boxing- Angegeben von:
addin SchnittstelleBooleanList- Parameter:
index- index at which the specified element is to be insertede- the element to add- Siehe auch:
-
addAll
Beschreibung aus Schnittstelle kopiert:BooleanListA Type-Specific addAll Function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleBooleanList- Parameter:
index- index at which the specified elements is to be insertedc- the elements that need to be added- Gibt zurück:
- true if the list was modified
- Siehe auch:
-
addAll
Beschreibung aus Schnittstelle kopiert:BooleanListA Type-Specific and optimized addAll function that allows a faster transfer of elements- Angegeben von:
addAllin SchnittstelleBooleanList- Parameter:
index- index at which the specified elements is to be insertedc- the elements that need to be added- Gibt zurück:
- true if the list was modified
-
addAll
Veraltet. -
enqueue
public void enqueue(boolean e) Beschreibung aus Schnittstelle kopiert:BooleanPriorityQueueMethod to insert a element into the PriorityQueue- Angegeben von:
enqueuein SchnittstelleBooleanPriorityQueue- Parameter:
e- the element that should be inserted
-
enqueueFirst
public void enqueueFirst(boolean e) Beschreibung aus Schnittstelle kopiert:BooleanPriorityDequeueMethod to insert a element into the first Index instead of the last.- Angegeben von:
enqueueFirstin SchnittstelleBooleanPriorityDequeue- Parameter:
e- the element that should be inserted into the first place
-
push
public void push(boolean e) Beschreibung aus Schnittstelle kopiert:BooleanStackInserts a given Object on top of the stack- Angegeben von:
pushin SchnittstelleBooleanStack- Parameter:
e- the Object to insert- Siehe auch:
-
addAll
public boolean addAll(boolean[] e, int offset, int length) Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Type-Specific Array based addAll method to reduce the amount of Wrapping- Angegeben von:
addAllin SchnittstelleBooleanCollection- Parameter:
e- the elements that should be addedoffset- where to start within the arraylength- how many elements of the array should be added- Gibt zurück:
- if the collection was modified
-
addElements
public void addElements(int from, boolean[] a, int offset, int length) Beschreibung aus Schnittstelle kopiert:BooleanListA function to fast add elements to the list- Angegeben von:
addElementsin SchnittstelleBooleanList- Parameter:
from- the index where the elements should be added into the lista- the elements that should be addedoffset- the start index of the array should be read fromlength- how many elements should be read from
-
getElements
public boolean[] getElements(int from, boolean[] a, int offset, int length) Beschreibung aus Schnittstelle kopiert:BooleanListA function to fast fetch elements from the list- Angegeben von:
getElementsin SchnittstelleBooleanList- Parameter:
from- index where the list should be fetching elements froma- the array where the values should be inserted tooffset- the startIndex of where the array should be written tolength- the number of elements the values should be fetched from- Gibt zurück:
- the inputArray
-
first
public boolean first()Beschreibung aus Schnittstelle kopiert:BooleanPriorityQueueShows the element that is to be returned next- Angegeben von:
firstin SchnittstelleBooleanPriorityQueue- Gibt zurück:
- the first element in the Queue
-
last
public boolean last()Beschreibung aus Schnittstelle kopiert:BooleanPriorityDequeuePeeking function for the last element- Angegeben von:
lastin SchnittstelleBooleanPriorityDequeue- Gibt zurück:
- the Last Element within the dequeue without deleting it
-
getFirstBoolean
public boolean getFirstBoolean()Beschreibung aus Schnittstelle kopiert:BooleanListHelper method that returns the first element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Angegeben von:
getFirstBooleanin SchnittstelleBooleanList- Gibt zurück:
- first element of the list
-
getLastBoolean
public boolean getLastBoolean()Beschreibung aus Schnittstelle kopiert:BooleanListHelper method that returns the last element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Angegeben von:
getLastBooleanin SchnittstelleBooleanList- Gibt zurück:
- last element of the list
-
removeFirstBoolean
public boolean removeFirstBoolean()Beschreibung aus Schnittstelle kopiert:BooleanListHelper method that removes and returns the first element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Angegeben von:
removeFirstBooleanin SchnittstelleBooleanList- Gibt zurück:
- first element of the list and removes it
-
removeLastBoolean
public boolean removeLastBoolean()Beschreibung aus Schnittstelle kopiert:BooleanListHelper method that removes and returns the last element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Angegeben von:
removeLastBooleanin SchnittstelleBooleanList- Gibt zurück:
- last element of the list and removes it
-
peek
public boolean peek(int index) Beschreibung aus Schnittstelle kopiert:BooleanPriorityQueuePeeking function to see whats inside the queue.- Angegeben von:
peekin SchnittstelleBooleanPriorityQueue- Angegeben von:
peekin SchnittstelleBooleanStack- Parameter:
index- of the element that is requested to be viewed.- Gibt zurück:
- the element that is requested
- Siehe auch:
-
getBoolean
public boolean getBoolean(int index) Beschreibung aus Schnittstelle kopiert:BooleanListA Type-Specific get function to reduce (un)boxing- Angegeben von:
getBooleanin SchnittstelleBooleanList- Parameter:
index- the index of the value that is requested- Gibt zurück:
- the value at the given index
- Siehe auch:
-
contains
Veraltet.Beschreibung aus Klasse kopiert:AbstractBooleanCollectionThis default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
containsin SchnittstelleBooleanCollection- Angegeben von:
containsin SchnittstelleBooleanList- Angegeben von:
containsin SchnittstelleCollection<Boolean>- Angegeben von:
containsin SchnittstelleList<Boolean>- Setzt außer Kraft:
containsin KlasseAbstractBooleanCollection
-
indexOf
Veraltet.Beschreibung aus Klasse kopiert:AbstractBooleanListThe IndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
indexOfin SchnittstelleBooleanList- Angegeben von:
indexOfin SchnittstelleList<Boolean>- Setzt außer Kraft:
indexOfin KlasseAbstractBooleanList- Parameter:
o- the value that the index is searched for.- Gibt zurück:
- index of the value that was searched for. -1 if not found
-
lastIndexOf
Veraltet.Beschreibung aus Klasse kopiert:AbstractBooleanListThe lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleBooleanList- Angegeben von:
lastIndexOfin SchnittstelleList<Boolean>- Setzt außer Kraft:
lastIndexOfin KlasseAbstractBooleanList- Parameter:
o- the value that the index is searched for.- Gibt zurück:
- the last index of the value that was searched for. -1 if not found
-
contains
public boolean contains(boolean e) Beschreibung aus Klasse kopiert:AbstractBooleanCollectionA Type-Specific implementation of contains. This implementation iterates over the elements and returns true if the value match.- Angegeben von:
containsin SchnittstelleBooleanCollection- Angegeben von:
containsin SchnittstelleBooleanPriorityQueue- Setzt außer Kraft:
containsin KlasseAbstractBooleanCollection- Parameter:
e- the element that should be searched for.- Gibt zurück:
- true if the value was found.
-
indexOf
public int indexOf(boolean e) Beschreibung aus Klasse kopiert:AbstractBooleanListThe indexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
indexOfin SchnittstelleBooleanList- Setzt außer Kraft:
indexOfin KlasseAbstractBooleanList- Parameter:
e- the value that the index is searched for.- Gibt zurück:
- index of the value that was searched for. -1 if not found
-
lastIndexOf
public int lastIndexOf(boolean e) Beschreibung aus Klasse kopiert:AbstractBooleanListThe lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleBooleanList- Setzt außer Kraft:
lastIndexOfin KlasseAbstractBooleanList- Parameter:
e- the value that the index is searched for.- Gibt zurück:
- the last index of the value that was searched for. -1 if not found
-
listIterator
Beschreibung aus Schnittstelle kopiert:BooleanListA Type-Specific Iterator of listIterator- Angegeben von:
listIteratorin SchnittstelleBooleanList- Angegeben von:
listIteratorin SchnittstelleList<Boolean>- Setzt außer Kraft:
listIteratorin KlasseAbstractBooleanList- Siehe auch:
-
spliterator
A Type Specific Type Splititerator to reduce boxing/unboxing- Angegeben von:
spliteratorin SchnittstelleBooleanCollection- Angegeben von:
spliteratorin SchnittstelleBooleanIterable- Angegeben von:
spliteratorin SchnittstelleBooleanList- Angegeben von:
spliteratorin SchnittstelleCollection<Boolean>- Angegeben von:
spliteratorin SchnittstelleIterable<Boolean>- Angegeben von:
spliteratorin SchnittstelleList<Boolean>- Gibt zurück:
- type specific splititerator
-
forEach
Beschreibung aus Schnittstelle kopiert:BooleanIterableA Type Specific foreach function that reduces (un)boxing- Angegeben von:
forEachin SchnittstelleBooleanIterable- Parameter:
action- The action to be performed for each element- Siehe auch:
-
forEachIndexed
Beschreibung aus Schnittstelle kopiert:BooleanIterableA Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.- Angegeben von:
forEachIndexedin SchnittstelleBooleanIterable- Angegeben von:
forEachIndexedin SchnittstelleBooleanList- Parameter:
action- The action to be performed for each element
-
forEach
Beschreibung aus Schnittstelle kopiert:BooleanIterableHelper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.- Angegeben von:
forEachin SchnittstelleBooleanIterable- Typparameter:
E- the generic type of the Object- Parameter:
input- the object that should be includedaction- The action to be performed for each element
-
matchesAny
Beschreibung aus Schnittstelle kopiert:BooleanIterableHelper function to reduce stream usage that allows to filter for any matches.- Angegeben von:
matchesAnyin SchnittstelleBooleanIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if any matches were found
-
matchesNone
Beschreibung aus Schnittstelle kopiert:BooleanIterableHelper function to reduce stream usage that allows to filter for no matches.- Angegeben von:
matchesNonein SchnittstelleBooleanIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if no matches were found
-
matchesAll
Beschreibung aus Schnittstelle kopiert:BooleanIterableHelper function to reduce stream usage that allows to filter for all matches.- Angegeben von:
matchesAllin SchnittstelleBooleanIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if all matches.
-
findFirst
Beschreibung aus Schnittstelle kopiert:BooleanIterableHelper function to reduce stream usage that allows to filter for the first match.- Angegeben von:
findFirstin SchnittstelleBooleanIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the found value or the null equivalent variant.
-
reduce
Beschreibung aus Schnittstelle kopiert:BooleanIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleBooleanIterable- Parameter:
identity- the start valueoperator- the operation that should be applied- Gibt zurück:
- the reduction result, returns identity if nothing was found
-
reduce
Beschreibung aus Schnittstelle kopiert:BooleanIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleBooleanIterable- Parameter:
operator- the operation that should be applied- Gibt zurück:
- the reduction result, returns null value if nothing was found
-
count
Beschreibung aus Schnittstelle kopiert:BooleanIterableHelper function to reduce stream usage that allows to count the valid elements.- Angegeben von:
countin SchnittstelleBooleanIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the amount of Valid Elements
-
set
public boolean set(int index, boolean e) Beschreibung aus Schnittstelle kopiert:BooleanListA Type-Specific set function to reduce (un)boxing- Angegeben von:
setin SchnittstelleBooleanList- Parameter:
index- index of the element to replacee- element to be stored at the specified position- Gibt zurück:
- the element previously at the specified position
- Siehe auch:
-
replaceAll
Veraltet.- Angegeben von:
replaceAllin SchnittstelleList<Boolean>
-
onChanged
public void onChanged()Beschreibung aus Schnittstelle kopiert:BooleanPriorityQueueAllows to notify the Queue to be revalidate its data- Angegeben von:
onChangedin SchnittstelleBooleanPriorityQueue
-
comparator
- Angegeben von:
comparatorin SchnittstelleBooleanPriorityQueue- Gibt zurück:
- the sorter of the Queue, can be null
-
dequeue
public boolean dequeue()Beschreibung aus Schnittstelle kopiert:BooleanPriorityQueueMethod to extract a element from the PriorityQueue- Angegeben von:
dequeuein SchnittstelleBooleanPriorityQueue- Gibt zurück:
- a element from the Queue
-
dequeueLast
public boolean dequeueLast()Beschreibung aus Schnittstelle kopiert:BooleanPriorityDequeueA Method to remove a element from the last place instead of the first- Angegeben von:
dequeueLastin SchnittstelleBooleanPriorityDequeue- Gibt zurück:
- the last element inserted
-
pop
public boolean pop()Beschreibung aus Schnittstelle kopiert:BooleanStackRemoves the Object on top of the stack.- Angegeben von:
popin SchnittstelleBooleanStack- Gibt zurück:
- the element that is on top of the stack
- Siehe auch:
-
removeFirst
public boolean removeFirst(boolean e) Beschreibung aus Schnittstelle kopiert:BooleanPriorityQueueRemoves the first found element in the queue- Angegeben von:
removeFirstin SchnittstelleBooleanPriorityQueue- Parameter:
e- the element that should be removed- Gibt zurück:
- if a searched element was removed
-
removeLast
public boolean removeLast(boolean e) Beschreibung aus Schnittstelle kopiert:BooleanPriorityQueueRemoves the last found element in the queue- Angegeben von:
removeLastin SchnittstelleBooleanPriorityQueue- Parameter:
e- the element that should be removed- Gibt zurück:
- if a searched element was removed
-
swapRemove
public boolean swapRemove(int index) Beschreibung aus Schnittstelle kopiert:BooleanListA Highly Optimized remove function that removes the desired element. But instead of shifting the elements to the left it moves the last element to the removed space.- Angegeben von:
swapRemovein SchnittstelleBooleanList- Parameter:
index- the index of the element to be removed- Gibt zurück:
- the element previously at the specified position
-
swapRemoveBoolean
public boolean swapRemoveBoolean(boolean e) Beschreibung aus Schnittstelle kopiert:BooleanListA Highly Optimized remove function that removes the desired element. But instead of shifting the elements to the left it moves the last element to the removed space.- Angegeben von:
swapRemoveBooleanin SchnittstelleBooleanList- Setzt außer Kraft:
swapRemoveBooleanin KlasseAbstractBooleanList- Parameter:
e- the element that should be removed- Gibt zurück:
- true if the element was removed
-
remBoolean
public boolean remBoolean(boolean e) Beschreibung aus Klasse kopiert:AbstractBooleanCollectionA Type-Specific implementation of remove. This implementation iterates over the elements until it finds the element that is searched for or it runs out of elements. It stops after finding the first element- Angegeben von:
remBooleanin SchnittstelleBooleanCollection- Setzt außer Kraft:
remBooleanin KlasseAbstractBooleanCollection- Parameter:
e- the element that is searched for- Gibt zurück:
- true if the element was found and removed.
- Siehe auch:
-
removeBoolean
public boolean removeBoolean(int index) Beschreibung aus Schnittstelle kopiert:BooleanListA Type-Specific remove function to reduce (un)boxing- Angegeben von:
removeBooleanin SchnittstelleBooleanList- Parameter:
index- the index of the element to be removed- Gibt zurück:
- the element previously at the specified position
- Siehe auch:
-
removeElements
public void removeElements(int from, int to) Beschreibung aus Schnittstelle kopiert:BooleanLista function to fast remove elements from the list.- Angegeben von:
removeElementsin SchnittstelleBooleanList- Parameter:
from- the start index of where the elements should be removed from (inclusive)to- the end index of where the elements should be removed to (exclusive)
-
extractElements
public boolean[] extractElements(int from, int to) Beschreibung aus Schnittstelle kopiert:BooleanListA function to fast extract elements out of the list, this removes the elements that were fetched.- Angegeben von:
extractElementsin SchnittstelleBooleanList- Parameter:
from- the start index of where the elements should be fetched from (inclusive)to- the end index of where the elements should be fetched to (exclusive)- Gibt zurück:
- a array of the elements that were fetched
-
removeAll
Veraltet.- Angegeben von:
removeAllin SchnittstelleCollection<Boolean>- Angegeben von:
removeAllin SchnittstelleList<Boolean>- Setzt außer Kraft:
removeAllin KlasseAbstractCollection<Boolean>
-
retainAll
Veraltet.- Angegeben von:
retainAllin SchnittstelleCollection<Boolean>- Angegeben von:
retainAllin SchnittstelleList<Boolean>- Setzt außer Kraft:
retainAllin KlasseAbstractCollection<Boolean>
-
removeAll
Beschreibung aus Klasse kopiert:AbstractBooleanCollectionA Type-Specific implementation of removeAll. This Implementation iterates over all elements and removes them as they were found in the other collection.- Angegeben von:
removeAllin SchnittstelleBooleanCollection- Setzt außer Kraft:
removeAllin KlasseAbstractBooleanCollection- Parameter:
c- the elements that should be deleted- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Type-Specific removeAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- Angegeben von:
removeAllin SchnittstelleBooleanCollection- Setzt außer Kraft:
removeAllin KlasseAbstractBooleanCollection- Parameter:
c- the collection of elements that should be removedr- elements that got removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
retainAll
Beschreibung aus Klasse kopiert:AbstractBooleanCollectionA Type-Specific implementation of retainAll. This Implementation iterates over all elements and removes them as they were not found in the other collection.- Angegeben von:
retainAllin SchnittstelleBooleanCollection- Setzt außer Kraft:
retainAllin KlasseAbstractBooleanCollection- Parameter:
c- the elements that should be kept- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
retainAll
Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Type-Specific retainAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- Angegeben von:
retainAllin SchnittstelleBooleanCollection- Setzt außer Kraft:
retainAllin KlasseAbstractBooleanCollection- Parameter:
c- the collection of elements that should be keptr- elements that got removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
removeIf
Veraltet.- Angegeben von:
removeIfin SchnittstelleCollection<Boolean>
-
toArray
- Angegeben von:
toArrayin SchnittstelleCollection<Boolean>- Angegeben von:
toArrayin SchnittstelleList<Boolean>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Boolean>
-
toArray
public <E> E[] toArray(E[] a) - Angegeben von:
toArrayin SchnittstelleCollection<Boolean>- Angegeben von:
toArrayin SchnittstelleList<Boolean>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Boolean>
-
toBooleanArray
public boolean[] toBooleanArray(boolean[] a) Beschreibung aus Klasse kopiert:AbstractBooleanCollectionA Type-Specific implementation of toArray. This implementation iterates over all elements and unwraps them into primitive type.- Angegeben von:
toBooleanArrayin SchnittstelleBooleanCollection- Angegeben von:
toBooleanArrayin SchnittstelleBooleanPriorityQueue- Angegeben von:
toBooleanArrayin SchnittstelleBooleanStack- Setzt außer Kraft:
toBooleanArrayin KlasseAbstractBooleanCollection- Parameter:
a- array that the elements should be injected to. If null or to small a new array with the right size is created- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
size
public int size()Beschreibung aus Schnittstelle kopiert:BooleanStackProvides the amount of elements currently in the stack- Angegeben von:
sizein SchnittstelleBooleanPriorityQueue- Angegeben von:
sizein SchnittstelleBooleanStack- Angegeben von:
sizein SchnittstelleCollection<Boolean>- Angegeben von:
sizein SchnittstelleISizeProvider- Angegeben von:
sizein SchnittstelleList<Boolean>- Angegeben von:
sizein KlasseAbstractCollection<Boolean>- Gibt zurück:
- the amount of elements that are stored in the PriorityQueue
-
clear
public void clear()Beschreibung aus Schnittstelle kopiert:BooleanPriorityQueueclears all elements within the PriorityQueue, this does not resize the backing arrays- Angegeben von:
clearin SchnittstelleBooleanPriorityQueue- Angegeben von:
clearin SchnittstelleBooleanStack- Angegeben von:
clearin SchnittstelleCollection<Boolean>- Angegeben von:
clearin SchnittstelleList<Boolean>- Setzt außer Kraft:
clearin KlasseAbstractCollection<Boolean>
-
copy
Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Function that does a shallow clone of the Collection itself. This function is more optimized then a copy constructor since the Collection does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk- Angegeben von:
copyin SchnittstelleBooleanCollection- Angegeben von:
copyin SchnittstelleBooleanList- Angegeben von:
copyin SchnittstelleBooleanPriorityDequeue- Angegeben von:
copyin SchnittstelleBooleanPriorityQueue- Setzt außer Kraft:
copyin KlasseAbstractBooleanList- Gibt zurück:
- a Shallow Copy of the collection
-