public abstract class

TypeUtils

extends Object
java.lang.Object
   ↳ org.springframework.util.TypeUtils

Class Overview

Utility to work with Java 5 generic type parameters. Mainly for internal use within the framework.

Summary

Public Constructors
TypeUtils()
Public Methods
static boolean isAssignable(Type lhsType, Type rhsType)
Check if the right-hand side type may be assigned to the left-hand side type following the Java generics rules.
static boolean isAssignableBound(Type lhsType, Type rhsType)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TypeUtils ()

Also: SpringCore

Public Methods

public static boolean isAssignable (Type lhsType, Type rhsType)

Also: SpringCore

Check if the right-hand side type may be assigned to the left-hand side type following the Java generics rules.

Parameters
lhsType the target type
rhsType the value type that should be assigned to the target type
Returns
  • true if rhs is assignable to lhs

public static boolean isAssignableBound (Type lhsType, Type rhsType)

Also: SpringCore