ariba.util.core
Class WhiteListPredicate<T,P>

java.lang.Object
  extended by ariba.util.core.Predicate<T>
      extended by ariba.util.core.WhiteListPredicate<T,P>
Type Parameters:
T -

public class WhiteListPredicate<T,P>
extends Predicate<T>

Implements a predicate for checking whether a property on T (fetched via property getter) is contained in the white-list


Nested Class Summary
 
Nested classes/interfaces inherited from class ariba.util.core.Predicate
Predicate.Constant<T>
 
Constructor Summary
WhiteListPredicate(java.util.Set<P> whiteList, PropertyGetter<T,P> getter)
           
 
Method Summary
 boolean evaluate(T t)
          Use a property from T fetched via the property getter to check if the whiteList contains the property
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhiteListPredicate

public WhiteListPredicate(java.util.Set<P> whiteList,
                          PropertyGetter<T,P> getter)
Method Detail

evaluate

public boolean evaluate(T t)
Use a property from T fetched via the property getter to check if the whiteList contains the property

Specified by:
evaluate in class Predicate<T>
Parameters:
t - of type T
Returns:


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.