public class BooleanDecoder extends AbstractDecoder implements javax.websocket.Decoder.Text<Boolean>
Decoder.Text Message to Boolean decoder.
Note: delegates to Boolean.parseBoolean(String) and will only support "true" and "false" as boolean values.
| 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, initpublic static final BooleanDecoder INSTANCE
Copyright © 1995–2017 Webtide. All rights reserved.