Package org.javarosa.core.util
Class SortedIntSet
java.lang.Object
org.javarosa.core.util.SortedIntSet
- All Implemented Interfaces:
Externalizable
public class SortedIntSet extends Object implements Externalizable
-
Constructor Summary
Constructors Constructor Description SortedIntSet() -
Method Summary
Modifier and Type Method Description intadd(int n)booleancontains(int n)intget(int i)List<Integer>getList()intindexOf(int n, boolean exact)voidreadExternal(DataInputStream in, PrototypeFactory pf)intremove(int n)intsize()voidwriteExternal(DataOutputStream out)
-
Constructor Details
-
SortedIntSet
public SortedIntSet()
-
-
Method Details
-
add
public int add(int n) -
remove
public int remove(int n) -
get
public int get(int i) -
contains
public boolean contains(int n) -
indexOf
public int indexOf(int n, boolean exact) -
size
public int size() -
getList
-
readExternal
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionDeserializationException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-