org.jfree.chart.block
public final class: LengthConstraintType [javadoc |
source]
java.lang.Object
org.jfree.chart.block.LengthConstraintType
All Implemented Interfaces:
Serializable
Defines tokens used to indicate a length constraint type.
| Field Summary |
|---|
| public static final LengthConstraintType | NONE | NONE. |
| public static final LengthConstraintType | RANGE | Range. |
| public static final LengthConstraintType | FIXED | FIXED. |
| Method from org.jfree.chart.block.LengthConstraintType Detail: |
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof LengthConstraintType)) {
return false;
}
LengthConstraintType that = (LengthConstraintType) obj;
if (!this.name.equals(that.toString())) {
return false;
}
return true;
}
Returns true if this object is equal to the specified
object, and false otherwise. |
public int hashCode() {
return this.name.hashCode();
}
Returns a hash code value for the object. |
public String toString() {
return this.name;
}
Returns a string representing the object. |