StatisticType

Took 8 seconds
This commit is contained in:
Kiran Hart 2022-10-19 23:33:55 -04:00
parent 8b1f4c3701
commit eae0ed83e6
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -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];
}
}