Interface NullListConversionStrategy<T>

  • Type Parameters:
    T - The type of the list element that should be returned.
    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 NullListConversionStrategy<T>
    Strategy how to handle null values in lists to be converted.
    • Method Detail

      • apply

        List<T> apply()
        Applies the strategy and returns the list. The strategy might not always return a list, it could, for instance, throw an exception or simply return null.
        Returns:
        The, optionally null list.