|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Generated(date="2011-07-12T16:58:51+0200", value="HPPC generated from: ShortSet.java") public interface ShortSet
A set of short
s.
Method Summary | |
---|---|
boolean |
add(short k)
Adds k to the set. |
boolean |
equals(java.lang.Object obj)
Compares the specified object with this set for equality. |
int |
hashCode()
|
Methods inherited from interface com.carrotsearch.hppc.ShortCollection |
---|
clear, removeAll, removeAll, removeAllOccurrences, retainAll, retainAll |
Methods inherited from interface com.carrotsearch.hppc.ShortContainer |
---|
contains, forEach, forEach, isEmpty, iterator, size, toArray |
Method Detail |
---|
boolean add(short k)
k
to the set.
true
if this element was not part of the set before. Returns
false
if an equal element is part of the set, and replaces the existing
equal element with the argument (if keys are object types).boolean equals(java.lang.Object obj)
ObjectSet
and both objects contains exactly the same objects.
equals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object
Set.hashCode()
(sum of hash codes of elements
within the set). Because sum is commutative, this ensures that different order
of elements in a set does not affect the hash code.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |