org.fuin.utils4j.filter
Class BooleanPropertyFilter

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

public class BooleanPropertyFilter
extends PropertyFilter

Defines a filter on a Boolean value.


Constructor Summary
BooleanPropertyFilter(java.lang.String newPropertyName, java.lang.Boolean constValue)
          Constructor with all necessary values.
 
Method Summary
 boolean complies(java.lang.Object obj)
          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 org.fuin.utils4j.filter.PropertyFilter
getProperty, getPropertyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanPropertyFilter

public BooleanPropertyFilter(java.lang.String newPropertyName,
                             java.lang.Boolean constValue)
Constructor with all necessary values.

Parameters:
newPropertyName - Property name.
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 obj)
Checks if the argument complies with the condition of the filter.

Parameters:
obj - 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.