public static enum ITimedOpenShiftPlugin.TimeoutUnit extends Enum<ITimedOpenShiftPlugin.TimeoutUnit>
Enum Constant and Description |
---|
MILLISECONDS |
MINUTES |
SECONDS |
Modifier and Type | Field and Description |
---|---|
long |
multiplier |
String |
name |
Modifier and Type | Method and Description |
---|---|
static ITimedOpenShiftPlugin.TimeoutUnit |
getByName(String unit) |
boolean |
matches(String value) |
static String |
normalize(String value) |
long |
toMilliseconds(String value,
long def) |
String |
toString() |
static ITimedOpenShiftPlugin.TimeoutUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ITimedOpenShiftPlugin.TimeoutUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ITimedOpenShiftPlugin.TimeoutUnit MILLISECONDS
public static final ITimedOpenShiftPlugin.TimeoutUnit SECONDS
public static final ITimedOpenShiftPlugin.TimeoutUnit MINUTES
public final String name
public final long multiplier
public static ITimedOpenShiftPlugin.TimeoutUnit[] values()
for (ITimedOpenShiftPlugin.TimeoutUnit c : ITimedOpenShiftPlugin.TimeoutUnit.values()) System.out.println(c);
public static ITimedOpenShiftPlugin.TimeoutUnit 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 toString()
toString
in class Enum<ITimedOpenShiftPlugin.TimeoutUnit>
public boolean matches(String value)
public static ITimedOpenShiftPlugin.TimeoutUnit getByName(String unit)
public long toMilliseconds(String value, long def)
Copyright © 2004-2020 Red Hat, Inc. All Rights Reserved.