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

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

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

public class ResourceQueryModelImpl extends QueryModelImpl implements ResourceQueryModel {
    protected ResourceQueryModelImpl(final QueryModel parent, final String pathSegment) {
        super(parent, pathSegment);
    }

    @Override
    public final StringQuerySortingModel id() {
        return stringModel("id");
    }

    @Override
    public final TimestampSortingModel createdAt() {
        return new TimestampSortingModelImpl<>(this, "createdAt");
    }

    @Override
    public final TimestampSortingModel lastModifiedAt() {
        return new TimestampSortingModelImpl<>(this, "lastModifiedAt");
    }

    public final QueryPredicate not(final QueryPredicate queryPredicateToNegate) {
        return queryPredicateToNegate.negate();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy