Class MapFunction<K,V>

java.lang.Object
org.evrete.util.MapFunction<K,V>
Type Parameters:
K - the type of keys
V - the type of values
All Implemented Interfaces:
Function<K,V>

public class MapFunction<K,V> extends Object implements Function<K,V>
A class that implements a Function interface using an internal map.
  • Constructor Details

    • MapFunction

      public MapFunction()
  • Method Details

    • putNew

      public void putNew(K key, V value)
    • apply

      public V apply(K k)
      Specified by:
      apply in interface Function<K,V>