net.sf.jga.fn.adaptor

Class Project1st<T1,T2>

public class Project1st<T1,T2> extends AbstractBinaryFunctor<T1,T2,T1> implements Serializable

Binary Functor that returns the first of two runtime arguments.

Copyright © 2002 David A. Hall

Author: David A. Hall

Nested Class Summary
interfaceProject1st.Visitor
Interface for classes that may interpret an Project1st functor.
Method Summary
voidaccept(Visitor v)
Calls the Visitor's visit(Project1st) method, if it implements the nested Visitor interface.
T1fn(T1 x, T2 unused)
Given two arguments, returns the first.
StringtoString()

Method Detail

accept

public void accept(Visitor v)
Calls the Visitor's visit(Project1st) method, if it implements the nested Visitor interface.

fn

public T1 fn(T1 x, T2 unused)
Given two arguments, returns the first. The second argument is not evaluated in any way by this predicate.

Returns: x

toString

public String toString()