|
JBoss Marshalling 1.2.1.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.marshalling.util.IdentityIntSet<T>
public final class IdentityIntSet<T>
An efficient identity object set.
Constructor Summary | |
---|---|
IdentityIntSet()
Construct a new instance with an initial capacity of 64 and a load factor of 0.5 . |
|
IdentityIntSet(float loadFactor)
Construct a new instance with the given load factor and an initial capacity of 64. |
|
IdentityIntSet(int initialCapacity)
Construct a new instance with the given initial capacity and a load factor of 0.5 . |
|
IdentityIntSet(int initialCapacity,
float loadFactor)
Construct a new instance with the given initial capacity and load factor. |
Method Summary | |
---|---|
boolean |
add(T key)
Add a value into the set, if it's not already in there. |
void |
clear()
|
IdentityIntSet<T> |
clone()
Clone this set. |
boolean |
contains(T key)
Check to see if this set contains a value. |
String |
toString()
Get a string summary representation of this map. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IdentityIntSet(int initialCapacity, float loadFactor)
initialCapacity
- the initial capacityloadFactor
- the load factorpublic IdentityIntSet(float loadFactor)
loadFactor
- the load factorpublic IdentityIntSet(int initialCapacity)
0.5
.
initialCapacity
- the initial capacitypublic IdentityIntSet()
0.5
.
Method Detail |
---|
public IdentityIntSet<T> clone()
clone
in class Object
public boolean contains(T key)
key
- the key
true
if the object is present in the setpublic boolean add(T key)
key
- the key
true
if the object was added, or false
if it was already in the setpublic void clear()
public String toString()
toString
in class Object
|
JBoss Marshalling 1.2.1.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |