Class TypeReferenceFactory


  • public class TypeReferenceFactory
    extends java.lang.Object
    Author:
    MichaƂ Szpruta
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends APIEntity>
      com.fasterxml.jackson.core.type.TypeReference<APIList<T>>
      getListTypeRef​(java.lang.Class<T> clazz)  
      static com.fasterxml.jackson.core.type.TypeReference<java.util.Map<java.lang.String,​java.lang.String>> getMapTypeReference()  
      static <T extends APIEntity>
      com.fasterxml.jackson.core.type.TypeReference<APISimpleList<T>>
      getSimpleListTypeRef​(java.lang.Class<T> clazz)  
      static <T> com.fasterxml.jackson.core.type.TypeReference<T> getTypeRef​(java.lang.Class<T> clazz)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TypeReferenceFactory

        public TypeReferenceFactory()
    • Method Detail

      • getTypeRef

        public static <T> com.fasterxml.jackson.core.type.TypeReference<T> getTypeRef​(java.lang.Class<T> clazz)
      • getListTypeRef

        public static <T extends APIEntity> com.fasterxml.jackson.core.type.TypeReference<APIList<T>> getListTypeRef​(java.lang.Class<T> clazz)
      • getSimpleListTypeRef

        public static <T extends APIEntity> com.fasterxml.jackson.core.type.TypeReference<APISimpleList<T>> getSimpleListTypeRef​(java.lang.Class<T> clazz)
      • getMapTypeReference

        public static com.fasterxml.jackson.core.type.TypeReference<java.util.Map<java.lang.String,​java.lang.String>> getMapTypeReference()