Package io.microsphere.convert
Class StringToOptionalConverter
- java.lang.Object
-
- io.microsphere.convert.StringToOptionalConverter
-
- All Implemented Interfaces:
Converter<java.lang.String,java.util.Optional>,StringConverter<java.util.Optional>,Prioritized,java.lang.Comparable<Prioritized>
public class StringToOptionalConverter extends java.lang.Object implements StringConverter<java.util.Optional>
The class to convertStringtoOptional- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from interface io.microsphere.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description StringToOptionalConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optionalconvert(java.lang.String source)Convert the source-typed value to the target-typed valueintgetPriority()Get the priority-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.microsphere.convert.Converter
accept, getSourceType, getTargetType
-
Methods inherited from interface io.microsphere.lang.Prioritized
compareTo
-
-
-
-
Method Detail
-
convert
public java.util.Optional convert(java.lang.String source)
Description copied from interface:ConverterConvert the source-typed value to the target-typed value
-
getPriority
public int getPriority()
Description copied from interface:PrioritizedGet the priority- Specified by:
getPriorityin interfacePrioritized- Returns:
- the default is
minimum one
-
-