Also: SpringCore
public interface

Converter

org.springframework.core.convert.converter.Converter<S, T>
Known Indirect Subclasses

Class Overview

A converter converts a source object of type S to a target of type T. Implementations of this interface are thread-safe and can be shared.

Summary

Public Methods
abstract T convert(S source)
Convert the source of type S to target type T.

Public Methods

public abstract T convert (S source)

Also: SpringCore

Convert the source of type S to target type T.

Parameters
source the source object to convert, which must be an instance of S
Returns
  • the converted object, which must be an instance of T
Throws
IllegalArgumentException if the source could not be converted to the desired target type