/** * Returns the list of enumerations of the same kind than this enum. */ public /*{ValueInBytePacking}*/ CodeList[] family() { return values(); }
/** * Returns the ValueInBytePacking that matches the given string, or returns a * new one if none match it. */ public static ValueInBytePacking valueOf(String code) { if (code == null) { return null; } synchronized (VALUES) { Iterator iter = VALUES.iterator(); while (iter.hasNext()) { ValueInBytePacking type = (ValueInBytePacking) iter.next(); if (code.equalsIgnoreCase(type.name())) { return type; } } return new ValueInBytePacking(code); } } }