| com.jofti.util.ObjectProcedure
All known Subclasses: com.jofti.util.ObjectProcedureAdapter,
ObjectProcedure | public interface ObjectProcedure (Code) | | Interface that represents a procedure object: a procedure that takes
a single or pair of arguments and does not return a value.
|
Method Summary | |
abstract public boolean | apply(Object element) Applies a procedure to an argument.
Optionally can return a boolean flag to inform the object calling the procedure.
Example: forEach() methods often use procedure objects.
To signal to a forEach() method whether iteration should continue normally or terminate (because for example a matching element has been found),
a procedure can return false to indicate termination and true to indicate continuation.
Parameters: element - element passed to the procedure. | abstract public boolean | apply(Object key, Object element) Applies a procedure to an argument.
Optionally can return a boolean flag to inform the object calling the procedure.
Example: forEach() methods often use procedure objects.
To signal to a forEach() method whether iteration should continue normally or terminate (because for example a matching element has been found),
a procedure can return false to indicate termination and true to indicate continuation.
Parameters: key - the key passed to the procedure. Parameters: element - element passed to the procedure. |
apply | abstract public boolean apply(Object element)(Code) | | Applies a procedure to an argument.
Optionally can return a boolean flag to inform the object calling the procedure.
Example: forEach() methods often use procedure objects.
To signal to a forEach() method whether iteration should continue normally or terminate (because for example a matching element has been found),
a procedure can return false to indicate termination and true to indicate continuation.
Parameters: element - element passed to the procedure. a flag to inform the object calling the procedure. |
apply | abstract public boolean apply(Object key, Object element)(Code) | | Applies a procedure to an argument.
Optionally can return a boolean flag to inform the object calling the procedure.
Example: forEach() methods often use procedure objects.
To signal to a forEach() method whether iteration should continue normally or terminate (because for example a matching element has been found),
a procedure can return false to indicate termination and true to indicate continuation.
Parameters: key - the key passed to the procedure. Parameters: element - element passed to the procedure. a flag to inform the object calling the procedure. |
|
|