Enum ResourceLimit.ResourceValue.Unit
- java.lang.Object
-
- java.lang.Enum<ResourceLimit.ResourceValue.Unit>
-
- org.openrewrite.kubernetes.resource.ResourceLimit.ResourceValue.Unit
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ResourceLimit.ResourceValue.Unit>
- Enclosing class:
- ResourceLimit.ResourceValue
public static enum ResourceLimit.ResourceValue.Unit extends java.lang.Enum<ResourceLimit.ResourceValue.Unit>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longfromAbsoluteValue(long absoluteValue)static ResourceLimit.ResourceValue.UnitfromString(java.lang.String s)longtoAbsoluteValue(long relativeValue)java.lang.StringtoString()static ResourceLimit.ResourceValue.UnitvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ResourceLimit.ResourceValue.Unit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
K
public static final ResourceLimit.ResourceValue.Unit K
-
M
public static final ResourceLimit.ResourceValue.Unit M
-
G
public static final ResourceLimit.ResourceValue.Unit G
-
T
public static final ResourceLimit.ResourceValue.Unit T
-
P
public static final ResourceLimit.ResourceValue.Unit P
-
Ki
public static final ResourceLimit.ResourceValue.Unit Ki
-
Mi
public static final ResourceLimit.ResourceValue.Unit Mi
-
Gi
public static final ResourceLimit.ResourceValue.Unit Gi
-
Ti
public static final ResourceLimit.ResourceValue.Unit Ti
-
Pi
public static final ResourceLimit.ResourceValue.Unit Pi
-
-
Method Detail
-
values
public static ResourceLimit.ResourceValue.Unit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResourceLimit.ResourceValue.Unit c : ResourceLimit.ResourceValue.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceLimit.ResourceValue.Unit valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<ResourceLimit.ResourceValue.Unit>
-
fromString
public static ResourceLimit.ResourceValue.Unit fromString(java.lang.String s)
-
fromAbsoluteValue
public long fromAbsoluteValue(long absoluteValue)
-
toAbsoluteValue
public long toAbsoluteValue(long relativeValue)
-
-