/** * Get the <tt>BindType</tt> by specified command_id. * * @param bindCommandId is the command_id. * @return the enum const associated with the specified * <tt>bindCommandId</tt>. * @throws IllegalArgumentException if there is no <tt>BindType</tt> * associated with specified <tt>bindCommandId</tt> found. */ public static final BindType valueOf(int bindCommandId) throws IllegalArgumentException { for (BindType bindType : values()) { if (bindType.bindCommandId == bindCommandId) { return bindType; } } throw new IllegalArgumentException( "No enum const BindType with command id " + bindCommandId); } }
/** * Get the <tt>BindType</tt> by specified command_id. * * @param bindCommandId is the command_id. * @return the enum const associated with the specified * <tt>bindCommandId</tt>. * @throws IllegalArgumentException if there is no <tt>BindType</tt> * associated with specified <tt>bindCommandId</tt> found. */ public static final BindType valueOf(int bindCommandId) throws IllegalArgumentException { for (BindType bindType : values()) { if (bindType.bindCommandId == bindCommandId) { return bindType; } } throw new IllegalArgumentException( "No enum const BindType with command id " + bindCommandId); } }
/** * Get the <tt>BindType</tt> by specified command_id. * * @param bindCommandId is the command_id. * @return the enum const associated with the specified * <tt>bindCommandId</tt>. * @throws IllegalArgumentException if there is no <tt>BindType</tt> * associated with specified <tt>bindCommandId</tt> found. */ public static final BindType valueOf(int bindCommandId) throws IllegalArgumentException { for (BindType bindType : values()) { if (bindType.bindCommandId == bindCommandId) { return bindType; } } throw new IllegalArgumentException( "No enum const BindType with command id " + bindCommandId); } }
/** * Get the <tt>BindType</tt> by specified command_id. * * @param bindCommandId is the command_id. * @return the enum const associated with the specified * <tt>bindCommandId</tt>. * @throws IllegalArgumentException if there is no <tt>BindType</tt> * associated with specified <tt>bindCommandId</tt> found. */ public static final BindType valueOf(int bindCommandId) throws IllegalArgumentException { for (BindType bindType : values()) { if (bindType.bindCommandId == bindCommandId) { return bindType; } } throw new IllegalArgumentException( "No enum const BindType with command id " + bindCommandId); } }