org.apache.commons.betwixt.strategy
Class TypeBindingStrategy.Default
java.lang.Object
org.apache.commons.betwixt.strategy.TypeBindingStrategy
org.apache.commons.betwixt.strategy.TypeBindingStrategy.Default
- Enclosing class:
- TypeBindingStrategy
- public static final class TypeBindingStrategy.Default
- extends TypeBindingStrategy
The default TypeBindingStrategy
used by Betwixt.
This implementation recognizes all the usual Java primitive wrappers
(plus a few more that will in most typical use cases be regarded in the same way).
- Author:
- Jakarta Commons Team, Apache Software Foundation
Field Summary |
private static java.lang.Class[] |
INHERITED_COMPLEX
Classes who are complex and whose subclasses are also complex |
private static java.lang.Class[] |
INHERITED_SIMPLE
Class who are simple and whose subclass are also simple |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INHERITED_SIMPLE
private static final java.lang.Class[] INHERITED_SIMPLE
- Class who are simple and whose subclass are also simple
INHERITED_COMPLEX
private static final java.lang.Class[] INHERITED_COMPLEX
- Classes who are complex and whose subclasses are also complex
TypeBindingStrategy.Default
public TypeBindingStrategy.Default()
bindingType
public TypeBindingStrategy.BindingType bindingType(java.lang.Class type)
- Gets the binding type to be used for the given Java type.
This implementation recognizes all the usual Java primitive wrappers
(plus a few more that will in most typical use cases be regarded in the same way).
- Specified by:
bindingType
in class TypeBindingStrategy
- Parameters:
type
- Class
for which the binding type is to be determined,
not null
- Returns:
BindingType
enumeration indicating the type of binding,
not null
isStandardPrimitive
protected boolean isStandardPrimitive(java.lang.Class type)
- is the given type one of the standard Betwixt primitives?
- Parameters:
type
- Class
, not null
- Returns:
- true if the type is one of the standard Betwixt primitives