Enum MapOperations
- java.lang.Object
-
- java.lang.Enum<MapOperations>
-
- org.wildfly.clustering.ee.cache.function.MapOperations
-
- All Implemented Interfaces:
Serializable,Comparable<MapOperations>,Operations<Map<Object,Object>>
public enum MapOperations extends Enum<MapOperations> implements Operations<Map<Object,Object>>
Defines Map creation and cloning strategies.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UnaryOperator<Map<Object,Object>>getCopier()Supplier<Map<Object,Object>>getFactory()Predicate<Map<Object,Object>>isEmpty()static MapOperationsvalueOf(String name)Returns the enum constant of this type with the specified name.static MapOperations[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TREE
public static final MapOperations TREE
-
HASH
public static final MapOperations HASH
-
-
Method Detail
-
values
public static MapOperations[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MapOperations c : MapOperations.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MapOperations valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCopier
public UnaryOperator<Map<Object,Object>> getCopier()
- Specified by:
getCopierin interfaceOperations<Map<Object,Object>>
-
getFactory
public Supplier<Map<Object,Object>> getFactory()
- Specified by:
getFactoryin interfaceOperations<Map<Object,Object>>
-
-