|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectSimpleConverter<S,T>
S - The base type of source objects.T - The base type of converted objects.public abstract class SimpleConverter<S,T>
An abstract class for simple Object Converters. The default implementation assumes that simple converters have no restriction (i.e. they can convert every values) and preserve order (i.e. if A is smaller than B before conversion, the same holds after conversion). However subclasses can change this default by overriding the methods defined in this abstract class.
| utility/geotk-utility (download) | View source code for this class |
| Constructor Summary | |
|---|---|
protected |
SimpleConverter()
Default constructor. |
| Method Summary | |
|---|---|
boolean |
hasRestrictions()
Returns false by default, assuming that this converter does not have any
restriction. |
boolean |
isOrderPreserving()
Returns true by default, assuming this converter preserves order. |
boolean |
isOrderReversing()
Returns false by default, assuming this converter preserves order. |
String |
toString()
Returns a string representation of this converter for debugging purpose. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ObjectConverter |
|---|
convert, getSourceClass, getTargetClass |
| Constructor Detail |
|---|
protected SimpleConverter()
| Method Detail |
|---|
public boolean hasRestrictions()
false by default, assuming that this converter does not have any
restriction. Subclasses may override.
hasRestrictions in interface ObjectConverter<S,T>true if this converter accepts only a subset of source values.public boolean isOrderPreserving()
true by default, assuming this converter preserves order.
Subclasses may override.
isOrderPreserving in interface ObjectConverter<S,T>true if this converter preserve order.public boolean isOrderReversing()
false by default, assuming this converter preserves order.
Subclasses may override.
isOrderReversing in interface ObjectConverter<S,T>true if this converter reverse order.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||