Package yapion.utils
Class ReferenceIDUtils
- java.lang.Object
-
- yapion.utils.ReferenceIDUtils
-
public class ReferenceIDUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ReferenceFunction
REFERENCE_FUNCTION
Calculates the reference ID of a given String, primarily used for variable names.static ReferenceFunction
REFERENCE_FUNCTION_OLD
Deprecated.since 0.23.0
-
Constructor Summary
Constructors Constructor Description ReferenceIDUtils()
-
Method Summary
Modifier and Type Method Description static void
discardCache()
Discard the cache used byreferenceOld(String)
static java.lang.String
format(long l)
Formats the input to the standard reference ID structure.
-
-
-
Field Detail
-
REFERENCE_FUNCTION
public static final ReferenceFunction REFERENCE_FUNCTION
Calculates the reference ID of a given String, primarily used for variable names. This method caches the last 256 inputs for faster reference ID calculation. UsediscardCache()
to discard this Cache.
-
REFERENCE_FUNCTION_OLD
@Deprecated public static final ReferenceFunction REFERENCE_FUNCTION_OLD
Deprecated.since 0.23.0Calculates the reference ID of a given String, primarily used for variable names. This method caches the last 256 inputs for faster reference ID calculation. UsediscardCache()
to discard this Cache.
-
-