public final class Lang extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Lang.UsAsciiBytes |
static class |
Lang.Utf8Bytes |
| Modifier and Type | Method and Description |
|---|---|
static Exception |
addSuppressed(Exception exception,
Exception suppressed) |
static char[] |
append(char[] array,
int offset,
char[] value) |
static char[] |
append(char[] array,
int offset,
String value) |
static void |
checkArgument(boolean expression) |
static void |
checkArgument(boolean expression,
String message) |
static void |
checkArgument(boolean expression,
String format,
Object... args) |
static <T> T |
checkNotNull(T reference) |
static <T> T |
checkNotNull(T reference,
String message) |
static <T> T |
checkNotNull(T reference,
String format,
Object... args) |
static void |
checkState(boolean state) |
static void |
checkState(boolean state,
String message) |
static IOException |
close(IOException rethrow,
Closeable closeable) |
static IOException |
close(IOException rethrow,
ZipFile file) |
static StackTraceElement |
createStackTraceElement(String classLoaderName,
String moduleName,
String moduleVersion,
String declaringClass,
String methodName,
String fileName,
int lineNumber) |
static ThreadMode |
daemonThread() |
static byte[] |
emptyByteArray() |
static char[] |
emptyCharArray() |
static int[] |
emptyIntArray() |
static Object[] |
emptyObjectArray() |
static boolean |
equals(Object first,
Object second) |
static String |
format(long bytes,
ByteUnit unit) |
static void |
formatToString(StringBuilder sb,
int depth,
Object source) |
static void |
formatToString(StringBuilder sb,
int depth,
Object source,
String name,
Object value) |
static void |
formatToString(StringBuilder sb,
int depth,
Object source,
String name1,
Object value1,
String name2,
Object value2) |
static void |
formatToString(StringBuilder sb,
int depth,
Object source,
String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3) |
static void |
formatToString(StringBuilder sb,
int depth,
Object source,
String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4) |
static void |
formatToString(StringBuilder sb,
int depth,
Object source,
String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4,
String name5,
Object value5) |
static void |
formatToStringList(StringBuilder sb,
int depth,
Object source,
ToStringList list) |
static void |
formatToStringMap(StringBuilder sb,
int depth,
Object source,
ToStringMap map) |
static String |
getClassLoaderName(StackTraceElement element) |
static JavaProfile |
getJavaProfile() |
static String |
getModuleName(StackTraceElement element) |
static String |
getModuleVersion(StackTraceElement element) |
static OperatingSystem |
getOperatingSystem() |
static ShutdownHook |
getShutdownHook() |
static String |
getStackTraceAsString(Throwable throwable) |
static Throwable[] |
getSuppressed(Throwable throwable) |
static String |
getSystemProperty(String propertyName) |
static int |
growArrayLength(int currentLength,
int requiredIndex) |
static byte[] |
growIfNecessary(byte[] array,
int requiredIndex) |
static char[] |
growIfNecessary(char[] array,
int requiredIndex) |
static double[] |
growIfNecessary(double[] array,
int requiredIndex) |
static <E> E[] |
growIfNecessary(E[] array,
int requiredIndex) |
static int[][] |
growIfNecessary(int[][] array,
int requiredIndex) |
static int[] |
growIfNecessary(int[] array,
int requiredIndex) |
static int |
hashCode(int hc1,
int hc2) |
static int |
hashCode(int hc1,
int hc2,
int hc3) |
static int |
hashCode(int hc1,
int hc2,
int hc3,
int hc4) |
static int |
hashCode(int hc1,
int hc2,
int hc3,
int hc4,
int hc5) |
static int |
hashCode(int hc1,
int hc2,
int hc3,
int hc4,
int hc5,
int... rest) |
static int |
hashCode(Object o) |
static int |
hashCode(Object o1,
Object o2) |
static int |
hashCode(Object o1,
Object o2,
Object o3) |
static int |
hashCode(Object o1,
Object o2,
Object o3,
Object o4) |
static int |
hashCode(Object o1,
Object o2,
Object o3,
Object o4,
Object o5) |
static int |
hashCode(Object o1,
Object o2,
Object o3,
Object o4,
Object o5,
Object... rest) |
static int |
hashCodeStart() |
static int |
hashCodeUpdate(int partial,
int hashCode) |
static int |
hashCodeUpdate(int partial,
Object o) |
static boolean |
isDigit(byte utf8) |
static boolean |
isHexDigit(char c) |
static boolean |
isNullOrEmpty(String string) |
static Charset |
isoLatin1() |
static String |
lineSeparator() |
static <T> T |
newInstance(Class<T> type) |
static String |
nullToEmpty(String string) |
static int |
parseInt(byte utf8) |
static int |
parseInt(byte[] utf8) |
static int |
parseInt(byte[] utf8,
int offset,
int length) |
static int |
parseInt(char c) |
static byte[] |
randomByteArray(int length) |
static void |
randomBytes(byte[] bytes) |
static double |
randomDouble() |
static int |
randomInt() |
static int |
randomInt(int bound) |
static String |
randomString(int length) |
static <E extends Exception> |
rethrowIfNecessary(E rethrow) |
static void |
startServices(Service... services) |
static String |
stripDiacritics(String string) |
static byte[] |
toByteArray(UUID uuid) |
static String |
toCamelCase(String string) |
static int[] |
toCodePoints(String string) |
static char |
toHexChar(int digit) |
static String |
toHexString(byte[] bytes) |
static String |
toHexString(byte[] bytes,
int offset,
int length) |
static String |
toHexString(UUID uuid) |
static String |
toJavaIdentifier(String string) |
static String |
toJavaLowerName(String string) |
static String |
toJavaUpperName(String string) |
static String |
toString(int value) |
static String |
toString(Object source) |
static String |
toString(Object source,
String name,
Object value) |
static String |
toString(Object source,
String name1,
Object value1,
String name2,
Object value2) |
static String |
toString(Object source,
String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3) |
static String |
toString(Object source,
String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4) |
static String |
toString(Object source,
String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4,
String name5,
Object value5) |
static String |
toString(Object source,
String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4,
String name5,
Object value5,
String name6,
Object value6) |
static String |
toString(ToStringObject object) |
static Charset |
usAscii() |
static ThreadMode |
userThread() |
static Charset |
utf8() |
public static char[] append(char[] array,
int offset,
char[] value)
public static char[] append(char[] array,
int offset,
String value)
public static void checkArgument(boolean expression)
public static void checkArgument(boolean expression,
String message)
public static <T> T checkNotNull(T reference)
public static <T> T checkNotNull(T reference,
String message)
public static void checkState(boolean state)
public static void checkState(boolean state,
String message)
public static IOException close(IOException rethrow, Closeable closeable)
public static IOException close(IOException rethrow, ZipFile file)
public static StackTraceElement createStackTraceElement(String classLoaderName, String moduleName, String moduleVersion, String declaringClass, String methodName, String fileName, int lineNumber)
public static ThreadMode daemonThread()
public static byte[] emptyByteArray()
public static char[] emptyCharArray()
public static int[] emptyIntArray()
public static Object[] emptyObjectArray()
public static void formatToString(StringBuilder sb, int depth, Object source)
public static void formatToString(StringBuilder sb, int depth, Object source, String name, Object value)
public static void formatToString(StringBuilder sb, int depth, Object source, String name1, Object value1, String name2, Object value2)
public static void formatToString(StringBuilder sb, int depth, Object source, String name1, Object value1, String name2, Object value2, String name3, Object value3)
public static void formatToString(StringBuilder sb, int depth, Object source, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4)
public static void formatToString(StringBuilder sb, int depth, Object source, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5)
public static void formatToStringList(StringBuilder sb, int depth, Object source, ToStringList list)
public static void formatToStringMap(StringBuilder sb, int depth, Object source, ToStringMap map)
public static String getClassLoaderName(StackTraceElement element)
public static JavaProfile getJavaProfile()
public static String getModuleName(StackTraceElement element)
public static String getModuleVersion(StackTraceElement element)
public static OperatingSystem getOperatingSystem()
public static ShutdownHook getShutdownHook()
public static int growArrayLength(int currentLength,
int requiredIndex)
public static byte[] growIfNecessary(byte[] array,
int requiredIndex)
public static char[] growIfNecessary(char[] array,
int requiredIndex)
public static double[] growIfNecessary(double[] array,
int requiredIndex)
public static <E> E[] growIfNecessary(E[] array,
int requiredIndex)
public static int[] growIfNecessary(int[] array,
int requiredIndex)
public static int[][] growIfNecessary(int[][] array,
int requiredIndex)
public static int hashCode(int hc1,
int hc2)
public static int hashCode(int hc1,
int hc2,
int hc3)
public static int hashCode(int hc1,
int hc2,
int hc3,
int hc4)
public static int hashCode(int hc1,
int hc2,
int hc3,
int hc4,
int hc5)
public static int hashCode(int hc1,
int hc2,
int hc3,
int hc4,
int hc5,
int... rest)
public static int hashCode(Object o)
public static int hashCode(Object o1, Object o2, Object o3, Object o4, Object o5, Object... rest)
public static int hashCodeStart()
public static int hashCodeUpdate(int partial,
int hashCode)
public static int hashCodeUpdate(int partial,
Object o)
public static boolean isDigit(byte utf8)
public static boolean isHexDigit(char c)
public static boolean isNullOrEmpty(String string)
public static Charset isoLatin1()
public static String lineSeparator()
public static <T> T newInstance(Class<T> type) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException, SecurityException
public static int parseInt(byte utf8)
public static int parseInt(byte[] utf8)
public static int parseInt(byte[] utf8,
int offset,
int length)
public static int parseInt(char c)
public static byte[] randomByteArray(int length)
public static void randomBytes(byte[] bytes)
public static double randomDouble()
public static int randomInt()
public static int randomInt(int bound)
public static String randomString(int length)
public static <E extends Exception> void rethrowIfNecessary(E rethrow) throws E extends Exception
E extends Exceptionpublic static void startServices(Service... services) throws Exception
Exceptionpublic static byte[] toByteArray(UUID uuid)
public static int[] toCodePoints(String string)
public static char toHexChar(int digit)
public static String toHexString(byte[] bytes)
public static String toHexString(byte[] bytes, int offset, int length)
public static String toString(int value)
public static String toString(Object source, String name1, Object value1, String name2, Object value2)
public static String toString(Object source, String name1, Object value1, String name2, Object value2, String name3, Object value3)
public static String toString(Object source, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4)
public static String toString(Object source, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5)
public static String toString(Object source, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6)
public static String toString(ToStringObject object)
public static Charset usAscii()
public static ThreadMode userThread()
public static Charset utf8()
Copyright © 2011–2021 Objectos Software LTDA. All rights reserved.