public class SortedIntSet extends Object implements Externalizable
| Constructor and Description |
|---|
SortedIntSet() |
| Modifier and Type | Method and Description |
|---|---|
int |
add(int n) |
boolean |
contains(int n) |
int |
get(int i) |
List<Integer> |
getList() |
int |
indexOf(int n,
boolean exact) |
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
int |
remove(int n) |
int |
size() |
void |
writeExternal(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 void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2024. All rights reserved.