net.sf.doolin.util
Class ReadOnlyAdapter<S,T>
java.lang.Object
net.sf.doolin.util.ReadOnlyAdapter<S,T>
- Type Parameters:
S - Subject typeT - Target type
- All Implemented Interfaces:
- Adapter<S,T>
- Direct Known Subclasses:
- ReadOnlyNotNullBooleanAdapter, ReadOnlyStringAdapter
public abstract class ReadOnlyAdapter<S,T>
- extends Object
- implements Adapter<S,T>
Adapter where the update of the subject is deactivated.
- Author:
- Damien Coraboeuf
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadOnlyAdapter
public ReadOnlyAdapter()
convertTargetToSubject
public final S convertTargetToSubject(T targetValue)
- Logs a warning and returns null.
- Specified by:
convertTargetToSubject in interface Adapter<S,T>
- Parameters:
targetValue - Target value
- Returns:
- Subject value
Copyright © 2011. All Rights Reserved.