public enum LockGranularityType extends Enum<LockGranularityType>
| Modifier and Type | Method and Description |
|---|---|
String |
getPattern() |
static LockGranularityType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockGranularityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockGranularityType SECOND
public static final LockGranularityType MINUTE
public static final LockGranularityType HOUR
public static final LockGranularityType DAY
private final String pattern
public static LockGranularityType[] values()
for (LockGranularityType c : LockGranularityType.values()) System.out.println(c);
public static LockGranularityType 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 nullpublic String getPattern()
Copyright © 2024. All rights reserved.