public static OFTableReason readFrom(ChannelBuffer bb) throws OFParseError { try { return ofWireValue(bb.readByte()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
public static OFTableReason ofWireValue(byte val) { switch(val) { case VACANCY_DOWN_VAL: return OFTableReason.VACANCY_DOWN; case VACANCY_UP_VAL: return OFTableReason.VACANCY_UP; default: throw new IllegalArgumentException("Illegal wire value for type OFTableReason in version 1.4: " + val); } }
public static byte toWireValue(OFTableReason e) { switch(e) { case VACANCY_DOWN: return VACANCY_DOWN_VAL; case VACANCY_UP: return VACANCY_UP_VAL; default: throw new IllegalArgumentException("Illegal enum value for type OFTableReason in version 1.4: " + e); } }
public static OFTableReason readFrom(ByteBuf bb) throws OFParseError { try { return ofWireValue(bb.readByte()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
public static OFTableReason ofWireValue(byte val) { switch(val) { case VACANCY_DOWN_VAL: return OFTableReason.VACANCY_DOWN; case VACANCY_UP_VAL: return OFTableReason.VACANCY_UP; default: throw new IllegalArgumentException("Illegal wire value for type OFTableReason in version 1.5: " + val); } }
public static byte toWireValue(OFTableReason e) { switch(e) { case VACANCY_DOWN: return VACANCY_DOWN_VAL; case VACANCY_UP: return VACANCY_UP_VAL; default: throw new IllegalArgumentException("Illegal enum value for type OFTableReason in version 1.5: " + e); } }
public static void writeTo(ChannelBuffer bb, OFTableReason e) { bb.writeByte(toWireValue(e)); }
public static void putTo(OFTableReason e, PrimitiveSink sink) { sink.putByte(toWireValue(e)); }
public static void writeTo(ByteBuf bb, OFTableReason e) { bb.writeByte(toWireValue(e)); }