K
- key typepublic interface TimeSet<K>
Modifier and Type | Method and Description |
---|---|
boolean |
add(K key)
Adds key to this set.
|
void |
clear()
Empties this set.
|
boolean |
contains(K key)
Returns true if this set contains
key . |
boolean |
isEmpty()
Returns true if this set is empty.
|
boolean |
remove(K key)
Removes key from this set.
|
int |
size()
Returns the size of this set.
|
K[] |
toArray()
Returns an array of all keys in this set.
|
Object |
toPrimitiveArray()
Returns the same result as
toArray() but in a primitive array
if the underlying storage is in a primtive form. |
boolean add(K key)
key
- keyboolean remove(K key)
key
- keyint size()
boolean isEmpty()
boolean contains(K key)
key
.key
- keyK[] toArray()
This method may return a reference to the underlying array so clients should make a copy if the array is written to.
Object toPrimitiveArray()
toArray()
but in a primitive array
if the underlying storage is in a primtive form.void clear()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.