public abstract class PrimitiveDecoders<T> extends CoderAdapter implements Decoder.Text<T>
Modifier and Type | Class and Description |
---|---|
static class |
PrimitiveDecoders.BooleanDecoder |
static class |
PrimitiveDecoders.ByteDecoder |
static class |
PrimitiveDecoders.CharacterDecoder |
static class |
PrimitiveDecoders.DoubleDecoder |
static class |
PrimitiveDecoders.FloatDecoder |
static class |
PrimitiveDecoders.IntegerDecoder |
static class |
PrimitiveDecoders.LongDecoder |
static class |
PrimitiveDecoders.ShortDecoder |
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
Modifier and Type | Field and Description |
---|---|
static List<Class<? extends Decoder>> |
ALL |
static Map<Class<?>,Decoder.Text<?>> |
ALL_INSTANCES |
Constructor and Description |
---|
PrimitiveDecoders() |
Modifier and Type | Method and Description |
---|---|
boolean |
willDecode(String s)
Answer whether the given String can be decoded into an object of type T.
|
destroy, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode
public static final Map<Class<?>,Decoder.Text<?>> ALL_INSTANCES
public boolean willDecode(String s)
Decoder.Text
willDecode
in interface Decoder.Text<T>
s
- the string being tested for decodability.Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.