|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.Types
Constants and utilities not related to a specific package class.
Method Summary | |
static boolean |
areAllInstanceOf(java.util.Collection targets,
java.lang.Class type)
Returns true if all target object types are the same or a subtype of (assignable to) a type. |
static boolean |
areAnyAssignableTo(java.util.Collection targets,
java.lang.Class type)
Returns true if any one target type is the same or a subtype of (assignable to) a type. |
static boolean |
areAnyAssignableToAny(java.util.Collection targets,
java.util.Collection types)
Returns true if any one target type is the same or a subtype of (assignable to) any one type. |
static boolean |
areAnyInstanceOf(java.util.Collection targets,
java.lang.Class types)
Returns true if any one target object's type is the same or a subtype of (assignable to) a type. |
static boolean |
areAnyInstanceOfAny(java.util.Collection targets,
java.util.Collection types)
Returns true if any one target object's type is the same or a subtype of (assignable to) any one type. |
static java.util.Collection |
excludeAssignableTypes(java.util.Collection targets,
java.util.Collection types,
java.util.Collection retVal)
Returns only those target objects whose type is NOT assignable to (an instance of) any one of the excluded types. |
static java.util.Collection |
excludeExactTypes(java.util.Collection targets,
java.util.Collection types,
java.util.Collection retVal)
Returns only those target objects whose type is NOT exactly one of the excluded types. |
static java.util.Collection |
includeAssignableTypes(java.util.Collection targets,
java.util.Collection types,
java.util.Collection retVal)
Returns only those target objects whose type is assignable to (an instance of) any one of the included types. |
static java.util.Collection |
includeExactTypes(java.util.Collection targets,
java.util.Collection types,
java.util.Collection retVal)
Returns only those target objects whose type is exactly one of the included types. |
static boolean |
isAssignableTo(java.lang.Class target,
java.lang.Class type)
Returns true if a target type is the same or a subtype of (assignable to) a type. |
static boolean |
isAssignableToAny(java.lang.Class target,
java.util.Collection types)
Returns true if a target type is the same or a subtype of (assignable to) any one type. |
static boolean |
isInstanceOf(java.lang.Object target,
java.lang.Class type)
Returns true if a target object's type is the same or a subtype of (assignable to) a type. |
static boolean |
isInstanceOfAny(java.lang.Object target,
java.util.Collection types)
Returns true if a target object's type is the same or a subtype of (assignable to) any one type. |
static boolean |
isTypeExactlyAny(java.lang.Class target,
java.util.Collection types)
Returns true if a target type is exactly any one in a group of types. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean isTypeExactlyAny(java.lang.Class target, java.util.Collection types)
target
- Target type. Never null.types
- Group of types (Class). If empty, returns false.
Never null.
public static boolean isAssignableTo(java.lang.Class target, java.lang.Class type)
target
- Target type. Never null.type
- The type. Never null.
public static boolean isAssignableToAny(java.lang.Class target, java.util.Collection types)
target
- Target type. Never null.types
- The types (Class). Never null. If empty
returns false.
public static boolean areAnyAssignableTo(java.util.Collection targets, java.lang.Class type)
targets
- Target types (Class). Never null. If empty
returns false.type
- The type. Never null.
public static boolean areAnyAssignableToAny(java.util.Collection targets, java.util.Collection types)
targets
- Target types (Class). Never null. If empty
returns false.types
- The types (Class). Never null. If empty
returns false.
public static boolean isInstanceOf(java.lang.Object target, java.lang.Class type)
target
- Target object. Never null.type
- The type. Never null.
public static boolean isInstanceOfAny(java.lang.Object target, java.util.Collection types)
target
- Target object. Never null.types
- The types (Class). Never null. If empty
returns false.
public static boolean areAnyInstanceOf(java.util.Collection targets, java.lang.Class types)
targets
- Target objects (Object). Never null. If empty
returns false.
public static boolean areAllInstanceOf(java.util.Collection targets, java.lang.Class type)
targets
- Target objects (Object). Never null. If empty
returns false.type
- The type. Never null.
public static boolean areAnyInstanceOfAny(java.util.Collection targets, java.util.Collection types)
targets
- Target objects (Object). Never null. If empty
returns false.types
- The types (Class). Never null. If empty
returns false.
public static java.util.Collection includeExactTypes(java.util.Collection targets, java.util.Collection types, java.util.Collection retVal)
targets
- Group of target objects (Object). If empty,
returns empty. Never null.types
- Group of included types (Class). If empty,
returns empty. If null, all types are included (all targets
are returned).retVal
- Return value object. The collection of valid target
objects (Object). Can be targets. Never null.
public static java.util.Collection excludeExactTypes(java.util.Collection targets, java.util.Collection types, java.util.Collection retVal)
targets
- Group of target objects (Object). If empty,
returns empty. Never null.types
- Group of excluded types (Class). If empty,
returns empty. If null, no types are excluded (all targets
are returned).retVal
- Return value object. The collection of valid target
objects (Object). Can be targets. Never null.
public static java.util.Collection includeAssignableTypes(java.util.Collection targets, java.util.Collection types, java.util.Collection retVal)
targets
- Group of target objects (Object). If empty,
returns empty. Never null.types
- Group of same/super types (Class) to include. If empty,
returns empty. If null, all types are included (all targets
are returned).retVal
- Return value object. The collection of valid target
objects (Object). Can be targets. Never null.
public static java.util.Collection excludeAssignableTypes(java.util.Collection targets, java.util.Collection types, java.util.Collection retVal)
targets
- Group of target objects (Object). If empty,
returns empty. Never null.types
- Group of same/super types (Class) to exclude. If empty,
returns empty. If null, no types are excluded (all targets
are returned).retVal
- Return value object. The collection of valid target
objects (Object). Never null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |