public class BooleanDecoder extends AbstractDecoder implements Decoder.Text<Boolean>
Text
Message to Boolean
decoder.
Note: delegates to Boolean.parseBoolean(String)
and will only support "true" and "false" as boolean values.
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
Modifier and Type | Field and Description |
---|---|
static BooleanDecoder |
INSTANCE |
Constructor and Description |
---|
BooleanDecoder() |
Modifier and Type | Method and Description |
---|---|
Boolean |
decode(String s) |
boolean |
willDecode(String s) |
destroy, init
public static final BooleanDecoder INSTANCE
public Boolean decode(String s) throws DecodeException
decode
in interface Decoder.Text<Boolean>
DecodeException
public boolean willDecode(String s)
willDecode
in interface Decoder.Text<Boolean>
Copyright © 1995-2015 Webtide. All Rights Reserved.