1 19 package org.netbeans.lib.jmi.query; 20 21 import java.util.Collection ; 22 import java.util.Iterator ; 23 24 28 public class CollectionQuery implements Query { 29 30 private final Collection COLLECTION; 31 32 public CollectionQuery( Collection collection ) { 33 this.COLLECTION = collection; 34 } 35 36 public Iterator iterator() { 37 return new QueryIterator.Delegate( COLLECTION.iterator() ); 38 } 39 40 public boolean contains( Object object ) { 41 return COLLECTION.contains( object ); 42 } 43 } 44 | Popular Tags |