|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl
public class GenericArrayTypeImpl
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 |
|---|
public static GenericArrayTypeImpl make(Type ct)
ct - - the desired component type of the generic array type
being created
public Type getGenericComponentType()
getGenericComponentType in interface GenericArrayTypepublic String toString()
ObjectThe default implementation returns getClass().getName() + '@' + Integer.toHexString(hashCode()).
toString in class Objectpublic boolean equals(Object o)
ObjectEquals 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.
equals in class Objecto - the other object.
public int hashCode()
ObjectThe default implementation returns System.identityHashCode(this).
hashCode in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||