Package org.apache.uima.cas.impl
Class LongSet
- java.lang.Object
-
- org.apache.uima.cas.impl.LongSet
-
final class LongSet extends java.lang.ObjectSets of long values, used to support ll_set/getIntValue that manipulate v2 style long data
-
-
Field Summary
Fields Modifier and Type Field Description private intlastLongCodeprivate java.util.HashMap<java.lang.Long,java.lang.Integer>long2intprivate java.util.ArrayList<java.lang.Long>longs
-
Constructor Summary
Constructors Constructor Description LongSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intgetCodeForLong(java.lang.Long s)get the code for a long, adding it to the long table if not already there.(package private) java.lang.LonggetLongForCode(int longCode)(package private) intgetSize()(package private) voidreset()
-
-
-
Method Detail
-
reset
void reset()
-
getLongForCode
java.lang.Long getLongForCode(int longCode)
-
getCodeForLong
int getCodeForLong(java.lang.Long s)
get the code for a long, adding it to the long table if not already there.- Parameters:
s- The long.- Returns:
- The code corresponding to the long, which can be used in the getLongForCode call above
-
getSize
int getSize()
-
-