Serialized Form
-
Package org.magicwerk.brownies.collections
-
Class org.magicwerk.brownies.collections.BigList extends IList<E> implements Serializable
- serialVersionUID:
- 3715838828540564836L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream ois) throws java.io.IOException, java.lang.ClassNotFoundExceptionDeserialize a BigList object.- Throws:
java.io.IOException- if serialization failsjava.lang.ClassNotFoundException- if serialization fails
-
writeObject
private void writeObject(java.io.ObjectOutputStream oos) throws java.io.IOExceptionSerialize a BigList object.- Serial Data:
- block size (int), number of elements (int), followed by all of its elements (each an Object) in the proper order
- Throws:
java.io.IOException- if serialization fails
-
-
Serialized Fields
-
blockSize
int blockSize
Number of elements stored at maximum in a block -
currBlockEnd
int currBlockEnd
End index of current block -
currBlockStart
int currBlockStart
Start index of current block -
currModify
int currModify
Modify value which must be applied before this block is not current any more -
currNode
org.magicwerk.brownies.collections.BigList.BlockNode<E> currNode
Current node -
rootNode
org.magicwerk.brownies.collections.BigList.BlockNode<E> rootNode
The root node in the tree -
size
int size
Number of elements stored in this BigList
-
-
Class org.magicwerk.brownies.collections.BigList.ReadOnlyBigList extends BigList<E> implements Serializable
- serialVersionUID:
- -1352274047348922584L
-
Class org.magicwerk.brownies.collections.GapList extends IList<E> implements Serializable
- serialVersionUID:
- -4477005565661968383L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream ois) throws java.io.IOException, java.lang.ClassNotFoundExceptionDeserialize a GapList object.- Throws:
java.io.IOException- if serialization failsjava.lang.ClassNotFoundException- if serialization fails
-
writeObject
private void writeObject(java.io.ObjectOutputStream oos) throws java.io.IOExceptionSerialize a GapList object.- Serial Data:
- The length of the array backing the GapList instance is emitted (int), followed by all of its elements (each an Object) in the proper order.
- Throws:
java.io.IOException- if serialization fails
-
-
Serialized Fields
-
end
int end
Physical position after last element -
gapAddRight
boolean gapAddRight
If false (default) an element is added on the left side of the gap (favorable for adding after an insertion point, e.g. indexes 5, 6, 7), if true the element is added on the right side of the gap (favorable for adding before an insertion point, e.g. indexes 5, 5, 5) -
gapIndex
int gapIndex
Logical index of first element after gap (ignored if gapSize=0) -
gapSize
int gapSize
Size of gap (0 if there is no gap) -
gapStart
int gapStart
Physical position of first slot in gap (ignored if gapSize=0) -
size
int size
Number of elements stored in this GapList -
start
int start
Physical position of first element -
values
E[] values
Array holding raw data
-
-
Class org.magicwerk.brownies.collections.GapList.ReadOnlyList extends GapList<E> implements Serializable
- serialVersionUID:
- -1352274047348922584L
-
Class org.magicwerk.brownies.collections.IList extends java.util.AbstractList<E> implements Serializable
-
Class org.magicwerk.brownies.collections.Key1Collection extends KeyCollectionImpl<E> implements Serializable
-
Class org.magicwerk.brownies.collections.Key1List extends KeyListImpl<E> implements Serializable
-
Class org.magicwerk.brownies.collections.Key1List.ReadOnlyKey1List extends Key1List<E,K> implements Serializable
- serialVersionUID:
- -1352274047348922584L
-
Class org.magicwerk.brownies.collections.Key1Set extends Key1Collection<E,K> implements Serializable
-
Class org.magicwerk.brownies.collections.Key2Collection extends KeyCollectionImpl<E> implements Serializable
-
Class org.magicwerk.brownies.collections.Key2List extends KeyListImpl<E> implements Serializable
-
Class org.magicwerk.brownies.collections.Key2List.ReadOnlyKey2List extends Key2List<E,K1,K2> implements Serializable
- serialVersionUID:
- -1352274047348922584L
-
Class org.magicwerk.brownies.collections.Key2Set extends Key2Collection<E,K1,K2> implements Serializable
-
Class org.magicwerk.brownies.collections.KeyCollection extends KeyCollectionImpl<E> implements Serializable
-
Class org.magicwerk.brownies.collections.KeyCollectionAsMap extends java.lang.Object implements Serializable
-
Serialized Fields
-
coll
KeyCollectionImpl<E> coll
Reference to KeyCollectionImpl containing data (exactly one of the fields coll and list is set) -
immutable
boolean immutable
-
keyIndex
int keyIndex
-
list
KeyListImpl<E> list
Reference to KeyListImpl containing data (exactly one of the fields coll and list is set)
-
-
-
Class org.magicwerk.brownies.collections.KeyCollectionAsSet extends CollectionAsSet<E> implements Serializable
-
Class org.magicwerk.brownies.collections.KeyCollectionImpl extends java.lang.Object implements Serializable
-
Serialized Fields
-
afterDeleteTrigger
java.util.function.Consumer<E> afterDeleteTrigger
-
afterInsertTrigger
java.util.function.Consumer<E> afterInsertTrigger
-
allowNullElem
boolean allowNullElem
True to allow null elements, false to reject them. -
beforeDeleteTrigger
java.util.function.Consumer<E> beforeDeleteTrigger
-
beforeInsertTrigger
java.util.function.Consumer<E> beforeInsertTrigger
-
constraint
java.util.function.Predicate<E> constraint
All elements in the list must fulfill this predicate, if null, all elements are allowed -
keyList
KeyListImpl<E> keyList
Back pointer to KeyListImpl if this object is used to implement a KeyList, Key1List, Key2List. Otherwise null if it is part of a KeyCollection, Key1Collection, Key2Collection. -
keyMaps
org.magicwerk.brownies.collections.KeyCollectionImpl.KeyMap<E,java.lang.Object>[] keyMaps
Maps for element and all defined keys. keyMaps may be null for a KeyListImpl without keys. Index 0 is reserved for the elem key using an IdentMapper. If there is no elem key, keyMaps[0] contains null. -
maxSize
int maxSize
Maximum absolute or windows size, 0 if this list has no size restriction -
movingWindow
boolean movingWindow
If maxSize is greater than 0, this boolean indicates whether the size is for window (true) or absolute (false) -
orderByKey
int orderByKey
Index of key map which defines order (-1 for no order, only possible for KeyList). If an order key is defined for a KeyList, it must be implemented as KeyMap.keysList. -
setBehavior
boolean setBehavior
true if collections implementsSet, false forCollection(behavior ofKeyCollectionImpl.add(E)changes) -
size
int size
Size of collection. The size is cached, as the key maps do not know the size if duplicates are allowed.
-
-
-
Class org.magicwerk.brownies.collections.KeyCollections.KeyNCollection extends KeyCollectionImpl<E> implements Serializable
-
Class org.magicwerk.brownies.collections.KeyCollections.KeyNList extends KeyListImpl<E> implements Serializable
-
Class org.magicwerk.brownies.collections.KeyCollections.KeyNSet extends KeyCollections.KeyNCollection<E> implements Serializable
-
Class org.magicwerk.brownies.collections.KeyList extends KeyListImpl<E> implements Serializable
-
Class org.magicwerk.brownies.collections.KeyList.ReadOnlyKeyList extends KeyList<E> implements Serializable
- serialVersionUID:
- -1352274047348922584L
-
Class org.magicwerk.brownies.collections.KeyListImpl extends IList<E> implements Serializable
-
Serialized Fields
-
keyColl
KeyCollectionImpl<E> keyColl
Key collection used for key storage (never null). -
list
IList<E> list
List where the list content of this KeyListImpl is stored (never null). If this is list sorted by element (key 0), keyColl.keyMaps[0].keysList will also reference this list.
-
-
-
Class org.magicwerk.brownies.collections.KeyListImpl.ReadOnlyKeyListImpl extends KeyListImpl<E> implements Serializable
- serialVersionUID:
- -1352274047348922584L
-
Class org.magicwerk.brownies.collections.KeySet extends KeyCollection<E> implements Serializable
-
-
Package org.magicwerk.brownies.collections.exceptions
-
Class org.magicwerk.brownies.collections.exceptions.DuplicateKeyException extends KeyException implements Serializable
-
Serialized Fields
-
key
java.lang.Object key
Key which is not allowed due to a duplicate
-
-
-
Class org.magicwerk.brownies.collections.exceptions.KeyException extends java.lang.RuntimeException implements Serializable
-
-
Package org.magicwerk.brownies.collections.helper
-
Class org.magicwerk.brownies.collections.helper.IdentMapper extends java.lang.Object implements Serializable
-
Class org.magicwerk.brownies.collections.helper.MutableInt extends java.lang.Number implements Serializable
- serialVersionUID:
- 512176391864L
-
Serialized Fields
-
value
int value
The mutable value.
-
-
Class org.magicwerk.brownies.collections.helper.NaturalComparator extends org.magicwerk.brownies.collections.helper.SingletonComparator<T> implements Serializable
-
Class org.magicwerk.brownies.collections.helper.NullComparator extends org.magicwerk.brownies.collections.helper.SingletonComparator<T> implements Serializable
-
Serialized Fields
-
comparator
java.util.Comparator<T> comparator
-
nullsFirst
boolean nullsFirst
-
-
-