Пример #1
0
 /**
  * Begin a new mapping for the specified class and type.
  *
  * @param aType
  * @param bType
  * @return a new ClassMapBuilder instance for the specified types
  */
 public <A, B> ClassMapBuilder<A, B> map(Class<A> aType, Type<B> bType) {
   return getNewClassMapBuilder(TypeFactory.<A>valueOf(aType), bType);
 }
Пример #2
0
 /**
  * Begin a new mapping for the specified type and class.
  *
  * @param aType
  * @param bType
  * @return a new ClassMapBuilder instance for the specified types
  */
 public <A, B> ClassMapBuilder<A, B> map(Type<A> aType, Class<B> bType) {
   return getNewClassMapBuilder(aType, TypeFactory.<B>valueOf(bType));
 }