Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static boolean | Returns: true if either c1 is assignable from c2 or c2 is assignable from c1.one type c1, final Class<?> another type c2)Returns true if either of the types is assignable from the other. |
public static boolean | Returns: true if it is safe to strongly reference the class from referred in referred.the referrer class loader. referrerLoader, final ClassLoader the referred class loader referredLoader)Return true if it is safe to strongly reference a class from the referred class loader from a class associated with the referring class loader without risking a class loader memory leak. |
private static void | |
private static Set | |
public static Class | Returns: their most common superclass or superinterface for purposes of lossless conversions. If they have several unrelated superinterfaces as their most specific common type, or the types themselves are completely unrelated interfaces,java. is returned.one type c1, final Class<?> another type c2)Given two types represented by c1 and c2, returns a type that is their most specific common supertype for purposes of lossless conversions. |
private static Class |
InternalTypeUtilities | back to summary |
---|---|
private InternalTypeUtilities() |
areAssignable | back to summary |
---|---|
public static boolean areAssignable(final Class<?> c1, final Class<?> c2) Returns true if either of the types is assignable from the other. |
canReferenceDirectly | back to summary |
---|---|
public static boolean canReferenceDirectly(final ClassLoader referrerLoader, final ClassLoader referredLoader) Return true if it is safe to strongly reference a class from the referred
class loader from a class associated with the referring class loader
without risking a class loader memory leak. Generally, it is only safe
to reference classes from the same or ancestor class loader.
|
collectAssignables | back to summary |
---|---|
private static void collectAssignables(final Class<?> c1, final Class<?> c2, final Set<Class<?>> s) |
getAssignables | back to summary |
---|---|
private static Set |
getCommonLosslessConversionType | back to summary |
---|---|
public static Class Given two types represented by c1 and c2, returns a type that is their most specific common supertype for purposes of lossless conversions.
|
getMostSpecificCommonTypeUnequalNonprimitives | back to summary |
---|---|
private static Class |