org.carrot2.util.attribute
Class LevelsPredicate

java.lang.Object
  extended by org.carrot2.util.attribute.LevelsPredicate
All Implemented Interfaces:
com.google.common.base.Predicate<AttributeDescriptor>

public final class LevelsPredicate
extends Object
implements com.google.common.base.Predicate<AttributeDescriptor>

A predicate that tests whether an AttributeDescriptor belongs to any of the provided levels.


Constructor Summary
LevelsPredicate(AttributeLevel... levels)
           
 
Method Summary
 boolean apply(AttributeDescriptor descriptor)
           
 
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

LevelsPredicate

public LevelsPredicate(AttributeLevel... levels)
Method Detail

apply

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


Copyright (c) Dawid Weiss, Stanislaw Osinski