Interface EncodingFunction<T>

  • All Superinterfaces:
    Function<T,​T>, InjectiveFunction<T,​T>, UnaryOperator<T>
    All Known Implementing Classes:
    EncoderEntryMapper, EncoderKeyMapper, EncoderValueMapper

    public interface EncodingFunction<T>
    extends UnaryOperator<T>, InjectiveFunction<T,​T>
    This is a marker interface to signal that this function may perform an encoding of the provided value. The returned value therefore will always be equivalent to the provided value, but may be in a slightly different form (whether due to unwrapping, encoding or transcoding. This may allow certain optimizations knowing that the value is equivalent to what it was before.
    Since:
    10.1
    Author:
    wburns