Class LazyValuePair<K,V>

java.lang.Object
org.apache.commons.lang3.tuple.Pair<K,V>
codechicken.lib.util.LazyValuePair<K,V>
All Implemented Interfaces:
Serializable, Comparable<org.apache.commons.lang3.tuple.Pair<K,V>>, Map.Entry<K,V>

public class LazyValuePair<K,V> extends org.apache.commons.lang3.tuple.Pair<K,V>
Created by covers1624 on 5/1/20.
See Also:
  • Field Summary

    Fields inherited from class org.apache.commons.lang3.tuple.Pair

    EMPTY_ARRAY
  • Constructor Summary

    Constructors
    Constructor
    Description
    LazyValuePair(K key, Function<K,V> func)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    static <K, V> LazyValuePair<K,V>
    of(K key, Function<K,V> func)
     
    setValue(V value)
     

    Methods inherited from class org.apache.commons.lang3.tuple.Pair

    compareTo, emptyArray, equals, getKey, getValue, hashCode, of, of, toString, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LazyValuePair

      public LazyValuePair(K key, Function<K,V> func)
  • Method Details

    • of

      public static <K, V> LazyValuePair<K,V> of(K key, Function<K,V> func)
    • getLeft

      public K getLeft()
      Specified by:
      getLeft in class org.apache.commons.lang3.tuple.Pair<K,V>
    • getRight

      public V getRight()
      Specified by:
      getRight in class org.apache.commons.lang3.tuple.Pair<K,V>
    • setValue

      public V setValue(V value)