1 6 7 package com.hp.hpl.jena.graph.query; 8 9 import java.util.*; 10 11 import com.hp.hpl.jena.util.CollectionFactory; 12 13 18 public class ValuatorSet 19 { 20 private Set valuators = CollectionFactory.createHashedSet(); 21 22 public ValuatorSet() 23 {} 24 25 28 public ValuatorSet add( Valuator e ) 29 { 30 valuators.add( e ); 31 return this; 32 } 33 34 39 public boolean evalBool( IndexValues vv ) 40 { 41 Iterator it = valuators.iterator(); 42 while (it.hasNext()) 43 if (((Valuator) it.next()).evalBool( vv ) == false) return false; 44 return true; 45 } 46 47 } 48 49 | Popular Tags |