Class IsAssignableUtils

java.lang.Object
io.activej.types.IsAssignableUtils

public class IsAssignableUtils extends Object
Various utility methods for type inference
  • Constructor Details

    • IsAssignableUtils

      public IsAssignableUtils()
  • Method Details

    • isAssignable

      public static boolean isAssignable(Type to, Type from)
      Tests whether a from type is assignable to to type
      Parameters:
      to - a 'to' type that should be checked for possible assignment
      from - a 'from' type that should be checked for possible assignment
      Returns:
      whether an object of type from is assignable to an object of type to