Package io.activej.types
Class IsAssignableUtils
java.lang.Object
io.activej.types.IsAssignableUtils
Various utility methods for type inference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAssignable(Type to, Type from) Tests whether afromtype is assignable tototype
-
Constructor Details
-
IsAssignableUtils
public IsAssignableUtils()
-
-
Method Details
-
isAssignable
Tests whether afromtype is assignable tototype- Parameters:
to- a 'to' type that should be checked for possible assignmentfrom- a 'from' type that should be checked for possible assignment- Returns:
- whether an object of type
fromis assignable to an object of typeto
-