Class ResourceLimit.ResourceValue
- java.lang.Object
-
- org.openrewrite.kubernetes.resource.ResourceLimit.ResourceValue
-
- Enclosing class:
- ResourceLimit
public static class ResourceLimit.ResourceValue extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceLimit.ResourceValue.Unit
-
Constructor Summary
Constructors Constructor Description ResourceValue(long value, ResourceLimit.ResourceValue.Unit unit)ResourceValue(java.lang.String resourceLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLimit.ResourceValueconvertTo(ResourceLimit.ResourceValue.Unit destUnit)longgetAbsoluteValue()ResourceLimit.ResourceValue.UnitgetUnit()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ResourceValue
public ResourceValue(java.lang.String resourceLimit)
-
ResourceValue
public ResourceValue(long value, ResourceLimit.ResourceValue.Unit unit)
-
-
Method Detail
-
getAbsoluteValue
public long getAbsoluteValue()
-
convertTo
public ResourceLimit.ResourceValue convertTo(ResourceLimit.ResourceValue.Unit destUnit)
-
getUnit
public ResourceLimit.ResourceValue.Unit getUnit()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-