org.openspaces.grid.gsm.capacity
Class AbstractCapacityRequirement
java.lang.Object
org.openspaces.grid.gsm.capacity.AbstractCapacityRequirement
- All Implemented Interfaces:
- Comparable<CapacityRequirement>, CapacityRequirement
- Direct Known Subclasses:
- DriveCapacityRequirement, MemoryCapacityRequirement, NumberOfMachinesCapacityRequirement
public abstract class AbstractCapacityRequirement
- extends Object
- implements CapacityRequirement
value
protected final Long value
AbstractCapacityRequirement
public AbstractCapacityRequirement()
AbstractCapacityRequirement
public AbstractCapacityRequirement(long value)
compareTo
public int compareTo(CapacityRequirement otherCapacityRequirement)
- Specified by:
compareTo
in interface Comparable<CapacityRequirement>
equalsZero
public boolean equalsZero()
- Specified by:
equalsZero
in interface CapacityRequirement
multiply
public CapacityRequirement multiply(int i)
- Specified by:
multiply
in interface CapacityRequirement
divide
public CapacityRequirement divide(int i)
- Specified by:
divide
in interface CapacityRequirement
subtract
public CapacityRequirement subtract(CapacityRequirement otherCapacityRequirement)
- Specified by:
subtract
in interface CapacityRequirement
subtractOrZero
public CapacityRequirement subtractOrZero(CapacityRequirement otherCapacityRequirement)
- Specified by:
subtractOrZero
in interface CapacityRequirement
add
public CapacityRequirement add(CapacityRequirement otherCapacityRequirement)
- Specified by:
add
in interface CapacityRequirement
min
public CapacityRequirement min(CapacityRequirement otherCapacityRequirement)
- Specified by:
min
in interface CapacityRequirement
max
public CapacityRequirement max(CapacityRequirement otherCapacityRequirement)
- Specified by:
max
in interface CapacityRequirement
divide
public double divide(CapacityRequirement otherCapacityRequirement)
- Specified by:
divide
in interface CapacityRequirement
getType
public CapacityRequirementType<? extends AbstractCapacityRequirement> getType()
- Specified by:
getType
in interface CapacityRequirement
equals
public boolean equals(Object other)
- Specified by:
equals
in interface CapacityRequirement
- Overrides:
equals
in class Object
toString
public abstract String toString()
- Specified by:
toString
in interface CapacityRequirement
- Overrides:
toString
in class Object
Copyright © GigaSpaces.