org.inxar.syntacs.util
Interface IntFunction

All Known Implementing Classes:
HashIntFunction, ArrayIntFunction

public interface IntFunction

IntFunction is an abstraction over some entity which maps integer keys to integer values.


Method Summary
 int get(int key)
          Returns the value mapped to the given key.
 IntSet keys()
          Returns an IntSet view of the keys.
 void put(int key, int value)
          Sets the given value to the given key.
 

Method Detail

keys

public IntSet keys()
Returns an IntSet view of the keys.

get

public int get(int key)
Returns the value mapped to the given key.

put

public void put(int key,
                int value)
Sets the given value to the given key.