public class LinearTypeOrderBuilderImpl extends java.lang.Object implements LinearTypeOrderBuilder
LinearTypeOrderBuilder interface.| Constructor and Description |
|---|
LinearTypeOrderBuilderImpl(TypeSystem ts) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.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(java.lang.String[] types)
throws CASException
LinearTypeOrderBuilderadd in interface LinearTypeOrderBuilderCASException - When adding pairs would make order inconsistent.public LinearTypeOrder getOrder() throws CASException
LinearTypeOrderBuildergetOrder in interface LinearTypeOrderBuilderCASExceptionCopyright © 2013. All Rights Reserved.