public static final class

TypeBindingStrategy.Default

extends TypeBindingStrategy
java.lang.Object
   ↳ org.apache.commons.betwixt.strategy.TypeBindingStrategy
     ↳ org.apache.commons.betwixt.strategy.TypeBindingStrategy.Default

Class Overview

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).

Summary

[Expand]
Inherited Fields
From class org.apache.commons.betwixt.strategy.TypeBindingStrategy
Public Constructors
TypeBindingStrategy.Default()
Public Methods
TypeBindingStrategy.BindingType bindingType(Class type)
Gets the binding type to be used for the given Java type.
Protected Methods
boolean isStandardPrimitive(Class type)
is the given type one of the standard Betwixt primitives?
[Expand]
Inherited Methods
From class org.apache.commons.betwixt.strategy.TypeBindingStrategy
From class java.lang.Object

Public Constructors

public TypeBindingStrategy.Default ()

Public Methods

public TypeBindingStrategy.BindingType bindingType (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).

Parameters
type Class for which the binding type is to be determined, not null
Returns
  • BindingType enumeration indicating the type of binding, not null

Protected Methods

protected boolean isStandardPrimitive (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