public abstract class HexStrategy extends java.lang.Object implements ValueStrategy
This class is not public and no methods should be available to applications.
| Constructor and Description |
|---|
HexStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateValue(java.lang.Object obj)
Test to see if an object can be created from the specified object.
|
long |
compare(ValueComponent obj1,
ValueComponent obj2)
Tests to see how two HexValue compare.
|
ValueComponent |
createValueComponent()
Factory a new ValueComponent using default values.
|
ValueComponent |
createValueComponent(java.lang.Object obj)
Factory a new HexValue using specified values.
|
boolean |
equals(ValueComponent obj1,
ValueComponent obj2)
Tests to see if two ValueComponents are identical.
|
boolean |
isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
Used to test if a component is within bounds.
|
java.lang.String |
toString(ValueComponent obj)
Converts a HexValue to a string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSyntaxpublic boolean canCreateValue(java.lang.Object obj)
canCreateValue in interface ValueStrategyobj - Must be a byte[] or String object.public ValueComponent createValueComponent()
createValueComponent in interface Strategypublic ValueComponent createValueComponent(java.lang.Object obj) throws ComponentCreationException
createValueComponent in interface Strategyobj - The object used as the initial value.ComponentCreationException - if 'obj' cannot be used as the
initial value.public boolean equals(ValueComponent obj1, ValueComponent obj2)
equals in interface Strategyobj1 - First ValueComponent which must be a HexValue.obj2 - Second ValueComponent.ValueComponent.equals(Object)public long compare(ValueComponent obj1, ValueComponent obj2)
compare in interface Strategyobj1 - Must be a HexValue.obj2 - Must be a HexValue.ValueComponent.compareTo(ValueComponent)public java.lang.String toString(ValueComponent obj)
toString in interface Strategyobj - The ValueComponent to convert must be a HexValue.ValueComponent.toString()public boolean isWithinBounds(ValueComponent comp, long lowerBound, long upperBound)
isWithinBounds in interface Strategycomp - ValueComponent that needs to be checked.lowerBound - lower limit to check.upperBound - upper limit to check.
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.