public static class LinearTypeOrderBuilderImpl.TotalTypeOrder extends Object implements LinearTypeOrder
LinearTypeOrder
interface.Modifier and Type | Method and Description |
---|---|
int |
compare(FeatureStructure fs1,
FeatureStructure fs2)
Compare two Feature Structure's types
|
boolean |
equals(Object obj) |
int[] |
getOrder() |
int |
hashCode() |
boolean |
isEmptyTypeOrder() |
boolean |
lessThan(int t1,
int t2)
Compare two types.
|
boolean |
lessThan(Type t1,
Type t2)
Compare two types.
|
public int compare(FeatureStructure fs1, FeatureStructure fs2)
LinearTypeOrder
compare
in interface LinearTypeOrder
fs1
- first Feature Structurefs2
- second Feature Structurepublic boolean lessThan(Type t1, Type t2)
LinearTypeOrder
lessThan
in interface LinearTypeOrder
t1
- type to comparet2
- type to comparetrue
iff t1
is less than t2
in this order.public boolean lessThan(int t1, int t2)
LinearTypeOrder
lessThan
in interface LinearTypeOrder
t1
- type to comparet2
- type to comparetrue
iff t1
is less than t2
in this order.public int[] getOrder()
getOrder
in interface LinearTypeOrder
public boolean isEmptyTypeOrder()
isEmptyTypeOrder
in interface LinearTypeOrder
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.