com.maryanovsky.gwtutils.client.text
Interface Transcoder<T>

All Superinterfaces:
Decoder<T>, Encoder<T>

public interface Transcoder<T>
extends Encoder<T>, Decoder<T>

An interface for classes which can both decode and encode objects from/to text.

Author:
Maryanovsky Alexander

Field Summary
static Transcoder<Boolean> BOOLEAN_TRANSCODER
          A boolean transcoder.
static Transcoder<Character> CHARACTER_TRANSCODER
          A char transcoder.
static Transcoder<Double> DOUBLE_TRANSCODER
          A double transcoder.
static Transcoder<Integer> INTEGER_TRANSCODER
          An int transcoder (to/from decimal representation).
static Transcoder<String> STRING_TRANSCODER
          A string transcoder.
 
Method Summary
 
Methods inherited from interface com.maryanovsky.gwtutils.client.text.Encoder
encode
 
Methods inherited from interface com.maryanovsky.gwtutils.client.text.Decoder
decode
 

Field Detail

STRING_TRANSCODER

static final Transcoder<String> STRING_TRANSCODER
A string transcoder.


BOOLEAN_TRANSCODER

static final Transcoder<Boolean> BOOLEAN_TRANSCODER
A boolean transcoder. The decode method accepts only the values "true" and "false" (ignoring case).


INTEGER_TRANSCODER

static final Transcoder<Integer> INTEGER_TRANSCODER
An int transcoder (to/from decimal representation).


DOUBLE_TRANSCODER

static final Transcoder<Double> DOUBLE_TRANSCODER
A double transcoder.


CHARACTER_TRANSCODER

static final Transcoder<Character> CHARACTER_TRANSCODER
A char transcoder.