public final class TypeHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Type |
findCommonSupertype(Collection<? extends Type> types)
Returns the most specific common supertype of given types.
|
static Type |
findCommonSupertype(Type... types)
Returns the most specific common supertype of given types.
|
static Type |
findCommonSupertypeForRuntimeObjects(Collection<?> objects)
Returns the most specific common supertype of types of given objects.
|
static boolean |
isUnrelated(Type type1,
Type type2) |
static Type |
typeForRuntimeObject(Object object)
Returns type for corresponding java object.
|
public static Type typeForRuntimeObject(Object object)
object
- public static Type findCommonSupertype(Type... types)
types
- collection of typesType.findCommonSupertype(Type)
public static Type findCommonSupertype(Collection<? extends Type> types)
types
- collection of typesType.findCommonSupertype(Type)
public static Type findCommonSupertypeForRuntimeObjects(Collection<?> objects)
objects
- Type.findCommonSupertype(Type)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.