private static final int VALUE_LENGTH = 4;
private static final int NXM_FIELD_CODE = 33;
public static final MatchEntrySerializerKey<Nxm1Class, NxmNxPktMark> SERIALIZER_KEY =
- new MatchEntrySerializerKey<>(EncodeConstants.OF_VERSION_1_3, Nxm1Class.class, NxmNxPktMark.class);
+ new MatchEntrySerializerKey<>(EncodeConstants.OF_VERSION_1_3, Nxm1Class.VALUE, NxmNxPktMark.VALUE);
public static final MatchEntryDeserializerKey DESERIALIZER_KEY = new MatchEntryDeserializerKey(
EncodeConstants.OF_VERSION_1_3, OxmMatchConstants.NXM_1_CLASS, NXM_FIELD_CODE);
}
@Override
- public Class<? extends MatchField> getNxmField() {
- return NxmNxPktMark.class;
+ public MatchField getNxmField() {
+ return NxmNxPktMark.VALUE;
}
@Override
- public Class<? extends OxmClassBase> getOxmClass() {
- return Nxm1Class.class;
+ public OxmClassBase getOxmClass() {
+ return Nxm1Class.VALUE;
}
}