litesoft
Diff Revisions
804
vs
813
for /trunk/Java/core/Anywhere/src/org/litesoft/codec/MemoableTypedTerminatingCodec.java
|
@@ -7,9 +7,9 @@ |
7 |
7 |
|
import org.litesoft.memobeansupport.*; |
8 |
8 |
|
|
9 |
9 |
|
/** |
10 |
|
- |
* Convert Memoable value to/from a self-terminating string representation |
|
10 |
+ |
* Convert Mementoable value to/from a self-terminating string representation |
11 |
11 |
|
*/ |
12 |
|
- |
public class MemoableTypedTerminatingCodec<T extends Memoable<T>> extends AbstractTypedTerminatingCodec<T> |
|
12 |
+ |
public class MemoableTypedTerminatingCodec<T extends Mementoable<T>> extends AbstractTypedTerminatingCodec<T> |
13 |
13 |
|
{ |
14 |
14 |
|
private T mDefaultInstance; |
15 |
15 |
|
|
|
@@ -22,7 +22,7 @@ |
22 |
22 |
|
protected @NotNull void encodeNonNull( CharSink pCharSink, T pValue ) |
23 |
23 |
|
{ |
24 |
24 |
|
pCharSink.add( NOT_NULL_FOLLOWS_AS_CHAR ); // This is needed as the first subfield of the Value could be a null and that would confuse the Null checker |
25 |
|
- |
pValue.toMemo( pCharSink ); |
|
25 |
+ |
pValue.toMemento( pCharSink ); |
26 |
26 |
|
} |
27 |
27 |
|
|
28 |
28 |
|
@Override |
|
@@ -30,9 +30,9 @@ |
30 |
30 |
|
{ |
31 |
31 |
|
if ( NOT_NULL_FOLLOWS_AS_CHAR != pCharSource.getRequired() ) // This is needed as the first subfield of the Value could be a null and that would confuse the Null checker |
32 |
32 |
|
{ |
33 |
|
- |
throw new IllegalArgumentException( "Malformed Memoable protocol" ); |
|
33 |
+ |
throw new IllegalArgumentException( "Malformed Mementoable protocol" ); |
34 |
34 |
|
} |
35 |
|
- |
return mDefaultInstance.fromMemo( pCharSource ); |
|
35 |
+ |
return mDefaultInstance.fromMemento( pCharSource ); |
36 |
36 |
|
} |
37 |
37 |
|
} |
38 |
38 |
|
|