Class KeyValue<A,​B>


  • public final class KeyValue<A,​B>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private A key  
      private B value  
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyValue​(A key, B value)  
    • Field Detail

      • key

        private final A key
      • value

        private final B value
    • Constructor Detail

      • KeyValue

        public KeyValue​(A key,
                        B value)
    • Method Detail

      • with

        public static <A,​B> KeyValue<A,​B> with​(A key,
                                                           B value)
      • getKey

        public A getKey()
      • getValue

        public B getValue()