ma.glasnost.orika.metadata
Class TypeBuilder<T>

java.lang.Object
  extended by ma.glasnost.orika.metadata.TypeBuilder<T>
Type Parameters:
T -

public abstract class TypeBuilder<T>
extends Object

TypeBuilder is a class used to create a fully populated Type instance based on it's generic declaration.

For example, to create a Type<A,<B,C>>, one would use the following:

 new TypeBuilder<A,<B,C>>(){}.build();
 

Author:
matt.deboer@gmail.com

Constructor Summary
TypeBuilder()
          Constructs a new TypeBuilder instance
TypeBuilder(Type<?>... types)
          Construct a new TypeBuilder instance, filling the actual type arguments from the provided types.
 
Method Summary
 Type<T> build()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeBuilder

public TypeBuilder()
Constructs a new TypeBuilder instance


TypeBuilder

public TypeBuilder(Type<?>... types)
Construct a new TypeBuilder instance, filling the actual type arguments from the provided types.

Parameters:
types -
Method Detail

build

public final Type<T> build()
Returns:
the Type instance built by this builder


Copyright © 2013 Glasnost. All Rights Reserved.