public static enum ExpiringMap.ExpirationPolicy extends Enum<ExpiringMap.ExpirationPolicy>
Enum Constant and Description |
---|
ACCESSED
Expires entries based on when they were last accessed
|
CREATED
Expires entries based on when they were created
|
Modifier and Type | Method and Description |
---|---|
static ExpiringMap.ExpirationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExpiringMap.ExpirationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExpiringMap.ExpirationPolicy ACCESSED
public static final ExpiringMap.ExpirationPolicy CREATED
public static ExpiringMap.ExpirationPolicy[] values()
for (ExpiringMap.ExpirationPolicy c : ExpiringMap.ExpirationPolicy.values()) System.out.println(c);
public static ExpiringMap.ExpirationPolicy 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 nullCopyright © 2015. All rights reserved.