MCPcopy Create free account

hub / github.com/apache/commons-lang / functions

Functions9,093 in github.com/apache/commons-lang

↓ 9 callersMethodstream
Streams causes of a Throwable. <p> A throwable without cause will return a stream containing one element - the input throwable. A throwable with one c
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:895
↓ 9 callersMethodthrowUnchecked
Tests whether the specified {@link Throwable} is unchecked and throws it if so. @param <T> The Throwable type. @param throwable the throwable to test
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:1028
↓ 9 callersMethodtoCharset
Returns the given {@code charset} or the default Charset if {@code charset} is null. @param charset a Charset or null. @return the given {@code chars
src/main/java/org/apache/commons/lang3/Charsets.java:43
↓ 9 callersMethodtranslate
Helper for non-Writer usage. @param input CharSequence to be translated. @return String output of translation.
src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java:67
↓ 9 callersMethodtrimToEmpty
Removes control characters (char &lt;= 32) from both ends of this String returning an empty String ("") if the String is empty ("") after the trim or
src/main/java/org/apache/commons/lang3/StringUtils.java:8894
↓ 9 callersMethodtrimToNull
Removes control characters (char &lt;= 32) from both ends of this String returning {@code null} if the String is empty ("") after the trim or if it is
src/main/java/org/apache/commons/lang3/StringUtils.java:8918
↓ 9 callersMethodvetoableChange
(final PropertyChangeEvent e)
src/test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java:59
↓ 8 callersMethodaddMilliseconds
Adds a number of milliseconds to a date returning a new object. The original {@link Date} is unchanged. @param date the date, not null. @param amoun
src/main/java/org/apache/commons/lang3/time/DateUtils.java:265
↓ 8 callersMethodanyNotNull
Tests if any value in the given array is not {@code null}. <p> If all the values are {@code null} or the array is {@code null} or empty then {@code f
src/main/java/org/apache/commons/lang3/ObjectUtils.java:193
↓ 8 callersMethodasInterfaceInstance
Produces an instance of the given single-method interface which redirects its calls to the given method. <p> For the definition of "single-method", se
src/main/java/org/apache/commons/lang3/function/MethodInvokers.java:209
↓ 8 callersMethodasRuntimeException
Throws the given (usually checked) exception without adding the exception to the throws clause of the calling method. This method prevents throws clau
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:145
↓ 8 callersMethodassertIsEquals
(final Object array1, final Object array2, final Object array3)
src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java:74
↓ 8 callersMethodbuilder
Constructs a new {@link Builder}. @param <T> type of the left and right object. @return a new {@link Builder}. @since 3.15.0
src/main/java/org/apache/commons/lang3/builder/DiffBuilder.java:209
↓ 8 callersMethodcapacity
(final int count, final byte maxElementChars)
src/test/java/org/apache/commons/lang3/StringUtilsJoinBenchmark.java:493
↓ 8 callersMethodcapacity
Computes the capacity required for a StringBuilder to hold {@code items} of {@code maxElementChars} characters plus the separators between them. The s
src/main/java/org/apache/commons/lang3/StringUtils.java:523
↓ 8 callersMethodcharSetMatcher
Creates a matcher from a set of characters. @param chars the characters to match, null or empty matches nothing. @return a new matcher for the given
src/main/java/org/apache/commons/lang3/text/StrMatcher.java:266
↓ 8 callersMethodcheckCsvEscapeWriter
(final String expected, final String value)
src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java:91
↓ 8 callersMethodcheckEquals
Helper method for testing equals() and hashCode(). @param obj the object to compare with the test instance @param expected the expected result
src/test/java/org/apache/commons/lang3/concurrent/ConstantInitializerTest.java:45
↓ 8 callersMethodcheckFromToIndex
(final int startIndex, final int endIndex, final int length)
src/main/java/org/apache/commons/lang3/StringUtils.java:669
↓ 8 callersMethodclear
Clears the bits. @param holder the int data containing the bits we're interested in. @return the value of holder with the specified bits cleared (set
src/main/java/org/apache/commons/lang3/BitField.java:106
↓ 8 callersMethodclone
Clones an object. @param <T> The type of the object. @param obj the object to clone, null returns null. @return the clone if the object implements {@
src/main/java/org/apache/commons/lang3/ObjectUtils.java:232
↓ 8 callersMethodclone
Cloning this {@link BitSet} produces a new {@link BitSet} that is equal to it. The clone of the bit set is another bit set that has exactly the same b
src/main/java/org/apache/commons/lang3/util/FluentBitSet.java:198
↓ 8 callersMethodcompare
Compare two Strings lexicographically, like {@link String#compareTo(String)}. <p> The return values are: </p> <ul> <li>{@code int = 0}, if {@code str1
src/main/java/org/apache/commons/lang3/Strings.java:501
↓ 8 callersMethodcreateBigDecimal
Creates a {@link BigDecimal} from a {@link String}. <p> Returns {@code null} if the string is {@code null}. </p> @param str a {@link String} to conv
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:183
↓ 8 callersMethodcreateLong
Creates a {@link Long} from a {@link String}. Handles hexadecimal (0Xhhhh) and octal (0ddd) notations. A leading zero means octal; spaces are not tri
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:315
↓ 8 callersMethoddiffDeprecated
(final TypeTestClass obj)
src/test/java/org/apache/commons/lang3/builder/ReflectionDiffBuilderTest.java:210
↓ 8 callersMethodequals
Supports equality of this Token to another Token. @param obj2 Object to consider equality of. @return boolean {@code true} if equal.
src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java:139
↓ 8 callersMethodfindThreadGroups
Finds all active thread groups which match the given predicate. @param predicate the predicate. @return An unmodifiable {@link Collection} of active
src/main/java/org/apache/commons/lang3/ThreadUtils.java:245
↓ 8 callersMethodfinite
Validates that the specified argument is not infinite or Not-a-Number (NaN); otherwise throwing an exception. <pre>Validate.finite(myDouble);</pre>
src/main/java/org/apache/commons/lang3/Validate.java:221
↓ 8 callersMethodforEach
Performs an action for each Throwable causes of the given Throwable. <p> A throwable without cause will return a stream containing one element - the i
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:178
↓ 8 callersMethodgenerateCause
()
src/test/java/org/apache/commons/lang3/exception/AbstractExceptionTest.java:32
↓ 8 callersMethodget
Gets a Duration of unit stored in the system property at the given key. @param key The property name. @param unit The unit that the duration is meas
src/main/java/org/apache/commons/lang3/time/DurationUtils.java:74
↓ 8 callersMethodgetBar
()
src/test/java/org/apache/commons/lang3/reflect/PackageBean.java:37
↓ 8 callersMethodgetCloseableCounter
()
src/test/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializerTest.java:72
↓ 8 callersMethodgetEnd
Gets the end character for this character range. @return the end char (inclusive).
src/main/java/org/apache/commons/lang3/CharRange.java:301
↓ 8 callersMethodgetInitializer
Gets the initializer supplier called by {@link #initialize()}. @return the initializer supplier called by {@link #initialize()}.
src/main/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializer.java:78
↓ 8 callersMethodgetInt
Gets the current value for the property named {@code "SimpleClassName.Key"} as an {@code int}. <p> The parsing rules are as {@link Integer#parseInt(St
src/main/java/org/apache/commons/lang3/SystemProperties.java:1958
↓ 8 callersMethodgetListenerCount
Gets the number of registered listeners. @return the number of registered listeners.
src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java:287
↓ 8 callersMethodgetLong
Gets the current value for the property named {@code "SimpleClassName.Key"} as a {@code long}. <p> The parsing rules are as {@link Long#parseLong(Stri
src/main/java/org/apache/commons/lang3/SystemProperties.java:3730
↓ 8 callersMethodgetOwnerType
{@inheritDoc}
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:141
↓ 8 callersMethodgetRootCause
Walks the {@link Throwable} to obtain its root cause. <p>This method walks through the exception chain until the last element, the root cause of the
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:317
↓ 8 callersMethodgetStart
Gets the start character for this character range. @return the start char (inclusive).
src/main/java/org/apache/commons/lang3/CharRange.java:310
↓ 8 callersMethodgetThrowableCount
Gets a count of the number of {@link Throwable} objects in the exception chain. <p>A throwable without cause will return {@code 1}. A throwable with
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:491
↓ 8 callersMethodgetTimeZone
Gets the time zone used by this formatter. <p> This zone is always used for {@link Date} formatting. </p> @return the time zone.
src/main/java/org/apache/commons/lang3/time/FastDateFormat.java:571
↓ 8 callersMethodgetUserName
Gets the current value from the system properties map for {@value #USER_NAME}. <p> Returns {@code null} if the property cannot be read due to a {@link
src/main/java/org/apache/commons/lang3/SystemProperties.java:4185
↓ 8 callersMethodhashCode
Gets a hashCode for the fraction. @return a hash code value for this object
src/main/java/org/apache/commons/lang3/math/Fraction.java:706
↓ 8 callersMethodhashCode
Returns a suitable hash code for this mutable. @return the hash code returned by {@code Boolean.TRUE} or {@code Boolean.FALSE}
src/main/java/org/apache/commons/lang3/mutable/MutableBoolean.java:129
↓ 8 callersMethodindexOf
Used by the indexOf(CharSequence methods) as a green implementation of indexOf. @param cs the {@link CharSequence} to be processed. @param se
src/main/java/org/apache/commons/lang3/CharSequenceUtils.java:72
↓ 8 callersMethodintArrayToLong
Converts an array of int into a long using the default (little-endian, LSB0) byte and bit ordering. @param src the int array to convert. @param s
src/main/java/org/apache/commons/lang3/Conversion.java:862
↓ 8 callersMethodintValue
Returns the value of this MutableFloat as an int. @return the numeric value represented by this object after conversion to type int.
src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java:323
↓ 8 callersMethodisAllSet
Tests whether all of the bits are set or not. <p> This is a stricter test than {@link #isSet(int)}, in that all of the bits in a multi-bit set must be
src/main/java/org/apache/commons/lang3/BitField.java:227
↓ 8 callersMethodisAsciiAlphanumeric
Tests whether the character is ASCII 7 bit alphanumeric character. <pre> CharUtils.isAsciiAlphanumeric('a') = true CharUtils.isAsciiAlphanumeric
src/main/java/org/apache/commons/lang3/CharUtils.java:149
↓ 8 callersMethodisDigits
Tests whether the {@link String} contains only digit characters. <p> {@code null} and empty String will return {@code false}. </p> @param str the {@
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:608
↓ 8 callersMethodisEmpty
Tests whether if this {@link BitSet} contains no bits that are set to {@code true}. @return boolean indicating whether this {@link BitSet} is empty.
src/main/java/org/apache/commons/lang3/util/FluentBitSet.java:300
↓ 8 callersMethodisNotEmpty
Tests if a CharSequence is not empty ("") and not null. <pre> StringUtils.isNotEmpty(null) = false StringUtils.isNotEmpty("") = false Str
src/main/java/org/apache/commons/lang3/StringUtils.java:3730
↓ 8 callersMethodisOsMatch
Tests whether the operating system matches. <p> This method is package private instead of private to support unit test invocation. </p> @param osName
src/main/java/org/apache/commons/lang3/SystemUtils.java:2416
↓ 8 callersMethodisParsableDouble
(final String s)
src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java:152
↓ 8 callersMethodisParsableFloat
(final String s)
src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java:160
↓ 8 callersMethodisSameType
Tests whether two arrays are the same type taking into account multidimensional arrays. @param array1 the first array, must not be {@code null}. @par
src/main/java/org/apache/commons/lang3/ArrayUtils.java:3861
↓ 8 callersMethodjoin
(final boolean[] array, final char delimiter, final int startIndex, final int endIndex)
src/test/java/org/apache/commons/lang3/StringUtilsJoinBenchmark.java:497
↓ 8 callersMethodjoinWith
Joins the elements of the provided varargs into a single String containing the provided elements. <p> No delimiter is added before or after the list.
src/main/java/org/apache/commons/lang3/StringUtils.java:4804
↓ 8 callersMethodmin
Returns the minimum value in an array. @param array an array, must not be null or empty. @return the minimum value in the array. @throws NullPointer
src/main/java/org/apache/commons/lang3/math/IEEE754rUtils.java:151
↓ 8 callersMethodnextAlphabetic
Creates a random string whose length is the number of characters specified. <p> Characters will be chosen from the set of Latin alphabetic characters
src/main/java/org/apache/commons/lang3/RandomStringUtils.java:874
↓ 8 callersMethodnextFloat
Generates a random float between 0 (inclusive) and {@link Float#MAX_VALUE} ({@value Float#MAX_VALUE} exclusive). @return the random float. @see #next
src/main/java/org/apache/commons/lang3/RandomUtils.java:166
↓ 8 callersMethodnextNumeric
Creates a random string whose length is the number of characters specified. <p> Characters will be chosen from the set of numeric characters. </p> @
src/main/java/org/apache/commons/lang3/RandomStringUtils.java:1002
↓ 8 callersMethodnop
Gets the NOP singleton. @param <T> The type of the argument the consumer accepts. @param <E> The thrown exception type. @return The NOP singleton.
src/main/java/org/apache/commons/lang3/function/FailableConsumer.java:65
↓ 8 callersMethodnotNaN
Validates that the specified argument is not Not-a-Number (NaN); otherwise throwing an exception. <pre>Validate.notNaN(myDouble);</pre> <p>The messa
src/main/java/org/apache/commons/lang3/Validate.java:1003
↓ 8 callersMethodpaddedValue
Converts a {@code long} to a {@link String} with optional zero padding. @param value the value to convert. @param padWithZeros whether to pad
src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java:771
↓ 8 callersMethodrandomDouble
Generates a random double between 0 (inclusive) and {@link Double#MAX_VALUE} ({@value Double#MAX_VALUE} exclusive). @return the random double. @see #
src/main/java/org/apache/commons/lang3/RandomUtils.java:329
↓ 8 callersMethodrandomFloat
Generates a random float between 0 (inclusive) and Float.MAX_VALUE (exclusive). @return the random float. @see #randomFloat(float, float) @since 3.16
src/main/java/org/apache/commons/lang3/RandomUtils.java:358
↓ 8 callersMethodreadObject
(final ObjectInputStream in)
src/test/java/org/apache/commons/lang3/SerializationUtilsTest.java:52
↓ 8 callersMethodsetBoolean
Sets a boolean BitField. @param holder the int data containing the bits we're interested in. @param flag indicating whether to set or clear the bit
src/main/java/org/apache/commons/lang3/BitField.java:302
↓ 8 callersMethodsetContextValue
Sets a contextual label-value pair into this context. <p> The pair will be added normally, but any existing label-value pair with the same label is re
src/main/java/org/apache/commons/lang3/exception/ExceptionContext.java:101
↓ 8 callersMethodsetExternalExecutor
Sets an {@link ExecutorService} to be used by this class. The {@code ExecutorService} passed to this method is used for executing the background task.
src/main/java/org/apache/commons/lang3/concurrent/BackgroundInitializer.java:378
↓ 8 callersMethodsetLeft
Sets the left element of the pair. @param left the new value of the left element, may be null.
src/main/java/org/apache/commons/lang3/tuple/MutablePair.java:166
↓ 8 callersMethodsetLock
Set the lock used from accept methods. @param lock the lock. @return {@code this} instance.
src/main/java/org/apache/commons/lang3/concurrent/locks/LockingVisitors.java:205
↓ 8 callersMethodsetShortValue
Sets the bits with new values. @param holder the short data containing the bits we're interested in @param value the new value for the specified bit
src/main/java/org/apache/commons/lang3/BitField.java:368
↓ 8 callersMethodsetStyle
Sets the style will to use when outputting the objects, {@code null} uses the default. @param style the style to use when outputting the objects, {@c
src/main/java/org/apache/commons/lang3/builder/DiffBuilder.java:135
↓ 8 callersMethodshortArrayToLong
Converts an array of short into a long using the default (little-endian, LSB0) byte and bit ordering. @param src the short array to convert. @par
src/main/java/org/apache/commons/lang3/Conversion.java:1260
↓ 8 callersMethodsplitWorker
Performs the logic for the {@code split} and {@code splitPreserveAllTokens} methods that do not return a maximum array length. @param str
src/main/java/org/apache/commons/lang3/StringUtils.java:7670
↓ 8 callersMethodstream
Returns a sequential ordered stream whose elements are the given class' enum values. @param <T> the type of stream elements. @param clazz the class
src/main/java/org/apache/commons/lang3/EnumUtils.java:466
↓ 8 callersMethodstripAll
Strips whitespace from the start and end of every String in an array. Whitespace is defined by {@link Character#isWhitespace(char)}. <p> A new array
src/main/java/org/apache/commons/lang3/StringUtils.java:8002
↓ 8 callersMethodsuspend
Suspends this StopWatch for later resumption. <p> This method suspends the watch until it is resumed. The watch will not include time between the sus
src/main/java/org/apache/commons/lang3/time/StopWatch.java:784
↓ 8 callersMethodswapCase
Swaps the case of a String changing upper and title case to lower case, and lower case to upper case. <ul> <li>Upper case character converts to Lower
src/main/java/org/apache/commons/lang3/StringUtils.java:8713
↓ 8 callersMethodtestGmtMinus3
(final String expectedValue, final String pattern)
src/test/java/org/apache/commons/lang3/time/DateFormatUtilsTest.java:143
↓ 8 callersMethodtestLocales
(final TriFunction<String, TimeZone, Locale, DateParser> dbProvider, final String format, final bo
src/test/java/org/apache/commons/lang3/time/FastDateParserJava15BugTest.java:82
↓ 8 callersMethodtoCodePoints
Converts a {@link CharSequence} into an array of code points. <p> Valid pairs of surrogate code units will be converted into a single supplementary c
src/main/java/org/apache/commons/lang3/StringUtils.java:8753
↓ 8 callersMethodtoEpochMillis
Converts an Instant to milliseconds bound to a {@code long} without throwing {@link ArithmeticException}. <ul> <li>If the duration milliseconds are gr
src/main/java/org/apache/commons/lang3/time/Instants.java:47
↓ 8 callersMethodtoInt
Converts a {@link String} to an {@code int}, returning {@code zero} if the conversion fails. <p> If the string is {@code null}, {@code zero} is retur
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:1415
↓ 8 callersMethodtoMillisLong
Converts a Duration to milliseconds bound to a {@code long} without throwing {@link ArithmeticException}. <ul> <li>If the duration milliseconds are gr
src/main/java/org/apache/commons/lang3/time/DurationUtils.java:273
↓ 8 callersMethodtoNoNullStringArray
Converts the given Collection into an array of Strings. The returned array does not contain {@code null} entries. Note that {@link Arrays#sort(Object[
src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java:111
↓ 8 callersMethodtoString
Gets a string representation of the character range. @return string representation of this range.
src/main/java/org/apache/commons/lang3/CharRange.java:370
↓ 8 callersMethodtoTimeZone
Returns the given TimeZone if non-{@code null}, otherwise {@link TimeZone#getDefault()}. @param timeZone a locale or {@code null}. @return the given
src/main/java/org/apache/commons/lang3/time/TimeZones.java:91
↓ 8 callersMethodtruePredicate
Gets the Predicate singleton that always returns true. @param <T> The type of the input to the predicate. @return the Predicate singleton.
src/main/java/org/apache/commons/lang3/function/Predicates.java:50
↓ 8 callersMethodunrollVariables
Gets a type representing {@code type} with variable assignments "unrolled." @param typeArguments as from {@link TypeUtils#getTypeArguments(Type, Clas
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:1683
↓ 8 callersMethodvalidateIncludeFieldsPresent
(final String toString, final String[] fieldsToShow, final String[] valuesToShow)
src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderIncludeTest.java:210
↓ 8 callersMethodvalidateSecretFieldPresent
(final String toString)
src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderExcludeTest.java:133
↓ 8 callersMethodverify
(final ImmutablePair<String, Object[]> a, final ImmutablePair<String, Object[]> b)
src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java:339
↓ 7 callersMethodadd
Unsupported ListIterator operation. @param obj this parameter ignored. @throws UnsupportedOperationException always.
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:410
↓ 7 callersMethodallNull
Tests if all values in the given array are {@code null}. <p> If all the values are {@code null} or the array is {@code null} or empty, then {@code tr
src/main/java/org/apache/commons/lang3/ObjectUtils.java:168
← previousnext →901–1,000 of 9,093, ranked by callers