Class IntegerConverter

  • All Implemented Interfaces:
    PropertyConverter<java.lang.Integer>

    public class IntegerConverter
    extends java.lang.Object
    implements PropertyConverter<java.lang.Integer>
    converts the property value to Integer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.lang.Integer convert​(java.lang.String name, @Nullable java.lang.Object value, java.lang.String location)
      converts the value of a property to a T object or null.
      • Methods inherited from class java.lang.Object

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

      • IntegerConverter

        public IntegerConverter()
    • Method Detail

      • convert

        public @Nullable java.lang.Integer convert​(java.lang.String name,
                                                   @Nullable java.lang.Object value,
                                                   java.lang.String location)
        Description copied from interface: PropertyConverter
        converts the value of a property to a T object or null. May throw if conversion fails, e.g. if the property is required but null.
        Specified by:
        convert in interface PropertyConverter<java.lang.Integer>
        Parameters:
        name - property name
        value - property value
        location - property location, json pointer
        Returns:
        T converted value