public class FormatUtils extends Object
| Constructor and Description |
|---|
FormatUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> String |
collectionToStringNoBrackets(Collection<T> coll) |
static String |
cutDecimals(double d) |
static String |
formatBench(String source,
long ms) |
static String |
formatLocation(org.bukkit.Location loc)
Formats a Minecraft Location into readable format.
|
static String |
formatTimeStamp(long epochMs) |
static String |
formatTimeStampSecond(long epochMs) |
static String |
formatTimeStampYear(long epochMs) |
static String[] |
mergeArrays(String[]... arrays)
Merges multiple arrays into one.
|
static long |
parseVersionNumber(String versionString)
Turns the version string into a integer
|
static String[] |
removeFirstArgument(String... args) |
static String |
removeLetters(String dataPoint)
Removes letters from a string leaving only numbers and dots.
|
static String |
removeNumbers(String dataPoint) |
static String |
removeSymbols(String dataPoint) |
static String |
removeSymbolsButDot(String dataPoint) |
static String |
removeWhitespace(String dataPoint) |
static String |
spaceWhitespace(String dataPoint) |
public static String formatTimeStamp(long epochMs)
epochMs - public static String formatTimeStampSecond(long epochMs)
public static String formatTimeStampYear(long epochMs)
public static String removeLetters(String dataPoint)
dataPoint - public static long parseVersionNumber(String versionString) throws NumberFormatException
versionString - String - number format 1.1.1NumberFormatException - When wrong formatpublic static String[] mergeArrays(String[]... arrays)
arrays - String arrays that need to be combinedpublic static String formatLocation(org.bukkit.Location loc)
loc - Location to formatpublic static String cutDecimals(double d)
d - public static <T> String collectionToStringNoBrackets(Collection<T> coll)
Copyright © 2018. All rights reserved.