org.hypergraphdb.util
Interface Mapping<From,To>

All Known Implementing Classes:
CompositeMapping, DerefMapping, LinkProjectionMapping

public interface Mapping<From,To>

An interface specifying a single argument function.


Method Summary
 To eval(From x)
          Map the parameter x and produce a result.
 

Method Detail

eval

To eval(From x)

Map the parameter x and produce a result. The mapping is completely arbitrary and depending on the context under which it is defined. This interface mandates no restriction whatsoever as far the input or output of this mapping are concerned.

Parameters:
x - The mapping input.
Returns:
The mapping output.