public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
clone(T obj) |
static boolean |
equals(Object obj1,
Object obj2)
Returns true if given two objects are same.
|
static int |
hashCode(Object... objects)
returns hashCode of given arguments.
|
static int |
hashCode(Object obj)
returns hashCode of given argument.
|
static <T> T |
notNull(T... values)
Returns first non null element in
values. |
static long |
parseLong(String value) |
public static <T> T notNull(T... values)
values.
If all elements are null, it returns null.public static boolean equals(Object obj1, Object obj2)
public static int hashCode(Object obj)
public static int hashCode(Object... objects)
public static <T> T clone(T obj)
throws CloneNotSupportedException
CloneNotSupportedExceptionpublic static long parseLong(String value)
Copyright © 2021. All rights reserved.