public class OxmFieldTypeComparator extends Object implements Comparator<OxmFieldType>, Serializable
OxmFieldType
.
In the flowmod match, OpenFlow standard match fields (
OxmBasicFieldType
) always comes first, followed by the
OxmExperimenterFieldType
If the two types are in the same sub category (i.e. both
OxmBasicFieldType
) / both OxmExperimenterFieldType
). The are
ordered by their ordinal values
Constructor and Description |
---|
OxmFieldTypeComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(OxmFieldType type1,
OxmFieldType type2)
Compare two
OxmFieldType . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(OxmFieldType type1, OxmFieldType type2)
OxmFieldType
. This determines their order in the
flowmod match. The current implementation ensures that
OxmBasicFieldType
type always come first, then the
OxmExperimenterFieldType
types. The order of other extension
types does not matter right nowcompare
in interface Comparator<OxmFieldType>
Copyright © 2016. All Rights Reserved.