/** * {@inheritDoc} */ @Override public String toString() { return TypeUtils.toString(this); }
/** * {@inheritDoc} */ public WildcardType build() { return new WildcardTypeImpl(upperBounds, lowerBounds); } }
/** * Get a {@link WildcardTypeBuilder}. * @return {@link WildcardTypeBuilder} */ public static WildcardTypeBuilder wildcardType() { return new WildcardTypeBuilder(); }
/** * Return the class for the given string, correctly handling * primitive types. If the given class loader is null, the context * loader of the current thread will be used. * * @throws RuntimeException on load error */ public static Class<?> toClass(String className, ClassLoader loader) throws ClassNotFoundException { return toClass(className, false, loader); }
public static Class<?> toClass(String className) throws ClassNotFoundException { ClassLoader cl = getClassLoader(Reflection.class); return toClass(className, cl); }
/** * <p>Checks if the subject type may be implicitly cast to the target type * following the Java generics rules. If both types are {@link Class} * objects, the method returns the result of * {@link Class#isAssignableFrom(Class)}.</p> * * @param type the subject type to be assigned to the target type * @param toType the target type * @return {@code true} if {@code type} is assignable to {@code toType}. */ public static boolean isAssignable(final Type type, final Type toType) { return isAssignable(type, toType, null); }
/** * Return the class for the given string, correctly handling * primitive types. If the given class loader is null, the context * loader of the current thread will be used. * * @throws RuntimeException on load error */ public static Class toClass(String className, ClassLoader loader) throws ClassNotFoundException { return toClass(className, false, loader); }
/** * {@inheritDoc} */ @Override public String toString() { return TypeUtils.toString(this); }
/** * {@inheritDoc} */ public WildcardType build() { return new WildcardTypeImpl(upperBounds, lowerBounds); } }
/** * Get a {@link WildcardTypeBuilder}. * @return {@link WildcardTypeBuilder} */ public static WildcardTypeBuilder wildcardType() { return new WildcardTypeBuilder(); }
/** * <p>Checks if the subject type may be implicitly cast to the target type * following the Java generics rules. If both types are {@link Class} * objects, the method returns the result of * {@link Class#isAssignableFrom(Class)}.</p> * * @param type the subject type to be assigned to the target type * @param toType the target type * @return {@code true} if {@code type} is assignable to {@code toType}. */ public static boolean isAssignable(final Type type, final Type toType) { return isAssignable(type, toType, null); }
@Override public boolean getAsBoolean() { try { return Reflection.toClass("javafx.beans.Observable") != null; } catch (ClassNotFoundException e) { return false; } } }
/** * {@inheritDoc} */ @Override public String toString() { return TypeUtils.toString(this); }
/** * {@inheritDoc} */ public WildcardType build() { return new WildcardTypeImpl(upperBounds, lowerBounds); } }
/** * Get a {@link WildcardTypeBuilder}. * @return {@link WildcardTypeBuilder} */ public static WildcardTypeBuilder wildcardType() { return new WildcardTypeBuilder(); }
/** * Return the class for the given string, correctly handling * primitive types. If the given class loader is null, the context * loader of the current thread will be used. * * @throws RuntimeException on load error */ public static Class<?> toClass(String className, ClassLoader loader) throws ClassNotFoundException { return toClass(className, false, loader); }
/** * {@inheritDoc} */ @Override public String toString() { return TypeUtils.toString(this); }
@Override public boolean getAsBoolean() { try { return Reflection.toClass("javafx.beans.Observable") != null; } catch (ClassNotFoundException e) { return false; } } }
/** * {@inheritDoc} */ @Override public String toString() { return TypeUtils.toString(this); }
/** * {@inheritDoc} */ @Override public String toString() { return TypeUtils.toString(this); }