Class RetrofitType


  • public class RetrofitType
    extends Object
    Simple class used to simplify type management in Retrofit converter factory.
    • Constructor Detail

      • RetrofitType

        public RetrofitType​(Type type)
        Instantiates a new Retrofit type.
        Parameters:
        type - the type
    • Method Detail

      • isJSONAPIDocumentType

        public boolean isJSONAPIDocumentType()
        Returns true if type used to instantiate this object was wrapped with JSONAPIDocument.
        Returns:
        Boolean
      • getType

        public Class<?> getType()
        Gets type.
        Returns:
        the type
      • isCollection

        public boolean isCollection()
        Is collection boolean.
        Returns:
        true if type was ParameterizedType else false
      • isValid

        public boolean isValid()
        Is valid boolean.
        Returns:
        true if type is valid, else false