public class Static extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equal(Object thisObject,
Object thatObject)
Compares two objects.
|
static long |
gcd(long a,
long b) |
static Class<?> |
getLoggingClass(Object object)
Returns the class that can be used to derive the logger name from.
|
static String |
join(String separator,
String[] parts)
Joins an array of strings together using a given separator
|
static <T> T[] |
newArrayInstance(T[] template,
int length)
Creates a new array instance in a type safe way.
|
static <T> T[] |
offer(T[] prepend,
T[] tail)
Creates a copy of an array with another array prepended to it.
|
static <T> T[] |
offer(T head,
T[] tail)
Creates a copy of an array with a single item prepended to it.
|
static <T> List<T> |
toList(TypedIterable<T> iterable) |
public static <T> T[] offer(T head,
T[] tail)
T - The base type of the arrayhead - The item to prependtail - The original arraypublic static <T> T[] offer(T[] prepend,
T[] tail)
T - The base type of the arrayprepend - The array to prependtail - The original arraypublic static <T> T[] newArrayInstance(T[] template,
int length)
T - The base type of the new arraytemplate - The original arraylength - The length of the new arraypublic static boolean equal(Object thisObject, Object thatObject)
null values.thisObject - One objectthatObject - Other objecttrue if the one object equals the other object; false otherwisepublic static Class<?> getLoggingClass(Object object)
object - The object to querypublic static String join(String separator, String[] parts)
separator - The separator to useparts - An array of stringspublic static <T> List<T> toList(TypedIterable<T> iterable)
public static long gcd(long a,
long b)
Copyright © 2013. All Rights Reserved.