/** * Get the <tt>TypeOfNumber</tt> based on the specified byte value * representation. * * @param value is the byte value representation. * @return is the enum const related to the specified byte value. * @throws IllegalArgumentException if there is no enum const associated * with specified byte value. */ public static TypeOfNumber valueOf(byte value) { for (TypeOfNumber val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const TypeOfNumber with value " + value); } }
/** * Get the <tt>TypeOfNumber</tt> based on the specified byte value * representation. * * @param value is the byte value representation. * @return is the enum const related to the specified byte value. * @throws IllegalArgumentException if there is no enum const associated * with specified byte value. */ public static TypeOfNumber valueOf(byte value) { for (TypeOfNumber val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const TypeOfNumber with value " + value); } }
/** * Get the <tt>TypeOfNumber</tt> based on the specified byte value * representation. * * @param value is the byte value representation. * @return is the enum const related to the specified byte value. * @throws IllegalArgumentException if there is no enum const associated * with specified byte value. */ public static TypeOfNumber valueOf(byte value) { for (TypeOfNumber val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const TypeOfNumber with value " + value); } }
/** * Get the <tt>TypeOfNumber</tt> based on the specified byte value * representation. * * @param value is the byte value representation. * @return is the enum const related to the specified byte value. * @throws IllegalArgumentException if there is no enum const associated * with specified byte value. */ public static TypeOfNumber valueOf(byte value) { for (TypeOfNumber val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const TypeOfNumber with value " + value); } }