Package org.glassfish.tyrus.core.coder
Class PrimitiveDecoders<T>
java.lang.Object
org.glassfish.tyrus.core.coder.CoderAdapter
org.glassfish.tyrus.core.coder.PrimitiveDecoders<T>
- All Implemented Interfaces:
Decoder
,Decoder.Text<T>
- Direct Known Subclasses:
PrimitiveDecoders.BooleanDecoder
,PrimitiveDecoders.ByteDecoder
,PrimitiveDecoders.CharacterDecoder
,PrimitiveDecoders.DoubleDecoder
,PrimitiveDecoders.FloatDecoder
,PrimitiveDecoders.IntegerDecoder
,PrimitiveDecoders.LongDecoder
,PrimitiveDecoders.ShortDecoder
Collection of decoders for all primitive types.
- Author:
- Martin Matula, Danny Coward, Stepan Kopriva
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
Nested classes/interfaces inherited from interface jakarta.websocket.Decoder
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
willDecode
(String s) Answer whether the given String can be decoded into an object of type T.Methods inherited from class org.glassfish.tyrus.core.coder.CoderAdapter
destroy, init
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.websocket.Decoder.Text
decode
-
Field Details
-
ALL
-
ALL_INSTANCES
-
-
Constructor Details
-
PrimitiveDecoders
public PrimitiveDecoders()
-
-
Method Details
-
willDecode
Description copied from interface:Decoder.Text
Answer whether the given String can be decoded into an object of type T.- Specified by:
willDecode
in interfaceDecoder.Text<T>
- Parameters:
s
- the string being tested for decodability.- Returns:
- whether this decoder can decoded the supplied string.
-