litesoft
@ 947
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
// This Source Code is in the Public Domain per: http://unlicense.org package org.litesoft.codec; import org.litesoft.commonfoundation.charstreams.*; import org.litesoft.commonfoundation.annotations.*; import org.litesoft.core.simpletypes.temporal.*; /** * Convert Timestamp value to/from a self-terminating string representation */ public class SimpleDateTypedTerminatingCodec extends AbstractTypedTerminatingCodec<CalendarYMD> { public static final SimpleDateTypedTerminatingCodec INSTANCE = new SimpleDateTypedTerminatingCodec(); @Override protected @NotNull void encodeNonNull( CharSink pCharSink, CalendarYMD pValue ) { NonNullStringTerminatingCodec.INSTANCE.encode( pCharSink, pValue.toSQLvalue() ); } @Override protected @NotNull CalendarYMD decodeNonNull( CharSource pCharSource ) { return CalendarYMD.fromSQLvalue( NonNullStringTerminatingCodec.INSTANCE.decode( pCharSource ) ); } } |
Commits for litesoft/trunk/Java/core/Anywhere/src/org/litesoft/codec/SimpleDateTypedTerminatingCodec.java
Revision | Author | Commited | Message |
---|---|---|---|
947 Diff | GeorgeS | Fri 06 Jun, 2014 23:36:56 +0000 | Correct Spelling of package! |
942 Diff | GeorgeS | Mon 02 Jun, 2014 23:41:46 +0000 | Extracting commonfoundation |
939 Diff | GeorgeS | Mon 02 Jun, 2014 21:30:31 +0000 | Extracting commonfoundation |
860 Diff | GeorgeS | Mon 05 Nov, 2012 01:39:02 +0000 | |
853 Diff | GeorgeS | Sun 04 Nov, 2012 15:18:21 +0000 | |
847 | GeorgeS | Fri 07 Sep, 2012 15:53:36 +0000 |