mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-22 05:25:11 +01:00
StatisticType
Took 8 seconds
This commit is contained in:
parent
8b1f4c3701
commit
eae0ed83e6
@ -18,5 +18,31 @@
|
||||
|
||||
package ca.tweetzy.auctionhouse.ahv3.api;
|
||||
|
||||
public enum StatisticType {
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@AllArgsConstructor
|
||||
public enum StatisticType implements Navigable<StatisticType> {
|
||||
|
||||
CREATED_AUCTION("Created Auction"),
|
||||
CREATED_BIN("Created Bin"),
|
||||
|
||||
SOLD_AUCTION("Sold Auctions"),
|
||||
SOLD_BIN("Sold Bins"),
|
||||
|
||||
MONEY_SPENT("Money Spent"),
|
||||
MONEY_EARNED("Money Earned");
|
||||
|
||||
@Getter
|
||||
private final String type;
|
||||
|
||||
@Override
|
||||
public StatisticType next() {
|
||||
return values()[(this.ordinal() + 1) % values().length];
|
||||
}
|
||||
|
||||
@Override
|
||||
public StatisticType previous() {
|
||||
return values()[(ordinal() - 1 + values().length) % values().length];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user