Package org.apache.uima.cas.impl
Class LinearTypeOrderBuilderImpl.TotalTypeOrder
java.lang.Object
org.apache.uima.cas.impl.LinearTypeOrderBuilderImpl.TotalTypeOrder
- All Implemented Interfaces:
LinearTypeOrder
- Enclosing class:
- LinearTypeOrderBuilderImpl
private static class LinearTypeOrderBuilderImpl.TotalTypeOrder
extends Object
implements LinearTypeOrder
An implementation of the
LinearTypeOrder
interface.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
TotalTypeOrder
(int[] typeList, TypeSystem ts) private
TotalTypeOrder
(String[] typeList, TypeSystem ts) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int[]
encodeTypeList
(String[] typeList, TypeSystem ts) int[]
getOrder()
boolean
lessThan
(int t1, int t2) Compare two types.boolean
Compare two types.
-
Field Details
-
order
private int[] order -
typeCodeToOrder
private int[] typeCodeToOrder
-
-
Constructor Details
-
TotalTypeOrder
- Throws:
CASException
-
TotalTypeOrder
-
-
Method Details
-
encodeTypeList
- Throws:
CASException
-
lessThan
Description copied from interface:LinearTypeOrder
Compare two types.- Specified by:
lessThan
in interfaceLinearTypeOrder
- Parameters:
t1
- type to comparet2
- type to compare- Returns:
true
ifft1
is less thant2
in this order.
-
lessThan
public boolean lessThan(int t1, int t2) Description copied from interface:LinearTypeOrder
Compare two types.- Specified by:
lessThan
in interfaceLinearTypeOrder
- Parameters:
t1
- type to comparet2
- type to compare- Returns:
true
ifft1
is less thant2
in this order.
-
getOrder
public int[] getOrder()- Specified by:
getOrder
in interfaceLinearTypeOrder
- Returns:
- The type order as array of type codes in ascending order.
-