
org.chronos.chronodb.internal.impl.query.ContainmentStringSearchSpecificationImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.chronos.chronodb.api Show documentation
Show all versions of org.chronos.chronodb.api Show documentation
Versioned data storage, embeddable and easy to use.
The newest version!
package org.chronos.chronodb.internal.impl.query;
import org.chronos.chronodb.api.query.DoubleContainmentCondition;
import org.chronos.chronodb.api.query.StringContainmentCondition;
import org.chronos.chronodb.internal.api.query.searchspec.ContainmentDoubleSearchSpecification;
import org.chronos.chronodb.internal.api.query.searchspec.ContainmentStringSearchSpecification;
import org.chronos.chronodb.internal.api.query.searchspec.SearchSpecification;
import java.util.Set;
import java.util.function.Predicate;
import static com.google.common.base.Preconditions.*;
public class ContainmentStringSearchSpecificationImpl extends AbstractSearchSpecification> implements ContainmentStringSearchSpecification {
// =================================================================================================================
// FIELDS
// =================================================================================================================
private final TextMatchMode matchMode;
// =================================================================================================================
// CONSTRUCTOR
// =================================================================================================================
public ContainmentStringSearchSpecificationImpl(final String property, final StringContainmentCondition condition, final Set searchValue, TextMatchMode matchMode) {
super(property, condition, searchValue);
checkNotNull(matchMode, "Precondition violation - argument 'matchMode' must not be NULL!");
this.matchMode = matchMode;
}
// =================================================================================================================
// PUBLIC API
// =================================================================================================================
@Override
public TextMatchMode getMatchMode() {
return this.matchMode;
}
@Override
public Predicate
© 2015 - 2025 Weber Informatics LLC | Privacy Policy