Package jline.lang.constant
Enum PollingTimer
- All Implemented Interfaces:
Serializable,Comparable<PollingTimer>,java.lang.constant.Constable
Time-limited polling visits (Haverkort sections 9.5, 9.6 and 16.2.2).
- NONE - visits are bounded by the polling type only
- LOCAL - a holding timer starts at each visit and bounds it
- GLOBAL - timed token: a per-buffer rotation timer restarts at each token arrival, and a visit may last only what it has left
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PollingTimerInverse oftoName(jline.lang.constant.PollingTimer), case-insensitive.static PollingTimerfromValue(int value) intgetValue()static StringtoName(PollingTimer type) Canonical name used on the JSON wire.static StringtoText(PollingTimer type) static PollingTimerReturns the enum constant of this type with the specified name.static PollingTimer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
-
LOCAL
-
GLOBAL
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
fromValue
-
toText
-
toName
Canonical name used on the JSON wire. -
fromName
Inverse oftoName(jline.lang.constant.PollingTimer), case-insensitive.
-