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