gnu.trove

Class SerializationProcedure

class SerializationProcedure extends Object implements TDoubleDoubleProcedure, TDoubleFloatProcedure, TDoubleIntProcedure, TDoubleLongProcedure, TDoubleObjectProcedure, TDoubleProcedure, TFloatDoubleProcedure, TFloatFloatProcedure, TFloatIntProcedure, TFloatLongProcedure, TFloatObjectProcedure, TFloatProcedure, TIntDoubleProcedure, TIntFloatProcedure, TIntIntProcedure, TIntLongProcedure, TIntObjectProcedure, TIntProcedure, TLongDoubleProcedure, TLongFloatProcedure, TLongIntProcedure, TLongLongProcedure, TLongObjectProcedure, TLongProcedure, TObjectDoubleProcedure, TObjectFloatProcedure, TObjectIntProcedure, TObjectLongProcedure, TObjectObjectProcedure, TObjectProcedure

Implementation of the variously typed procedure interfaces that supports writing the arguments to the procedure out on an ObjectOutputStream. In the case of two-argument procedures, the arguments are written out in the order received.

Any IOException is trapped here so that it can be rethrown in a writeObject method.

Created: Sun Jul 7 00:14:18 2002

Version: $Id: SerializationProcedure.java,v 1.3 2002/07/08 23:54:13 ericdf Exp $

Author: Eric D. Friedman

Field Summary
IOExceptionexception
ObjectOutputStreamstream
Constructor Summary
SerializationProcedure(ObjectOutputStream stream)
Method Summary
booleanexecute(int val)
booleanexecute(double val)
booleanexecute(long val)
booleanexecute(float val)
booleanexecute(Object val)
booleanexecute(Object key, Object val)
booleanexecute(Object key, int val)
booleanexecute(Object key, long val)
booleanexecute(Object key, double val)
booleanexecute(Object key, float val)
booleanexecute(int key, Object val)
booleanexecute(int key, int val)
booleanexecute(int key, long val)
booleanexecute(int key, double val)
booleanexecute(int key, float val)
booleanexecute(long key, Object val)
booleanexecute(long key, int val)
booleanexecute(long key, long val)
booleanexecute(long key, double val)
booleanexecute(long key, float val)
booleanexecute(double key, Object val)
booleanexecute(double key, int val)
booleanexecute(double key, long val)
booleanexecute(double key, double val)
booleanexecute(double key, float val)
booleanexecute(float key, Object val)
booleanexecute(float key, int val)
booleanexecute(float key, long val)
booleanexecute(float key, double val)
booleanexecute(float key, float val)

Field Detail

exception

IOException exception

stream

private final ObjectOutputStream stream

Constructor Detail

SerializationProcedure

SerializationProcedure(ObjectOutputStream stream)

Method Detail

execute

public boolean execute(int val)

execute

public boolean execute(double val)

execute

public boolean execute(long val)

execute

public boolean execute(float val)

execute

public boolean execute(Object val)

execute

public boolean execute(Object key, Object val)

execute

public boolean execute(Object key, int val)

execute

public boolean execute(Object key, long val)

execute

public boolean execute(Object key, double val)

execute

public boolean execute(Object key, float val)

execute

public boolean execute(int key, Object val)

execute

public boolean execute(int key, int val)

execute

public boolean execute(int key, long val)

execute

public boolean execute(int key, double val)

execute

public boolean execute(int key, float val)

execute

public boolean execute(long key, Object val)

execute

public boolean execute(long key, int val)

execute

public boolean execute(long key, long val)

execute

public boolean execute(long key, double val)

execute

public boolean execute(long key, float val)

execute

public boolean execute(double key, Object val)

execute

public boolean execute(double key, int val)

execute

public boolean execute(double key, long val)

execute

public boolean execute(double key, double val)

execute

public boolean execute(double key, float val)

execute

public boolean execute(float key, Object val)

execute

public boolean execute(float key, int val)

execute

public boolean execute(float key, long val)

execute

public boolean execute(float key, double val)

execute

public boolean execute(float key, float val)