net.sf.doolin.util.collection
Class MapPredicate<E>

java.lang.Object
  extended by net.sf.doolin.util.collection.MapPredicate<E>
Type Parameters:
E - Type of element
All Implemented Interfaces:
com.google.common.base.Predicate<E>

public class MapPredicate<E>
extends Object
implements com.google.common.base.Predicate<E>

Predicate based on the presence of the evaluated object in the keys of a map.

Author:
Damien Coraboeuf

Constructor Summary
MapPredicate(Map<E,?> map)
          Constructor
 
Method Summary
 boolean apply(E e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Constructor Detail

MapPredicate

public MapPredicate(Map<E,?> map)
Constructor

Parameters:
map - Map to check the elements against
Method Detail

apply

public boolean apply(E e)
Specified by:
apply in interface com.google.common.base.Predicate<E>


Copyright © 2011. All Rights Reserved.