MongoDbShardKeyOrder Class

public final class MongoDbShardKeyOrder
extends ExpandableStringEnum<MongoDbShardKeyOrder>

The field ordering.

Field Summary

Modifier and Type Field and Description
static final MongoDbShardKeyOrder FORWARD

Static value Forward for MongoDbShardKeyOrder.

static final MongoDbShardKeyOrder HASHED

Static value Hashed for MongoDbShardKeyOrder.

static final MongoDbShardKeyOrder REVERSE

Static value Reverse for MongoDbShardKeyOrder.

Constructor Summary

Constructor Description
MongoDbShardKeyOrder()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MongoDbShardKeyOrder value.

Method Summary

Modifier and Type Method and Description
static MongoDbShardKeyOrder fromString(String name)

Creates or finds a MongoDbShardKeyOrder from its string representation.

static Collection<MongoDbShardKeyOrder> values()

Gets known MongoDbShardKeyOrder values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

FORWARD

public static final MongoDbShardKeyOrder FORWARD

Static value Forward for MongoDbShardKeyOrder.

HASHED

public static final MongoDbShardKeyOrder HASHED

Static value Hashed for MongoDbShardKeyOrder.

REVERSE

public static final MongoDbShardKeyOrder REVERSE

Static value Reverse for MongoDbShardKeyOrder.

Constructor Details

MongoDbShardKeyOrder

@Deprecated
public MongoDbShardKeyOrder()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MongoDbShardKeyOrder value.

Method Details

fromString

public static MongoDbShardKeyOrder fromString(String name)

Creates or finds a MongoDbShardKeyOrder from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding MongoDbShardKeyOrder.

values

public static Collection<MongoDbShardKeyOrder> values()

Gets known MongoDbShardKeyOrder values.

Returns:

known MongoDbShardKeyOrder values.

Applies to