Class ConvertsNothing

  • All Implemented Interfaces:
    Converters

    public class ConvertsNothing
    extends java.lang.Object
    implements Converters
    Null-object implementation of Converters
    • Constructor Summary

      Constructors 
      Constructor Description
      ConvertsNothing()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canConvert​(java.lang.reflect.Type type)
      Returns true if a converters is available to convert to the given object type
      java.lang.Object convert​(java.lang.String paramValue, java.lang.reflect.Type type)
      Converts a particular string value into the target type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConvertsNothing

        public ConvertsNothing()
    • Method Detail

      • canConvert

        public boolean canConvert​(java.lang.reflect.Type type)
        Description copied from interface: Converters
        Returns true if a converters is available to convert to the given object type
        Specified by:
        canConvert in interface Converters
        Parameters:
        type - the object Type to convert to
        Returns:
        true if the type can be converted to
      • convert

        public java.lang.Object convert​(java.lang.String paramValue,
                                        java.lang.reflect.Type type)
        Description copied from interface: Converters
        Converts a particular string value into the target type
        Specified by:
        convert in interface Converters
        Parameters:
        paramValue - the String value to convert
        type - the object Type to convert to
        Returns:
        The converted Object instance