/** * Returns the programmatic name of this constant together with its {@linkplain #identifier() identifier}. */ @Override public String[] names() { return new String[] {name(), identifier}; }
/** * Returns the programmatic name of this constant together with its {@linkplain #identifier() identifier}. */ @Override public String[] names() { return new String[] {name(), identifier}; }
/** * Returns the PixelOrientation that matches the given string, or returns a * new one if none match it. */ public static PixelOrientation valueOf(String code) { if (code == null) { return null; } synchronized (VALUES) { Iterator iter = VALUES.iterator(); while (iter.hasNext()) { PixelOrientation type = (PixelOrientation) iter.next(); if (code.equalsIgnoreCase(type.name())) { return type; } } return new PixelOrientation(code); } } }