public final class Compat
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES
The number of bytes used to represent a
long value in two's complement binary form. |
static java.nio.charset.Charset |
UTF_8
Ports
StandardCharsets.UTF_8. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(java.lang.Object a,
java.lang.Object b)
Ports Objects.equals(Object a, Object b)
|
static java.lang.String |
getTypeName(java.lang.reflect.Type type)
Ports
Type.getTypeName(). |
static int |
hashCode(boolean value)
Ports
Boolean.hashCode(boolean). |
static java.lang.String |
join(java.lang.CharSequence delimiter,
java.lang.CharSequence... elements)
Ports
String.join(CharSequence, CharSequence...). |
static long |
longValueExact(java.math.BigInteger value)
Ports
BigInteger.longValueExact(). |
static <T> T |
requireNonNull(T obj)
Ports Objects.requireNonNull(T obj)
|
public static final java.nio.charset.Charset UTF_8
StandardCharsets.UTF_8.public static final int BYTES
long value in two's complement binary form.public static java.lang.String join(java.lang.CharSequence delimiter,
java.lang.CharSequence... elements)
String.join(CharSequence, CharSequence...).public static long longValueExact(java.math.BigInteger value)
BigInteger.longValueExact().public static java.lang.String getTypeName(java.lang.reflect.Type type)
Type.getTypeName().public static int hashCode(boolean value)
Boolean.hashCode(boolean).public static <T> T requireNonNull(T obj)
public static boolean equals(java.lang.Object a,
java.lang.Object b)