- java.lang.Object
-
- java.lang.Enum<IndexUsage>
-
- io.rxmicro.data.mongo.IndexUsage
-
- All Implemented Interfaces:
io.rxmicro.model.NotStandardSerializableEnum
,Serializable
,Comparable<IndexUsage>
public enum IndexUsage extends Enum<IndexUsage> implements io.rxmicro.model.NotStandardSerializableEnum
Allows activating or disabling the index usage.- Since:
- 0.1
- Author:
- nedis
- See Also:
SortOrder
,Pageable
,RepeatParameter
,ProjectionType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
mongo()
static IndexUsage
valueOf(String name)
Returns the enum constant of this type with the specified name.static IndexUsage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INCLUDE
public static final IndexUsage INCLUDE
Includes index usage.
-
EXCLUDE
public static final IndexUsage EXCLUDE
Excludes index usage.
-
-
Method Detail
-
values
public static IndexUsage[] 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 (IndexUsage c : IndexUsage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IndexUsage 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
-
mongo
public int mongo()
- Specified by:
mongo
in interfaceio.rxmicro.model.NotStandardSerializableEnum
-
-