org.jjoost.util
Interface Function<X,Y>

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
AnyReadSet<V>, AnySet<V>, ListMap<K,V>, Map<K,V>, MultiMap<K,V>, MultiSet<V>, OrderedMapNodeFactory<K,V,N>, Set<V>, UnitarySet<V>
All Known Implementing Classes:
AbstractArraySet, AbstractHashSet, AbstractSet, AbstractUniqueSetAdapter, AdapterFromJDKMap, AdapterFromJDKSet, ArraySet, BiMapListToList, BiMapListToMany, BiMapManyToList, BiMapManyToMany, BiMapManyToOne, BiMapOneToMany, BiMapOneToOne, DefaultFactoryMap, DefaultFunctionMap, Functions.AbstractValueProjection, Functions.FieldProjection, Functions.MapEntryKeyProjection, Functions.MapEntryValueProjection, Functions.MethodProjection, HashSet, InlineListHashMap, InlineMultiHashMap, InlineMultiHashSet, IterableSet, LockFreeCountingMultiHashSet, LockFreeHashMap, LockFreeHashSet, LockFreeInlineListHashMap, LockFreeInlineMultiHashMap, LockFreeInlineMultiHashSet, LockFreeLinkedCountingMultiHashSet, LockFreeLinkedHashMap, LockFreeLinkedInlineListHashMap, LockFreeLinkedInlineMultiHashMap, LockFreeLinkedInlineMultiHashSet, LockFreeLinkedNestedMultiHashSet, LockFreeLinkedScalarHashSet, LockFreeNestedMultiHashSet, MultiArraySet, NestedMultiHashSet, NestedSetListMap, NestedSetMultiMap, ScalarHashMap, SerialCountingMultiHashSet, SerialHashMap, SerialHashSet, SerialInlineListHashMap, SerialInlineMultiHashMap, SerialInlineMultiHashSet, SerialLinkedCountingMultiHashSet, SerialLinkedHashMap, SerialLinkedHashSet, SerialLinkedInlineListHashMap, SerialLinkedInlineMultiHashMap, SerialLinkedInlineMultiHashSet, SerialLinkedNestedMultiHashSet, SerialNestedMultiHashSet, SynchronizedArbitrarySet, SynchronizedListMap, SynchronizedMap, SynchronizedMultiMap, SynchronizedMultiSet, SynchronizedSet

public interface Function<X,Y>
extends java.io.Serializable

The interface declares a method defining a function from domain X to range Y

Author:
b.elliottsmith

Method Summary
 Y apply(X v)
          Returns the result of applying the function to the parameter
 

Method Detail

apply

Y apply(X v)
Returns the result of applying the function to the parameter

Parameters:
v - something of type domain
Returns:
the result of the function (something of type range)