Package lu.kbra.pclib
Class PCUtils
java.lang.Object
lu.kbra.pclib.PCUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<T> static <T> T[]add(T[] beanPackages, T name) static <T> List<T> static byte[]static <T> T[]appendArrays(T[] first, T... second) static StringappendFileName(String path, String suffix) static floatapplyMinThreshold(float x, float min) static <T> ArrayList<T> asArrayList(T... data) static Stringstatic StringbyteArrayToHexString(byte[] byteArray) byteArrayToList(byte[] b) static StringDoes not change the reader's positionstatic StringbyteBufferToHexString(ByteBuffer bb, int startingPos) static StringbyteBufferToHexStringTable(ByteBuffer bb, int columnCount, int columnWidth) static int[]byteBufferToIntArray(ByteBuffer bData, int length) static byte[]byteListToPrimitive(List<Byte> bytes) static intbyteToInt(byte[] byteArray) static StringcamelCaseToConstant(String camelCase) static StringcamelCaseToSnakeCase(String input) static Stringcapitalize(String str) static <T> Tstatic <T> T[]castArray(Object[] arr, Function<Object, T> transformer, IntFunction<T[]> supplier) static int[]static <K,V> Map <K, V> static Object[]castObject(byte[] arr) static Object[]castObject(char[] arr) static Object[]castObject(double[] arr) static Object[]castObject(float[] arr) static Object[]castObject(int[] arr) static Object[]castObject(long[] arr) static Object[]castObject(short[] arr) static <T> Object[]castObject(T[] arr) static byteclamp(byte from, byte to, byte x) static charclamp(char from, char to, char x) static doubleclamp(double from, double to, double x) static floatclamp(float from, float to, float x) static intclamp(int from, int to, int x) static shortclamp(short from, short to, short x) static ColorclampColor(int red, int green, int blue) static ColorclampColor(int red, int green, int blue, int alpha) static doubleclampGreaterOrEquals(double min, double x) static floatclampGreaterOrEquals(float min, float x) static intclampGreaterOrEquals(int min, int x) static longclampGreaterOrEquals(long min, long x) static doubleclampLessOrEquals(double x, double max) static floatclampLessOrEquals(float x, float max) static intclampLessOrEquals(int x, int max) static longclampLessOrEquals(long x, long max) static byteclampRange(byte from, byte to, byte x) static charclampRange(char from, char to, char x) static doubleclampRange(double from, double to, double x) static floatclampRange(float from, float to, float x) static intclampRange(int from, int to, int x) static shortclampRange(short from, short to, short x) static voidclose(AutoCloseable... result) static int[]combineArrays(int[] array1, int[] array2) static <T> T[]combineArrays(T[] first, T[] second) static booleancompare(byte x, byte target, byte delta) static booleancompare(char x, char target, char delta) static booleancompare(double x, double target, double delta) static booleancompare(float x, float target, float delta) static booleancompare(int x, int target, int delta) static booleancompare(short x, short target, short delta) static intcompareVersion(String a, String b) static <T,B, C> Set <C> computeDuplicates(Collection<T> values, Function<T, B> func, Function<T, C> func2) static float[]computeGaussianWeights(int radius) static <T> Stream<? extends T> concatStreams(Stream<? extends T>... streams) static StringconstantToCamelCase(String enumName) static doublestatic intstatic intcountElements(Iterator<?> e) static <T> TdefaultIfNull(T obj, Supplier<T> orElse) static <T> TdefaultIfNull(T obj, ThrowingSupplier<T, Throwable> orElse) static <T> TdefaultIfNull(T obj, T orElse) static StringdeleteChar(String s, int pos) static voiddeleteFile(File f) static intdeleteOldFiles(File directory, int keepCount) static booleanduplicates(String[] refCols) static <T,B> Set <B> duplicates(Collection<T> values, Function<T, B> func) static StringenumToNameString(Enum<?> c) static <T extends Enum<T>>
TenumValuetoEnum(Class<T> enumClass, String e) static booleanextractFile(String inPath, File outFile) extractKeys(org.json.JSONObject jsonObject) Extracts all keys from the given JSONObject, including nested keys, in the format of "key.subkey".static byte[]fill(byte[] bs, byte id) static char[]fill(char[] bs, char id) static double[]fill(double[] bs, double id) static float[]fill(float[] bs, float id) static int[]fill(int[] bs, int id) static long[]fill(long[] bs, long id) static short[]fill(short[] bs, short id) static <T> T[]static <T> T[]static StringfillString(String str, String place, int length) static <T> Constructor<T> findCompatibleConstructor(Class<T> clazz, Class<?>... argTypes) static <T,R> ThrowingFunction <List<T>, R, Throwable> static <T,R> ThrowingFunction <List<T>, R, Throwable> static <T,R> ThrowingFunction <List<T>, R, Throwable> static float[]floatRepeating(float[] is, int count) static Field[]getAllFields(Class<?> clazz) static intgetArrayDimension(Type clazz) static booleangetBoolean(String name, boolean default_) static StringgetCallerClassName(boolean parent) static StringgetCallerClassName(boolean parent, boolean simple) static StringgetCallerClassName(boolean parent, boolean simple, Class<?>... ignored) static StringgetCallerClassName(boolean parent, boolean simple, String... ignorePatterns) static StringgetCallerClassName(int offset, boolean simple) 0 -> first caller (before PCUtils)
1 -> second caller
3...static Throwablestatic intgetColumnIndex(ResultSet rs, String columnName) static String[]getColumnNames(ResultSet generatedKeys) static TypegetComponentType(Type type) static StringgetFileExtension(String path) static StringgetFileName(String cleanPath) static longgetFileSize(File file) static longgetFileSize(Path path) static floatstatic StringgetHumanFormatFileSize(long fileSize) static StringgetIncrement(String filePath) static intgetInteger(String name, int default_) static int[]getMaxIndices(float[] arr, int n) static Class<?> getRawClass(Type type) static Stringstatic StringgetStackTraceAsString(Throwable throwable) static ObjectgetTypesInPackage(String packageName) static Annotation[]getUnwrappedAnnotations(AnnotatedElement element) static StringglobToRegex(String trim) static booleanstatic <K,V> HashMap <K, V> static <V> HashSet<V> static StringhashString(String input, String algorithm) static StringhashStringSha256(String input) static ColorhexToColor(String hex) static <T> T[]insert(T[] array, int index, T element) static StringinsertChar(String s, int pos, char c) static ByteBufferintArrayToByteBuffer(int[] data) static int[]intCountingUp(int start, int end) static int[]intCountingUp(int start, int end, int steps, int count) static int[]intCountingUpTriQuads(int quadCount) static byte[]intToByteArray(int val) static StringipToString(byte[] ipv4) static StringipToString(int ipv4) static booleanisArrayType(Type type) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic <T> Collector<T, ?, StringBuilder> joining(StringBuilder builder, String prefixAndDelimiter) static <T> Collector<T, ?, StringBuilder> joining(StringBuilder builder, String prefixAndDelimiter, String suffix) static <T> Collector<T, ?, StringBuilder> joining(StringBuilder builder, String prefix, String delimiter, String suffix, Function<T, String> mapper) static <T> Collector<T, ?, StringBuilder> static StringjoinString(String[] tokens, int start, int end) static StringleftPadLine(String str, String fill) static StringleftPadString(String str, String fill, int length) static StringleftPadStringLeftTrim(String str, String fill, int length) "abcdef", " ", 5 -> "bcdef"
"abc", " ", 5 -> " abc"static StringleftPadStringRightTrim(String str, String fill, int length) "abcdef", " ", 5 -> "abcde"
"abc", " ", 5 -> " abc"static StringleftTrimToLength(String str, int maxLength) Removes the leftmost characters from a string.
"abcdef", 5 -> "bcdef"static <C extends Collection<T>,T>
ClimitSize(C lines, int count, boolean trailing) static Stringstatic doublestatic doublemap(double x, double inMin, double inMax, double outMin, double outMax) static floatmap(float x, float inMin, float inMax, float outMin, float outMax) static intmap(int x, int inMin, int inMax, int outMin, int outMax) static longmap(long x, long inMin, long inMax, long outMin, long outMax) static booleanmatches(org.json.JSONObject obj1, org.json.JSONObject solution) Compares two JSONObjects for a match.static bytemax(byte a, byte b) static charmax(char a, char b) static shortmax(short a, short b) static ColormaxContrast(Color background) static ColormaxContrast(Color background, Color... choices) static ColormaxContrast(Color background, List<Color> choices) static ColormaxContrast(Color background, Stream<Color> stream) static floatmedian(float[] values) static longmillisTime(Runnable run) millisTime(Supplier<T> run) static bytemin(byte a, byte b) static charmin(char a, char b) static shortmin(short a, short b) static Stringstatic longstatic <T> TnewInstance(Class<T> clazz) static voidstatic StringnullIfBlank(String string) static ColoroppositeColor(Color color) static float[]pack(float[]... arrays) static booleanparseBoolean(String value, boolean else_) static booleanparseBoolean(String value, BooleanSupplier else_) static intparseInteger(String value, int else_) static intparseInteger(String value, IntSupplier else_) static voidprintMap(Map<String, Object> map, PrintStream printSteam) static Stringstatic voidprintTree(Map<String, Object> map, PrintStream out) static StringprintTreeNode(String name, Object value, String prefix, boolean last) static voidprintTreeNode(String name, Object value, String prefix, boolean last, PrintStream out) static StringprogressBar(long budgetNanos, long usedNanos, boolean showOverFlow) static charrandomCharRange(char min, char max) static ColorrandomColor(boolean alpha) static doublerandomDoubleRange(double min, double max) static floatrandomFloatRange(float min, float max) static longstatic int[]randomIntArray(int length, int min, int max) static intrandomIntRange(int min, int max) static longrandomLongRange(long min, long max) static byterandomShortRange(byte min, byte max) static shortrandomShortRange(short min, short max) static byte[]readBytesFile(String filePath) static byte[]readBytesSource(String location) static ByteBufferstatic byte[]readPackagedBytesFile(Class<?> cl, String path) static byte[]readPackagedBytesFile(ClassLoader cl, String path) static byte[]readPackagedBytesFile(String path) static StringreadPackagedStringFile(Class<?> cl, String path) static StringreadPackagedStringFile(ClassLoader cl, String path) static StringreadPackagedStringFile(String path) static StringreadStringFile(File file) static StringreadStringFile(String filePath) static StringreadStringSource(String location) recursiveList(Path directory) static StringrecursiveTree(int depth, String path) static StringrecursiveTree(String path) static byte[]static <T> T[]removeArray(T[] args, int i) static <T> T[]removeArray(T[] args, BiPredicate<Integer, Object> isToRemove) static StringremoveFileExtension(String path) static StringrepeatString(String str, int count) static Stringstatic StringreplaceFileExtension(String path, String ext) static StringreplaceLast(String original, String target, String replacement) static voidrequireNull(Object obj) static voidrequireNull(Object obj, String msg) static voidrequireNull(Object obj, Function<Object, String> msg) static voidrequireNull(Object obj, Supplier<String> msg) static <T> List<T> static <T> Stream<T> reversedStream(Collection<T> values) static StringrightPadString(String str, String fill, int length) static StringrightTrimToLength(String str, int length) Removes the rightmost characters from a string.static doubleround(double value, int decimals) static StringroundFill(double value, int decimals) static <T extends Cloneable,V extends T>
Vstatic Colorstatic <T> T[]static <T> T[]setArray(T[] arr, int index, T val) static <T> T[]shuffle(T[] arr) static <T> T[]shuffle(T[] arr, int fac) static <T> List<T> static StringsnakeCaseToCamelCase(String enumName) static doublesnap(double x, double interval) static intsnap(int x, int interval) static StringsqlEscapeIdentifier(String identifier) Deprecated.static floatstdDev(float[] values) static <T> T[]swap(T[] arr, int i, int j) static <T> Tstatic <T> Tstatic <V> BiFunction<? super V, ? super V, ? extends V> throwIfNotEqual(BiFunction<? super V, ? super V, Throwable> throwSupplier) static <T> Tstatic voidstatic voidthrowUnsupported(String msg) static byte[]static byte[]toBytes(InputStream inputStream) static Datestatic int[]toIntArray(byte[] arr) static <V> Iterable<V> toIterable(Iterator<V> iterator) toLineStream(InputStream inputStream) static <M extends Map<K,V>, K, V>
Mstatic Object[]toObjectArray(int[] data) toPairList(Supplier<List<Pair<A, B>>> listSupplier, Object... objects) static byte[]toPrimitiveByte(Object data) static float[]toPrimitiveFloat(Object data) static int[]toPrimitiveInt(Object data) static <S extends Set<V>,V>
Sstatic StringtoSimpleIdentityString(Object value) static <E> Stream<E> static StringtoString(InputStream inputStream) static Stringstatic TimestamptoTimestamp(Date value) toTripletList(Supplier<List<Triplet<A, B, C>>> listSupplier, Object... objects) static <T> Ttry_(ThrowingSupplier<T, Throwable> suplier, Function<Throwable, T> except) static booleanvalidEmail(String email) static booleanvalidString(String content) static <E extends Enum<E>>
EvalueOfOrdinal(Class<E> type, int ordinal) static StringvalueToString(Object value) static Stringstatic Class<?> wrapPrimitiveClass(Class<?> type) static floatzigZag(float x, int period)
-
Field Details
-
SHA_256_CHAR_LENGTH
public static final int SHA_256_CHAR_LENGTH- See Also:
-
HUMAN_FILE_SIZE_UNITS
-
-
Constructor Details
-
PCUtils
public PCUtils()
-
-
Method Details
-
add
-
add
public static <T> T[] add(T[] beanPackages, T name) -
addAll
-
allByteBufferToArray
-
appendFileName
-
applyMinThreshold
public static float applyMinThreshold(float x, float min) -
asArrayList
-
asMap
- Throws:
SQLException
-
backspace
-
byteArrayToHexString
-
byteArrayToList
-
byteBufferToHexString
Does not change the reader's position -
byteBufferToHexString
-
byteBufferToHexStringTable
-
byteBufferToIntArray
-
byteListToPrimitive
-
byteToInt
public static int byteToInt(byte[] byteArray) -
camelCaseToConstant
-
camelCaseToSnakeCase
-
capitalize
-
cast
-
castArray
public static <T> T[] castArray(Object[] arr, Function<Object, T> transformer, IntFunction<T[]> supplier) -
castInt
-
castMap
-
castObject
-
castObject
-
castObject
-
castObject
-
castObject
-
castObject
-
castObject
-
castObject
-
clamp
public static byte clamp(byte from, byte to, byte x) -
clamp
public static char clamp(char from, char to, char x) -
clamp
public static double clamp(double from, double to, double x) -
clamp
public static float clamp(float from, float to, float x) -
clamp
public static int clamp(int from, int to, int x) -
clamp
public static short clamp(short from, short to, short x) -
clampColor
-
clampColor
-
clampGreaterOrEquals
public static double clampGreaterOrEquals(double min, double x) -
clampGreaterOrEquals
public static float clampGreaterOrEquals(float min, float x) -
clampGreaterOrEquals
public static int clampGreaterOrEquals(int min, int x) -
clampGreaterOrEquals
public static long clampGreaterOrEquals(long min, long x) -
clampLessOrEquals
public static double clampLessOrEquals(double x, double max) -
clampLessOrEquals
public static float clampLessOrEquals(float x, float max) -
clampLessOrEquals
public static int clampLessOrEquals(int x, int max) -
clampLessOrEquals
public static long clampLessOrEquals(long x, long max) -
clampRange
public static byte clampRange(byte from, byte to, byte x) -
clampRange
public static char clampRange(char from, char to, char x) -
clampRange
public static double clampRange(double from, double to, double x) -
clampRange
public static float clampRange(float from, float to, float x) -
clampRange
public static int clampRange(int from, int to, int x) -
clampRange
public static short clampRange(short from, short to, short x) -
close
-
combineArrays
public static int[] combineArrays(int[] array1, int[] array2) -
combineArrays
public static <T> T[] combineArrays(T[] first, T[] second) -
appendArrays
public static <T> T[] appendArrays(T[] first, T... second) -
compare
public static boolean compare(byte x, byte target, byte delta) -
compare
public static boolean compare(char x, char target, char delta) -
compare
public static boolean compare(double x, double target, double delta) -
compare
public static boolean compare(float x, float target, float delta) -
compare
public static boolean compare(int x, int target, int delta) -
compare
public static boolean compare(short x, short target, short delta) -
compareVersion
-
computeDuplicates
public static <T,B, Set<C> computeDuplicatesC> (Collection<T> values, Function<T, B> func, Function<T, C> func2) -
computeGaussianWeights
public static float[] computeGaussianWeights(int radius) -
concatStreams
-
constantToCamelCase
-
snakeCaseToCamelCase
-
contrast
-
countElements
-
countElements
- Throws:
SQLException
-
defaultIfNull
-
defaultIfNull
public static <T> T defaultIfNull(T obj, T orElse) -
defaultIfNull
- Throws:
Throwable
-
deleteChar
-
deleteFile
- Throws:
IOException
-
deleteOldFiles
-
duplicates
-
duplicates
-
enumToNameString
-
enumValuetoEnum
-
extractFile
- Throws:
IOException
-
extractKeys
Extracts all keys from the given JSONObject, including nested keys, in the format of "key.subkey".- Parameters:
jsonObject- The JSONObject to extract keys from.- Returns:
- A Set containing all keys in the desired format.
-
fill
public static byte[] fill(byte[] bs, byte id) -
fill
public static char[] fill(char[] bs, char id) -
fill
public static double[] fill(double[] bs, double id) -
fill
public static float[] fill(float[] bs, float id) -
fill
public static int[] fill(int[] bs, int id) -
fill
public static long[] fill(long[] bs, long id) -
fill
public static short[] fill(short[] bs, short id) -
fillArray
-
fillArray
-
fillString
-
findCompatibleConstructor
public static <T> Constructor<T> findCompatibleConstructor(Class<T> clazz, Class<?>... argTypes) throws NoSuchMethodException - Throws:
NoSuchMethodException
-
first
-
first
public static <T,R> ThrowingFunction<List<T>,R, firstThrowable> (Function<T, R> transformer, R default_) -
first
public static <T,R> ThrowingFunction<List<T>,R, firstThrowable> (Function<T, R> transformer, Supplier<R> default_) -
floatRepeating
public static float[] floatRepeating(float[] is, int count) -
getAllFields
-
getAllThreads
-
getBoolean
-
getCallerClassName
-
getCallerClassName
-
getCallerClassName
-
getCallerClassName
-
getCallerClassName
0 -> first caller (before PCUtils)
1 -> second caller
3... -
getCause
-
getColumnIndex
- Throws:
SQLException
-
getColumnMapping
- Throws:
SQLException
-
getFileExtension
-
getFileName
-
getFileSize
-
getFileSize
-
getFloat
-
getHumanFormatFileSize
-
getIncrement
-
getInteger
-
getMaxIndices
public static int[] getMaxIndices(float[] arr, int n) -
getRawClass
-
getRootCauseMessage
-
getStackTraceAsString
-
getSubKey
-
getTypesInPackage
-
hasColumn
- Throws:
SQLException
-
hashMap
-
hashSet
-
hashString
-
hashStringSha256
-
hexToColor
- Parameters:
hex- RRGGBBAA
-
insert
public static <T> T[] insert(T[] array, int index, T element) -
insertChar
-
intArrayToByteBuffer
-
intCountingUp
public static int[] intCountingUp(int start, int end) -
intCountingUp
public static int[] intCountingUp(int start, int end, int steps, int count) -
intCountingUpTriQuads
public static int[] intCountingUpTriQuads(int quadCount) -
intToByteArray
public static byte[] intToByteArray(int val) -
ipToString
-
ipToString
-
isInteger
-
isNumber
-
isSubPath
-
isSubPath
- Throws:
IOException
-
isSubtype
-
isToday
-
isToday
-
joinString
-
leftPadLine
-
leftPadString
-
leftPadStringLeftTrim
"abcdef", " ", 5 -> "bcdef"
"abc", " ", 5 -> " abc" -
leftPadStringRightTrim
"abcdef", " ", 5 -> "abcde"
"abc", " ", 5 -> " abc" -
leftTrimToLength
Removes the leftmost characters from a string.
"abcdef", 5 -> "bcdef" -
limitSize
-
listAll
- Throws:
IOException
-
luminance
-
map
public static double map(double x, double inMin, double inMax, double outMin, double outMax) -
map
public static float map(float x, float inMin, float inMax, float outMin, float outMax) -
map
public static int map(int x, int inMin, int inMax, int outMin, int outMax) -
map
public static long map(long x, long inMin, long inMax, long outMin, long outMax) -
matches
public static boolean matches(org.json.JSONObject obj1, org.json.JSONObject solution) Compares two JSONObjects for a match. -
max
public static byte max(byte a, byte b) -
max
public static char max(char a, char b) -
max
public static short max(short a, short b) -
maxContrast
-
maxContrast
-
maxContrast
-
maxContrast
-
median
public static float median(float[] values) -
millisTime
-
millisTime
-
min
public static byte min(byte a, byte b) -
min
public static char min(char a, char b) -
min
public static short min(short a, short b) -
nameStringToEnum
-
nanoTime
-
nanoTime
-
newInstance
-
notImplemented
public static void notImplemented() -
oppositeColor
-
pack
public static float[] pack(float[]... arrays) -
parseBoolean
-
parseBoolean
-
parseInteger
-
parseInteger
-
progressBar
-
randomCharRange
public static char randomCharRange(char min, char max) -
randomColor
-
randomDoubleRange
public static double randomDoubleRange(double min, double max) -
randomFloatRange
public static float randomFloatRange(float min, float max) -
randomId
-
randomIntArray
public static int[] randomIntArray(int length, int min, int max) -
randomIntRange
public static int randomIntRange(int min, int max) -
randomLongRange
public static long randomLongRange(long min, long max) -
randomShortRange
public static byte randomShortRange(byte min, byte max) -
randomShortRange
public static short randomShortRange(short min, short max) -
readBytesFile
-
readBytesSource
-
readFile
- Throws:
IOException
-
readPackagedBytesFile
-
readPackagedBytesFile
-
readPackagedBytesFile
-
readPackagedStringFile
-
readPackagedStringFile
-
readPackagedStringFile
-
readStringFile
-
readStringFile
-
readStringSource
-
recursiveList
- Throws:
IOException
-
recursiveTree
- Throws:
IOException
-
recursiveTree
- Throws:
IOException
-
remainingByteBufferToArray
-
removeArray
-
removeArray
public static <T> T[] removeArray(T[] args, int i) -
removeFileExtension
-
repeatString
-
replace
-
replaceFileExtension
-
replaceLast
-
reversed
-
reversedStream
-
rightPadString
-
rightTrimToLength
Removes the rightmost characters from a string. "abcdef", 5 -> "abcde" -
round
public static double round(double value, int decimals) -
roundFill
-
safeClone
public static <T extends Cloneable,V extends T> V safeClone(ThrowingSupplier<Object, CloneNotSupportedException> clone) -
setAlpha
-
setArray
-
setArray
public static <T> T[] setArray(T[] arr, int index, T val) -
shuffle
public static <T> T[] shuffle(T[] arr) -
shuffle
public static <T> T[] shuffle(T[] arr, int fac) -
shuffled
-
snap
public static double snap(double x, double interval) -
snap
public static int snap(int x, int interval) -
sqlEscapeIdentifier
Deprecated. -
stdDev
public static float stdDev(float[] values) -
swap
public static <T> T[] swap(T[] arr, int i, int j) -
throw_
- Throws:
Exception
-
throw_
- Throws:
Throwable
-
throwRuntime
- Throws:
RuntimeException
-
throwUnsupported
public static void throwUnsupported() -
throwUnsupported
-
toByteArray
-
toBytes
-
toDate
-
toIntArray
public static int[] toIntArray(byte[] arr) -
toIterable
-
toLineStream
-
toMap
-
toSet
-
toObjectArray
-
toPairList
-
toPrimitiveByte
-
toPrimitiveFloat
-
toPrimitiveInt
-
toShuffledList
-
toSimpleIdentityString
-
toStream
-
toString
-
toString
-
toTimestamp
-
toTripletList
-
try_
-
validEmail
-
validString
-
valueOfOrdinal
-
wrapLine
-
wrapPrimitiveClass
-
zigZag
public static float zigZag(float x, int period) -
getUnwrappedAnnotations
-
globToRegex
-
throwIfNotEqual
public static <V> BiFunction<? super V,? super V, throwIfNotEqual? extends V> (BiFunction<? super V, ? super V, Throwable> throwSupplier) -
requireNull
-
requireNull
-
requireNull
-
requireNull
-
printMap
-
valueToString
-
printTree
-
printTreeNode
-
printTreeNode
public static void printTreeNode(String name, Object value, String prefix, boolean last, PrintStream out) -
printTree
-
joining
public static <T> Collector<T,?, joiningStringBuilder> (StringBuilder builder, String prefix, String delimiter, String suffix, Function<T, String> mapper) -
joining
public static <T> Collector<T,?, joiningStringBuilder> (StringBuilder builder, String prefixAndDelimiter, String suffix, Function<T, String> mapper) -
joining
public static <T> Collector<T,?, joiningStringBuilder> (StringBuilder builder, String prefixAndDelimiter, String suffix) -
joining
public static <T> Collector<T,?, joiningStringBuilder> (StringBuilder builder, String prefixAndDelimiter) -
getColumnNames
- Throws:
SQLException
-
getArrayDimension
-
isArrayType
-
getComponentType
-
nullIfBlank
-