aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/pinapelz/vtuber/Sort.java
blob: 0367d936d9749c0990d9853940f136f39f259bb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.pinapelz.vtuber;

/**
 * <p>Sort class.</p>
 *
 * @author pinapelz
 * @version $Id: $Id
 */
public enum Sort {
    NEWEST("newest"),
    START_SCHEDULED("start_scheduled"),
    START_ACTUAL("start_actual"),
    END_ACTUAL("end_actual"),
    OLDEST("oldest");

    private final String value;
    Sort(String value) {
        this.value = value;
    }

    /** {@inheritDoc} */
    @Override
    public String toString() {
        return value;
    }

    public boolean isSortBy(String sort) {
        return this.value.equals(sort);
    }

}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage