/** * Creates a region from a name and a label. * * @param name the uniquely identifiable name of the region * @param label the label of the region * @return the newly created region */ public static Region create(String name, String label) { Region region = VALUES_BY_NAME.get(name.toLowerCase()); if (region != null) { return region; } else { return new Region(name, label); } }
/** * Creates a region from a name and a label. * * @param name the uniquely identifiable name of the region * @param label the label of the region * @return the newly created region */ public static Region create(String name, String label) { Region region = VALUES_BY_NAME.get(name.toLowerCase()); if (region != null) { return region; } else { return new Region(name, label); } }