public enum RateIntervalUnit extends Enum<RateIntervalUnit>
Enum Constant and Description |
---|
DAYS |
HOURS |
MILLISECONDS |
MINUTES |
SECONDS |
Modifier and Type | Method and Description |
---|---|
abstract long |
toMillis(long value) |
static RateIntervalUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RateIntervalUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RateIntervalUnit MILLISECONDS
public static final RateIntervalUnit SECONDS
public static final RateIntervalUnit MINUTES
public static final RateIntervalUnit HOURS
public static final RateIntervalUnit DAYS
public static RateIntervalUnit[] values()
for (RateIntervalUnit c : RateIntervalUnit.values()) System.out.println(c);
public static RateIntervalUnit 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 abstract long toMillis(long value)
Copyright © 2014–2020 Redisson. All rights reserved.