Modifier and Type | Method and Description |
---|---|
static <T> T |
assertNotNull(String name,
T object) |
static <E,T extends Collection<E>> |
assertNotNullAndNoNullElement(String name,
T collection) |
static <T> T[] |
assertNotNullAndNoNullElement(String name,
T[] array) |
static boolean |
equal(int one,
int two) |
static boolean |
equal(long one,
long two) |
static boolean |
equal(Object one,
Object two) |
static String |
getUserName()
Get the user name of the user who is currently authenticated at the operating system.
|
static URI |
urlToUri(URL url)
Convert an URL to an URI.
|
public static final URI urlToUri(URL url)
url
- The URL to cenvertpublic static final String getUserName()
System.getProperty("user.name");
.public static final <T> T assertNotNull(String name, T object)
public static final <T> T[] assertNotNullAndNoNullElement(String name, T[] array)
public static final <E,T extends Collection<E>> T assertNotNullAndNoNullElement(String name, T collection)
public static final boolean equal(long one, long two)
public static final boolean equal(int one, int two)
Copyright © 2013-2014. All Rights Reserved.