org.javaruntype.type
Class ExtendsTypeParameter<T>

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

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

Represents a type parameter which contains an "extends" clause.

For example, the type List<? extends Set<String[]>>, would have an ExtendsTypeParameter containing the ? extends 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.