Conversion

org.beangle.commons.conversion.Conversion

Convert a source to target type.

Attributes

Since:

3.2.0

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def convert[T](source: Any, targetType: Class[T]): T

Convert to target type.

Convert to target type.

  • convert null to null;

  • convert array to array ,when cannot find converter return targetType[0]

Attributes