/** * Retrieve an Id from a value. * * @param value Id value to get, positive and negative values are allowed, -1 is WORLD. * @return The Id with the internal value correspond to the parameter. */ public static WorldId valueOf(final int value) { if (!WorldId.LIST.containsKey(value)) { WorldId.LIST.put(value, new WorldId(value)); } return WorldId.LIST.get(value); }