public class LinearTypeOrderBuilderImpl extends Object implements LinearTypeOrderBuilder
LinearTypeOrderBuilder
interface.Constructor and Description |
---|
LinearTypeOrderBuilderImpl(TypeSystem ts) |
Modifier and Type | Method and Description |
---|---|
void |
add(String[] types)
Add pairs types[i] < types[i+1], for each i < (types.length-1), to the partial sort
order.
|
static LinearTypeOrder |
createTypeOrder(int[] typeList,
TypeSystem ts) |
LinearTypeOrder |
getOrder()
Return a total order of the type names added earlier that is consistent with the pre-order
defined through calls to add().
|
public LinearTypeOrderBuilderImpl(TypeSystem ts)
public static LinearTypeOrder createTypeOrder(int[] typeList, TypeSystem ts)
public void add(String[] types) throws CASException
LinearTypeOrderBuilder
add
in interface LinearTypeOrderBuilder
types
- types to addCASException
- When adding pairs would make order inconsistent.public LinearTypeOrder getOrder() throws CASException
LinearTypeOrderBuilder
getOrder
in interface LinearTypeOrderBuilder
CASException
- if any errorCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.