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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classNested classes/interfaces inherited from interface jakarta.websocket.Decoder
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanwillDecode(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, initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.TextAnswer whether the given String can be decoded into an object of type T.- Specified by:
willDecodein interfaceDecoder.Text<T>- Parameters:
s- the string being tested for decodability.- Returns:
- whether this decoder can decoded the supplied string.
-