/** * 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 EntityId valueOf(final long value) { if (!EntityId.LIST.containsKey(value)) { EntityId.LIST.put(value, new EntityId(value)); } return EntityId.LIST.get(value); }