Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/commons-lang
/ functions
Functions
9,093 in github.com/apache/commons-lang
⨍
Functions
9,093
◇
Types & classes
1,098
↓ 12 callers
Method
is32Bit
Tests if {@link Processor} is 32 bit. @return {@code true}, if {@link Processor} is {@link Arch#BIT_32}, else {@code false}.
src/main/java/org/apache/commons/lang3/arch/Processor.java:186
↓ 12 callers
Method
is64Bit
Tests if {@link Processor} is 64 bit. @return {@code true}, if {@link Processor} is {@link Arch#BIT_64}, else {@code false}.
src/main/java/org/apache/commons/lang3/arch/Processor.java:195
↓ 12 callers
Method
isAllEmpty
Tests if all of the CharSequences are empty ("") or null. <pre> StringUtils.isAllEmpty(null) = true StringUtils.isAllEmpty(null, "")
src/main/java/org/apache/commons/lang3/StringUtils.java:3201
↓ 12 callers
Method
isAlphanumericSpace
Tests if the CharSequence contains only Unicode letters, digits or space ({@code ' '}). <p> {@code null} will return {@code false}. An empty CharSequ
src/main/java/org/apache/commons/lang3/StringUtils.java:3382
↓ 12 callers
Method
isAvailableLocale
Checks if the locale specified is in the set of available locales. @param locale the Locale object to check if it is available. @return true if the l
src/main/java/org/apache/commons/lang3/LocaleUtils.java:189
↓ 12 callers
Method
isLanguageUndetermined
Tests whether a Locale's language is undetermined. <p> A Locale's language tag is undetermined if it's value is {@code "und"}. If a language is empty,
src/main/java/org/apache/commons/lang3/LocaleUtils.java:225
↓ 12 callers
Method
isSameInstant
Tests whether two calendar objects represent the same instant in time. <p>This method compares the long millisecond time of the two objects.</p> @pa
src/main/java/org/apache/commons/lang3/time/DateUtils.java:901
↓ 12 callers
Method
join4
(final Object... objects)
src/test/java/org/apache/commons/lang3/stream/LangCollectorsTest.java:74
↓ 12 callers
Method
mapLookup
Returns a lookup which looks up values using a map. <p> If the map is null, then null will be returned from every lookup. The map result object is con
src/main/java/org/apache/commons/lang3/text/StrLookup.java:122
↓ 12 callers
Method
next
Creates a random string whose length is the number of characters specified. <p> Characters will be chosen from the set of all characters. </p> @para
src/main/java/org/apache/commons/lang3/RandomStringUtils.java:756
↓ 12 callers
Method
nullPair
Returns an immutable pair of nulls. @param <L> The left element of this pair. Value is {@code null}. @param <R> The right element of this pair. Value
src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java:91
↓ 12 callers
Method
nullTo
Defensive programming technique to change a {@code null} reference to an empty one. <p> This method returns a default array for a {@code null} input a
src/main/java/org/apache/commons/lang3/ArrayUtils.java:4617
↓ 12 callers
Method
parameterizeWithOwner
Creates a parameterized type instance. @param owner the owning type. @param rawClass the raw class to create a parameterized type in
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:1469
↓ 12 callers
Method
regionMatches
Tests if two string regions are equal. @param cs the {@link CharSequence} to be processed. @param ignoreCase whether or not to be case-insens
src/main/java/org/apache/commons/lang3/CharSequenceUtils.java:313
↓ 12 callers
Method
remove
Unsupported ListIterator operation. @throws UnsupportedOperationException always.
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:848
↓ 12 callers
Method
replaceIn
Replaces all the occurrences of variables within the given source builder with their matching values from the resolver. @param source the builder to
src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java:739
↓ 12 callers
Method
replaceOnce
Replaces a String with another String inside a larger String, once. <p> A {@code null} reference passed to this method is a no-op. </p> <p> Case-sen
src/main/java/org/apache/commons/lang3/Strings.java:1382
↓ 12 callers
Method
set
Sets the specified field to a date returning a new object. This does not use a lenient calendar. The original {@link Date} is unchanged. @param date
src/main/java/org/apache/commons/lang3/time/DateUtils.java:1483
↓ 12 callers
Method
splitByCharacterTypeCamelCase
Splits a String by Character type as returned by {@link Character#getType(int)}. Groups of contiguous characters of the same type are returned as comp
src/main/java/org/apache/commons/lang3/StringUtils.java:7311
↓ 12 callers
Method
splitByWholeSeparatorPreserveAllTokens
Splits the provided text into an array, separator string specified. <p> The separator is not included in the returned String array. Adjacent separato
src/main/java/org/apache/commons/lang3/StringUtils.java:7399
↓ 12 callers
Method
startsWithAny
Tests if a CharSequence starts with any of the provided prefixes. <p> Case-sensitive examples </p> <pre> Strings.CS.startsWithAny(null, null) =
src/main/java/org/apache/commons/lang3/Strings.java:1472
↓ 12 callers
Method
startsWithAny
Tests if a CharSequence starts with any of the provided case-sensitive prefixes. <pre> StringUtils.startsWithAny(null, null) = false StringUtils
src/main/java/org/apache/commons/lang3/StringUtils.java:7850
↓ 12 callers
Method
toPattern
{@inheritDoc}
src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java:513
↓ 12 callers
Method
toStringExclude
Builds a String for a toString method excluding the given field names. @param object The object to "toString". @param excludeFieldNames
src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java:398
↓ 12 callers
Method
translate
{@inheritDoc}
src/main/java/org/apache/commons/lang3/text/translate/OctalUnescaper.java:60
↓ 12 callers
Method
trim
Removes control characters plus space (char <= 32) from both ends of this String, handling {@code null} by returning {@code null}. <p> The String
src/main/java/org/apache/commons/lang3/StringUtils.java:8836
↓ 12 callers
Method
trimAsciiControl
Removes control characters (char <= 31) from both ends of this String, handling {@code null} by returning {@code null}. <p> To trim your choice of
src/main/java/org/apache/commons/lang3/StringUtils.java:8859
↓ 12 callers
Method
uncapitalize
Uncapitalizes a String, changing the first character to lower case as per {@link Character#toLowerCase(int)}. No other characters are changed. <p> Fo
src/main/java/org/apache/commons/lang3/StringUtils.java:9059
↓ 12 callers
Method
validateArray
Checks if the specified array is neither null nor empty. @param array the array to check. @throws IllegalArgumentException if {@code array} is empty.
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:1678
↓ 11 callers
Method
allNotNull
Tests if all values in the array are not {@code nulls}. <p> If any value is {@code null} or the array is {@code null} then {@code false} is returned.
src/main/java/org/apache/commons/lang3/ObjectUtils.java:144
↓ 11 callers
Method
anyNull
Tests if any value in the given array is {@code null}. <p> If any of the values are {@code null} or the array is {@code null}, then {@code true} is r
src/main/java/org/apache/commons/lang3/ObjectUtils.java:219
↓ 11 callers
Method
appendAll
Appends each item in an iterable to the builder without any separators. Appending a null iterable will have no effect. Each object is appended using {
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:790
↓ 11 callers
Method
appendSummarySize
Appends to the {@code toString} a size summary. <p> The size summary is used to summarize the contents of {@link Collection}s, {@link Map}s and array
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1752
↓ 11 callers
Method
builder
Creates a new builder. @param <T> The type of elements. @return a new builder.
src/main/java/org/apache/commons/lang3/AppendableJoiner.java:172
↓ 11 callers
Method
clear
Fills and returns the given array, assigning {@code 0} to each element of the array. <pre> ArrayFill.fill(a, (byte) 0); </pre> @param a the array t
src/main/java/org/apache/commons/lang3/ArrayFill.java:44
↓ 11 callers
Method
containsTokenWithValue
Helper method to determine if a set of tokens contain a value @param tokens set to search. @param value to look find. @return boolean {@code true} if
src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java:110
↓ 11 callers
Method
difference
Compares two Strings, and returns the portion where they differ. More precisely, return the remainder of the second String, starting from where it's d
src/main/java/org/apache/commons/lang3/StringUtils.java:1693
↓ 11 callers
Method
distance
Returns the number of inheritance hops between two classes. @param child the child class, may be {@code null} @param parent the parent class, may be
src/main/java/org/apache/commons/lang3/reflect/InheritanceUtils.java:37
↓ 11 callers
Method
findThreadById
Finds the active thread with the specified id. @param threadId The thread id. @return The thread with the specified id or {@code null} if no such thr
src/main/java/org/apache/commons/lang3/ThreadUtils.java:185
↓ 11 callers
Method
getArraySeparator
Gets the array separator text. @return the current array separator text.
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1818
↓ 11 callers
Method
getFirstContextValue
Gets the first available contextual data value associated with the label. @param label the label to get the contextual value for, may be {@code null
src/main/java/org/apache/commons/lang3/exception/ExceptionContext.java:79
↓ 11 callers
Method
getFirstNonNull
Executes the given suppliers in order and returns the first return value where a value other than {@code null} is returned. Once a non-{@code null} va
src/main/java/org/apache/commons/lang3/ObjectUtils.java:632
↓ 11 callers
Method
getFormattedExceptionMessage
Gets the contextualized error message based on a base message. This will add the context label-value pairs to the message. @param baseMessage the ba
src/main/java/org/apache/commons/lang3/exception/ExceptionContext.java:88
↓ 11 callers
Method
getFuzzyDistance
Gets the Fuzzy Distance which indicates the similarity score between two Strings. <p> This string matching algorithm is similar to the algorithms of
src/main/java/org/apache/commons/lang3/StringUtils.java:2118
↓ 11 callers
Method
getLocale
Gets the locale used by this formatter. @return the locale.
src/main/java/org/apache/commons/lang3/time/FastDateFormat.java:534
↓ 11 callers
Method
getObject
Gets the {@link Object} being output. @return The object being output. @since 2.0
src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java:1062
↓ 11 callers
Method
greaterThanOrEqualTo
Tests if the object passed to {@link #is} is greater than or equal to {@code b} @param b the object to compare to the base object @return true if the
src/main/java/org/apache/commons/lang3/compare/ComparableUtils.java:103
↓ 11 callers
Method
intValue
Returns the value of this MutableLong as an int. @return the numeric value represented by this object after conversion to type int.
src/main/java/org/apache/commons/lang3/mutable/MutableLong.java:302
↓ 11 callers
Method
invert
Gets a fraction that is the inverse (1/fraction) of this one. <p> The returned fraction is not reduced. </p> @return a new fraction instance with the
src/main/java/org/apache/commons/lang3/math/Fraction.java:731
↓ 11 callers
Method
isAllBlank
Tests if all of the CharSequences are empty (""), null or whitespace only. <p> Whitespace is defined by {@link Character#isWhitespace(char)}. </p> <
src/main/java/org/apache/commons/lang3/StringUtils.java:3170
↓ 11 callers
Method
isAnyEmpty
Tests if any of the CharSequences are empty ("") or null. <pre> StringUtils.isAnyEmpty((String) null) = true StringUtils.isAnyEmpty((String[]) nul
src/main/java/org/apache/commons/lang3/StringUtils.java:3491
↓ 11 callers
Method
isFullDetail
Is this field to be output in full detail. <p> This method converts a detail request into a detail level. The calling code may request full detail ({
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1992
↓ 11 callers
Method
isNoneBlank
Tests if none of the CharSequences are empty (""), null or whitespace only. <p> Whitespace is defined by {@link Character#isWhitespace(char)}. </p>
src/main/java/org/apache/commons/lang3/StringUtils.java:3662
↓ 11 callers
Method
isSet
Tests whether the field is set or not. <p> This is most commonly used for a single-bit field, which is often used to represent a boolean value; the re
src/main/java/org/apache/commons/lang3/BitField.java:255
↓ 11 callers
Method
join
Waits for the given thread to die for the given duration. Implemented using {@link Thread#join(long, int)}. <p> Calling this method with {@link Durati
src/main/java/org/apache/commons/lang3/ThreadUtils.java:484
↓ 11 callers
Method
joining
Returns a {@code Collector} that concatenates the input elements, separated by the specified delimiter, in encounter order. <p> This is a variation of
src/main/java/org/apache/commons/lang3/stream/LangCollectors.java:132
↓ 11 callers
Method
lastOrdinalIndexOf
Finds the n-th last index within a String, handling {@code null}. This method uses {@link String#lastIndexOf(String)}. <p> A {@code null} String will
src/main/java/org/apache/commons/lang3/StringUtils.java:5112
↓ 11 callers
Method
longValue
Returns the value of this MutableInt as a long. @return the numeric value represented by this object after conversion to type long.
src/main/java/org/apache/commons/lang3/mutable/MutableInt.java:312
↓ 11 callers
Method
printRootCauseStackTrace
Prints a compact stack trace for the root cause of a throwable to {@code System.err}. <p> The compact stack trace starts with the root cause and print
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:721
↓ 11 callers
Method
removeFirst
Removes the first substring of the text string that matches the given regular expression. This method is a {@code null} safe equivalent to: <ul> <li>
src/main/java/org/apache/commons/lang3/StringUtils.java:5942
↓ 11 callers
Method
removeStartIgnoreCase
Case-insensitive removal of a substring if it is at the beginning of a source string, otherwise returns the source string. <p> A {@code null} source
src/main/java/org/apache/commons/lang3/StringUtils.java:6095
↓ 11 callers
Method
rotate
Rotate (circular shift) a String of {@code shift} characters. <ul> <li>If {@code shift > 0}, right circular shift (ex : ABCDEF => FABCDE)</li> <li>
src/main/java/org/apache/commons/lang3/StringUtils.java:7082
↓ 11 callers
Method
run
Runs a runnable and rethrows any exception as a {@link RuntimeException}. @param runnable The runnable to run, may be null for a noop. @param <E> The
src/main/java/org/apache/commons/lang3/function/Failable.java:531
↓ 11 callers
Method
secure
Gets the singleton instance based on {@link SecureRandom#SecureRandom()} which uses the default algorithm and provider of {@link SecureRandom}. <p> Th
src/main/java/org/apache/commons/lang3/RandomUtils.java:250
↓ 11 callers
Method
setTrimmerMatcher
Sets the matcher for characters to trim. <p> These characters are trimmed off on each side of the delimiter until the token or quote is found. </p> @
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:1043
↓ 11 callers
Method
stream
Converts the given collection into a {@link FailableStream}. The {@link FailableStream} consists of the collections elements. Shortcut for <pre> Func
src/main/java/org/apache/commons/lang3/Functions.java:559
↓ 11 callers
Method
stream
Converts the given collection into a {@link FailableStream}. The {@link FailableStream} consists of the collections elements. Shortcut for <pre> Func
src/main/java/org/apache/commons/lang3/function/Failable.java:563
↓ 11 callers
Method
stream
Converts the given {@link Collection} into a {@link FailableStream}. This is basically a simplified, reduced version of the {@link Stream} class, with
src/main/java/org/apache/commons/lang3/stream/Streams.java:780
↓ 11 callers
Method
toIntegerObject
Converts a boolean to an Integer using the convention that {@code true} is {@code 1} and {@code false} is {@code 0}. <pre> BooleanUtils.toIntegerOb
src/main/java/org/apache/commons/lang3/BooleanUtils.java:945
↓ 11 callers
Method
toMap
Converts the given array into a {@link java.util.Map}. Each element of the array must be either a {@link java.util.Map.Entry} or an Array, containing
src/main/java/org/apache/commons/lang3/ArrayUtils.java:9010
↓ 11 callers
Method
toProperString
Gets the fraction as a proper {@link String} in the format X Y/Z. <p> The format used in '<em>wholeNumber</em> <em>numerator</em>/<em>denominator</em>
src/main/java/org/apache/commons/lang3/math/Fraction.java:883
↓ 11 callers
Method
toString
Converts a boolean to a String returning one of the input Strings. <pre> BooleanUtils.toString(true, "true", "false") = "true" BooleanUtils.toS
src/main/java/org/apache/commons/lang3/BooleanUtils.java:1022
↓ 11 callers
Method
toString
Converts the character to a String that contains the one character. <p>For ASCII 7 bit characters, this uses a cache that will return the same String
src/main/java/org/apache/commons/lang3/CharUtils.java:528
↓ 11 callers
Method
toString
Gets the fraction as a {@link String}. <p> The format used is '<em>numerator</em>/<em>denominator</em>' always. </p> @return a {@link String} form of
src/main/java/org/apache/commons/lang3/math/Fraction.java:917
↓ 11 callers
Method
toStringArray
Returns an array containing the string representation of each element in the argument array. <p> This method returns {@code null} for a {@code null} i
src/main/java/org/apache/commons/lang3/ArrayUtils.java:9653
↓ 11 callers
Method
unescapeXml
Unescapes a string containing XML entity escapes to a string containing the actual Unicode characters corresponding to the escapes. <p>Supports only
src/main/java/org/apache/commons/lang3/StringEscapeUtils.java:780
↓ 11 callers
Method
validateAllFieldsPresent
(final String toString)
src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderIncludeTest.java:206
↓ 11 callers
Method
wrappedFactory
Sets the {@link ThreadFactory} to be wrapped by the new {@code BasicThreadFactory}. @param factory the wrapped {@link ThreadFactory} (must not be {@c
src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java:239
↓ 10 callers
Method
append
Appends to the {@code builder} the comparison of two {@code booleans}s. @param lhs left-hand side value @param rhs right-hand side value @return {@
src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java:440
↓ 10 callers
Method
append
Appends a {@code hashCode} for a {@code boolean}. <p> This adds {@code 1} when true, and {@code 0} when false to the {@code hashCode}. </p> <p> This
src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java:607
↓ 10 callers
Method
assertEqualsArchNotNull
(final Processor.Arch arch, final Processor processor)
src/test/java/org/apache/commons/lang3/ArchUtilsTest.java:47
↓ 10 callers
Method
assertEqualsTypeNotNull
(final Processor.Type type, final Processor processor)
src/test/java/org/apache/commons/lang3/ArchUtilsTest.java:53
↓ 10 callers
Method
assertGetClassThrowsClassNotFound
(final String className)
src/test/java/org/apache/commons/lang3/ClassUtilsTest.java:107
↓ 10 callers
Method
assertNotEqualsArchNotNull
(final Processor.Arch arch, final Processor processor)
src/test/java/org/apache/commons/lang3/ArchUtilsTest.java:59
↓ 10 callers
Method
assertWeekIterator
This checks that this is a 7 element iterator of Calendar objects that are dates (no time), and exactly 1 day spaced after each other.
src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java:88
↓ 10 callers
Method
byteArrayToLong
Converts an array of byte into a long using the default (little-endian, LSB0) byte and bit ordering. @param src the byte array to convert. @param
src/main/java/org/apache/commons/lang3/Conversion.java:426
↓ 10 callers
Method
checkAppendInput
(final String fieldName, final Boolean fullDetail)
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:291
↓ 10 callers
Method
checkBuiltInFormat
Create an ExtendedMessageFormat for the specified pattern and locale and check the formatted output matches the expected result for the parameters. @p
src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java:253
↓ 10 callers
Method
closeQuietly
Closes an {@link AutoCloseable}, never throwing an {@link Exception}. <p> Equivalent to {@link AutoCloseable#close()}, except any exceptions will be i
src/main/java/org/apache/commons/lang3/AutoCloseables.java:75
↓ 10 callers
Method
compare
Comparable based compare implementation. @param obj1 left-hand side side of comparison. @param obj2 right-hand side side of comparison. @return negat
src/main/java/org/apache/commons/lang3/Range.java:51
↓ 10 callers
Method
decrementAndGet
Decrements this instance's value by 1; this method returns the value associated with the instance immediately after the decrement operation. This meth
src/main/java/org/apache/commons/lang3/mutable/MutableInt.java:157
↓ 10 callers
Method
delete
Deletes the characters between the two specified indices. @param startIndex the start index, inclusive, must be valid. @param endIndex the end inde
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1671
↓ 10 callers
Method
deleteWhitespace
Deletes all whitespaces from a String as defined by {@link Character#isWhitespace(char)}. <pre> StringUtils.deleteWhitespace(null) = null Str
src/main/java/org/apache/commons/lang3/StringUtils.java:1646
↓ 10 callers
Method
equalsIgnoreCase
Checks the contents of this builder against another to see if they contain the same character content ignoring case. @param other the object to chec
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1903
↓ 10 callers
Method
firstNonBlank
Returns the first value in the array which is not empty (""), {@code null} or whitespace only. <p> Whitespace is defined by {@link Character#isWhites
src/main/java/org/apache/commons/lang3/StringUtils.java:1924
↓ 10 callers
Method
firstNonEmpty
Returns the first value in the array which is not empty. <p> If all values are empty or the array is {@code null} or empty then {@code null} is retur
src/main/java/org/apache/commons/lang3/StringUtils.java:1959
↓ 10 callers
Method
genericArrayType
Creates a generic array type instance. @param componentType the type of the elements of the array. For example the component type of {@code boolean[]
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:573
↓ 10 callers
Method
getDigits
Checks if a String {@code str} contains Unicode digits, if yes then concatenate all the digits in {@code str} and return it as a String. <p> An empty
src/main/java/org/apache/commons/lang3/StringUtils.java:2071
↓ 10 callers
Method
getDisplayName
{@inheritDoc}
src/main/java/org/apache/commons/lang3/time/ImmutableTimeZone.java:47
↓ 10 callers
Method
getExpectedToString
Create an expected to String for the given WithArraysInstance @param wa Instance @param arrayType Type - empty used to indica
src/test/java/org/apache/commons/lang3/builder/MultilineRecursiveToStringStyleTest.java:178
← previous
next →
701–800 of 9,093, ranked by callers