public class CpuCapacityRequirement extends Object implements CapacityRequirement
Constructor and Description |
---|
CpuCapacityRequirement() |
CpuCapacityRequirement(double numberOfCpuCores) |
CpuCapacityRequirement(Fraction cpu) |
Modifier and Type | Method and Description |
---|---|
CpuCapacityRequirement |
add(CapacityRequirement o) |
int |
compareTo(CapacityRequirement o) |
static Fraction |
convertCpuCoresFromDoubleToFraction(double cpu) |
double |
divide(CapacityRequirement otherCapacityRequirement) |
CapacityRequirement |
divide(int i) |
boolean |
equals(Object otherRequirement) |
boolean |
equalsZero() |
Fraction |
getCpu() |
CapacityRequirementType<CpuCapacityRequirement> |
getType() |
CapacityRequirement |
max(CapacityRequirement otherCapacityRequirement) |
CapacityRequirement |
min(CapacityRequirement otherCapacityRequirement) |
CpuCapacityRequirement |
multiply(int i) |
CpuCapacityRequirement |
subtract(CapacityRequirement o) |
CpuCapacityRequirement |
subtractOrZero(CapacityRequirement o) |
String |
toString() |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hashCode
public CpuCapacityRequirement()
public CpuCapacityRequirement(Fraction cpu)
public CpuCapacityRequirement(double numberOfCpuCores)
public static Fraction convertCpuCoresFromDoubleToFraction(double cpu)
public Fraction getCpu()
public int compareTo(CapacityRequirement o)
compareTo
in interface Comparable<CapacityRequirement>
public CpuCapacityRequirement multiply(int i)
multiply
in interface CapacityRequirement
public CpuCapacityRequirement subtract(CapacityRequirement o)
subtract
in interface CapacityRequirement
public CpuCapacityRequirement subtractOrZero(CapacityRequirement o)
subtractOrZero
in interface CapacityRequirement
public boolean equalsZero()
equalsZero
in interface CapacityRequirement
public CpuCapacityRequirement add(CapacityRequirement o)
add
in interface CapacityRequirement
public String toString()
toString
in interface CapacityRequirement
toString
in class Object
public boolean equals(Object otherRequirement)
equals
in interface CapacityRequirement
equals
in class Object
public CapacityRequirement divide(int i)
divide
in interface CapacityRequirement
public CapacityRequirement min(CapacityRequirement otherCapacityRequirement)
min
in interface CapacityRequirement
public CapacityRequirement max(CapacityRequirement otherCapacityRequirement)
max
in interface CapacityRequirement
public double divide(CapacityRequirement otherCapacityRequirement)
divide
in interface CapacityRequirement
public CapacityRequirementType<CpuCapacityRequirement> getType()
getType
in interface CapacityRequirement
Copyright © GigaSpaces.