aicas logo Jamaica 3.4 release 8

sun.reflect.generics.reflectiveObjects
Class GenericArrayTypeImpl

java.lang.Object
  extended by sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl
All Implemented Interfaces:
GenericArrayType, Type

public class GenericArrayTypeImpl
extends Object
implements GenericArrayType

Implementation of GenericArrayType interface for core reflection.


Method Summary
 boolean equals(Object o)
          equals compares this object to another object.
 Type getGenericComponentType()
          Returns a Type object representing the component type of this array.
 int hashCode()
          hashCode returns a hash code for this object.
static GenericArrayTypeImpl make(Type ct)
          Factory method.
 String toString()
          toString creates a printable string that represents this object for debugging purposes.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

make

public static GenericArrayTypeImpl make(Type ct)
Factory method.

Parameters:
ct - - the desired component type of the generic array type being created
Returns:
a generic array type with the desired component type

getGenericComponentType

public Type getGenericComponentType()
Returns a Type object representing the component type of this array.

Specified by:
getGenericComponentType in interface GenericArrayType
Returns:
a Type object representing the component type of this array
Since:
1.5

toString

public String toString()
Description copied from class: Object
toString creates a printable string that represents this object for debugging purposes.

The default implementation returns getClass().getName() + '@' + Integer.toHexString(hashCode()).

Overrides:
toString in class Object
Returns:
a string identifying this object.

equals

public boolean equals(Object o)
Description copied from class: Object
equals compares this object to another object.

Equals must be symmetric (a.equals(b) == b.equals(a)), reflexive (a.equals(a)==true) and transitive (a.equals(b) && b.equals(c) IMPLIES (a.equals(c))) and not change over time (a.equals(b) == a.equals(b)). a.equals(null) should always return false.

If a.equals(b) is true for two objects a and b, then a.hashCode()==b.hashCode() must hold.

The default implementation of equals returns this==other.

Overrides:
equals in class Object
Parameters:
o - the other object.
Returns:
if this and other are considered equal.

hashCode

public int hashCode()
Description copied from class: Object
hashCode returns a hash code for this object. The hash code must be equal for two objects a and b if a.equals(b) is true.

The default implementation returns System.identityHashCode(this).

Overrides:
hashCode in class Object
Returns:
a hash code value.

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.