Interface GetAndApply<I,​O,​T,​E extends java.lang.Exception>

  • Type Parameters:
    I - The input object type
    O - The property type.
    T - The type after applying the mapping function.
    E - The exception type that maybe thrown by the property path.
    All Superinterfaces:
    Get<I,​T,​E>
    All Known Implementing Classes:
    GetAndApplyImpl

    public interface GetAndApply<I,​O,​T,​E extends java.lang.Exception>
    extends Get<I,​T,​E>
    A get access object that applies a mapping function if the getter has a non-null return value.
    • Method Detail

      • toJdk8

        GetWithoutException<I,​T> toJdk8()
        Returns:
        Returns a get access object without the support for generic exceptions. This was introduced to provide a workaround for JDK 8, where a bug led to incorrect exception type inference.