io.sphere.sdk.queries.StringCollectionQueryModelImpl Maven / Gradle / Ivy
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