org.carrot2.util.attribute
Class AnnotationsPredicate

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

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

A predicate that tests the presence of a given set of annotations on an AttributeDescriptor.


Constructor Summary
AnnotationsPredicate(boolean requireAll, Class<? extends Annotation>... annotationClasses)
           
 
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

AnnotationsPredicate

public AnnotationsPredicate(boolean requireAll,
                            Class<? extends Annotation>... annotationClasses)
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