public abstract class AbstractRegistrationInfoPredicate extends Object implements com.google.common.base.Predicate<EntityDescriptor>
RegistrationInfo
content.Constructor and Description |
---|
AbstractRegistrationInfoPredicate() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(EntityDescriptor input) |
protected abstract boolean |
doApply(RegistrationInfo info)
Override this method to implement the predicate.
|
boolean |
getMatchIfMetadataSilent()
Get whether a predicate should evaluate to true if the data being matched on does not exist.
|
protected RegistrationInfo |
getRegistrationInfo(EntityDescriptor entity)
Get the
RegistrationInfo extension associated with an entity, if any. |
void |
setMatchIfMetadataSilent(boolean flag)
Set whether a predicate should evaluate to true if the data being matched on does not exist.
|
public void setMatchIfMetadataSilent(boolean flag)
flag
- flag to setpublic boolean getMatchIfMetadataSilent()
@Nullable protected RegistrationInfo getRegistrationInfo(@Nullable EntityDescriptor entity)
RegistrationInfo
extension associated with an entity, if any.entity
- the entity to examinepublic boolean apply(@Nullable EntityDescriptor input)
apply
in interface com.google.common.base.Predicate<EntityDescriptor>
protected abstract boolean doApply(@Nonnull RegistrationInfo info)
info
- the information to evaluateCopyright © 2016. All rights reserved.