|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Contract for all strategy classes.
Applications should not directly use any of these methods. Please refer to Syntax and Value classes instead.
| Method Summary | |
long |
compare(ValueComponent component1,
ValueComponent component2)
Returns the difference between to components. |
ValueComponent |
createValueComponent()
Creates a ValueComponent. |
ValueComponent |
createValueComponent(java.lang.Object initialData)
Creates a ValueComponent. |
boolean |
equals(ValueComponent component1,
ValueComponent component2)
Tests if two ValueComponents are identical. |
boolean |
isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
Checks if a component is within bounds. |
java.lang.String |
toString(ValueComponent component)
Converts a ValueComponent to a String. |
| Method Detail |
public java.lang.String toString(ValueComponent component)
This method is used by the ValueComponents toString() method.
component - The component to convert.public boolean equals(ValueComponent component1,
ValueComponent component2)
This method is used by the ValueComponents equals(Object) method.
component1 - First component.component2 - Second component.ValueComponent.equals(Object)public long compare(ValueComponent component1,
ValueComponent component2)
This method is used by the ValueComponents compareTo(ValueComponent) method.
component1 - First component.component2 - Second component.ValueComponent.compareTo(ValueComponent)public ValueComponent createValueComponent()
This method is used when a ValueComponent needs to be constructed but there is no data available.
public ValueComponent createValueComponent(java.lang.Object initialData)
throws ComponentCreationException
This method is used when a ValueComponent needs to be constructed and there is initialization data available.
initialData - The data used to initialize the value component.public boolean isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
comp - ValueComponent that needs to be checked.lowerBound - The lower limit to check.upperBound - The upper limit to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||