net.sf.jga.fn.adaptor

Class Project2nd<T1,T2>

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

Binary Functor that returns the second of two runtime arguments.

Copyright © 2002 David A. Hall

Author: David A. Hall

Nested Class Summary
interfaceProject2nd.Visitor
Interface for classes that may interpret an Project2nd functor.
Method Summary
voidaccept(Visitor v)
Calls the Visitor's visit(Project2nd) method, if it implements the nested Visitor interface.
T2fn(T1 unused, T2 y)
Given two arguments, returns the second.
StringtoString()

Method Detail

accept

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

fn

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

Returns: x

toString

public String toString()