public class Util
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
csv(java.lang.Iterable<?> objects) |
static java.lang.String |
exception(java.lang.Throwable t)
Constructs a pretty one line version of a
Throwable. |
static java.lang.String |
format(java.lang.Iterable<?> objects,
java.lang.String separators) |
static java.net.InetSocketAddress |
getAddr(java.lang.String hostline)
Method to transform human readable addresses into usable address objects.
|
static java.util.UUID |
getUUID(java.lang.String uuid)
Converts a String to a UUID
|
static java.lang.String |
hex(int i)
Formats an integer as a hex value.
|
public static final int DEFAULT_PORT
public static java.net.InetSocketAddress getAddr(java.lang.String hostline)
hostline - in the format of 'host:port'public static java.lang.String hex(int i)
i - the integer to formatpublic static java.lang.String exception(java.lang.Throwable t)
Throwable. Useful for
debugging.t - the Throwable to format.Throwablepublic static java.lang.String csv(java.lang.Iterable<?> objects)
public static java.lang.String format(java.lang.Iterable<?> objects,
java.lang.String separators)
public static java.util.UUID getUUID(java.lang.String uuid)
uuid - The string to be convertedCopyright © 2015-2018 WaterfallMC. All Rights Reserved.