Javolution 6.0.0 java
|
Classes | |
class | IteratorImpl |
Public Member Functions | |
FastTableImpl (Equality<? super E > comparator) | |
boolean | add (E element) |
void | add (int index, E element) |
void | addFirst (E element) |
void | addLast (E element) |
void | clear () |
FastTableImpl< E > | clone () |
Equality<? super E > | comparator () |
E | get (int index) |
E | getFirst () |
E | getLast () |
Iterator< E > | iterator () |
E | remove (int index) |
E | removeFirst () |
E | removeLast () |
E | set (int index, E element) |
int | size () |
boolean | addAll (int index, Collection<? extends E > c) |
boolean | addAll (Collection<? extends E > c) |
FastCollection< E > | addAll (E... elements) |
FastCollection< E > | addAll (FastCollection<? extends E > that) |
final boolean | contains (Object o) |
Iterator< E > | descendingIterator () |
final E | element () |
int | indexOf (Object o) |
final boolean | isEmpty () |
int | lastIndexOf (Object o) |
final ListIterator< E > | listIterator () |
ListIterator< E > | listIterator (int index) |
final boolean | offer (E e) |
final boolean | offerFirst (E e) |
final boolean | offerLast (E e) |
final E | peek () |
E | peekFirst () |
E | peekLast () |
final E | poll () |
E | pollFirst () |
E | pollLast () |
final E | pop () |
final void | push (E e) |
final E | remove () |
final boolean | remove (Object o) |
boolean | removeFirstOccurrence (Object o) |
boolean | removeLastOccurrence (Object o) |
CollectionService< E >[] | split (int n) |
TableService< E > | subList (int fromIndex, int toIndex) |
TableService< E > | threadSafe () |
boolean | containsAll (Collection<?> c) |
boolean | equals (Object o) |
int | hashCode () |
void | perform (Consumer< CollectionService< E >> action, CollectionService< E > view) |
void | perform (Consumer<? extends Collection< E >> action) |
void | perform (Consumer< T > action, T part) |
boolean | removeAll (Collection<?> c) |
boolean | retainAll (Collection<?> c) |
Object[] | toArray () |
void | update (Consumer< CollectionService< E >> action, CollectionService< E > view) |
void | update (Consumer<? extends Collection< E >> action) |
void | update (Consumer< T > action, T part) |
FastCollection< E > | atomic () |
FastCollection< E > | shared () |
FastCollection< E > | parallel () |
FastCollection< E > | sequential () |
FastCollection< E > | unmodifiable () |
FastCollection< E > | filtered (Predicate<? super E > filter) |
FastCollection< E > | sorted () |
FastCollection< E > | sorted (Comparator<? super E > cmp) |
FastCollection< E > | reversed () |
FastCollection< E > | distinct () |
void | forEach (final Consumer<? super E > consumer) |
boolean | removeIf (final Predicate<? super E > filter) |
E | reduce (Reducer< E > reducer) |
E | min () |
E | max () |
String | toString () |
Protected Member Functions | |
void | emptyError () |
void | indexError (int index) |
TableService< E > | target () |
CollectionService< E > | service () |
Static Protected Member Functions | |
static< E > CollectionService< E > | serviceOf (FastCollection< E > collection) |
Package Functions | |
public< T > T[] | toArray (T[] a) |
public< R > FastCollection< R > | mapped (Function<? super E, ? extends R > function) |
public< T extends E > T | any (Class< T > type) |
public< T extends Collection< E > > Immutable< T > | toImmutable () |
Private Member Functions | |
void | checkUpsize () |
void | readObject (java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException |
void | upsize () |
void | writeObject (java.io.ObjectOutputStream s) throws java.io.IOException |
Private Attributes | |
transient int | capacity |
final Equality<? super E > | comparator |
transient FractalTableImpl | fractal |
transient int | size |
Static Private Attributes | |
static final long | serialVersionUID = 0x600L |
The default FastTable implementation based on fractal tables. The memory footprint is minimal when the table is cleared.
Definition at line 21 of file FastTableImpl.java.
javolution.util.internal.table.FastTableImpl< E >.FastTableImpl | ( | Equality<? super E > | comparator | ) |
Definition at line 56 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.comparator.
boolean javolution.util.internal.table.FastTableImpl< E >.add | ( | E | element | ) |
Adds the specified element to this collection
Reimplemented from javolution.util.internal.collection.CollectionView< E >.
Reimplemented in javolution.util.internal.table.sorted.FastSortedTableImpl< E >.
Definition at line 62 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.addLast(), and javolution.util.internal.table.TableView< E >.element().
void javolution.util.internal.table.FastTableImpl< E >.add | ( | int | index, |
E | element | ||
) |
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 68 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.checkUpsize(), javolution.util.internal.table.TableView< E >.element(), javolution.util.internal.table.FastTableImpl< E >.fractal, javolution.util.internal.table.TableView< E >.indexError(), javolution.util.internal.table.FractalTableImpl.offset, javolution.util.internal.table.FractalTableImpl.shiftLeft(), javolution.util.internal.table.FractalTableImpl.shiftRight(), and javolution.util.internal.table.FastTableImpl< E >.size.
|
inherited |
Adds all the specified elements to this collection.
Reimplemented from javolution.util.FastCollection< E >.
Reimplemented in javolution.util.internal.collection.SharedCollectionImpl< E >, and javolution.util.internal.collection.AtomicCollectionImpl< E >.
Definition at line 46 of file CollectionView.java.
|
inherited |
Returns this collection with the specified element added.
elements | the elements to be added. |
Reimplemented in javolution.util.FastTable< E >, javolution.util.FastSortedSet< E >, javolution.util.FastSet< E >, and javolution.util.FastSortedTable< E >.
Definition at line 552 of file FastCollection.java.
|
inherited |
Returns this collection with the specified collection's elements added in sequence.
Reimplemented in javolution.util.FastTable< E >, javolution.util.FastSortedSet< E >, javolution.util.FastSet< E >, and javolution.util.FastSortedTable< E >.
Definition at line 564 of file FastCollection.java.
|
inherited |
Definition at line 40 of file TableView.java.
References javolution.util.internal.table.TableView< E >.subList().
Referenced by javolution.util.internal.table.FastTableImpl< E >.clone().
void javolution.util.internal.table.FastTableImpl< E >.addFirst | ( | E | element | ) |
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 81 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.checkUpsize(), javolution.util.internal.table.TableView< E >.element(), javolution.util.internal.table.FastTableImpl< E >.fractal, javolution.util.internal.table.FractalTableImpl.offset, javolution.util.internal.table.FractalTableImpl.set(), and javolution.util.internal.table.FastTableImpl< E >.size.
void javolution.util.internal.table.FastTableImpl< E >.addLast | ( | E | element | ) |
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 89 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.checkUpsize(), javolution.util.internal.table.TableView< E >.element(), javolution.util.internal.table.FastTableImpl< E >.fractal, javolution.util.internal.table.FractalTableImpl.set(), and javolution.util.internal.table.FastTableImpl< E >.size.
Referenced by javolution.util.internal.table.FastTableImpl< E >.add(), and javolution.util.internal.table.FastTableImpl< E >.readObject().
|
packageinherited |
Returns any non-null element of the specified type (convenience method).
type | the element type searched for. |
Definition at line 515 of file FastCollection.java.
References javolution.util.function.Reducers.any().
|
inherited |
Returns an atomic view over this collection. All operations that write or access multiple elements in the collection (such as addAll(), retainAll()) are atomic. Iterators on atomic collections are thread-safe (no ConcurrentModificationException possible).
Reimplemented in javolution.util.FastTable< E >, javolution.util.FastSet< E >, javolution.util.FastSortedTable< E >, and javolution.util.FastSortedSet< E >.
Definition at line 187 of file FastCollection.java.
|
private |
Definition at line 182 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.capacity, javolution.util.internal.table.FastTableImpl< E >.size, and javolution.util.internal.table.FastTableImpl< E >.upsize().
Referenced by javolution.util.internal.table.FastTableImpl< E >.add(), javolution.util.internal.table.FastTableImpl< E >.addFirst(), and javolution.util.internal.table.FastTableImpl< E >.addLast().
void javolution.util.internal.table.FastTableImpl< E >.clear | ( | ) |
Removes all elements from this collection.
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 95 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.capacity, javolution.util.internal.table.FastTableImpl< E >.fractal, and javolution.util.internal.table.FastTableImpl< E >.size.
FastTableImpl<E> javolution.util.internal.table.FastTableImpl< E >.clone | ( | ) |
Returns a copy of this collection; updates of the copy should not impact the original.
Reimplemented from javolution.util.internal.collection.CollectionView< E >.
Definition at line 102 of file FastTableImpl.java.
References javolution.util.internal.table.TableView< E >.addAll(), and javolution.util.internal.table.FastTableImpl< E >.comparator.
Equality<? super E> javolution.util.internal.table.FastTableImpl< E >.comparator | ( | ) |
Returns the comparator uses by this collection for equality and/or ordering if this collection is sorted.
Reimplemented from javolution.util.internal.collection.CollectionView< E >.
Definition at line 109 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.comparator.
|
inherited |
Indicates if this collection contains the specified element.
Reimplemented from javolution.util.internal.collection.CollectionView< E >.
Definition at line 58 of file TableView.java.
References javolution.util.internal.table.TableView< E >.indexOf().
Referenced by javolution.util.internal.table.sorted.SortedTableView< E >.addIfAbsent().
|
inherited |
Indicates if this collection contains all the specified elements.
Reimplemented from javolution.util.FastCollection< E >.
Reimplemented in javolution.util.internal.collection.SharedCollectionImpl< E >, and javolution.util.internal.collection.AtomicCollectionImpl< E >.
Definition at line 93 of file CollectionView.java.
Referenced by javolution.util.internal.collection.CollectionView< R >.equals().
|
inherited |
Definition at line 63 of file TableView.java.
References javolution.util.internal.table.TableView< E >.iterator().
|
inherited |
Returns a view exposing only distinct elements (it does not iterate twice over the same elements). Adding elements already in the collection through this view has no effect. If this collection is initially empty, using a distinct view to add new elements ensures that this collection has no duplicate.
Definition at line 293 of file FastCollection.java.
|
inherited |
Definition at line 68 of file TableView.java.
References javolution.util.internal.table.TableView< E >.getFirst().
Referenced by javolution.util.internal.table.ReversedTableImpl< E >.add(), javolution.util.internal.table.sorted.FastSortedTableImpl< Entry< K, V > >.add(), javolution.util.internal.table.SubTableImpl< E >.add(), javolution.util.internal.table.FastTableImpl< E >.add(), javolution.util.internal.table.TableView< E >.addFirst(), javolution.util.internal.table.FastTableImpl< E >.addFirst(), javolution.util.internal.table.sorted.SortedTableView< E >.addIfAbsent(), javolution.util.internal.table.sorted.FastSortedTableImpl< Entry< K, V > >.addIfAbsent(), javolution.util.internal.table.TableView< E >.addLast(), javolution.util.internal.table.FastTableImpl< E >.addLast(), javolution.util.internal.table.sorted.FastSortedTableImpl< Entry< K, V > >.indexOf(), javolution.util.internal.table.sorted.UnmodifiableSortedTableImpl< E >.positionOf(), javolution.util.internal.table.sorted.FastSortedTableImpl< Entry< K, V > >.positionOf(), javolution.util.internal.table.ReversedTableImpl< E >.set(), javolution.util.internal.table.SubTableImpl< E >.set(), and javolution.util.internal.table.FastTableImpl< E >.set().
|
protectedinherited |
Throws NoSuchElementException
Definition at line 250 of file TableView.java.
Referenced by javolution.util.internal.table.TableView< E >.getFirst(), javolution.util.internal.table.FastTableImpl< E >.getFirst(), javolution.util.internal.table.TableView< E >.getLast(), javolution.util.internal.table.FastTableImpl< E >.getLast(), javolution.util.internal.table.FastTableImpl< E >.removeFirst(), javolution.util.internal.table.TableView< E >.removeFirst(), javolution.util.internal.table.FastTableImpl< E >.removeLast(), and javolution.util.internal.table.TableView< E >.removeLast().
|
inherited |
Compares the specified object with this collection for equality. This method follows the Collection#equals(Object) specification if this collection comparator is Equalities#STANDARD (default). Otherwise, only collections using the same comparator can be considered equals.
obj | the object to be compared for equality with this collection |
true
if both collections are considered equals; false
otherwise. Reimplemented from javolution.util.FastCollection< E >.
Reimplemented in javolution.util.internal.collection.SharedCollectionImpl< E >, and javolution.util.internal.collection.AtomicCollectionImpl< E >.
Definition at line 102 of file CollectionView.java.
Referenced by javolution.util.internal.collection.CollectionView< R >.equals().
|
inherited |
Returns a view exposing only the elements matching the specified filter. Adding elements not matching the specified filter has no effect. If this collection is initially empty, using a filtered view to add new elements ensure that this collection has only elements satisfying the filter predicate.
Reimplemented in javolution.util.FastSet< E >.
Definition at line 250 of file FastCollection.java.
|
inherited |
Iterates over all this collection elements applying the specified consumer (convenience method). Iterations are performed concurrently if the collection is parallel.
consumer | the functional consumer applied to the collection elements. |
Definition at line 346 of file FastCollection.java.
References javolution.util.function.Consumer< T >.accept().
E javolution.util.internal.table.FastTableImpl< E >.get | ( | int | index | ) |
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 115 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.fractal, javolution.util.internal.table.FractalTableImpl.get(), javolution.util.internal.table.TableView< E >.indexError(), and javolution.util.internal.table.FastTableImpl< E >.size.
E javolution.util.internal.table.FastTableImpl< E >.getFirst | ( | ) |
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 121 of file FastTableImpl.java.
References javolution.util.internal.table.TableView< E >.emptyError(), and javolution.util.internal.table.FastTableImpl< E >.size.
E javolution.util.internal.table.FastTableImpl< E >.getLast | ( | ) |
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 127 of file FastTableImpl.java.
References javolution.util.internal.table.TableView< E >.emptyError(), and javolution.util.internal.table.FastTableImpl< E >.size.
|
inherited |
Returns the hash code of this collection. This method follows the Collection#hashCode() specification if this collection comparator is Equalities#STANDARD.
Reimplemented from javolution.util.FastCollection< E >.
Reimplemented in javolution.util.internal.collection.SharedCollectionImpl< E >, and javolution.util.internal.collection.AtomicCollectionImpl< E >.
Definition at line 135 of file CollectionView.java.
|
protectedinherited |
Throws IndexOutOfBoundsException
Definition at line 255 of file TableView.java.
References javolution.util.internal.table.TableView< E >.size().
Referenced by javolution.util.internal.table.SubTableImpl< E >.add(), javolution.util.internal.table.FastTableImpl< E >.add(), javolution.util.internal.table.SubTableImpl< E >.get(), javolution.util.internal.table.FastTableImpl< E >.get(), javolution.util.internal.table.SubTableImpl< E >.remove(), javolution.util.internal.table.FastTableImpl< E >.remove(), javolution.util.internal.table.SubTableImpl< E >.set(), and javolution.util.internal.table.FastTableImpl< E >.set().
|
inherited |
Reimplemented in javolution.util.internal.table.UnmodifiableTableImpl< E >, javolution.util.internal.table.sorted.SortedTableView< E >, javolution.util.internal.table.ReversedTableImpl< E >, and javolution.util.internal.table.sorted.FastSortedTableImpl< E >.
Definition at line 89 of file TableView.java.
References javolution.util.function.Equality< T >.areEqual(), javolution.util.internal.collection.CollectionView< E >.comparator(), and javolution.util.internal.table.TableView< E >.size().
Referenced by javolution.util.internal.table.TableView< E >.contains(), javolution.util.internal.table.TableView< E >.remove(), and javolution.util.internal.table.TableView< E >.removeFirstOccurrence().
|
inherited |
Indicates if this collection is empty.
Reimplemented from javolution.util.internal.collection.CollectionView< E >.
Definition at line 98 of file TableView.java.
References javolution.util.internal.table.TableView< E >.size().
Iterator<E> javolution.util.internal.table.FastTableImpl< E >.iterator | ( | ) |
Returns an iterator over this collection elements. For shared/atomic collections the iterator is immune to concurrent modifications. In other words the elements iterated over may or may not reflect the current state of the collection.
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 133 of file FastTableImpl.java.
|
inherited |
Reimplemented in javolution.util.internal.table.sorted.SortedTableView< E >, javolution.util.internal.table.UnmodifiableTableImpl< E >, and javolution.util.internal.table.ReversedTableImpl< E >.
Definition at line 109 of file TableView.java.
References javolution.util.function.Equality< T >.areEqual(), javolution.util.internal.collection.CollectionView< E >.comparator(), and javolution.util.internal.table.TableView< E >.size().
Referenced by javolution.util.internal.table.TableView< E >.removeLastOccurrence().
|
inherited |
Definition at line 118 of file TableView.java.
Referenced by javolution.util.internal.table.TableView< E >.iterator().
|
inherited |
Definition at line 123 of file TableView.java.
|
packageinherited |
Returns a view exposing elements through the specified mapping function. The returned view does not allow new elements to be added.
Definition at line 258 of file FastCollection.java.
Referenced by javolution.xml.internal.stream.EntitiesImpl.setEntitiesMapping().
|
inherited |
Returns the largest element of this collection using this collection comparator (convenience method). Returns
if this collection is empty.
Definition at line 541 of file FastCollection.java.
References javolution.util.function.Reducers.max().
|
inherited |
Returns the smallest element of this collection using this collection comparator (convenience method). Returns
if this collection is empty.
Definition at line 528 of file FastCollection.java.
References javolution.util.function.Reducers.min().
|
inherited |
Definition at line 128 of file TableView.java.
References javolution.util.internal.table.TableView< E >.offerLast().
|
inherited |
Definition at line 133 of file TableView.java.
References javolution.util.internal.table.TableView< E >.addFirst().
|
inherited |
Definition at line 139 of file TableView.java.
References javolution.util.internal.table.TableView< E >.addLast().
Referenced by javolution.util.internal.table.TableView< E >.offer().
|
inherited |
Returns a parallel collection. Parallel collections affect only closure-based operations, all others operations behaving the same. Parallel actions are performed concurrently using Javolution ConcurrentContext. The number of parallel views is derived from the context concurrency (
). Parallel views do not require this collection to be thread-safe (internal synchronization).
Definition at line 222 of file FastCollection.java.
|
inherited |
Definition at line 145 of file TableView.java.
References javolution.util.internal.table.TableView< E >.peekFirst().
|
inherited |
Definition at line 150 of file TableView.java.
References javolution.util.internal.table.TableView< E >.getFirst(), and javolution.util.internal.table.TableView< E >.size().
Referenced by javolution.util.internal.table.TableView< E >.peek().
|
inherited |
Definition at line 155 of file TableView.java.
References javolution.util.internal.table.TableView< E >.getLast(), and javolution.util.internal.table.TableView< E >.size().
|
inherited |
Reimplemented in javolution.util.internal.collection.ParallelCollectionImpl< E >, javolution.util.internal.collection.SharedCollectionImpl< E >, and javolution.util.internal.collection.SequentialCollectionImpl< E >.
Definition at line 163 of file CollectionView.java.
|
inherited |
Executes a read-only action on the specified part of this object.
action | the read-only action. |
part | this object or a part of it. |
UnsupportedOperationException | if the action tries to update the specified part. |
|
inherited |
Executes the specified read-only action on this collection. That logic may be performed concurrently on sub-collections if this collection is parallel.
action | the read-only action. |
UnsupportedOperationException | if the action tries to update this collection and this collection is thread-safe. |
ClassCastException | if the action type is not compatible with this collection (e.g. action on set and this is a list). |
Definition at line 315 of file FastCollection.java.
|
inherited |
Definition at line 160 of file TableView.java.
References javolution.util.internal.table.TableView< E >.pollFirst().
|
inherited |
Definition at line 165 of file TableView.java.
References javolution.util.internal.table.TableView< E >.removeFirst(), and javolution.util.internal.table.TableView< E >.size().
Referenced by javolution.util.internal.table.TableView< E >.poll().
|
inherited |
Definition at line 170 of file TableView.java.
References javolution.util.internal.table.TableView< E >.removeLast(), and javolution.util.internal.table.TableView< E >.size().
|
inherited |
Definition at line 175 of file TableView.java.
References javolution.util.internal.table.TableView< E >.removeFirst().
|
inherited |
Definition at line 180 of file TableView.java.
References javolution.util.internal.table.TableView< E >.addFirst().
|
private |
For serialization support
Definition at line 188 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.addLast().
|
inherited |
Performs a reduction of the elements of this collection using the specified reducer. This may not involve iterating over all the collection elements, for example the reducers: Reducers#any, Reducers#and and Reducers#or may stop iterating early. Reduction is performed concurrently if this collection is parallel.
reducer | the collection reducer. |
Definition at line 396 of file FastCollection.java.
|
inherited |
Definition at line 185 of file TableView.java.
References javolution.util.internal.table.TableView< E >.removeFirst().
E javolution.util.internal.table.FastTableImpl< E >.remove | ( | int | index | ) |
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 139 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.fractal, javolution.util.internal.table.FractalTableImpl.get(), javolution.util.internal.table.TableView< E >.indexError(), javolution.util.internal.table.FractalTableImpl.offset, javolution.util.internal.table.FractalTableImpl.shiftLeft(), javolution.util.internal.table.FractalTableImpl.shiftRight(), and javolution.util.internal.table.FastTableImpl< E >.size.
Referenced by javolution.util.internal.table.FastTableImpl< E >.IteratorImpl.remove().
|
inherited |
Removes the specified element from this collection.
Reimplemented from javolution.util.internal.collection.CollectionView< E >.
Definition at line 193 of file TableView.java.
References javolution.util.internal.table.TableView< E >.indexOf().
|
inherited |
Removes all the specified element from this collection.
Reimplemented from javolution.util.FastCollection< E >.
Reimplemented in javolution.util.internal.collection.SharedCollectionImpl< E >, and javolution.util.internal.collection.AtomicCollectionImpl< E >.
Definition at line 186 of file CollectionView.java.
E javolution.util.internal.table.FastTableImpl< E >.removeFirst | ( | ) |
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 154 of file FastTableImpl.java.
References javolution.util.internal.table.TableView< E >.emptyError(), javolution.util.internal.table.FastTableImpl< E >.fractal, javolution.util.internal.table.FractalTableImpl.offset, javolution.util.internal.table.FractalTableImpl.set(), and javolution.util.internal.table.FastTableImpl< E >.size.
|
inherited |
Definition at line 207 of file TableView.java.
References javolution.util.internal.table.TableView< E >.indexOf().
|
inherited |
Removes from this collection all the elements matching the specified functional predicate (convenience method). Removals are performed concurrently if this collection is parallel and atomically if this collection is atomic.
filter | a predicate returning true
|
Definition at line 368 of file FastCollection.java.
E javolution.util.internal.table.FastTableImpl< E >.removeLast | ( | ) |
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 164 of file FastTableImpl.java.
References javolution.util.internal.table.TableView< E >.emptyError(), javolution.util.internal.table.FastTableImpl< E >.fractal, javolution.util.internal.table.FractalTableImpl.set(), and javolution.util.internal.table.FastTableImpl< E >.size.
|
inherited |
Definition at line 221 of file TableView.java.
References javolution.util.internal.table.TableView< E >.lastIndexOf().
|
inherited |
Removes all the elements except those in the specified collection.
Reimplemented from javolution.util.FastCollection< E >.
Reimplemented in javolution.util.internal.collection.SharedCollectionImpl< E >, and javolution.util.internal.collection.AtomicCollectionImpl< E >.
Definition at line 199 of file CollectionView.java.
|
inherited |
Returns a view exposing elements in reverse iterative order.
Reimplemented in javolution.util.FastTable< E >.
Definition at line 282 of file FastCollection.java.
|
inherited |
Returns a sequential view of this collection. Using this view, all closure-based iterations are performed sequentially.
Definition at line 230 of file FastCollection.java.
|
protectedinherited |
Returns the service implementation of this collection (for sub-classes).
Reimplemented from javolution.util.FastCollection< E >.
Definition at line 274 of file CollectionView.java.
|
staticprotectedinherited |
Returns the service implementation of any fast collection (for sub-classes).
Definition at line 647 of file FastCollection.java.
References javolution.util.FastCollection< E >.service().
E javolution.util.internal.table.FastTableImpl< E >.set | ( | int | index, |
E | element | ||
) |
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 172 of file FastTableImpl.java.
References javolution.util.internal.table.TableView< E >.element(), javolution.util.internal.table.FastTableImpl< E >.fractal, javolution.util.internal.table.TableView< E >.indexError(), javolution.util.internal.table.FractalTableImpl.set(), and javolution.util.internal.table.FastTableImpl< E >.size.
|
inherited |
Returns a thread-safe view over this collection. The shared view allows for concurrent read as long as there is no writer. The default implementation is based on readers-writers locks giving priority to writers. Iterators on shared collections are thread-safe (no ConcurrentModificationException possible).
Reimplemented in javolution.util.FastTable< E >, javolution.util.FastSet< E >, javolution.util.FastSortedTable< E >, and javolution.util.FastSortedSet< E >.
Definition at line 201 of file FastCollection.java.
int javolution.util.internal.table.FastTableImpl< E >.size | ( | ) |
Returns the size of this collection.
Reimplemented from javolution.util.internal.table.TableView< E >.
Definition at line 178 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.size.
|
inherited |
Returns a view exposing elements sorted according to the collection order.
Definition at line 267 of file FastCollection.java.
Referenced by javolution.util.internal.collection.SortedCollectionImpl< E >.IteratorImpl.IteratorImpl().
|
inherited |
Returns a view exposing elements sorted according to the specified comparator.
Definition at line 275 of file FastCollection.java.
|
inherited |
Returns
distinct parts of this object. This method may return an array of size less than
(e.g. an array of size one if this object cannot split).
n | the number of parts. |
IllegalArgumentException | if n <= 1
|
Reimplemented from javolution.util.internal.collection.CollectionView< E >.
Definition at line 235 of file TableView.java.
References javolution.util.internal.table.SubTableImpl< E >.splitOf().
|
inherited |
Implements javolution.util.service.TableService< E >.
Definition at line 240 of file TableView.java.
Referenced by javolution.util.internal.table.TableView< E >.addAll().
|
protectedinherited |
Returns the actual target
Reimplemented from javolution.util.internal.collection.CollectionView< E >.
Reimplemented in javolution.util.internal.table.sorted.SortedTableView< E >, and javolution.util.internal.table.sorted.UnmodifiableSortedTableImpl< E >.
Definition at line 262 of file TableView.java.
Referenced by javolution.util.internal.table.ReversedTableImpl< E >.add(), javolution.util.internal.table.SubTableImpl< E >.add(), javolution.util.internal.table.ReversedTableImpl< E >.clear(), javolution.util.internal.table.SubTableImpl< E >.clear(), javolution.util.internal.table.ReversedTableImpl< E >.comparator(), javolution.util.internal.table.UnmodifiableTableImpl< E >.comparator(), javolution.util.internal.table.SubTableImpl< E >.comparator(), javolution.util.internal.table.ReversedTableImpl< E >.get(), javolution.util.internal.table.UnmodifiableTableImpl< E >.get(), javolution.util.internal.table.SubTableImpl< E >.get(), javolution.util.internal.table.ReversedTableImpl< E >.indexOf(), javolution.util.internal.table.UnmodifiableTableImpl< E >.indexOf(), javolution.util.internal.table.ReversedTableImpl< E >.lastIndexOf(), javolution.util.internal.table.UnmodifiableTableImpl< E >.lastIndexOf(), javolution.util.internal.table.ReversedTableImpl< E >.remove(), javolution.util.internal.table.SubTableImpl< E >.remove(), javolution.util.internal.table.ReversedTableImpl< E >.set(), javolution.util.internal.table.SubTableImpl< E >.set(), javolution.util.internal.table.ReversedTableImpl< E >.size(), javolution.util.internal.table.UnmodifiableTableImpl< E >.size(), javolution.util.internal.table.SubTableImpl< E >.SubTableImpl(), javolution.util.internal.table.TableView< E >.TableView(), and javolution.util.internal.table.UnmodifiableTableImpl< E >.UnmodifiableTableImpl().
|
inherited |
Returns a thread-safe version of this service (used during parallel updates).
Reimplemented from javolution.util.internal.collection.CollectionView< E >.
Reimplemented in javolution.util.internal.table.UnmodifiableTableImpl< E >, javolution.util.internal.table.sorted.SortedTableView< E >, javolution.util.internal.table.sorted.FastSortedTableImpl< E >, and javolution.util.internal.table.sorted.UnmodifiableSortedTableImpl< E >.
Definition at line 245 of file TableView.java.
|
inherited |
Returns an array holding this collection elements.
Reimplemented from javolution.util.FastCollection< E >.
Reimplemented in javolution.util.internal.collection.SharedCollectionImpl< E >, and javolution.util.internal.collection.AtomicCollectionImpl< E >.
Definition at line 243 of file CollectionView.java.
Referenced by javolution.util.internal.collection.CollectionView< R >.toArray().
|
packageinherited |
Returns the specified array holding this collection elements if enough capacity.
Reimplemented from javolution.util.FastCollection< E >.
Reimplemented in javolution.util.internal.collection.SharedCollectionImpl< E >, and javolution.util.internal.collection.AtomicCollectionImpl< E >.
Definition at line 249 of file CollectionView.java.
|
packageinherited |
Returns an immutable reference over this collection. The immutable value is an unmodifiable view of this collection. The caller must guarantees that the original collection is never going to be updated (e.g. there is no reference left of the original collection).
Definition at line 585 of file FastCollection.java.
|
inherited |
Returns the string representation of this collection using its default format.
Definition at line 634 of file FastCollection.java.
References javolution.text.TextContext.getFormat().
|
inherited |
Returns an unmodifiable view over this collection. Any attempt to modify the collection through this view will result into a java.lang.UnsupportedOperationException being raised.
Reimplemented in javolution.util.FastTable< E >, javolution.util.FastSet< E >, javolution.util.FastSortedTable< E >, and javolution.util.FastSortedSet< E >.
Definition at line 239 of file FastCollection.java.
|
inherited |
Reimplemented in javolution.util.internal.collection.ParallelCollectionImpl< E >, javolution.util.internal.collection.AtomicCollectionImpl< E >, and javolution.util.internal.collection.SequentialCollectionImpl< E >.
Definition at line 266 of file CollectionView.java.
|
inherited |
Executes an update action on the specified part of this object. Any change to the part is reflected in the whole (this object).
action | the action authorized to update this object part. |
part | this object or a part of it. |
|
inherited |
Executes the specified update action on this collection. That logic may be performed concurrently on sub-collections if this collection is parallel. For atomic collections the update is atomic (either concurrent readers see the full result of the action or nothing).
action | the update action. |
ClassCastException | if the action type is not compatible with this collection (e.g. action on set and this is a list). |
Definition at line 334 of file FastCollection.java.
Referenced by javolution.util.FastTable< javolution.xml.internal.stream.XMLStreamReaderImpl >.sort().
|
private |
Definition at line 196 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.capacity, javolution.util.internal.table.FractalTableImpl.capacity(), javolution.util.internal.table.FastTableImpl< E >.fractal, and javolution.util.internal.table.FractalTableImpl.upsize().
Referenced by javolution.util.internal.table.FastTableImpl< E >.checkUpsize().
|
private |
For serialization support
Definition at line 202 of file FastTableImpl.java.
References javolution.util.internal.table.FastTableImpl< E >.fractal, javolution.util.internal.table.FractalTableImpl.get(), and javolution.util.internal.table.FastTableImpl< E >.size.
|
private |
Definition at line 51 of file FastTableImpl.java.
Referenced by javolution.util.internal.table.FastTableImpl< E >.checkUpsize(), javolution.util.internal.table.FastTableImpl< E >.clear(), and javolution.util.internal.table.FastTableImpl< E >.upsize().
|
private |
Definition at line 52 of file FastTableImpl.java.
Referenced by javolution.util.internal.table.sorted.FastSortedTableImpl< Entry< K, V > >.addIfAbsent(), javolution.util.internal.table.FastTableImpl< E >.clone(), javolution.util.internal.table.FastTableImpl< E >.comparator(), javolution.util.internal.table.sorted.FastSortedTableImpl< Entry< K, V > >.FastSortedTableImpl(), javolution.util.internal.table.FastTableImpl< E >.FastTableImpl(), javolution.util.internal.table.sorted.FastSortedTableImpl< Entry< K, V > >.indexOf(), and javolution.util.internal.table.sorted.FastSortedTableImpl< Entry< K, V > >.positionOf().
|
private |
Definition at line 53 of file FastTableImpl.java.
Referenced by javolution.util.internal.table.FastTableImpl< E >.add(), javolution.util.internal.table.FastTableImpl< E >.addFirst(), javolution.util.internal.table.FastTableImpl< E >.addLast(), javolution.util.internal.table.FastTableImpl< E >.clear(), javolution.util.internal.table.FastTableImpl< E >.get(), javolution.util.internal.table.FastTableImpl< E >.IteratorImpl.next(), javolution.util.internal.table.FastTableImpl< E >.remove(), javolution.util.internal.table.FastTableImpl< E >.removeFirst(), javolution.util.internal.table.FastTableImpl< E >.removeLast(), javolution.util.internal.table.FastTableImpl< E >.set(), javolution.util.internal.table.FastTableImpl< E >.upsize(), and javolution.util.internal.table.FastTableImpl< E >.writeObject().
|
staticprivate |
Definition at line 50 of file FastTableImpl.java.
|
private |
Definition at line 54 of file FastTableImpl.java.
Referenced by javolution.util.internal.table.FastTableImpl< E >.add(), javolution.util.internal.table.FastTableImpl< E >.addFirst(), javolution.util.internal.table.sorted.FastSortedTableImpl< Entry< K, V > >.addIfAbsent(), javolution.util.internal.table.FastTableImpl< E >.addLast(), javolution.util.internal.table.FastTableImpl< E >.checkUpsize(), javolution.util.internal.table.FastTableImpl< E >.clear(), javolution.util.internal.table.FastTableImpl< E >.get(), javolution.util.internal.table.FastTableImpl< E >.getFirst(), javolution.util.internal.table.FastTableImpl< E >.getLast(), javolution.util.internal.table.FastTableImpl< E >.IteratorImpl.hasNext(), javolution.util.internal.table.sorted.FastSortedTableImpl< Entry< K, V > >.indexOf(), javolution.util.internal.table.FastTableImpl< E >.IteratorImpl.next(), javolution.util.internal.table.sorted.FastSortedTableImpl< Entry< K, V > >.positionOf(), javolution.util.internal.table.FastTableImpl< E >.remove(), javolution.util.internal.table.FastTableImpl< E >.removeFirst(), javolution.util.internal.table.FastTableImpl< E >.removeLast(), javolution.util.internal.table.FastTableImpl< E >.set(), javolution.util.internal.table.FastTableImpl< E >.size(), and javolution.util.internal.table.FastTableImpl< E >.writeObject().