public class SortedIntSet extends java.lang.Object implements Externalizable
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<java.lang.Integer> |
v |
Constructor and Description |
---|
SortedIntSet() |
Modifier and Type | Method and Description |
---|---|
int |
add(int n) |
boolean |
contains(int n) |
int |
get(int i) |
java.util.List<java.lang.Integer> |
getList() |
int |
indexOf(int n,
boolean exact) |
void |
readExternal(java.io.DataInputStream in,
PrototypeFactory pf) |
int |
remove(int n) |
int |
size() |
void |
writeExternal(java.io.DataOutputStream out) |
public int add(int n)
public int remove(int n)
public int get(int i)
public boolean contains(int n)
public int indexOf(int n, boolean exact)
public int size()
public java.util.List<java.lang.Integer> getList()
public void readExternal(java.io.DataInputStream in, PrototypeFactory pf) throws java.io.IOException, DeserializationException
readExternal
in interface Externalizable
java.io.IOException
DeserializationException
public void writeExternal(java.io.DataOutputStream out) throws java.io.IOException
writeExternal
in interface Externalizable
java.io.IOException