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
↓ 18 callers
Method
containsAllWords
Checks if the String contains all words in the given array. <p> A {@code null} String will return {@code false}. A {@code null}, zero length search a
src/main/java/org/apache/commons/lang3/text/WordUtils.java:194
↓ 18 callers
Method
createBigInteger
Creates a {@link BigInteger} from a {@link String}. Handles hexadecimal (0x or #) and octal (0) notations. <p> Returns {@code null} if the string is
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:208
↓ 18 callers
Method
deleteAll
Deletes the character wherever it occurs in the builder. @param ch the character to delete. @return {@code this} instance.
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1686
↓ 18 callers
Method
doubleValue
Gets the fraction as a {@code double}. This calculates the fraction as the numerator divided by denominator. @return the fraction as a {@code double}
src/main/java/org/apache/commons/lang3/math/Fraction.java:611
↓ 18 callers
Method
equals
Tests if instances are equal. @param other The other object to compare to @return if the instances are for the same object
src/main/java/org/apache/commons/lang3/builder/IDKey.java:52
↓ 18 callers
Method
floatValue
Returns the value of this MutableFloat as a float. @return the numeric value represented by this object after conversion to type float.
src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java:214
↓ 18 callers
Method
getActualTypeArguments
{@inheritDoc}
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:133
↓ 18 callers
Method
getShortRawValue
Obtains the value for the specified BitField, unshifted. @param holder the short data containing the bits we're interested in. @return the selected b
src/main/java/org/apache/commons/lang3/BitField.java:168
↓ 18 callers
Method
isAccessible
Tests whether a {@link Member} is accessible. @param member Member to test, may be null. @return {@code true} if {@code m} is accessible.
src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java:242
↓ 18 callers
Method
isEmpty
Tests if an Object is empty or null. <p> The following types are supported: </p> <ul> <li>{@link CharSequence}: Considered empty if its length is zero
src/main/java/org/apache/commons/lang3/ObjectUtils.java:958
↓ 18 callers
Method
isNot
Constructs a negated {@link CharRange} over a single character. <p>A negated range includes everything except that defined by the single character.</
src/main/java/org/apache/commons/lang3/CharRange.java:185
↓ 18 callers
Method
isNumericSpace
Tests if the CharSequence contains only Unicode digits or space ({@code ' '}). A decimal point is not a Unicode digit and returns false. <p> {@code n
src/main/java/org/apache/commons/lang3/StringUtils.java:3804
↓ 18 callers
Method
isParsable
Tests whether the given String is a parsable number. <p> Parsable numbers include those Strings understood by {@link Integer#parseInt(String)}, {@link
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:666
↓ 18 callers
Method
isSameDay
Tests whether two calendar objects are on the same day ignoring time. <p>28 Mar 2002 13:45 and 28 Mar 2002 06:01 would return true. 28 Mar 2002 13:45
src/main/java/org/apache/commons/lang3/time/DateUtils.java:865
↓ 18 callers
Method
lastIndexOfAny
Finds the latest index of any substring in a set of potential substrings. <p> A {@code null} CharSequence will return {@code -1}. A {@code null} sear
src/main/java/org/apache/commons/lang3/StringUtils.java:4996
↓ 18 callers
Method
mid
Gets {@code len} characters from the middle of a String. <p> If {@code len} characters are not available, the remainder of the String will be returne
src/main/java/org/apache/commons/lang3/StringUtils.java:5409
↓ 18 callers
Method
newThread
Creates a new thread. This implementation delegates to the wrapped factory for creating the thread. Then, on the newly created thread the correspondin
src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java:396
↓ 18 callers
Method
parseDate
Parses a string representing a date by trying a variety of different parsers, using the default date format symbols for the given locale. <p>The pars
src/main/java/org/apache/commons/lang3/time/DateUtils.java:1259
↓ 18 callers
Method
removeIgnoreCase
Case-insensitive removal of all occurrences of a substring from within the source string. <p> A {@code null} source string will return {@code null}.
src/main/java/org/apache/commons/lang3/StringUtils.java:5972
↓ 18 callers
Method
removeStart
Removes a char only if it is at the beginning of a source string, otherwise returns the source string. <p> A {@code null} source string will return {
src/main/java/org/apache/commons/lang3/StringUtils.java:6034
↓ 18 callers
Method
replaceEachRepeatedly
Replaces all occurrences of Strings within another String. <p> A {@code null} reference passed to this method is a no-op, or if any "search string" o
src/main/java/org/apache/commons/lang3/StringUtils.java:6635
↓ 18 callers
Method
reset
Resets this tokenizer, forgetting all parsing and iteration already completed. <p> This method allows the same tokenizer to be reused for the same Str
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:861
↓ 18 callers
Method
roundtrip
Performs a serialization roundtrip. Serializes and deserializes the given object, great for testing objects that implement {@link Serializable}. @par
src/main/java/org/apache/commons/lang3/SerializationUtils.java:239
↓ 18 callers
Method
substringBeforeLast
Gets the substring before the last occurrence of a separator. The separator is not returned. <p> A {@code null} string input will return {@code null}
src/main/java/org/apache/commons/lang3/StringUtils.java:8556
↓ 17 callers
Method
appendFixedWidthPadRight
Appends an object to the builder padding on the right to a fixed length. The {@code String.valueOf} of the {@code int} value is used. If the object is
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:894
↓ 17 callers
Method
appendIfMissing
Appends the suffix to the end of the string if the string does not already end with any of the suffixes. <pre> StringUtils.appendIfMissing(null, null
src/main/java/org/apache/commons/lang3/StringUtils.java:472
↓ 17 callers
Method
appendNull
Appends the text representing {@code null} to this string builder. @return {@code this} instance.
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1177
↓ 17 callers
Method
assertReflectionArray
(final String expected, final Object actual)
src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java:216
↓ 17 callers
Method
create
Creates an EventListenerSupport object which supports the specified listener type. @param <T> The type of the listener interface @param listenerInter
src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java:154
↓ 17 callers
Method
defaultIfEmpty
Returns either the passed in CharSequence, or if the CharSequence is empty or {@code null}, the value of {@code defaultStr}. <pre> StringUtils.defaul
src/main/java/org/apache/commons/lang3/StringUtils.java:1581
↓ 17 callers
Method
doTestReplace
(final String expectedResult, final String replaceTemplate, final boolean substring)
src/test/java/org/apache/commons/lang3/text/StrSubstitutorTest.java:73
↓ 17 callers
Method
failableStream
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:521
↓ 17 callers
Method
floatValue
Gets the fraction as a {@code float}. This calculates the fraction as the numerator divided by denominator. @return the fraction as a {@code float}
src/main/java/org/apache/commons/lang3/math/Fraction.java:643
↓ 17 callers
Method
getDuration
Gets the Duration on this StopWatch. <p> This is either the Duration between the start and the moment this method is called, or the Duration between
src/main/java/org/apache/commons/lang3/time/StopWatch.java:370
↓ 17 callers
Method
intToHexDigitMsb0
Converts the 4 LSB of an int to a hexadecimal digit encoded using the MSB0 bit ordering. <p> 0 returns '0' </p> <p> 1 returns '8' </p> <p> 10 returns
src/main/java/org/apache/commons/lang3/Conversion.java:1009
↓ 17 callers
Method
isForceAccessible
Delegates to {@link AbstractReflection#getForceAccessible()}. @return {@link AbstractReflection#getForceAccessible()}.
src/test/java/org/apache/commons/lang3/builder/AbstractBuilderTest.java:68
↓ 17 callers
Method
nextBits
Generates a random integer with the specified number of bits. <p>This method efficiently generates random bits by using a byte cache and bit manipula
src/main/java/org/apache/commons/lang3/CachedRandomBits.java:103
↓ 17 callers
Method
prependIfMissing
Prepends the prefix to the start of the string if the string does not already start with any of the prefixes. <pre> StringUtils.prependIfMissing(null
src/main/java/org/apache/commons/lang3/StringUtils.java:5686
↓ 17 callers
Method
shortToHex
Converts a short into an array of char using the default (little-endian, LSB0) byte and bit ordering. @param src the short to convert. @param src
src/main/java/org/apache/commons/lang3/Conversion.java:1344
↓ 17 callers
Method
sleepPlus1
Sleeps the requested duration plus one millisecond. On Java 8, sleeping for 2 or 20 millis can sleep for a tiny bit less. @param duration How long to
src/test/java/org/apache/commons/lang3/time/StopWatchTest.java:92
↓ 17 callers
Method
start
Starts this StopWatch. <p> This method starts a new timing session, clearing any previous values. </p> @throws IllegalStateException if this StopWat
src/main/java/org/apache/commons/lang3/time/StopWatch.java:727
↓ 17 callers
Method
startsWith
Tests if a CharSequence starts with a specified prefix. <p> {@code null}s are handled without exceptions. Two {@code null} references are considered
src/main/java/org/apache/commons/lang3/StringUtils.java:7822
↓ 17 callers
Method
toArray
Returns a {@link Collector} that accumulates the input elements into a new array. @param <T> The type of the input elements @param elementType Type o
src/main/java/org/apache/commons/lang3/stream/Streams.java:841
↓ 17 callers
Method
unescapeHtml4
Unescapes a string containing entity escapes to a string containing the actual Unicode characters corresponding to the escapes. Supports HTML 4.0 enti
src/main/java/org/apache/commons/lang3/StringEscapeUtils.java:730
↓ 17 callers
Method
wildcardType
Creates a new {@link WildcardTypeBuilder}. @return a new {@link WildcardTypeBuilder}. @since 3.2
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:1732
↓ 16 callers
Method
abs
Gets a fraction that is the positive equivalent of this one. <p> More precisely: {@code (fraction >= 0 ? this : -fraction)} </p> <p> The returned f
src/main/java/org/apache/commons/lang3/math/Fraction.java:488
↓ 16 callers
Method
appendFixedWidthPadLeft
Appends an object to the builder padding on the left to a fixed width. The {@code String.valueOf} of the {@code int} value is used. If the formatted v
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:848
↓ 16 callers
Method
appendIfMissingIgnoreCase
Appends the suffix to the end of the string if the string does not already end, case-insensitive, with any of the suffixes. <pre> StringUtils.appendI
src/main/java/org/apache/commons/lang3/StringUtils.java:510
↓ 16 callers
Method
assertLocaleLookupList
Helper method for local lookups. @param locale the input locale @param defaultLocale the input default locale @param expected expected results
src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java:132
↓ 16 callers
Method
clone
Deep clones an {@link Object} using serialization. <p> This is many times slower than writing clone methods by hand on all objects in your object gra
src/main/java/org/apache/commons/lang3/SerializationUtils.java:126
↓ 16 callers
Method
containsAny
Checks if any of the ints are in the given array. <p> The method returns {@code false} if a {@code null} array is passed in. </p> <p> If the {@code ar
src/main/java/org/apache/commons/lang3/ArrayUtils.java:2057
↓ 16 callers
Method
containsAnyIgnoreCase
Tests if the CharSequence contains any of the CharSequences in the given array, ignoring case. <p> A {@code null} {@code cs} CharSequence will return
src/main/java/org/apache/commons/lang3/StringUtils.java:1186
↓ 16 callers
Method
createStarted
Creates and starts a StopWatch. @return StopWatch a started StopWatch. @since 3.5
src/main/java/org/apache/commons/lang3/time/StopWatch.java:242
↓ 16 callers
Method
equals
{@inheritDoc}
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:245
↓ 16 callers
Method
getBackgroundInitializerTestImpl
()
src/test/java/org/apache/commons/lang3/concurrent/BackgroundInitializerTest.java:155
↓ 16 callers
Method
getKey
Gets the key from this pair. <p>This method implements the {@code Map.Entry} interface returning the left element as the key.</p> @return the left e
src/main/java/org/apache/commons/lang3/tuple/Pair.java:188
↓ 16 callers
Method
getListeners
Gets an array containing the currently registered listeners. Modification to this array's elements will have no effect on the {@link EventListenerSupp
src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java:298
↓ 16 callers
Method
getType
Gets the {@link Type} represented by this entity. @return Type
src/main/java/org/apache/commons/lang3/reflect/Typed.java:36
↓ 16 callers
Method
isBlank
Tests if a CharSequence is empty ({@code "")}, null, or contains only whitespace as defined by {@link Character#isWhitespace(char)}. <pre> StringUtil
src/main/java/org/apache/commons/lang3/StringUtils.java:3558
↓ 16 callers
Method
isHex
Tests whether a character is a hexadecimal character. <pre> CharUtils.isHex('0') = true CharUtils.isHex('3') = true CharUtils.isHex('9') = t
src/main/java/org/apache/commons/lang3/CharUtils.java:272
↓ 16 callers
Method
isNotEmpty
Tests if an Object is not empty and not null. <p> The following types are supported: </p> <ul> <li>{@link CharSequence}: Considered empty if its lengt
src/main/java/org/apache/commons/lang3/ObjectUtils.java:1010
↓ 16 callers
Method
longToBinary
Converts a long into an array of boolean using the default (little-endian, LSB0) byte and bit ordering. @param src the long to convert. @param src
src/main/java/org/apache/commons/lang3/Conversion.java:1088
↓ 16 callers
Method
nextInt
Generates a random int between 0 (inclusive) and {@link Integer#MAX_VALUE} ({@value Integer#MAX_VALUE} exclusive). @return the random integer. @see #
src/main/java/org/apache/commons/lang3/RandomUtils.java:193
↓ 16 callers
Method
notBlank
<p>Validates that the specified argument character sequence is neither {@code null}, a length of zero (no characters), empty nor whitespace; otherwise
src/main/java/org/apache/commons/lang3/Validate.java:781
↓ 16 callers
Method
prependIfMissingIgnoreCase
Prepends the prefix to the start of the string if the string does not already start, case-insensitive, with any of the prefixes. <pre> StringUtils.pr
src/main/java/org/apache/commons/lang3/StringUtils.java:5727
↓ 16 callers
Method
replaceEach
Replaces all occurrences of Strings within another String. <p> A {@code null} reference passed to this method is a no-op, or if any "search string" o
src/main/java/org/apache/commons/lang3/StringUtils.java:6448
↓ 16 callers
Method
setEmptyTokenAsNull
Sets whether the tokenizer should return empty tokens as null. The default for this property is false. @param emptyAsNull whether empty tokens are r
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:955
↓ 16 callers
Method
setIgnoredMatcher
Sets the matcher for characters to ignore. <p> These characters are ignored when parsing the String, unless they are within a quoted region. </p> @pa
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:983
↓ 16 callers
Method
sleep
Sleeps the current thread for the given duration. Implemented using {@link Thread#sleep(long, int)}. @param duration How long to sleep. @throws Inter
src/main/java/org/apache/commons/lang3/ThreadUtils.java:508
↓ 16 callers
Method
spaceMatcher
Gets the matcher for the space character. @return the matcher for a space.
src/main/java/org/apache/commons/lang3/text/StrMatcher.java:342
↓ 16 callers
Method
startsWith
Checks whether this builder starts with the specified string. <p> Note that this method handles null input quietly, unlike String. </p> @param str t
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2894
↓ 16 callers
Method
swapCase
Swaps the case of a String using a word based algorithm. <ul> <li>Upper case character converts to Lower case</li> <li>Title case character convert
src/main/java/org/apache/commons/lang3/text/WordUtils.java:345
↓ 16 callers
Method
testNewLastIndexOfSingle
(final CharSequence a, final CharSequence b)
src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java:247
↓ 16 callers
Method
translate
(final CharSequence input, final int index, final Writer out)
src/main/java/org/apache/commons/lang3/StringEscapeUtils.java:56
↓ 15 callers
Method
appendNullText
Appends to the {@code toString} an indicator for {@code null}. <p> The default indicator is {@code "<null>"}. </p> @param buffer the {@link Strin
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1600
↓ 15 callers
Method
byteToBinary
Converts a byte into an array of boolean using the default (little-endian, LSB0) byte and bit ordering. @param src the byte to convert. @param src
src/main/java/org/apache/commons/lang3/Conversion.java:502
↓ 15 callers
Method
byteToHex
Converts a byte into an array of char using the default (little-endian, LSB0) byte and bit ordering. @param src the byte to convert. @param srcPo
src/main/java/org/apache/commons/lang3/Conversion.java:528
↓ 15 callers
Method
capitalize
Capitalizes a String changing the first character to title case as per {@link Character#toTitleCase(int)}. No other characters are changed. <p> For a
src/main/java/org/apache/commons/lang3/StringUtils.java:548
↓ 15 callers
Method
chomp
Removes one newline from end of a String if it's there, otherwise leave it alone. A newline is "{@code \n}", "{@code \r}", or &quo
src/main/java/org/apache/commons/lang3/StringUtils.java:703
↓ 15 callers
Method
compareTo
Compares this object to another based on size. <p> Note: this class has a natural ordering that is inconsistent with equals, because, for example, equ
src/main/java/org/apache/commons/lang3/math/Fraction.java:572
↓ 15 callers
Method
endsWithAny
Tests if a CharSequence ends with any of the provided case-sensitive suffixes. <pre> StringUtils.endsWithAny(null, null) = false Str
src/main/java/org/apache/commons/lang3/StringUtils.java:1759
↓ 15 callers
Method
fire
Returns a proxy object which can be used to call listener methods on all of the registered event listeners. All calls made to this proxy will be forwa
src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java:278
↓ 15 callers
Method
forEach
Performs an action for each element of this stream. <p> This is a terminal operation. </p> <p> The behavior of this operation is explicitly nondetermi
src/main/java/org/apache/commons/lang3/stream/Streams.java:383
↓ 15 callers
Method
getContextLabels
Gets the full set of labels defined in the contextual data. @return the set of labels, not {@code null}
src/main/java/org/apache/commons/lang3/exception/ExceptionContext.java:63
↓ 15 callers
Method
getMiddle
Gets the middle element from this triple. @return the middle element, may be null.
src/main/java/org/apache/commons/lang3/tuple/Triple.java:154
↓ 15 callers
Method
getRawType
{@inheritDoc}
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:149
↓ 15 callers
Method
getTypeArguments
Gets a map of the type arguments of a class in the context of {@code toClass}. @param cls the class in question. @param toClass
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:768
↓ 15 callers
Method
hashCode
Generate a hash code for the given annotation using the algorithm presented in the {@link Annotation#hashCode()} API docs. @param a the Annotation fo
src/main/java/org/apache/commons/lang3/AnnotationUtils.java:240
↓ 15 callers
Method
intToBinary
Converts an int into an array of boolean using the default (little-endian, LSB0) byte and bit ordering. @param src the int to convert. @param srcP
src/main/java/org/apache/commons/lang3/Conversion.java:892
↓ 15 callers
Method
intToByteArray
Converts an int into an array of byte using the default (little-endian, LSB0) byte and bit ordering. @param src the int to convert. @param srcPos
src/main/java/org/apache/commons/lang3/Conversion.java:919
↓ 15 callers
Method
intToShortArray
Converts an int into an array of short using the default (little-endian, LSB0) byte and bit ordering. @param src the int to convert. @param srcPo
src/main/java/org/apache/commons/lang3/Conversion.java:1061
↓ 15 callers
Method
invokeConstructor
Returns a new instance of the specified class inferring the right constructor from the types of the arguments. <p> This locates and calls a construct
src/main/java/org/apache/commons/lang3/reflect/ConstructorUtils.java:179
↓ 15 callers
Method
iterator
Returns an iterator which can be used to walk through the characters described by this range. <p>#NotThreadSafe# the iterator is not thread-safe</p>
src/main/java/org/apache/commons/lang3/CharRange.java:344
↓ 15 callers
Method
longToIntArray
Converts a long into an array of int using the default (little-endian, LSB0) byte and bit ordering. @param src the long to convert. @param srcPos
src/main/java/org/apache/commons/lang3/Conversion.java:1176
↓ 15 callers
Method
longValue
Gets the fraction as a {@code long}. This returns the whole number part of the fraction. @return the whole number fraction part
src/main/java/org/apache/commons/lang3/math/Fraction.java:750
↓ 15 callers
Method
readDeclaredStaticField
Gets the value of a {@code static} {@link Field} by name. The field must be {@code public}. Only the specified class will be considered. @param cls
src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java:332
↓ 15 callers
Method
replace
Replaces all occurrences of a String within another String. <p> A {@code null} reference passed to this method is a no-op. </p> <p> Case-sensitive e
src/main/java/org/apache/commons/lang3/Strings.java:1261
↓ 15 callers
Method
replaceAll
Replaces each substring of the text String that matches the given regular expression with the given replacement. This method is a {@code null} safe e
src/main/java/org/apache/commons/lang3/StringUtils.java:6322
↓ 15 callers
Method
replaceFirst
Replaces the first substring of the text string that matches the given regular expression with the given replacement. This method is a {@code null} s
src/main/java/org/apache/commons/lang3/StringUtils.java:6685
↓ 15 callers
Method
setProperty
(final String property)
src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java:132
← previous
next →
501–600 of 9,093, ranked by callers