Interface NotNullMapper<T,​Q>

  • All Superinterfaces:
    Mapper<T,​Q>
    All Known Subinterfaces:
    NotNullBiMapper<T,​Q>

    public interface NotNullMapper<T,​Q>
    extends Mapper<T,​Q>
    This mapper extends Mapper added constraint that all keys are mapped. This also means no filtering is supported. Implementation of Decorating collections uses it to for performance optimizations
    Since:
    7.0
    Author:
    Eugene Petrenko (eugene.petrenko@gmail.com) Date: 14.09.11 12:00
    • Method Detail

      • mapKey

        @NotNull
        Q mapKey​(@NotNull
                 T internal)
        Specified by:
        mapKey in interface Mapper<T,​Q>
        Parameters:
        internal - object to convert
        Returns:
        mapped value or null to skip the value