Class BinaryEnumCache
- java.lang.Object
-
- org.apache.ignite.internal.binary.BinaryEnumCache
-
public class BinaryEnumCache extends Object
Cache for enum constants.
-
-
Constructor Summary
Constructors Constructor Description BinaryEnumCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclear()Clears cache.static <T> Tget(Class<?> cls, int ord)Get value for the given class and ordinal.
-
-
-
Method Detail
-
get
public static <T> T get(Class<?> cls, int ord) throws BinaryObjectException
Get value for the given class and ordinal.- Parameters:
cls- Class.ord- Ordinal.- Returns:
- Value.
- Throws:
BinaryObjectException- In case of invalid ordinal.
-
clear
public static void clear()
Clears cache.
-
-