| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <K, V> WeakHashClock | Returns: A weak hash clock implementationif true this will keep weak keyes, if false the keys will
be hard and will not go away even if they do not exist anywhere else
but this cache isWeak)Creates a weak hash clock |
| public static <K> WeakHashLRU | Returns: A weak hash clock implementationif true this will keep weak keyes, if false the keys will
be hard and will not go away even if they do not exist anywhere else
but this cache isWeak)Creates a weak hash clock |
| private static Class | |
| public static Class | Returns: The class if it could be loaded from the classloader, or null if it could not be found for any reasonThe non-null classloader to load the class from cl, String The fully qualified non-null name of the class to load cName)Loads the class from the given classloader or returns null (does not throw). |
| public static String | Returns: A string that has the bytes pretty-printedA non-null string of bytes bytes)Pretty prints a string of bytes in a hexadecimal format with byte number at the start of the line |
| public static boolean | Returns: true if equal, false if notA possibly null object to compare a, Object A possibly null object to compare b)Returns true if a is equals to b, or both and and b are null. |
| GeneralUtilities | back to summary |
|---|---|
| public GeneralUtilities() | |
| getWeakHashClock | back to summary |
|---|---|
| public static <K, V> WeakHashClock Creates a weak hash clock
| |
| getWeakHashLRU | back to summary |
|---|---|
| public static <K> WeakHashLRU Creates a weak hash clock
| |
| loadArrayClass | back to summary |
|---|---|
| private static Class | |
| loadClass | back to summary |
|---|---|
| public static Class Loads the class from the given classloader or returns null (does not throw). Property handles array classes as well
| |
| prettyPrintBytes | back to summary |
|---|---|
| public static String prettyPrintBytes(byte[] bytes) Pretty prints a string of bytes in a hexadecimal format with byte number at the start of the line
| |
| safeEquals | back to summary |
|---|---|
| public static boolean safeEquals(Object a, Object b) Returns true if a is equals to b, or both and and b are null. Is safe even if a or b is null. If a or b is null but the other is not null, this returns false | |