Class TransformationFunctions


  • public final class TransformationFunctions
    extends java.lang.Object
    Author:
    krab
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <K,​V>
      com.google.common.base.Function<java.util.Map.Entry<K,​V>,​Pair<K,​V>>
      entryToPair()  
      • Methods inherited from class java.lang.Object

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

      • entryToPair

        public static <K,​V> com.google.common.base.Function<java.util.Map.Entry<K,​V>,​Pair<K,​V>> entryToPair()
        Type Parameters:
        K - key type
        V - value tyoe
        Returns:
        Function which stores Map.Entry into Pair. Pair is immutable, whereas Entry doesn't provide any guarantee.