org.javaruntype.typedef
Class InnerWildcardTypeDefVariable

Object
  extended by org.javaruntype.typedef.InnerWildcardTypeDefVariable
All Implemented Interfaces:
Serializable, InnerTypeDefVariable

public final class InnerWildcardTypeDefVariable
extends Object
implements InnerTypeDefVariable

Represents an inner type definition variable containing a wildcard or bounded wildcard type.

For example: X extends List<? extends Integer>.

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

Method Summary
 boolean equals(Object obj)
           
 InnerTypeDefVariable getLowerBound()
           Returns the variable upper bound (defined with an extends clause), if any.
 InnerTypeDefVariable getUpperBound()
           Returns the variable upper bound (defined with an extends clause), if any.
 int hashCode()
           
 boolean hasLowerBound()
           Returns whether the variable establishes a lower bound (with a super clause).
 boolean hasUpperBound()
           Returns whether the variable establishes an upper bound (with an extends clause).
 boolean isUnbound()
           Returns true only if there is neither an upper nor a lower bound, false otherwise.
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

hasUpperBound

public boolean hasUpperBound()

Returns whether the variable establishes an upper bound (with an extends clause).

Returns:
whether the variable establishes an upper bound

getUpperBound

public InnerTypeDefVariable getUpperBound()

Returns the variable upper bound (defined with an extends clause), if any.

Returns:
the upper bound

hasLowerBound

public boolean hasLowerBound()

Returns whether the variable establishes a lower bound (with a super clause).

Returns:
whether the variable establishes a lower bound

getLowerBound

public InnerTypeDefVariable getLowerBound()

Returns the variable upper bound (defined with an extends clause), if any.

Returns:
the upper bound

isUnbound

public boolean isUnbound()

Returns true only if there is neither an upper nor a lower bound, false otherwise.

Returns:
whether there are bounds

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.