Class ObjectToOptionalConverter

  • All Implemented Interfaces:
    Converter<java.lang.Object,​java.util.Optional>, Prioritized, java.lang.Comparable<Prioritized>

    public class ObjectToOptionalConverter
    extends java.lang.Object
    implements Converter<java.lang.Object,​java.util.Optional>
    The class to convert Object to Optional
    Since:
    1.0.0
    • Constructor Detail

      • ObjectToOptionalConverter

        public ObjectToOptionalConverter()
    • Method Detail

      • convert

        public java.util.Optional convert​(java.lang.Object source)
        Description copied from interface: Converter
        Convert the source-typed value to the target-typed value
        Specified by:
        convert in interface Converter<java.lang.Object,​java.util.Optional>
        Parameters:
        source - the source-typed value
        Returns:
        the target-typed value