gnu.trove
Class ToObjectArrayProcedure

java.lang.Object
  extended by gnu.trove.ToObjectArrayProcedure
All Implemented Interfaces:
TObjectProcedure

final class ToObjectArrayProcedure
extends java.lang.Object
implements TObjectProcedure

A procedure which stores each value it receives into a target array. Created: Sat Jan 12 10:13:42 2002

Version:
$Id: ToObjectArrayProcedure.java,v 1.1 2002/01/14 05:59:43 ericdf Exp $
Author:
Eric D. Friedman

Field Summary
private  int pos
           
private  java.lang.Object[] target
           
 
Constructor Summary
ToObjectArrayProcedure(java.lang.Object[] target)
           
 
Method Summary
 boolean execute(java.lang.Object value)
          Executes this procedure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

private final java.lang.Object[] target

pos

private int pos
Constructor Detail

ToObjectArrayProcedure

public ToObjectArrayProcedure(java.lang.Object[] target)
Method Detail

execute

public final boolean execute(java.lang.Object value)
Description copied from interface: TObjectProcedure
Executes this procedure. A false return value indicates that the application executing this procedure should not invoke this procedure again.

Specified by:
execute in interface TObjectProcedure
Parameters:
value - an Object value
Returns:
true if additional invocations of the procedure are allowed.