Modifier and Type | Method and Description |
---|---|
static <T> T |
cast(Object o) |
static void |
doNothing()
Does really nothing.
|
static boolean |
equal(boolean[] one,
boolean[] two) |
static boolean |
equal(boolean one,
boolean two) |
static boolean |
equal(byte[] one,
byte[] two) |
static boolean |
equal(byte one,
byte two) |
static boolean |
equal(char[] one,
char[] two) |
static boolean |
equal(char one,
char two) |
static boolean |
equal(int[] one,
int[] two) |
static boolean |
equal(int one,
int two) |
static boolean |
equal(long[] one,
long[] two) |
static boolean |
equal(long one,
long two) |
static <T,S extends T> |
equal(S[] one,
T[] two) |
static boolean |
equal(short[] one,
short[] two) |
static boolean |
equal(short one,
short two) |
static <T,S extends T> |
equal(S one,
T two) |
static String |
getUserName()
Get the user name of the user who is currently authenticated at the operating system.
|
static void |
main(String[] args) |
static String |
toIdentityString(Object object)
Gets the
String -representation of the given object as it is constructed by the base-implementation
Object.toString() . |
public static final String getUserName()
System.getProperty("user.name");
.public static final <T,S extends T> boolean equal(S one, T two)
public static final boolean equal(boolean one, boolean two)
public static final boolean equal(byte one, byte two)
public static final boolean equal(short one, short two)
public static final boolean equal(char one, char two)
public static final boolean equal(int one, int two)
public static final boolean equal(long one, long two)
public static final <T,S extends T> boolean equal(S[] one, T[] two)
public static final boolean equal(byte[] one, byte[] two)
public static final boolean equal(boolean[] one, boolean[] two)
public static final boolean equal(short[] one, short[] two)
public static final boolean equal(char[] one, char[] two)
public static final boolean equal(int[] one, int[] two)
public static final boolean equal(long[] one, long[] two)
public static final String toIdentityString(Object object)
String
-representation of the given object
as it is constructed by the base-implementation
Object.toString()
.
This method does not invoke the object's toString()
method, hence it makes
no difference, if the object's class has an overridden version of the toString()
method!
If the given object
is null
, the result is "null"
(just like the result of
String.valueOf(Object)
).
If the given object
is not null
, the result consists of the fully qualified class-name followed
by '@' and the object's hex-encoded identity-hash-code. For example:
"my.package.Car@47c624e2"
.
object
- the object for which to obtain the String
-representation. May be null
.String
-representation. Never null
.public static final void doNothing()
This method should be used in the catch of a try-catch-block, if there's really no action needed.
Copyright © 2013–2019. All rights reserved.