net.sf.jga.fn.property
Class ArrayBinary<T1,T2>

java.lang.Object
  extended by net.sf.jga.fn.Functor<R>
      extended by net.sf.jga.fn.BinaryFunctor<T1,T2,java.lang.Object[]>
          extended by net.sf.jga.fn.property.ArrayBinary<T1,T2>
All Implemented Interfaces:
java.io.Serializable, Visitable

public class ArrayBinary<T1,T2>
extends BinaryFunctor<T1,T2,java.lang.Object[]>

Binary Functor that returns its arguments in a two element array.

Copyright © 2004-2005 David A. Hall

Author:
David A. Hall
See Also:
Serialized Form

Nested Class Summary
static interface ArrayBinary.Visitor
          Interface for classes that may interpret a ArrayBinary predicate.
 
Constructor Summary
ArrayBinary()
           
 
Method Summary
 void accept(Visitor v)
          Calls the Visitor's visit(ArrayBinary) method, if it implements the nested Visitor interface.
 java.lang.Object[] fn(T1 arg1, T2 arg2)
          Returns its arguments in a two element array
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jga.fn.BinaryFunctor
bind, bind0th, bind1st, bind2nd, bindNth, compose, compose, composeNth, distribute, eval, generate, generate1st, generate2nd, generateNth
 
Methods inherited from class net.sf.jga.fn.Functor
composeNth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayBinary

public ArrayBinary()
Method Detail

fn

public java.lang.Object[] fn(T1 arg1,
                             T2 arg2)
Returns its arguments in a two element array

Specified by:
fn in class BinaryFunctor<T1,T2,java.lang.Object[]>
Returns:
the object built by the constructor

accept

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

Specified by:
accept in interface Visitable
Overrides:
accept in class Functor<java.lang.Object[]>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2006 David A. Hall. All Rights Reserved.