- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TypeConverter
Implementations of this interface define a certain type conversion. Conversion can happen from any kind of
Comparabletype to another.
Implementations of TypeConverter need to be fully thread-safe and must have no internal state as they are expected to be used by multiple threads and with shared instances.
Modifier and Type Method Description
convert(Comparable value)Compares a
Comparable-typed value to another.
convertComparable convert(Comparable value)Compares a
Comparable-typed value to another. Since TypeConverters are not statically typed themselves, the developer needs to take care of correct usage of input and output types.
value- the value to be converted
- the converted value