Interface DecoderFunction<T,R>

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 DecoderFunction<T,R>
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(T value)
     
    default R
    decodeElse(T value, R defaultResult)
     
  • Method Details

    • decode

      R decode(T value) throws io.activej.common.exception.MalformedDataException
      Throws:
      io.activej.common.exception.MalformedDataException
    • decodeElse

      default R decodeElse(@Nullable T value, R defaultResult)