public final class ValueCollection<TKey extends java.lang.Comparable<TKey>,TValue> extends java.lang.Object implements java.util.Collection<TValue>, ReifiedIterable<TValue>
Constructor and Description |
---|
ValueCollection(AvlHashtable<TKey,TValue> dictionary,
java.lang.Class<?> genericTypeParameterValue)
Initializes with a new value collection.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(TValue tVal)
Deprecated.
|
boolean |
addAll(java.util.Collection<? extends TValue> c)
Deprecated.
|
void |
clear()
Deprecated.
|
boolean |
contains(java.lang.Object item)
Returns true if this collection contains the specified element.
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
java.lang.Class<?> |
getGenericTypeParameter()
Returns the class generic type parameters.
|
boolean |
isEmpty()
This is an O(1) operation.
|
java.util.Iterator<TValue> |
iterator()
This is an O(nlog2(n)) operation, taking element traversal into account.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
int |
size()
This is an O(1) operation.
|
TValue[] |
toArray()
Returns the key of all key/value pairs, in ascending key order.
|
<T> T[] |
toArray(T[] array)
Deprecated.
|
ReifiedList<TValue> |
toList()
Returns the key of all key/value pairs, in ascending key order.
|
public ValueCollection(AvlHashtable<TKey,TValue> dictionary, java.lang.Class<?> genericTypeParameterValue)
public boolean contains(java.lang.Object item)
contains
in interface java.util.Collection<TValue>
item
- Element whose presence in this collection is to be tested.java.lang.ClassCastException
- The item is not of correct type.java.lang.NullPointerException
- The specified element is null.public java.lang.Class<?> getGenericTypeParameter()
getGenericTypeParameter
in interface ReifiedIterable<TValue>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<TValue>
public java.util.Iterator<TValue> iterator()
public int size()
size
in interface java.util.Collection<TValue>
public TValue[] toArray()
toArray
in interface java.util.Collection<TValue>
@Deprecated public <T> T[] toArray(T[] array)
toArray
in interface java.util.Collection<TValue>
java.lang.UnsupportedOperationException
- Always thrown.public ReifiedList<TValue> toList()
@Deprecated public boolean add(TValue tVal)
add
in interface java.util.Collection<TValue>
java.lang.UnsupportedOperationException
- Always thrown.@Deprecated public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<TValue>
java.lang.UnsupportedOperationException
- Always thrown.@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<TValue>
java.lang.UnsupportedOperationException
- Always thrown.@Deprecated public boolean addAll(java.util.Collection<? extends TValue> c)
addAll
in interface java.util.Collection<TValue>
java.lang.UnsupportedOperationException
- Always thrown.@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<TValue>
java.lang.UnsupportedOperationException
- Always thrown.@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<TValue>
java.lang.UnsupportedOperationException
- Always thrown.@Deprecated public void clear()
clear
in interface java.util.Collection<TValue>
java.lang.UnsupportedOperationException
- Always thrown.