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

public abstract class PrimitiveDecoders<T> extends CoderAdapter implements Decoder.Text<T>
Collection of decoders for all primitive types.
Author:
Martin Matula, Danny Coward, Stepan Kopriva
  • Field Details

  • Constructor Details

    • PrimitiveDecoders

      public PrimitiveDecoders()
  • Method Details

    • willDecode

      public boolean willDecode(String s)
      Description copied from interface: Decoder.Text
      Answer whether the given String can be decoded into an object of type T.
      Specified by:
      willDecode in interface Decoder.Text<T>
      Parameters:
      s - the string being tested for decodability.
      Returns:
      whether this decoder can decoded the supplied string.