-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimeFormat.java
More file actions
30 lines (27 loc) · 748 Bytes
/
TimeFormat.java
File metadata and controls
30 lines (27 loc) · 748 Bytes
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
package net.theevilreaper.aves.util;
/**
* The enum contains all formats that are supported by the {@link Strings#getTimeString(TimeFormat, int)} method.
* Each enum entry contains a default format which contains the format for timestamp zero.
*
* @author theEvilReaper
* @version 1.0.0
* @since 1.2.0
*/
public enum TimeFormat {
/**
* Indicates a format which contains minutes and seconds.
*/
MM_SS,
/**
* Indicates a format which contains hours, minutes and seconds.
*/
HH_MM_SS;
/**
* Returns the default format for the given enum entry.
*
* @return the default format
*/
public String getDefaultFormat() {
return this == HH_MM_SS ? "00:00:00" : "00:00";
}
}