All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.queries.ReferenceOptionalQueryModelImpl Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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> 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