public class ReplayFitnessCost extends java.lang.Object implements ReplayCost, java.lang.Comparable<ReplayFitnessCost>
Modifier and Type | Field and Description |
---|---|
static ReplayCostAddOperator<ReplayFitnessCost> |
addOperator |
Constructor and Description |
---|
ReplayFitnessCost(java.lang.Integer cost,
ReplayFitnessSetting setting) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ReplayFitnessCost cost) |
boolean |
equals(java.lang.Object o)
Returns whether this cost equals the given object.
|
int |
hashCode()
Returns the hash code for this cost.
|
boolean |
isAcceptable()
Returns whether this cost is acceptable.
|
java.lang.String |
toString() |
public static ReplayCostAddOperator<ReplayFitnessCost> addOperator
public ReplayFitnessCost(java.lang.Integer cost, ReplayFitnessSetting setting)
public int compareTo(ReplayFitnessCost cost)
compareTo
in interface java.lang.Comparable<ReplayFitnessCost>
public boolean isAcceptable()
ReplayCost
isAcceptable
in interface ReplayCost
public int hashCode()
ReplayCost
hashCode
in interface ReplayCost
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
ReplayCost
equals
in interface ReplayCost
equals
in class java.lang.Object
o
- The given object.