org.jboss.lang.reflect
Class WildcardTypeImpl

java.lang.Object
  extended by org.jboss.lang.reflect.WildcardTypeImpl
All Implemented Interfaces:
WildcardType

public class WildcardTypeImpl
extends Object
implements WildcardType

Version:
$Revision: 1.1 $
Author:
Paul Gier

Constructor Summary
WildcardTypeImpl(Object bound, char kind)
          Create a new wildcard type
 
Method Summary
 boolean equals(Object obj)
           
 Object[] getLowerBounds()
           
 Object[] getUpperBounds()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WildcardTypeImpl

public WildcardTypeImpl(Object bound,
                        char kind)
Create a new wildcard type

Parameters:
bound - - The upper or lower bound depending on the kind
kind - - Kind can be either '*' (wildcard), '+' (upper-bound), or '-' (lower-bound)
Method Detail

getLowerBounds

public Object[] getLowerBounds()
Specified by:
getLowerBounds in interface WildcardType

getUpperBounds

public Object[] getUpperBounds()
Specified by:
getUpperBounds in interface WildcardType

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 © 2005-2007 JBoss, a division of Red Hat, Inc. All Rights Reserved.