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

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

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.queries;

import javax.annotation.Nullable;

import java.util.List;

final class StringCollectionQueryModelImpl extends QueryModelImpl implements StringCollectionQueryModel {
    public StringCollectionQueryModelImpl(@Nullable final QueryModel parent, final String pathSegment) {
        super(parent, pathSegment);
    }

    @Override
    public QueryPredicate isEmpty() {
        return isEmptyCollectionQueryPredicate();
    }

    @Override
    public QueryPredicate isNotEmpty() {
        return isNotEmptyCollectionQueryPredicate();
    }

    @Override
    public QueryPredicate containsAll(final Iterable items) {
        final List normalizedValues = normalizeIterable(items);
        return new ContainsAllPredicate<>(this, normalizedValues);
    }

    @Override
    public QueryPredicate containsAny(final Iterable items) {
        final List normalizedValues = normalizeIterable(items);
        return new ContainsAnyPredicate<>(this, normalizedValues);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy