commit | 85c961f17ad410ccc18cc1c05b0c84800121caa4 | [log] [tgz] |
---|---|---|
author | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Sun Sep 29 21:22:12 2013 -0700 |
committer | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Sun Sep 29 21:22:12 2013 -0700 |
tree | 07d42804a3ee25e270fa24e8e32e8b95b4c2ea8c | |
parent | cb17b233611fd8dbab25bc36ac46a3203500434c [diff] [blame] |
java_gen: made OFValueTypes Comparable
diff --git a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/IPv6FlowLabel.java b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/IPv6FlowLabel.java index 7dbf9bb..45bbf4b 100644 --- a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/IPv6FlowLabel.java +++ b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/IPv6FlowLabel.java
@@ -3,6 +3,8 @@ import org.jboss.netty.buffer.ChannelBuffer; import org.projectfloodlight.openflow.exceptions.OFParseError; +import com.google.common.primitives.UnsignedInts; + public class IPv6FlowLabel implements OFValueType<IPv6FlowLabel> { static final int LENGTH = 4; @@ -69,4 +71,9 @@ public int getIPv6FlowLabelValue() { return label; } + + @Override + public int compareTo(IPv6FlowLabel o) { + return UnsignedInts.compare(label, o.label); + } }