- java.lang.Object
-
- org.scijava.common3.Any
-
- All Implemented Interfaces:
Type
public final class Any extends Object implements Type
ThisTyperepresents a Type that can be assigned to any other Type. Note that this Type is different from a TypeVariable in that it is conceptually a concrete type, not a stand-in for a type.- Author:
- Gabriel Selzer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)This method returns true iff:objis anAnyobj.getUpperBoundsis equal tothis.getUpperBounds(disregarding the order of each array)obj.getLowerBoundsis equal tothis.getLowerBounds(disregarding the order of each array) This is a rather strict definition of equality, however it is necessary to preserve transitivity.Type[]getLowerBounds()Type[]getUpperBounds()inthashCode()static booleanis(Object o)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.Type
getTypeName
-
-
-
-
Method Detail
-
getUpperBounds
public Type[] getUpperBounds()
-
getLowerBounds
public Type[] getLowerBounds()
-
equals
public boolean equals(Object obj)
This method returns true iff:objis anAnyobj.getUpperBoundsis equal tothis.getUpperBounds(disregarding the order of each array)obj.getLowerBoundsis equal tothis.getLowerBounds(disregarding the order of each array)
-
is
public static boolean is(Object o)
-
-