org.fuin.utils4j.filter
Class BooleanFilter

java.lang.Object
  extended by org.fuin.utils4j.filter.BooleanFilter
All Implemented Interfaces:
Filter

public class BooleanFilter
extends java.lang.Object
implements Filter

Defines a filter on a Boolean property value.


Constructor Summary
BooleanFilter(java.lang.Boolean constValue)
          Constructor with all necessary values.
 
Method Summary
 boolean complies(java.lang.Object value)
          Checks if the argument complies with the condition of the filter.
 java.lang.Boolean getConstValue()
          Returns the value the property is compared with.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanFilter

public BooleanFilter(java.lang.Boolean constValue)
Constructor with all necessary values.

Parameters:
constValue - Value the property is compared with.
Method Detail

getConstValue

public final java.lang.Boolean getConstValue()
Returns the value the property is compared with.

Returns:
Value.

complies

public final boolean complies(java.lang.Object value)
Checks if the argument complies with the condition of the filter.

Specified by:
complies in interface Filter
Parameters:
value - Object to be tested for compliance
Returns:
If object complies TRUE else FALSE is returned.

toString

public final java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2009 Future Invent Informationsmanagement GmbH. All Rights Reserved.