X-Git-Url: https://git.hedgecode.org/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fhedgecode%2Fsnooker%2Fapi%2FRankings.java;fp=src%2Fmain%2Fjava%2Forg%2Fhedgecode%2Fsnooker%2Fapi%2FRankings.java;h=07e4e1bd4dcb024c26034cafeb08948bd671584b;hb=8a35619be41b2db6d339f8f0a7f3ba0fc1ca1ed4;hp=0000000000000000000000000000000000000000;hpb=40f1d8b700df30bba321c63effa8782e56983457;p=snooker-score-api.git diff --git a/src/main/java/org/hedgecode/snooker/api/Rankings.java b/src/main/java/org/hedgecode/snooker/api/Rankings.java new file mode 100644 index 0000000..07e4e1b --- /dev/null +++ b/src/main/java/org/hedgecode/snooker/api/Rankings.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2017. Developed by Hedgecode. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.hedgecode.snooker.api; + +/** + * Rankings Entity (set of {@link Ranking}) API Interface. + * + * @author Dmitry Samoshin aka gotty + */ +public interface Rankings extends CollectionEntity { + + Ranking byPlayer(int playerId); + Rankings bySum(long minSum, long maxSum); + + void sortByPosition(); + void sortBySum(); + +}