Package org.apache.uima.cas.impl
Class LongSet
- java.lang.Object
-
- org.apache.uima.cas.impl.LongSet
-
final class LongSet extends java.lang.Object
Sets of long values, used to support ll_set/getIntValue that manipulate v2 style long data
-
-
Field Summary
Fields Modifier and Type Field Description private int
lastLongCode
private java.util.HashMap<java.lang.Long,java.lang.Integer>
long2int
private 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) int
getCodeForLong(java.lang.Long s)
get the code for a long, adding it to the long table if not already there.(package private) java.lang.Long
getLongForCode(int longCode)
(package private) int
getSize()
(package private) void
reset()
-
-
-
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()
-
-