Serializable
, Comparable<ShardingMetadata.ShardingType>
public static enum ShardingMetadata.ShardingType extends Enum<ShardingMetadata.ShardingType>
Modifier and Type | Method | Description |
---|---|---|
static ShardingMetadata.ShardingType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ShardingMetadata.ShardingType[] |
values() |
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final ShardingMetadata.ShardingType HASH
public static final ShardingMetadata.ShardingType LIST
public static final ShardingMetadata.ShardingType RANGE
public static final ShardingMetadata.ShardingType NONE
public static ShardingMetadata.ShardingType[] values()
for (ShardingMetadata.ShardingType c : ShardingMetadata.ShardingType.values()) System.out.println(c);
public static ShardingMetadata.ShardingType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null