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
↓ 6 callers
Method
throwOnOdd
()
src/test/java/org/apache/commons/lang3/FunctionsTest.java:100
↓ 6 callers
Method
toBooleanDefaultIfNull
Converts a Boolean to a boolean handling {@code null}. <pre> BooleanUtils.toBooleanDefaultIfNull(Boolean.TRUE, false) = true BooleanUtils.toBool
src/main/java/org/apache/commons/lang3/BooleanUtils.java:566
↓ 6 callers
Method
toFullyQualifiedName
Returns the fully qualified name for the resource with name {@code resourceName} relative to the given context. <p> Note that this method does not ch
src/main/java/org/apache/commons/lang3/ClassPathUtils.java:73
↓ 6 callers
Method
toFullyQualifiedPath
Returns the fully qualified path for the resource with name {@code resourceName} relative to the given context. <p> Note that this method does not ch
src/main/java/org/apache/commons/lang3/ClassPathUtils.java:117
↓ 6 callers
Method
toLocalDateTime
Converts a {@link Date} to a {@link LocalDateTime}. @param date the Date to convert, not null. @return a new LocalDateTime. @since 3.19.0
src/main/java/org/apache/commons/lang3/time/DateUtils.java:1639
↓ 6 callers
Method
toMillisSince
Converts an Instant to milliseconds since that Instant bound to a {@code long} without throwing {@link ArithmeticException}. <ul> <li>If the duration
src/main/java/org/apache/commons/lang3/time/Instants.java:88
↓ 6 callers
Method
toStringWithStatics
This method uses reflection to build a suitable {@code toString} value which includes static fields. <p> It uses {@code AccessibleObject.setAccessible
src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java:1201
↓ 6 callers
Method
toSupplier
(final String message, final Object... values)
src/main/java/org/apache/commons/lang3/Validate.java:1065
↓ 6 callers
Method
translate
{@inheritDoc}
src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java:44
↓ 6 callers
Method
upperCase
Converts a String to upper case as per {@link String#toUpperCase()}. <p> A {@code null} input String returns {@code null}. </p> <pre> StringUtils.up
src/main/java/org/apache/commons/lang3/StringUtils.java:9162
↓ 6 callers
Method
useDaylightTime
()
src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java:112
↓ 6 callers
Method
uuidToByteArray
Converts UUID into an array of byte using the default (little-endian, LSB0) byte and bit ordering. @param src the UUID to convert. @param dst t
src/main/java/org/apache/commons/lang3/Conversion.java:1378
↓ 6 callers
Method
withLowerBounds
Specify lower bounds of the wildcard type to build. @param bounds to set. @return {@code this} instance.
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:207
↓ 6 callers
Method
xor
Performs a logical <strong>XOR</strong> of this bit set with the bit set argument. This bit set is modified so that a bit in it has the value {@code t
src/main/java/org/apache/commons/lang3/util/FluentBitSet.java:607
↓ 5 callers
Method
BASIC_ESCAPE
Mapping to escape the basic XML and HTML character entities. Namely: {@code " & < >} @return the mapping table.
src/main/java/org/apache/commons/lang3/text/translate/EntityArrays.java:382
↓ 5 callers
Method
accessibleString
Helps test reflection classes. @param string An input string. @return The given string or "<null>".
src/test/java/org/apache/commons/lang3/builder/AbstractBuilderTest.java:39
↓ 5 callers
Method
addEventListener
Adds an event listener to the specified source. This looks for an "add" method corresponding to the event type (addActionListener, for example). @pa
src/main/java/org/apache/commons/lang3/event/EventUtils.java:97
↓ 5 callers
Method
addMonths
Adds a number of months to a date returning a new object. The original {@link Date} is unchanged. @param date the date, not null. @param amount the
src/main/java/org/apache/commons/lang3/time/DateUtils.java:291
↓ 5 callers
Method
addToken
Adds a token to a list, paying attention to the parameters we've set. @param list the list to add to. @param tok the token to add.
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:421
↓ 5 callers
Method
allMatch
Returns whether all elements of this stream match the provided predicate. May not evaluate the predicate on all elements if not necessary for determin
src/main/java/org/apache/commons/lang3/Streams.java:168
↓ 5 callers
Method
asBiFunction
Produces a {@link BiFunction} for a given a <em>function</em> Method. You call the BiFunction with two arguments: (1) the object receiving the method
src/main/java/org/apache/commons/lang3/function/MethodInvokers.java:108
↓ 5 callers
Method
asFailableBiConsumer
Produces a {@link FailableBiConsumer} for a given <em>consumer</em> Method. For example, a classic setter method (as opposed to a fluent setter). You
src/main/java/org/apache/commons/lang3/function/MethodInvokers.java:123
↓ 5 callers
Method
asFailableBiFunction
Produces a {@link FailableBiFunction} for a given a <em>function</em> Method. You call the FailableBiFunction with two arguments: (1) the object recei
src/main/java/org/apache/commons/lang3/function/MethodInvokers.java:139
↓ 5 callers
Method
asFailableFunction
Produces a {@link FailableFunction} for a given a <em>supplier</em> Method. You call the Function with one argument: the object receiving the method c
src/main/java/org/apache/commons/lang3/function/MethodInvokers.java:153
↓ 5 callers
Method
assertNotTerminated
Throws IllegalStateException if this stream is already terminated. @throws IllegalStateException if this stream is already terminated.
src/main/java/org/apache/commons/lang3/Streams.java:202
↓ 5 callers
Method
assertNotTerminated
Throws IllegalStateException if this stream is already terminated. @throws IllegalStateException if this stream is already terminated.
src/main/java/org/apache/commons/lang3/stream/Streams.java:233
↓ 5 callers
Method
assertReflectionCompareContract
See "Effective Java" under "Consider Implementing Comparable". @param x an object to compare @param y an object to compare @param z an object to comp
src/test/java/org/apache/commons/lang3/builder/CompareToBuilderTest.java:118
↓ 5 callers
Method
assertRegionMatchesParity
(final String source, final boolean ignoreCase, final int toffset, final String other, final int o
src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java:168
↓ 5 callers
Method
assertUnmodifiableCollection
@param coll the collection to check
src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java:145
↓ 5 callers
Method
availableLocaleSet
Obtains an unmodifiable set of installed locales. <p> This method is a wrapper around {@link Locale#getAvailableLocales()}. It is more efficient, as
src/main/java/org/apache/commons/lang3/LocaleUtils.java:121
↓ 5 callers
Method
build
Builds a {@link DiffResult} based on the differences appended to this builder. @return a {@link DiffResult} containing the differences between the tw
src/main/java/org/apache/commons/lang3/builder/DiffBuilder.java:594
↓ 5 callers
Method
builder
Constructs a new {@link Builder} instance. @return a new {@link Builder} instance.
src/main/java/org/apache/commons/lang3/Strings.java:280
↓ 5 callers
Method
builder
Creates a new builder. @param <T> The type of object to build. @return a new builder. @since 3.14.0
src/main/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializer.java:94
↓ 5 callers
Method
checkChild
Tests whether a child initializer has been executed. Optionally the expected executor service can be checked, too. @param child the child initializer
src/test/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializerTest.java:172
↓ 5 callers
Method
checkTokenized
Checks if tokenization has been done, and if not then do it.
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:436
↓ 5 callers
Method
clear
Clears the cache.
src/main/java/org/apache/commons/lang3/time/FastDateParser.java:737
↓ 5 callers
Method
codePoints
()
src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java:128
↓ 5 callers
Method
compareTo
Compares this mutable to another in ascending order. @param other the other mutable to compare to, not null @return negative if this is less, zero i
src/main/java/org/apache/commons/lang3/mutable/MutableBoolean.java:91
↓ 5 callers
Method
constantFuture
Gets an implementation of {@link Future} that is immediately done and returns the specified constant value. <p> This can be useful to return a simple
src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java:129
↓ 5 callers
Method
createFloat
Creates a {@link Float} from a {@link String}. <p> Returns {@code null} if the string is {@code null}. </p> @param str a {@link String} to convert,
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:273
↓ 5 callers
Method
createIfAbsent
Checks if a concurrent map contains a key and creates a corresponding value if not. This method first checks the presence of the key in the given map.
src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java:153
↓ 5 callers
Method
equals
(final Object other)
src/test/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializerTest.java:115
↓ 5 callers
Method
escapeHtml4
Escapes the characters in a {@link String} using HTML entities. <p> For example: </p> <p>{@code "bread" & "butter"}</p> becomes: <p> {@code &
src/main/java/org/apache/commons/lang3/StringEscapeUtils.java:500
↓ 5 callers
Method
escapeJson
Escapes the characters in a {@link String} using Json String rules. <p>Escapes any values it finds into their Json String form. Deals correctly with q
src/main/java/org/apache/commons/lang3/StringEscapeUtils.java:551
↓ 5 callers
Method
estimateLength
Returns the estimated length of the result. @return the estimated length of the result.
src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java:326
↓ 5 callers
Method
getAsDouble
Invokes a double supplier, and returns the result. @param supplier The double supplier to invoke. @param <E> The type of checked exception, which the
src/main/java/org/apache/commons/lang3/function/Failable.java:438
↓ 5 callers
Method
getAsInt
Supplies an int. @return a result @throws E if the supplier fails
src/main/java/org/apache/commons/lang3/function/FailableIntSupplier.java:37
↓ 5 callers
Method
getAsLong
Supplies a long. @return a result @throws E if the supplier fails
src/main/java/org/apache/commons/lang3/function/FailableLongSupplier.java:37
↓ 5 callers
Method
getCSVInstance
Gets a new tokenizer instance which parses Comma Separated Value strings initializing it with the given input. The default for CSV processing will be
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:139
↓ 5 callers
Method
getCloseableCounter
()
src/test/java/org/apache/commons/lang3/concurrent/BackgroundInitializerTest.java:73
↓ 5 callers
Method
getComparator
Gets the comparator being used to determine if objects are within the range. <p>Natural ordering uses an internal comparator implementation, thus thi
src/main/java/org/apache/commons/lang3/Range.java:367
↓ 5 callers
Method
getCount
()
src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java:53
↓ 5 callers
Method
getDSTSavings
{@inheritDoc}
src/main/java/org/apache/commons/lang3/time/ImmutableTimeZone.java:55
↓ 5 callers
Method
getEnumSystemProperty
Gets the enum for the class in a system property, returning {@code defaultEnum} if not found. <p> This method differs from {@link Enum#valueOf} in th
src/main/java/org/apache/commons/lang3/EnumUtils.java:325
↓ 5 callers
Method
getExcludeFieldNames
Gets the field names that should be excluded from the diff. @return the excludeFieldNames. @since 3.13.0
src/main/java/org/apache/commons/lang3/builder/ReflectionDiffBuilder.java:238
↓ 5 callers
Method
getExecutorService
Gets the executor service used by this instance. @return the executor service.
src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java:368
↓ 5 callers
Method
getFieldName
()
src/test/java/org/apache/commons/lang3/builder/DiffResultTest.java:40
↓ 5 callers
Method
getFieldSeparator
Gets the field separator text. @return the current field separator text.
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1863
↓ 5 callers
Method
getFieldsWithAnnotation
Gets all fields of the given class and its parents (if any) that are annotated with the given annotation. @param cls the {@link Class} to
src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java:259
↓ 5 callers
Method
getLabel
()
src/test/java/org/apache/commons/lang3/EnumUtilsTest.java:662
↓ 5 callers
Method
getLocaleSpecificStrategy
Constructs a Strategy that parses a Text field @param field The Calendar field @param definingCalendar The calendar to obtain the short an
src/main/java/org/apache/commons/lang3/time/FastDateParser.java:894
↓ 5 callers
Method
getMethodForGetString
()
src/test/java/org/apache/commons/lang3/function/MethodFixtures.java:35
↓ 5 callers
Method
getMethodForStaticGetString
()
src/test/java/org/apache/commons/lang3/function/MethodFixtures.java:103
↓ 5 callers
Method
getPriority
Gets the priority of the threads created by this factory. Result can be {@code null} if no priority was specified. @return the priority for newly cre
src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java:327
↓ 5 callers
Method
getProperWhole
Gets the proper whole part of the fraction. <p> An improper fraction 7/4 can be resolved into a proper one, 1 3/4. This method returns the 1 from the
src/main/java/org/apache/commons/lang3/math/Fraction.java:697
↓ 5 callers
Method
getRegistry
Gets the registry of objects being traversed by the reflection methods in the current thread. @return Set the registry of objects being traversed
src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java:203
↓ 5 callers
Method
getRegistry
Gets the registry of objects being traversed by the {@code reflectionToString} methods in the current thread. @return Set the registry of objects bei
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:597
↓ 5 callers
Method
getRootCauseMessage
Gets a short message summarizing the root cause exception. <p> The message returned is of the form {ClassNameWithoutPackage}: {ThrowableMessage} </p>
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:333
↓ 5 callers
Method
getStyle
Gets the {@link ToStringStyle} being used. @return the {@link ToStringStyle} being used @since 2.0
src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java:1081
↓ 5 callers
Method
getSystemThreadGroup
Gets the system thread group (sometimes also referred as "root thread group"). <p> This method returns null if this thread has died (been stopped). </
src/main/java/org/apache/commons/lang3/ThreadUtils.java:464
↓ 5 callers
Method
getTSVInstance
Gets a new tokenizer instance which parses Tab Separated Value strings. The default for CSV processing will be trim whitespace from both ends (which c
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:192
↓ 5 callers
Method
getUncaughtExceptionHandler
Gets the {@link UncaughtExceptionHandler} for the threads created by this factory. Result can be {@code null} if no handler was provided. @return the
src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java:348
↓ 5 callers
Method
getUnchecked
Delegates to {@link Field#get(Object)} and rethrows {@link IllegalAccessException} as {@link IllegalArgumentException}. @param field The receiver of
src/main/java/org/apache/commons/lang3/builder/Reflection.java:36
↓ 5 callers
Method
getUserHome
Gets the current value from the system properties map for {@value #USER_HOME}. <p> Returns {@code null} if the property cannot be read due to a {@link
src/main/java/org/apache/commons/lang3/SystemProperties.java:4161
↓ 5 callers
Method
handleCauseUnchecked
Handles the specified {@link ExecutionException} and transforms it into a runtime exception. This method works exactly like {@link #handleCause(Execut
src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java:269
↓ 5 callers
Method
hash
(final int value1, final int value2)
src/main/java/org/apache/commons/lang3/math/Fraction.java:400
↓ 5 callers
Method
hex
Returns an upper case hexadecimal {@link String} for the given character. @param codePoint The code point to convert. @return An upper case hexadecim
src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java:50
↓ 5 callers
Method
increment
Increments the value. @since 2.2
src/main/java/org/apache/commons/lang3/mutable/MutableInt.java:280
↓ 5 callers
Method
indexOf
Worker method for the {@code indexOfType} methods. @param throwable the throwable to inspect, may be null. @param type the type to search for, s
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:576
↓ 5 callers
Method
initializerNames
Returns a set with the names of all {@link BackgroundInitializer} objects managed by the {@link MultiBackgroundInitializer}. @return an (unmodifiable
src/main/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializer.java:197
↓ 5 callers
Method
innerTestSplit
(final char separator, final String sepStr, final char noMatch)
src/test/java/org/apache/commons/lang3/StringUtilsTest.java:141
↓ 5 callers
Method
innerTestSplitPreserveAllTokens
(final char separator, final String sepStr, final char noMatch)
src/test/java/org/apache/commons/lang3/StringUtilsTest.java:181
↓ 5 callers
Method
invert
Used to invert an escape array into an unescape array. @param array String[][] to be inverted. @return String[][] inverted array.
src/main/java/org/apache/commons/lang3/text/translate/EntityArrays.java:421
↓ 5 callers
Method
isArrayIndexValid
Tests whether a given array can safely be accessed at the given index. <pre> ArrayUtils.isArrayIndexValid(null, 0) = false ArrayUtils.isArrayIn
src/main/java/org/apache/commons/lang3/ArrayUtils.java:3515
↓ 5 callers
Method
isEmpty
(final String str, final String... set)
src/main/java/org/apache/commons/lang3/CharSetUtils.java:135
↓ 5 callers
Method
isIA64
Tests if {@link Processor} is type of Intel Itanium. @return {@code true}. if {@link Processor} is {@link Type#IA_64}, else {@code false}.
src/main/java/org/apache/commons/lang3/arch/Processor.java:214
↓ 5 callers
Method
isStopped
Tests whether StopWatch is stopped. this StopWatch which's not yet started and explicitly stopped StopWatch is considered as stopped. @return boolean
src/main/java/org/apache/commons/lang3/time/StopWatch.java:592
↓ 5 callers
Method
isValidAnnotationMemberType
Checks if the specified type is permitted as an annotation member. <p>The Java language specification only permits certain types to be used in annota
src/main/java/org/apache/commons/lang3/AnnotationUtils.java:287
↓ 5 callers
Method
isX86
Tests if {@link Processor} is type of x86. @return {@code true}, if {@link Processor} is {@link Type#X86}, else {@code false}.
src/main/java/org/apache/commons/lang3/arch/Processor.java:242
↓ 5 callers
Method
isZero
Utility method for {@link #createNumber(java.lang.String)}. <p> This will check if the magnitude of the number is zero by checking if there are only
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:704
↓ 5 callers
Method
minimizeCapacity
Minimizes the capacity to the actual length of the string. @return {@code this} instance.
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2493
↓ 5 callers
Method
nop
Gets the NOP singleton. @param <T> Consumed type. @param <R> Return type. @param <E> The type of thrown exception or error. @return The NOP singleton
src/main/java/org/apache/commons/lang3/function/FailableFunction.java:71
↓ 5 callers
Method
notEqual
Compares two objects for inequality, where either one or both objects may be {@code null}. <pre> ObjectUtils.notEqual(null, null) =
src/main/java/org/apache/commons/lang3/ObjectUtils.java:1163
↓ 5 callers
Method
observesDaylightTime
{@inheritDoc}
src/main/java/org/apache/commons/lang3/time/ImmutableTimeZone.java:111
↓ 5 callers
Method
ofNonNull
Creates an immutable pair of two non-null objects inferring the generic types. @param <L> The left element type. @param <R> The right element type. @
src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java:133
↓ 5 callers
Method
outsideOf
Constructs a {@link JavaUnicodeEscaper} outside of the specified values (exclusive). @param codePointLow below which to escape. @param cod
src/main/java/org/apache/commons/lang3/text/translate/JavaUnicodeEscaper.java:74
↓ 5 callers
Method
previousToken
Gets the previous token from the String. @return the previous sequential token, or null when no more tokens are found.
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:695
↓ 5 callers
Method
ready
{@inheritDoc}
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:154
↓ 5 callers
Method
reset
()
src/test/java/org/apache/commons/lang3/function/FailableTest.java:96
↓ 5 callers
Method
rethrow
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:873
← previous
next →
1,201–1,300 of 9,093, ranked by callers