org.javaruntype.type
Class StandardTypeParameter<T>

Object
  extended by org.javaruntype.type.TypeParameter<T>
      extended by org.javaruntype.type.StandardTypeParameter<T>
All Implemented Interfaces:
Serializable

public final class StandardTypeParameter<T>
extends TypeParameter<T>

This class represents a type parameter which only contains a Type.

For example, the type List<Set<String[]>> would have a StandardTypeParameter containing the Set<String[]> parameter.

Since:
1.0
Author:
Daniel Fernández
See Also:
Serialized Form

Method Summary
 boolean equals(Object obj)
           
 Type<T> getType()
           Returns the type contained in the parameter.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getType

public Type<T> getType()
Description copied from class: TypeParameter

Returns the type contained in the parameter. It will raise an exception for wildcard type parameters (?).

Specified by:
getType in class TypeParameter<T>
Returns:
the type contained in the parameter.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 The JAVARUNTYPE team. All Rights Reserved.