Class ReferenceClassPredicate
java.lang.Object
ch.tocco.nice2.dms.impl.reference.ReferenceClassPredicate
- All Implemented Interfaces:
Predicate<ContentReferenceParser>
Predicate to filter a collection of
ContentReferenceParsers
.-
Constructor Summary
ConstructorDescriptionReferenceClassPredicate
(@Nullable Set<Class<? extends ContentReference>> referenceClasses) -
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(@Nullable ContentReferenceParser contentReferenceParser)
-
Constructor Details
-
ReferenceClassPredicate
public ReferenceClassPredicate(@Nullable @Nullable Set<Class<? extends ContentReference>> referenceClasses) - Parameters:
referenceClasses
- The reference classes to take into account.
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<ContentReferenceParser>
- Parameters:
contentReferenceParser
- The reference parser implementation.- Returns:
- true, if
referenceClasses
is null or empty or if it containsContentReferenceParser.getReferenceClass()
.
-