com.vinculumtech.platform.util
Class BooleanMatchFunction

java.lang.Object
  extended bycom.vinculumtech.platform.util.BooleanMatchFunction
All Implemented Interfaces:
Function, UnaryFunction

public class BooleanMatchFunction
extends java.lang.Object
implements UnaryFunction

The BooleanMatchFunction class is a simple implementation of the UnaryFunction interface.
Execute returns the given value if it is a Boolean object and matches the match boolean value, or the toString() on the given value, matches Boolean.toString( match ) value.

Version:
$Id: //depot/carrierwave/src/shared/com/vinculumtech/platform/util/BooleanMatchFunction.java#1 $

Constructor Summary
BooleanMatchFunction(boolean match)
           
 
Method Summary
 java.lang.Object execute(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanMatchFunction

public BooleanMatchFunction(boolean match)
Method Detail

execute

public java.lang.Object execute(java.lang.Object value)
                         throws java.lang.Exception
Specified by:
execute in interface UnaryFunction
Throws:
java.lang.Exception


Copyright (C) 2002 Vinculum Technologies, Inc. All Rights Reserved.