MCPcopy Create free account

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

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

↓ 29 callersMethodand
Performs an 'and' operation on a set of booleans. <pre> BooleanUtils.and(true, true) = true BooleanUtils.and(false, false) = false
src/main/java/org/apache/commons/lang3/BooleanUtils.java:101
↓ 29 callersMethodassertLongArrayEquals
(final long[] actual, final long... expected)
src/test/java/org/apache/commons/lang3/EnumUtilsTest.java:51
↓ 29 callersMethodbinaryToHexDigitMsb0_4bits
Converts binary (represented as boolean array) to a hexadecimal digit using the MSB0 bit ordering. <p> (1, 0, 0, 0) is converted as follow: '8'. </p>
src/main/java/org/apache/commons/lang3/Conversion.java:245
↓ 29 callersMethodcompareIgnoreCase
Compares two Strings lexicographically, ignoring case differences, as per {@link String#compareToIgnoreCase(String)}, returning : <ul> <li>{@code int
src/main/java/org/apache/commons/lang3/StringUtils.java:936
↓ 29 callersMethodgetAbbreviatedName
Gets the abbreviated name of a {@link Class}. @param cls the class to get the abbreviated name for, may be {@code null}. @param lengthHint the desire
src/main/java/org/apache/commons/lang3/ClassUtils.java:248
↓ 29 callersMethodgetChars
Copies the character array into the specified array. @param destination the destination array, null will cause an array to be created. @return the i
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1937
↓ 29 callersMethodisBefore
Checks whether this range is before the specified element. @param element the element to check for, null returns false. @return true if this range i
src/main/java/org/apache/commons/lang3/Range.java:455
↓ 29 callersMethodkeep
Takes an argument in set-syntax, see evaluateSet, and keeps any of characters present in the specified string. <pre> CharSetUtils.keep(null, )
src/main/java/org/apache/commons/lang3/CharSetUtils.java:158
↓ 29 callersMethodreadStaticField
Reads the named {@code public static} {@link Field}. Superclasses will be considered. @param cls the {@link Class} to reflect, must not be
src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java:476
↓ 29 callersMethodreplacePattern
Replaces each substring of the source String that matches the given regular expression with the given replacement using the {@link Pattern#DOTALL} opt
src/main/java/org/apache/commons/lang3/RegExUtils.java:688
↓ 29 callersMethodsubstringAfterLast
Gets the substring after 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:8396
↓ 28 callersMethodassertValidToLocale
Pass in a valid language, test toLocale. @param language the language string
src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java:154
↓ 28 callersMethodcompare
Compares two {@code byte} values numerically. This is the same functionality as provided in Java 7. @param x the first {@code byte} to compare. @para
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:125
↓ 28 callersMethoddelete
Takes an argument in set-syntax, see evaluateSet, and deletes any of characters present in the specified string. <pre> CharSetUtils.delete(null, )
src/main/java/org/apache/commons/lang3/CharSetUtils.java:128
↓ 28 callersMethodexpectMatchingAccessibleMethodParameterTypes
(final Class<?> cls, final String methodName, final Class<?>[] requestTypes, final Class<?>[] actu
src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java:545
↓ 28 callersMethodforEach
Performs the given action for each Boolean {@link BooleanUtils#values()}. @param action The action to be performed for each element @since 3.13.0
src/main/java/org/apache/commons/lang3/BooleanUtils.java:171
↓ 28 callersMethodgetJavaVersionMatches
Tests if the Java version matches the version we are running. <p> The result depends on the value of the {@link #JAVA_SPECIFICATION_VERSION} constant.
src/main/java/org/apache/commons/lang3/SystemUtils.java:2210
↓ 28 callersMethodgetKey
()
src/test/java/org/apache/commons/lang3/tuple/PairTest.java:160
↓ 28 callersMethodgetParameterTypes
()
src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java:61
↓ 28 callersMethodnextClearBit
Returns the index of the first bit that is set to {@code false} that occurs on or after the specified starting index. @param fromIndex the index to s
src/main/java/org/apache/commons/lang3/util/FluentBitSet.java:321
↓ 28 callersMethodnextSetBit
Returns the index of the first bit that is set to {@code true} that occurs on or after the specified starting index. If no such bit exists then {@code
src/main/java/org/apache/commons/lang3/util/FluentBitSet.java:346
↓ 28 callersMethodremoveAt
(final Object array, final BitSet indices)
src/main/java/org/apache/commons/lang3/ArrayUtils.java:5941
↓ 28 callersMethodsplit
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by {@link Character#isWhitespace(char)}. <p> The sep
src/main/java/org/apache/commons/lang3/StringUtils.java:7120
↓ 28 callersMethodstrip
Strips whitespace from the start and end of a String. <p> This is similar to {@link #trim(String)} but removes whitespace. Whitespace is defined by {
src/main/java/org/apache/commons/lang3/StringUtils.java:7908
↓ 28 callersMethodstripAccents
(final String input)
src/main/java/org/apache/commons/lang3/StringUtils.java:7975
↓ 28 callersMethodtoString
()
src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java:120
↓ 27 callersMethodadd
Add a set definition string to the {@link CharSet}. @param str set definition string
src/main/java/org/apache/commons/lang3/CharSet.java:193
↓ 27 callersMethodaddContextValue
Adds a contextual label-value pair into this context. <p> The pair will be added to the context, independently of an already existing pair with the sa
src/main/java/org/apache/commons/lang3/exception/ExceptionContext.java:49
↓ 27 callersMethodcapacity
Gets the current size of the internal character array buffer. @return the capacity.
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1585
↓ 27 callersMethodequals
(final Object o)
src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java:6688
↓ 27 callersMethodfilter
Returns a FailableStream consisting of the elements of this stream that match the given FailablePredicate. <p> This is an intermediate operation. </p
src/main/java/org/apache/commons/lang3/Streams.java:342
↓ 27 callersMethodgetPackageName
Gets the package name of a {@link Class}. @param cls the class to get the package name for, may be {@code null}. @return the package name or an empty
src/main/java/org/apache/commons/lang3/ClassUtils.java:781
↓ 27 callersMethodhexDigitToInt
Converts a hexadecimal digit into an int using the default (LSB0) bit ordering. <p> '1' is converted to 1 </p> @param hexChar the hexadecimal digit
src/main/java/org/apache/commons/lang3/Conversion.java:729
↓ 27 callersMethodindexOfIgnoreCase
Case insensitive find of the first index within a CharSequence. <p> A {@code null} CharSequence will return {@code -1}. A negative start position is
src/main/java/org/apache/commons/lang3/StringUtils.java:3107
↓ 27 callersMethodisAfter
Checks whether this range is after the specified element. @param element the element to check for, null returns false. @return true if this range is
src/main/java/org/apache/commons/lang3/Range.java:426
↓ 27 callersMethodisNotIn
Constructs a negated {@link CharRange} over a set of characters. <p>A negated range includes everything except that defined by the start and end char
src/main/java/org/apache/commons/lang3/CharRange.java:203
↓ 27 callersMethodisWhitespace
Tests if the CharSequence contains only whitespace. <p> Whitespace is defined by {@link Character#isWhitespace(char)}. </p> <p> {@code null} will re
src/main/java/org/apache/commons/lang3/StringUtils.java:3844
↓ 27 callersMethodleftPad
Left pad a String with spaces (' '). <p> The String is padded to the size of {@code size}. </p> <pre> StringUtils.leftPad(null, ) = null StringUti
src/main/java/org/apache/commons/lang3/StringUtils.java:5170
↓ 27 callersMethodreplaceAll
Replaces the search character with the replace character throughout the builder. @param search the search character. @param replace the replace cha
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2584
↓ 27 callersMethodrightPad
Right pad a String with spaces (' '). <p> The String is padded to the size of {@code size}. </p> <pre> StringUtils.rightPad(null, ) = null StringU
src/main/java/org/apache/commons/lang3/StringUtils.java:6964
↓ 27 callersMethodseededRandom
()
src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java:65
↓ 27 callersMethodsqueeze
Squeezes any repetitions of a character that is mentioned in the supplied set. <pre> CharSetUtils.squeeze(null, ) = null CharSetUtils.squeeze(
src/main/java/org/apache/commons/lang3/CharSetUtils.java:206
↓ 27 callersMethodsubstringBefore
Gets the substring before the first 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:8475
↓ 26 callersMethodcontainsAny
Takes an argument in set-syntax, see evaluateSet, and identifies whether any of the characters are present in the specified string. <pre> CharSetUtil
src/main/java/org/apache/commons/lang3/CharSetUtils.java:54
↓ 26 callersMethodget
Gets per {@link Future#get()} but rethrows checked exceptions as unchecked. <p> The default mapping from checked to unchecked is: </p> <ul> <li>{@link
src/main/java/org/apache/commons/lang3/concurrent/UncheckedFuture.java:83
↓ 26 callersMethodindexOfAnyBut
Searches a CharSequence to find the first index of any character not in the given set of characters, i.e., find index i of first char in cs such that
src/main/java/org/apache/commons/lang3/StringUtils.java:2894
↓ 26 callersMethodlongValue
Returns the value of this MutableLong as a long. @return the numeric value represented by this object after conversion to type long.
src/main/java/org/apache/commons/lang3/mutable/MutableLong.java:312
↓ 26 callersMethodnoneMatcher
Gets the matcher for no characters. @return the matcher that matches nothing.
src/main/java/org/apache/commons/lang3/text/StrMatcher.java:315
↓ 26 callersMethodpow
Gets a fraction that is raised to the passed in power. <p> The returned fraction is in reduced form. </p> @param power the power to raise the fractio
src/main/java/org/apache/commons/lang3/math/Fraction.java:804
↓ 26 callersMethodreplaceFirst
Replaces the first instance of the search character with the replace character in the builder. @param search the search character. @param replace t
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2639
↓ 26 callersMethodserialize
Serializes an {@link Object} to a byte array for storage/serialization. @param obj the object to serialize to bytes. @return a byte[] with the conver
src/main/java/org/apache/commons/lang3/SerializationUtils.java:252
↓ 26 callersMethodsetCharAt
Sets the character at the specified index. @param index the index to set. @param ch the new character. @return {@code this} instance. @throws Index
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2817
↓ 26 callersMethodsubstringAfter
Gets the substring after the first 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:8316
↓ 25 callersMethodclose
Closes this circuit breaker. Its state is changed to closed. If this circuit breaker is already closed, this method has no effect.
src/main/java/org/apache/commons/lang3/concurrent/CircuitBreaker.java:57
↓ 25 callersMethodcompare
Compares two Strings lexicographically, as per {@link String#compareTo(String)}, returning : <ul> <li>{@code int = 0}, if {@code str1} is equal to {@c
src/main/java/org/apache/commons/lang3/StringUtils.java:837
↓ 25 callersMethodflip
Sets the bit at the specified index to the complement of its current value. @param bitIndex the index of the bit to flip. @throws IndexOutOfBoundsExc
src/main/java/org/apache/commons/lang3/util/FluentBitSet.java:222
↓ 25 callersMethodintToHexDigit
Converts the 4 LSB of an int to a hexadecimal digit. <p> 0 returns '0' </p> <p> 1 returns '1' </p> <p> 10 returns 'A' and so on... </p> @param nibbl
src/main/java/org/apache/commons/lang3/Conversion.java:984
↓ 25 callersMethodintValue
Returns the value of this MutableInt as an int. @return the numeric value represented by this object after conversion to type int.
src/main/java/org/apache/commons/lang3/mutable/MutableInt.java:302
↓ 25 callersMethodof
Creates a mutable pair of two objects inferring the generic types. @param <L> The left element type. @param <R> The right element type. @param left
src/main/java/org/apache/commons/lang3/tuple/MutablePair.java:68
↓ 25 callersMethodparseInt
(final String s)
src/main/java/org/apache/commons/lang3/time/FastTimeZone.java:87
↓ 25 callersMethodtoDouble
Converts a {@link BigDecimal} to a {@code double}. <p> If the {@link BigDecimal} {@code value} is {@code null}, then the specified default value is r
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:1279
↓ 25 callersMethodtoString
Gets the range as a {@link String}. <p>The format of the String is '[<em>min</em>..<em>max</em>]'.</p> @return the {@link String} representation of
src/main/java/org/apache/commons/lang3/Range.java:568
↓ 25 callersMethodwrite
{@inheritDoc}
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:234
↓ 24 callersMethodcapitalize
Capitalizes all the whitespace separated words in a String. Only the first character of each word is changed. To convert the rest of each word to lowe
src/main/java/org/apache/commons/lang3/text/WordUtils.java:62
↓ 24 callersMethodcontainsIgnoreCase
Tests if CharSequence contains a search CharSequence irrespective of case, handling {@code null}. Case-insensitivity is defined as by {@link String#eq
src/main/java/org/apache/commons/lang3/StringUtils.java:1216
↓ 24 callersMethodelementCompareTo
Checks where the specified element occurs relative to this range. <p>The API is reminiscent of the Comparable interface returning {@code -1} if the e
src/main/java/org/apache/commons/lang3/Range.java:289
↓ 24 callersMethodequals
Tests whether {@code t} equals {@code a}. @param genericArrayType LHS. @param type RHS. @return boolean.
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:457
↓ 24 callersMethodformat
Formats a calendar into a specific pattern. The TimeZone from the calendar will be used for formatting. @param calendar the calendar to format, not
src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java:210
↓ 24 callersMethodgetAcceptedPrimitiveObject1
()
src/test/java/org/apache/commons/lang3/FunctionsTest.java:152
↓ 24 callersMethodgetAcceptedPrimitiveObject1
()
src/test/java/org/apache/commons/lang3/function/FailableTest.java:212
↓ 24 callersMethodisEndedBy
Checks whether this range ends with the specified element. @param element the element to check for, null returns false. @return true if the specifie
src/main/java/org/apache/commons/lang3/Range.java:484
↓ 24 callersMethodisPrimitiveWrapper
Tests whether the given {@code type} is a primitive wrapper ({@link Boolean}, {@link Byte}, {@link Character}, {@link Short}, {@link Integer}, {@link
src/main/java/org/apache/commons/lang3/ClassUtils.java:1528
↓ 24 callersMethodisStartedBy
Tests whether this range starts with the specified element. @param element the element to check for, null returns false. @return true if the specifi
src/main/java/org/apache/commons/lang3/Range.java:530
↓ 24 callersMethodof
Obtains a mutable triple of three objects inferring the generic types. @param <L> The left element type. @param <M> The middle element type. @param <
src/main/java/org/apache/commons/lang3/tuple/MutableTriple.java:71
↓ 24 callersMethodof
Creates an immutable pair of two objects inferring the generic types. @param <L> The left element type. @param <R> The right element type. @param lef
src/main/java/org/apache/commons/lang3/tuple/Pair.java:79
↓ 24 callersMethodparse
(final String source)
src/main/java/org/apache/commons/lang3/time/FastDateParser.java:1014
↓ 24 callersMethodsetAll
Sets all elements of the specified array, using the provided generator supplier to compute each element. <p> If the generator supplier throws an excep
src/main/java/org/apache/commons/lang3/ArrayUtils.java:7103
↓ 24 callersMethodsetIgnoreEmptyTokens
Sets whether the tokenizer should ignore and not return empty tokens. The default for this property is true. @param ignoreEmptyTokens whether empty
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:997
↓ 24 callersMethodtoArray
(final Collection<String> strings)
src/test/java/org/apache/commons/lang3/stream/FailableStreamTest.java:82
↓ 23 callersMethoddeserialize
Deserializes a single {@link Object} from an array of bytes. <p> If the call site incorrectly types the return value, a {@link ClassCastException} is
src/main/java/org/apache/commons/lang3/SerializationUtils.java:162
↓ 23 callersMethodequals
Compares two CharSequences, returning {@code true} if they represent equal sequences of characters. <p> {@code null}s are handled without exceptions.
src/main/java/org/apache/commons/lang3/StringUtils.java:1816
↓ 23 callersMethodgetFragmentInDays
Gets the number of days within the fragment. All datefields greater than the fragment will be ignored. <p>Asking the days of any date will only retur
src/main/java/org/apache/commons/lang3/time/DateUtils.java:509
↓ 23 callersMethodgetIfNull
Returns the given {@code object} is it is non-null, otherwise returns the Supplier's {@link Supplier#get()} value. <p> The caller responsible for thr
src/main/java/org/apache/commons/lang3/ObjectUtils.java:666
↓ 23 callersMethodhexDigitMsb0ToBinary
Converts a hexadecimal digit into binary (represented as boolean array) using the MSB0 bit ordering. <p> '1' is converted as follow: (0, 0, 0, 1). </
src/main/java/org/apache/commons/lang3/Conversion.java:561
↓ 23 callersMethodhexDigitMsb0ToInt
Converts a hexadecimal digit into an int using the MSB0 bit ordering. <p> '1' is converted to 8. </p> @param hexChar the hexadecimal digit to conver
src/main/java/org/apache/commons/lang3/Conversion.java:617
↓ 23 callersMethodhexDigitToBinary
Converts a hexadecimal digit into binary (represented as boolean array) using the default (LSB0) bit ordering. <p> '1' is converted as follow: (1, 0,
src/main/java/org/apache/commons/lang3/Conversion.java:673
↓ 23 callersMethodisInitialized
Tests whether this instance is initialized. Once initialized, always returns true. @return whether this instance is initialized. Once initialized, al
src/main/java/org/apache/commons/lang3/concurrent/LazyInitializer.java:171
↓ 23 callersMethodisOsVersionMatch
Tests whether the operating system version matches. <p> This method is package private instead of private to support unit test invocation. </p> @para
src/main/java/org/apache/commons/lang3/SystemUtils.java:2450
↓ 23 callersMethodisPrimitiveOrWrapper
Tests whether the given {@code type} is a primitive or primitive wrapper ({@link Boolean}, {@link Byte}, {@link Character}, {@link Short}, {@link Inte
src/main/java/org/apache/commons/lang3/ClassUtils.java:1515
↓ 23 callersMethodisStarted
Tests whether this StopWatch is started. A suspended StopWatch is also started watch. @return boolean If this StopWatch is started. @since 3.2
src/main/java/org/apache/commons/lang3/time/StopWatch.java:582
↓ 23 callersMethodlookup
Looks up a String key to a String value. <p> The internal implementation may use any mechanism to return the value. The simplest implementation is to
src/main/java/org/apache/commons/lang3/text/StrLookup.java:185
↓ 23 callersMethodreflectionCompare
Compares two {@link Object}s via reflection. <p>Fields can be private, thus {@code AccessibleObject.setAccessible} is used to bypass normal access co
src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java:228
↓ 23 callersMethodresetIndent
Resets the fields responsible for the line breaks and indenting. Must be invoked after changing the {@link #spaces} value.
src/main/java/org/apache/commons/lang3/builder/MultilineRecursiveToStringStyle.java:195
↓ 23 callersMethodsetEquals
Sets the {@code isEquals} value. @param isEquals The value to set. @since 2.1
src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java:1067
↓ 23 callersMethodstripEnd
Strips any of a set of characters from the end of a String. <p> A {@code null} input String returns {@code null}. An empty string ("") input returns
src/main/java/org/apache/commons/lang3/StringUtils.java:8065
↓ 23 callersMethodtoString
Converts a {@code byte[]} to a String using the specified character encoding. @param bytes the byte array to read from. @param charsetName the
src/main/java/org/apache/commons/lang3/StringUtils.java:8809
↓ 23 callersMethodwriteDeclaredStaticField
Writes a named {@code public static} {@link Field}. Only the specified class will be considered. @param cls {@link Class} on which the fie
src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java:692
↓ 22 callersMethodaddListener
Adds an event listener. <p> Listeners are called in the order added. </p> @param listener the event listener (may not be {@code null}). @throws NullP
src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java:227
↓ 22 callersMethodassertSingleAccessibleDiff
(final DiffResult<TypeTestClass> list)
src/test/java/org/apache/commons/lang3/builder/DiffBuilderTest.java:131
↓ 22 callersMethodassertTrueIfAccessible
(final boolean test)
src/test/java/org/apache/commons/lang3/builder/AbstractBuilderTest.java:55
← previousnext →301–400 of 9,093, ranked by callers