Class IdentityConverter<Type>

java.lang.Object
com.saperion.common.lang.conversion.IdentityConverter<Type>
All Implemented Interfaces:
Converter<Type,Type>

public class IdentityConverter<Type> extends Object implements Converter<Type,Type>
A simple implementation of Converter that converts an instance to itself.
Author:
jschwarz
  • Constructor Details

    • IdentityConverter

      public IdentityConverter()
  • Method Details

    • convert

      public Type convert(Type object)
      Description copied from interface: Converter
      Converts the specified object and returns the conversion result.

      Implementations have to accept null-values without throwing exceptions.

      Specified by:
      convert in interface Converter<Type,Type>
      Parameters:
      object - object to convert
      Returns:
      the converted object