renamed Metadata to ClassId
diff --git a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/Metadata.java b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/ClassId.java
similarity index 73%
rename from java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/Metadata.java
rename to java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/ClassId.java
index 4764747..a6f2106 100644
--- a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/Metadata.java
+++ b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/ClassId.java
@@ -5,23 +5,23 @@
import com.google.common.primitives.UnsignedInts;
@Immutable
-public class Metadata implements OFValueType<Metadata> {
+public class ClassId implements OFValueType<ClassId> {
static final int LENGTH = 4;
private final static int NONE_VAL = 0;
- public final static Metadata NONE = new Metadata(NONE_VAL);
+ public final static ClassId NONE = new ClassId(NONE_VAL);
private final int rawValue;
- private Metadata(final int rawValue) {
+ private ClassId(final int rawValue) {
this.rawValue = rawValue;
}
- public static Metadata of(final int raw) {
+ public static ClassId of(final int raw) {
if(raw == NONE_VAL)
return NONE;
- return new Metadata(raw);
+ return new ClassId(raw);
}
public int getInt() {
@@ -39,8 +39,8 @@
}
@Override
- public Metadata applyMask(Metadata mask) {
- return Metadata.of(rawValue & mask.rawValue); }
+ public ClassId applyMask(ClassId mask) {
+ return ClassId.of(rawValue & mask.rawValue); }
@Override
public int hashCode() {
@@ -58,14 +58,14 @@
return false;
if (getClass() != obj.getClass())
return false;
- Metadata other = (Metadata) obj;
+ ClassId other = (ClassId) obj;
if (rawValue != other.rawValue)
return false;
return true;
}
@Override
- public int compareTo(Metadata o) {
+ public int compareTo(ClassId o) {
return UnsignedInts.compare(rawValue, rawValue);
}
}