io.sphere.sdk.queries.ReferenceOptionalQueryModelImpl Maven / Gradle / Ivy
package io.sphere.sdk.queries;
import io.sphere.sdk.models.Referenceable;
import javax.annotation.Nullable;
import java.util.List;
final class ReferenceOptionalQueryModelImpl extends ReferenceQueryModelImpl implements ReferenceOptionalQueryModel {
public ReferenceOptionalQueryModelImpl(@Nullable final QueryModel parent, @Nullable final String pathSegment) {
super(parent, pathSegment);
}
@Override
public QueryPredicate is(final Referenceable reference) {
return super.is(reference);
}
@Override
public QueryPredicate isIn(final List extends Referenceable> elements) {
return super.isIn(elements);
}
@Override
public QueryPredicate isPresent() {
return new OptionalQueryPredicate<>(this, true);
}
@Override
public QueryPredicate isNotPresent() {
return new OptionalQueryPredicate<>(this, false);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy