Class GenericArrayTypeImpl

  • All Implemented Interfaces:
    java.lang.reflect.GenericArrayType, java.lang.reflect.Type

    public class GenericArrayTypeImpl
    extends java.lang.Object
    implements java.lang.reflect.GenericArrayType
    An implementation of GenericArrayType for those times we need to create this on the fly
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Type genericComponentType  
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericArrayTypeImpl​(java.lang.reflect.Type gct)
      Creates the GenericArrayType with the given array type
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.reflect.Type getGenericComponentType()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.reflect.Type

        getTypeName
    • Field Detail

      • genericComponentType

        private final java.lang.reflect.Type genericComponentType
    • Constructor Detail

      • GenericArrayTypeImpl

        public GenericArrayTypeImpl​(java.lang.reflect.Type gct)
        Creates the GenericArrayType with the given array type
        Parameters:
        gct - the non-null type for this GenericArrayType
    • Method Detail

      • getGenericComponentType

        public java.lang.reflect.Type getGenericComponentType()
        Specified by:
        getGenericComponentType in interface java.lang.reflect.GenericArrayType
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object