public class BooleanDecoder extends Object implements Decoder.Text<Boolean>
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>| Constructor and Description |
|---|
BooleanDecoder() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
decode(String s)
Decode the given String into an object of type T.
|
boolean |
willDecode(String s)
Answer whether the given String can be decoded into an object of type T.
|
public Boolean decode(String s) throws DecodeException
Decoder.Textdecode in interface Decoder.Text<Boolean>DecodeExceptionpublic boolean willDecode(String s)
Decoder.TextwillDecode in interface Decoder.Text<Boolean>s - the string being tested for decodabilityCopyright © 2012. All Rights Reserved.