net.sf.jga.fn.property

Class PropertyCompare<T,V>

public class PropertyCompare<T,V> extends CompareProperty<T,V>

Deprecated:

Deprecated name: use CompareProperty instead.

Copyright © 2003 David A. Hall

Author: David A. Hall

Nested Class Summary
interfacePropertyCompare.Visitor
Interface for classes that may interpret a PropertyCompare predicate.
Constructor Summary
PropertyCompare(String propName, V val)
Builds the PropertyCompare predicate that will compare the named property to the given value using an EqualTo predicate.
PropertyCompare(String prop, BinaryFunctor<V,V,Boolean> pred, V val)
Builds the PropertyCompare predicate that will compare the named property to the given value.
Method Summary
voidaccept(Visitor v)
Calls the Visitor's visit(PropertyCompare) method, if it implements the nested Visitor interface.

Constructor Detail

PropertyCompare

public PropertyCompare(String propName, V val)
Builds the PropertyCompare predicate that will compare the named property to the given value using an EqualTo predicate.

PropertyCompare

public PropertyCompare(String prop, BinaryFunctor<V,V,Boolean> pred, V val)
Builds the PropertyCompare predicate that will compare the named property to the given value. The comparison can be any type of BinaryFunctor where both arguments are of the same type.

Method Detail

accept

public void accept(Visitor v)
Calls the Visitor's visit(PropertyCompare) method, if it implements the nested Visitor interface.