@NotThreadSafe public class BitEncodedIntegerSet extends Object
Constructor and Description |
---|
BitEncodedIntegerSet() |
Modifier and Type | Method and Description |
---|---|
void |
add(int i)
Adds an integer to the set.
|
void |
addAll(BitEncodedIntegerSet otherSet)
Adds all elements of another BitEncodedIntegerSet to the current set.
|
void |
clear()
Clears the set
|
boolean |
contains(int i)
Tests whether the set contains an integer
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty()
Tests if the set is empty
|
void |
remove(int i)
Removes an integer from the set
|
String |
toString() |
public void add(int i)
i
- integer to addpublic void remove(int i)
i
- integer to removepublic boolean contains(int i)
i
- integer to check forpublic void clear()
public boolean isEmpty()
public void addAll(BitEncodedIntegerSet otherSet)
otherSet
- other set to addCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.