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

io.sphere.sdk.channels.queries.ChannelQueryModel Maven / Gradle / Ivy

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

import io.sphere.sdk.channels.Channel;
import io.sphere.sdk.queries.DefaultModelQueryModelImpl;
import io.sphere.sdk.queries.QueryModel;
import io.sphere.sdk.queries.StringQuerySortingModel;

import java.util.Optional;

public class ChannelQueryModel extends DefaultModelQueryModelImpl {
    private ChannelQueryModel(final Optional> parent, final Optional pathSegment) {
        super(parent, pathSegment);
    }

    static ChannelQueryModel get() {
        return new ChannelQueryModel(Optional.>empty(), Optional.empty());
    }

    public StringQuerySortingModel key() {
        return new StringQuerySortingModel<>(Optional.of(this), "key");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy