public class PropertyWeight
extends java.lang.Object
Constructor and Description |
---|
PropertyWeight(int weight) |
PropertyWeight(int weight,
boolean fixed) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Overloads the core
java.lang.Object implementation to compare the weight directly. |
int |
getWeight()
Accesses the associated weight value.
|
int |
hashCode()
Overloads the core
java.lang.Object implementation to hash the weight directly. |
boolean |
isFixedWeight()
Specifies whether the weight can be updated.
|
void |
setFixedWeight(boolean fixed)
Specifies that the weight cannot be updated.
|
void |
setWeight(int weight)
Enables the associated weight to be updated.
|
java.lang.String |
toString()
Overloads the core
java.lang.Object implementation to return a textual representation
of the weight. |
public PropertyWeight(int weight)
public PropertyWeight(int weight, boolean fixed)
public int getWeight()
public void setWeight(int weight)
public boolean isFixedWeight()
public void setFixedWeight(boolean fixed)
public int hashCode()
java.lang.Object
implementation to hash the weight directly.hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
java.lang.Object
implementation to compare the weight directly.equals
in class java.lang.Object
public java.lang.String toString()
java.lang.Object
implementation to return a textual representation
of the weight.toString
in class java.lang.Object