org.carrot2.core.attribute
Class InternalAttributePredicate

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

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

A predicate that tests whether an AttributeDescriptor refers to an Internal attribute.


Constructor Summary
InternalAttributePredicate()
          Evaluates to true for attributes that have the Internal annotation, no matter the Internal.configuration() value.
InternalAttributePredicate(Boolean configuration)
          Evaluates to true for attributes that have the Internal annotation whose Internal.configuration() is set to the provided value.
 
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

InternalAttributePredicate

public InternalAttributePredicate()
Evaluates to true for attributes that have the Internal annotation, no matter the Internal.configuration() value.


InternalAttributePredicate

public InternalAttributePredicate(Boolean configuration)
Evaluates to true for attributes that have the Internal annotation whose Internal.configuration() is set to the provided value.

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