net.ontopia.utils
Class ContainmentDecider<T>

java.lang.Object
  extended by net.ontopia.utils.ContainmentDecider<T>
All Implemented Interfaces:
DeciderIF<T>

public class ContainmentDecider<T>
extends java.lang.Object
implements DeciderIF<T>

INTERNAL: Decider that returns true if the object is contained in the referenced collection.

Since:
4.0

Constructor Summary
ContainmentDecider(java.util.Collection<T> objects)
           
 
Method Summary
 boolean ok(T o)
          PUBLIC: Returns true if the object is accepted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainmentDecider

public ContainmentDecider(java.util.Collection<T> objects)
Method Detail

ok

public boolean ok(T o)
Description copied from interface: DeciderIF
PUBLIC: Returns true if the object is accepted.

Specified by:
ok in interface DeciderIF<T>


Copyright © 2000-2012 Ontopia.