|
Javolution 6.0.0 java
|
Public Member Functions | |
| KeySet () | |
| boolean | add (K key) |
| Equality<? super K > | comparator () |
| boolean | contains (Object obj) |
| boolean | remove (Object obj) |
| abstract boolean | add (R r) |
| abstract boolean | add (E element) |
| SetService< R > | threadSafe () |
| void | clear () |
| boolean | isEmpty () |
| Iterator< R > | iterator () |
| int | size () |
| boolean | addAll (Collection<? extends E > c) |
| CollectionView< E > | clone () |
| CollectionService< E > | clone () throws CloneNotSupportedException |
| boolean | containsAll (Collection<?> c) |
| boolean | equals (Object o) |
| int | hashCode () |
| void | perform (Consumer< CollectionService< E >> action, CollectionService< E > view) |
| void | perform (Consumer< T > action, T part) |
| boolean | removeAll (Collection<?> c) |
| boolean | retainAll (Collection<?> c) |
| CollectionService< E >[] | split (int n) |
| T[] | split (int n) |
| Object[] | toArray () |
| void | update (Consumer< CollectionService< E >> action, CollectionService< E > view) |
| void | update (Consumer< T > action, T part) |
Protected Member Functions | |
| CollectionService< E > | target () |
| CollectionService< E > | service () |
Protected Attributes | |
| final Function<? super E, ? extends R > | function |
Package Functions | |
| public< T > T[] | toArray (T[] a) |
Private Attributes | |
| CollectionService< E > | target |
Static Private Attributes | |
| static final long | serialVersionUID = MapView.serialVersionUID |
Key Set View
Definition at line 153 of file MapView.java.
| javolution.util.internal.map.MapView< K, V >.KeySet.KeySet | ( | ) |
Definition at line 156 of file MapView.java.
References javolution.util.internal.map.MapView< K, V >.entrySet().
|
abstractinherited |
Adds the specified element to this collection
| boolean javolution.util.internal.map.MapView< K, V >.KeySet.add | ( | K | key | ) |
Definition at line 167 of file MapView.java.
References javolution.util.internal.map.MapView< K, V >.containsKey(), and javolution.util.internal.map.MapView< K, V >.put().
|
abstractinherited |
Reimplemented from javolution.util.internal.collection.MappedCollectionImpl< E, R >.
|
inherited |
Adds all the specified elements to this collection.
Definition at line 46 of file CollectionView.java.
|
inherited |
Definition at line 66 of file MappedCollectionImpl.java.
|
inherited |
Returns a copy of this collection; updates of the copy should not impact the original.
Implemented in javolution.util.internal.table.FastTableImpl< E >, javolution.util.internal.collection.SharedCollectionImpl< E >, javolution.util.internal.collection.AtomicCollectionImpl< E >, and javolution.util.internal.collection.CollectionView< E >.
|
inherited |
Returns a copy of this collection; updates of the copy should not impact the original.
Definition at line 66 of file CollectionView.java.
| Equality<? super K> javolution.util.internal.map.MapView< K, V >.KeySet.comparator | ( | ) |
Reimplemented from javolution.util.internal.collection.MappedCollectionImpl< E, R >.
Definition at line 174 of file MapView.java.
References javolution.util.internal.map.MapView< K, V >.keyComparator().
| boolean javolution.util.internal.map.MapView< K, V >.KeySet.contains | ( | Object | obj | ) |
Reimplemented from javolution.util.internal.set.MappedSetImpl< E, R >.
Definition at line 180 of file MapView.java.
References javolution.util.internal.map.MapView< K, V >.containsKey().
|
inherited |
Indicates if this collection contains all the specified elements.
Definition at line 93 of file CollectionView.java.
|
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. Definition at line 102 of file CollectionView.java.
|
inherited |
Returns the hash code of this collection. This method follows the Collection#hashCode() specification if this collection comparator is Equalities#STANDARD.
Definition at line 135 of file CollectionView.java.
|
inherited |
Definition at line 76 of file MappedCollectionImpl.java.
|
inherited |
Definition at line 81 of file MappedCollectionImpl.java.
|
inherited |
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. |
| boolean javolution.util.internal.map.MapView< K, V >.KeySet.remove | ( | Object | obj | ) |
Reimplemented from javolution.util.internal.set.MappedSetImpl< E, R >.
Definition at line 186 of file MapView.java.
References javolution.util.internal.map.MapView< K, V >.containsKey(), and javolution.util.internal.map.MapView< K, V >.remove().
|
inherited |
Removes all the specified element from this collection.
Definition at line 186 of file CollectionView.java.
|
inherited |
Removes all the elements except those in the specified collection.
Definition at line 199 of file CollectionView.java.
|
protectedinherited |
Returns the service implementation of this collection (for sub-classes).
Definition at line 274 of file CollectionView.java.
|
inherited |
Definition at line 86 of file MappedCollectionImpl.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
|
Implemented in javolution.util.internal.map.MapView< K, V >, javolution.util.internal.table.SharedTableImpl< E >, javolution.util.internal.table.TableView< E >, javolution.util.internal.collection.SharedCollectionImpl< E >, javolution.util.internal.collection.CollectionView< E >, javolution.util.internal.table.AtomicTableImpl< E >, javolution.util.internal.map.SharedMapImpl< K, V >, javolution.util.internal.map.FastMapImpl< K, V >, javolution.util.internal.map.AtomicMapImpl< K, V >, javolution.util.internal.collection.AtomicCollectionImpl< E >, and javolution.util.internal.map.MapView< K, V >.EntrySet.
Referenced by javolution.util.internal.map.ParallelMapImpl< K, V >.perform(), and javolution.util.internal.collection.ParallelCollectionImpl< E >.perform().
|
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
|
Definition at line 224 of file CollectionView.java.
|
protectedinherited |
Returns the actual target
Definition at line 279 of file CollectionView.java.
|
inherited |
Returns a thread-safe version of this service (used during parallel updates).
Implements javolution.util.service.SetService< E >.
Reimplemented in javolution.util.internal.map.sorted.SortedMapView< K, V >.KeySortedSet.
Definition at line 38 of file MappedSetImpl.java.
|
inherited |
Returns an array holding this collection elements.
Definition at line 243 of file CollectionView.java.
|
packageinherited |
Returns the specified array holding this collection elements if enough capacity.
Definition at line 249 of file CollectionView.java.
|
inherited |
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. |
|
protectedinherited |
Definition at line 50 of file MappedCollectionImpl.java.
|
staticprivate |
Definition at line 154 of file MapView.java.
|
privateinherited |
Definition at line 33 of file CollectionView.java.