jakarta.websocket.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 |
|---|---|
| public static final BooleanDecoder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Boolean | decode(String
string to be decoded. s)Implements jakarta. Decode the given String into an object of type T. |
| public boolean | willDecode(String
the string being tested for decodability. s)Implements jakarta. Answer whether the given String can be decoded into an object of type T. |
| INSTANCE | back to summary |
|---|---|
| public static final BooleanDecoder INSTANCE | |
| BooleanDecoder | back to summary |
|---|---|
| public BooleanDecoder() | |
| decode | back to summary |
|---|---|
| public Boolean decode(String s) throws DecodeException Implements jakarta. Doc from jakarta. Decode the given String into an object of type T.
| |
| willDecode | back to summary |
|---|---|
| public boolean willDecode(String s) Implements jakarta. Doc from jakarta. Answer whether the given String can be decoded into an object of type T. | |