org.glassfish.tyrus
Class PrimitiveDecoders<T>
java.lang.Object
org.glassfish.tyrus.PrimitiveDecoders<T>
- All Implemented Interfaces:
- Decoder, Decoder.Text<T>
public abstract class PrimitiveDecoders<T>
- extends Object
- implements Decoder.Text<T>
Collection of decoders for all primitive types.
- Author:
- Martin Matula (martin.matula at oracle.com), Danny Coward (danny.coward at oracle.com)
|
Method Summary |
boolean |
willDecode(String s)
Answer whether the given String can be decoded into an object of type T. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL
public static final List<Decoder.Text<?>> ALL
PrimitiveDecoders
public PrimitiveDecoders()
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.
Copyright © 2012. All Rights Reserved.