T
- The component type of the value store.public interface IValueStore<T extends java.lang.Comparable<T>> extends ReifiedIterable<T>
Modifier and Type | Method and Description |
---|---|
boolean |
add(T item)
Adds an item to the collection.
|
void |
clear()
Clears the collection
|
boolean |
contains(T item)
Checks if an item exists.
|
boolean |
remove(T item)
Removes an item from the collection.
|
int |
size()
Returns the collection size
|
T[] |
toArray()
Puts all elements in an array and returns them.
|
ReifiedList<T> |
toList()
Puts all elements in an array and returns them.
|
getGenericTypeParameter
boolean add(T item)
item
- The item to add.void clear()
boolean contains(T item)
item
- The item to find.boolean remove(T item)
item
- The item to find.java.lang.NullPointerException
- When the key is null.int size()
T[] toArray()
ReifiedList<T> toList()