| Package | Description |
|---|---|
| net.markenwerk.commons.collections.sequences | |
| net.markenwerk.commons.collections.sources | |
| net.markenwerk.commons.collections.stacks |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Sequence<Payload>
A
Sequence is a linear data structure. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractListSequence<Payload>
|
class |
AbstractSequence<Payload>
A
AbstractSequence is an abstract base implementation of a
Sequence. |
class |
ListSequence<Payload>
|
| Modifier and Type | Method and Description |
|---|---|
Source<Payload> |
Sequence.clear()
Removes all payload values.
|
Source<Payload> |
AbstractSequence.clear() |
protected Source<Payload> |
AbstractListSequence.doClear() |
protected abstract Source<Payload> |
AbstractSequence.doClear()
Removes all payload values.
|
protected Source<Payload> |
AbstractListSequence.doRemoveAll(Predicate<? super Payload> predicate,
boolean satisfying) |
protected abstract Source<Payload> |
AbstractSequence.doRemoveAll(Predicate<? super Payload> predicate,
boolean satisfying)
Removes the payload values that satisfy the given
Predicate. |
Source<Payload> |
Sequence.removeAll(Payload reference)
Removes all occurrences, by
equality, of
the given reference payload value. |
Source<Payload> |
AbstractSequence.removeAll(Payload reference) |
Source<Payload> |
Sequence.removeAllMatches(Predicate<? super Payload> predicate)
Removes the payload values that satisfy the given
Predicate. |
Source<Payload> |
AbstractSequence.removeAllMatches(Predicate<? super Payload> predicate) |
Source<Payload> |
Sequence.replaceAll(Payload reference,
Provider<? extends Payload> provider)
Replaces all occurrences of the the given reference payload value with
payload values yielded by the given
Provider. |
Source<Payload> |
AbstractSequence.replaceAll(Payload reference,
Provider<? extends Payload> provider) |
Source<Payload> |
Sequence.replaceAllMatches(Predicate<? super Payload> predicate,
Provider<? extends Payload> provider)
|
Source<Payload> |
AbstractSequence.replaceAllMatches(Predicate<? super Payload> predicate,
Provider<? extends Payload> provider) |
Source<Payload> |
Sequence.retainAll(Payload reference)
Removes all but the given payload value.
|
Source<Payload> |
AbstractSequence.retainAll(Payload reference) |
Source<Payload> |
Sequence.retainAllMatches(Predicate<? super Payload> predicate)
Removes all but the payload values that satisfy the given
Predicate. |
Source<Payload> |
AbstractSequence.retainAllMatches(Predicate<? super Payload> predicate) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractSequence.onRemoved(Source<Payload> payloads)
Called after the given payload values have been removed.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IndexedSource<Payload>
A
Source is a linear read-only data structure. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractIndexedSource<Payload>
An
AbstractIndexedSource is an abstract base implementation of a
IndexedSource. |
class |
AbstractSource<Payload>
An
AbstractSource is an abstract base implementation of a
Source. |
class |
ArraySource<Payload>
An
ArraySource is an AbstractIndexedSource that is backed by
an array. |
class |
CollectionSource<Payload>
|
class |
EmptySource<Payload>
An
EmptySource is an AbstractSource that is empty; |
class |
ListSource<Payload>
|
class |
MapKeySource<Key>
|
class |
MapValueSource<Value>
|
class |
ObjectSource<Payload>
A
ObjectSource is an AbstractSource that is backed by a
single payload value. |
class |
OptionalSource<Payload>
|
| Modifier and Type | Method and Description |
|---|---|
Source<Payload> |
AbstractSource.getAll(Payload payload) |
Source<Payload> |
Source.getAll(Payload reference)
Returns all occurrences, by
equality, of
the given reference payload value. |
Source<Payload> |
AbstractSource.getAllMatches(Predicate<? super Payload> predicate) |
Source<Payload> |
Source.getAllMatches(Predicate<? super Payload> predicate)
Returns the payload values that satisfy the given
Predicate. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Stack<Payload>
A
Stack is a linear first-in-last-out data structure. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractLinkedStack<Payload>
An
AbstractLinkedStack is an AbstractStack that is backed by
linked elements. |
class |
AbstractStack<Payload>
An
AbstractStack is an abstract base implementation of Stack. |
class |
LinkedStack<Payload>
A
LinkedStack is an AbstractLinkedStack that performs no
additional actions. |
| Modifier and Type | Method and Description |
|---|---|
Source<Payload> |
Stack.clear()
Removes all payload values.
|
Source<Payload> |
AbstractStack.clear() |
protected Source<Payload> |
AbstractLinkedStack.doClear() |
protected abstract Source<Payload> |
AbstractStack.doClear()
Removes all payload value.
|
Source<Payload> |
Stack.popAll(int number)
Removes the given number of payload values. |
Source<Payload> |
AbstractStack.popAll(int number) |
Source<Payload> |
Stack.popAllMatches(Predicate<? super Payload> predicate)
Removes the first (i.e.
|
Source<Payload> |
AbstractStack.popAllMatches(Predicate<? super Payload> predicate) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractStack.onCleared(Source<Payload> iterable)
Called after all payload values have been removed.
|
Copyright © 2016–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.