Class GenericArrayTypeImpl

java.lang.Object
libcore.reflect.GenericArrayTypeImpl
All Implemented Interfaces:
GenericArrayType, Type

public final class GenericArrayTypeImpl
extends Object
implements GenericArrayType
  • Constructor Details

    • GenericArrayTypeImpl

      public GenericArrayTypeImpl​(Type componentType)
  • Method Details

    • getGenericComponentType

      public Type getGenericComponentType()
      Description copied from interface: GenericArrayType
      Returns the component type of this array.
      Specified by:
      getGenericComponentType in interface GenericArrayType
      Returns:
      the component type of this array
    • toString

      public String toString()
      Description copied from class: Object
      Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
         getClass().getName() + '@' + Integer.toHexString(hashCode())

      See Writing a useful toString method if you intend implementing your own toString method.

      Overrides:
      toString in class Object
      Returns:
      a printable representation of this object.