public final class GenericContext<T> extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
NBSP
Use 'Non-Breaking SPace' character instead of ardinary 'space' character.
|
Constructor and Description |
---|
GenericContext(Format format) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureFormat(Format format,
Object object) |
T |
enforce(T object)
Will force the object to conform to the context's specification.
|
String |
format(Object object) |
F |
getFormat() |
protected String |
handleFormatException(Format format,
Object object) |
protected T |
handleParseException(Format format,
String string) |
<G> TypeContext<G> |
newFormat(F format) |
T |
parse(CharSequence string) |
public static final boolean NBSP
public GenericContext(Format format)
public T enforce(T object)
TypeContext
public final String format(Object object)
format
in interface TypeContext<T>
TypeContext.format(java.lang.Object)
public final F getFormat()
public final <G> TypeContext<G> newFormat(F format)
public final T parse(CharSequence string)
parse
in interface TypeContext<T>
TypeContext.parse(CharSequence)
Copyright © 2019 Optimatika. All rights reserved.