Class MapTo


  • public class MapTo
    extends java.lang.Object
    This util class is a collection of handy mapping functions that can be used in conjunction with ApplyBuilder#apply(java.util.function.Function).
    • Constructor Summary

      Constructors 
      Constructor Description
      MapTo()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.function.Function<java.lang.String,​java.lang.String> nullIfEmpty()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapTo

        public MapTo()
    • Method Detail

      • nullIfEmpty

        public static java.util.function.Function<java.lang.String,​java.lang.String> nullIfEmpty()
        Returns:
        Returns a Function that can be used to transform a String into null if the string is empty. This can be used in conjunction with ApplyBuilder#apply(Function).