/** * Get the <tt>InterfaceVersion</tt> by specified value. * * @param value is the value associated by the enum constant. * @return the enum const assiciated with specified <tt>value</tt>. * @throws IllegalArgumentException if there is <tt>InterfaceVersion</tt> * associated with specified <tt>value</tt>. */ public static InterfaceVersion valueOf(byte value) throws IllegalArgumentException { for (InterfaceVersion val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const InterfaceVersion with value " + value); } }
/** * Get the <tt>InterfaceVersion</tt> by specified value. * * @param value is the value associated by the enum constant. * @return the enum const assiciated with specified <tt>value</tt>. * @throws IllegalArgumentException if there is <tt>InterfaceVersion</tt> * associated with specified <tt>value</tt>. */ public static InterfaceVersion valueOf(byte value) throws IllegalArgumentException { for (InterfaceVersion val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const InterfaceVersion with value " + value); } }
/** * Get the <tt>InterfaceVersion</tt> by specified value. * * @param value is the value associated by the enum constant. * @return the enum const assiciated with specified <tt>value</tt>. * @throws IllegalArgumentException if there is <tt>InterfaceVersion</tt> * associated with specified <tt>value</tt>. */ public static InterfaceVersion valueOf(byte value) throws IllegalArgumentException { for (InterfaceVersion val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const InterfaceVersion with value " + value); } }
/** * Get the <tt>InterfaceVersion</tt> by specified value. * * @param value is the value associated by the enum constant. * @return the enum const assiciated with specified <tt>value</tt>. * @throws IllegalArgumentException if there is <tt>InterfaceVersion</tt> * associated with specified <tt>value</tt>. */ public static InterfaceVersion valueOf(byte value) throws IllegalArgumentException { for (InterfaceVersion val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const InterfaceVersion with value " + value); } }