MCPcopy Create free account

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

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

↓ 1,504 callersMethodappend
(final char[] str)
src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java:547
↓ 1,441 callersMethodisSameLength
Tests whether two arrays are the same length, treating {@code null} arrays as length {@code 0}. @param array1 the first array, may be {@code null}. @
src/main/java/org/apache/commons/lang3/ArrayUtils.java:3743
↓ 952 callersMethodvalueOf
Returns the string representation of the {@code char} array or null. @param value the character array. @return a String or null. @see String#valueOf(
src/main/java/org/apache/commons/lang3/StringUtils.java:9202
↓ 695 callersMethodget
Gets the value of this mutable. @return the stored value. @since 3.18.0
src/main/java/org/apache/commons/lang3/mutable/Mutable.java:44
↓ 667 callersMethodgetClass
Gets the (initialized) class represented by {@code className} using the {@code classLoader}. This implementation supports the syntaxes "{@code java.ut
src/main/java/org/apache/commons/lang3/ClassUtils.java:565
↓ 599 callersMethodisJavaVersionMatch
Tests whether the Java version matches. <p> This method is package private instead of private to support unit test invocation. </p> @param version
src/main/java/org/apache/commons/lang3/SystemUtils.java:2397
↓ 553 callersMethodisJavaVersionAtLeast
Tests whether the Java version is at least the requested version. <p> The result is based on the system property saved in {@link #JAVA_SPECIFICATION_V
src/main/java/org/apache/commons/lang3/SystemUtils.java:2368
↓ 544 callersMethodisJavaVersionAtMost
Tests whether the Java version is at most the requested version. <p> The result is based on the system property saved in {@link #JAVA_SPECIFICATION_VE
src/main/java/org/apache/commons/lang3/SystemUtils.java:2382
↓ 518 callersMethodtoString
()
src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java:198
↓ 484 callersMethodassertIllegalArgumentException
Asserts that execution of the given {@code executable} throws a {@link IllegalArgumentException}. <p> The assertion passes if the thrown exception ty
src/test/java/org/apache/commons/lang3/LangAssertions.java:43
↓ 446 callersMethodassertNullPointerException
Asserts that execution of the given {@code executable} throws a {@link NullPointerException}. <p> The assertion passes if the thrown exception type i
src/test/java/org/apache/commons/lang3/LangAssertions.java:113
↓ 432 callersMethodgetComponentType
Gets an array's component type. @param <T> The array type. @param array The array. @return The component type. @since 3.13.0
src/main/java/org/apache/commons/lang3/ArrayUtils.java:2134
↓ 432 callersMethodtoString
Gets a String version of the string builder, creating a new instance each time the method is called. <p> Note that unlike StringBuffer, the string ver
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2999
↓ 420 callersMethodappend
Appends a boolean value to the string builder. @param value the value to append. @return {@code this} instance.
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:330
↓ 387 callersMethodparse
Equivalent to DateFormat.parse(String). See {@link java.text.DateFormat#parse(String)} for more information. @param source A {@link String} whose be
src/main/java/org/apache/commons/lang3/time/DateParser.java:74
↓ 366 callersMethodcontains
Checks whether the specified element occurs within this range. @param element the element to check for, null returns false. @return true if the spec
src/main/java/org/apache/commons/lang3/Range.java:254
↓ 342 callersMethodof
(final int min, final int max)
src/test/java/org/apache/commons/lang3/LongRangeTest.java:41
↓ 312 callersMethodisEquals
Tests whether two arrays have equal content, using equals(), handling multidimensional arrays correctly. <p> Multi-dimensional primitive arrays are al
src/main/java/org/apache/commons/lang3/ArrayUtils.java:3631
↓ 306 callersMethodisAssignable
Tests whether one {@link Class} can be assigned to a variable of another {@link Class}. <p> Unlike the {@link Class#isAssignableFrom(java.lang.Class)
src/main/java/org/apache/commons/lang3/ClassUtils.java:1309
↓ 302 callersMethodtoComparison
Returns a negative integer, a positive integer, or zero as the {@code builder} has judged the "left-hand" side as less than, greater than, or equal to
src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java:1123
↓ 253 callersMethodgetFraction
Creates a {@link Fraction} instance from a {@code double} value. <p> This method uses the <a href="https://web.archive.org/web/20210516065058/http%3A/
src/main/java/org/apache/commons/lang3/math/Fraction.java:132
↓ 249 callersMethodsize
Gets the length of the string builder. <p> This method is the same as {@link #length()} and is provided to match the API of Collections. </p> @return
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2881
↓ 247 callersMethodlength
Gets a CharSequence length or {@code 0} if the CharSequence is {@code null}. @param cs a CharSequence or {@code null}. @return CharSequence length or
src/main/java/org/apache/commons/lang3/StringUtils.java:5272
↓ 245 callersMethodformat
Formats a {@link Calendar} object. The TimeZone set on the Calendar is only used to adjust the time offset. The TimeZone specified during the construc
src/main/java/org/apache/commons/lang3/time/DatePrinter.java:47
↓ 241 callersMethodgetProperty
Gets a System property, defaulting to {@code null} if the property cannot be read. <p> If a {@link SecurityException} is caught, the return value is {
src/main/java/org/apache/commons/lang3/SystemProperties.java:3904
↓ 220 callersMethodgetMessage
Gets the message for string presentation. @return the message for string presentation. @since 3.10
src/main/java/org/apache/commons/lang3/time/StopWatch.java:380
↓ 218 callersMethodgetName
Null-safe version of {@code cls.getName()} @param cls the class for which to get the class name; may be null. @return the class name or the empty str
src/main/java/org/apache/commons/lang3/ClassUtils.java:682
↓ 218 callersMethodgetTime
Gets the time on this StopWatch. <p> This is either the time between the start and the moment this method is called, or the amount of time between st
src/main/java/org/apache/commons/lang3/time/StopWatch.java:555
↓ 210 callersMethodtoString
()
src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java:76
↓ 209 callersMethodcharAt
Gets the character at the specified index. @param index the index to retrieve, must be valid. @return the character at the index. @throws IndexOutOf
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1598
↓ 208 callersMethodremoveAll
Removes the elements at the specified positions from the specified array. All remaining elements are shifted to the left. <p> This method returns a ne
src/main/java/org/apache/commons/lang3/ArrayUtils.java:5320
↓ 205 callersMethodassertIndexOutOfBoundsException
Asserts that execution of the given {@code executable} throws a {@link IndexOutOfBoundsException}. <p> The assertion passes if the thrown exception t
src/test/java/org/apache/commons/lang3/LangAssertions.java:78
↓ 198 callersMethodtest
Evaluates this predicate on the given thread. @param thread the thread @return {@code true} if the thread matches the predicate, otherwise {@code fal
src/main/java/org/apache/commons/lang3/ThreadUtils.java:165
↓ 194 callersMethodbasicKeyCheck
(final String key)
src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java:47
↓ 192 callersMethodindexOf
Finds the index of the given value in the array. <p> This method returns {@link #INDEX_NOT_FOUND} ({@code -1}) for a {@code null} input array. </p> @
src/main/java/org/apache/commons/lang3/ArrayUtils.java:2677
↓ 190 callersMethodlength
Gets the length of the string builder. @return the length
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2453
↓ 185 callersMethodset
Sets the bit at the specified indexes to {@code true}. @param bitIndexArray a bit index array. @throws IndexOutOfBoundsException if the specified ind
src/main/java/org/apache/commons/lang3/util/FluentBitSet.java:446
↓ 182 callersMethodget
Gets the value of the bit with the specified index. The value is {@code true} if the bit with the index {@code bitIndex} is currently set in this {@li
src/main/java/org/apache/commons/lang3/util/FluentBitSet.java:250
↓ 179 callersMethodjoin
Joins the elements of the provided array into a single String containing the provided list of elements. <p> No delimiter is added before or after the
src/main/java/org/apache/commons/lang3/StringUtils.java:3876
↓ 176 callersMethodcreateNumber
Creates a {@link Number} from a {@link String}. <p> If the string starts with {@code 0x} or {@code -0x} (lower or upper case) or {@code #} or {@code
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:355
↓ 173 callersMethodcompare
(final CharSequence o1, final CharSequence o2)
src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java:67
↓ 171 callersMethodtoString
()
src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java:43
↓ 170 callersMethodset
(final boolean[] booleanArray, final int offset, final boolean value)
src/test/java/org/apache/commons/lang3/concurrent/locks/LockingVisitorsTest.java:95
↓ 168 callersMethodlastIndexOf
Finds the last index of the given value within the array. <p> This method returns {@link #INDEX_NOT_FOUND} ({@code -1}) if {@code null} array input. <
src/main/java/org/apache/commons/lang3/ArrayUtils.java:4102
↓ 165 callersMethodisAssignable
Tests if the subject type may be implicitly cast to the target class following the Java generics rules. @param type the subject type to be assigne
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:947
↓ 163 callersMethodset
(final StopWatch watch, final long elapsed)
src/test/java/org/apache/commons/lang3/time/StopWatchTest.java:72
↓ 162 callersMethodindexesOf
Finds the indices of the given value in the array. <p> This method returns an empty BitSet for a {@code null} input array. </p> @param array the arr
src/main/java/org/apache/commons/lang3/ArrayUtils.java:2215
↓ 161 callersMethodsubarray
Produces a new {@code boolean} array containing the elements between the start and end indices. <p> The start index is inclusive, the end index exclus
src/main/java/org/apache/commons/lang3/ArrayUtils.java:8135
↓ 160 callersMethodrequireNonNull
(final Method method, final Class<?> cls, final String methodName, final Class<?>[] parameterTypes)
src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java:1051
↓ 157 callersMethodswap
Swaps two elements in the given boolean array. <p>There is no special handling for multi-dimensional arrays. This method does nothing for a {@code nu
src/main/java/org/apache/commons/lang3/ArrayUtils.java:8396
↓ 156 callersMethodisEmpty
Tests whether an array of primitive booleans is empty or {@code null}. @param array the array to test. @return {@code true} if the array is empty or
src/main/java/org/apache/commons/lang3/ArrayUtils.java:3526
↓ 149 callersMethodof
Creates a range with the specified minimum and maximum values (both inclusive). <p>The range uses the natural ordering of the elements to determine w
src/main/java/org/apache/commons/lang3/Range.java:168
↓ 141 callersMethodcollect
Performs a mutable reduction operation on the elements of this stream using a {@link Collector}. A {@link Collector} encapsulates the functions used
src/main/java/org/apache/commons/lang3/Streams.java:267
↓ 140 callersMethodgetDeclaredField
Gets an accessible {@link Field} by name respecting scope. Only the specified class will be considered. @param cls the {@link Class} to re
src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java:98
↓ 140 callersMethodgetDenominator
Gets the denominator part of the fraction. @return the denominator fraction part
src/main/java/org/apache/commons/lang3/math/Fraction.java:653
↓ 139 callersMethodgetNumerator
Gets the numerator part of the fraction. <p> This method may return a value greater than the denominator, an improper fraction, such as the seven in 7
src/main/java/org/apache/commons/lang3/math/Fraction.java:665
↓ 138 callersMethodlength
()
src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java:133
↓ 136 callersMethodgetCause
()
src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java:71
↓ 136 callersMethodshift
Shifts the order of the given boolean array. <p>There is no special handling for multi-dimensional arrays. This method does nothing for {@code null}
src/main/java/org/apache/commons/lang3/ArrayUtils.java:7144
↓ 132 callersMethodaccept
Performs the operation given the specified arguments. @param k the first input argument @param v the second input argument @param s the third input a
src/main/java/org/apache/commons/lang3/function/TriConsumer.java:50
↓ 129 callersMethodbuild
Returns a reference to the object being constructed or result being calculated by the builder. @return the object constructed or result calculated by
src/main/java/org/apache/commons/lang3/builder/Builder.java:84
↓ 124 callersMethodclear
()
src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java:172
↓ 120 callersMethodclone
Clones an array or returns {@code null}. <p> This method returns {@code null} for a {@code null} input array. </p> @param array the array to clone, m
src/main/java/org/apache/commons/lang3/ArrayUtils.java:1493
↓ 120 callersMethodnewInstance
()
src/test/java/org/apache/commons/lang3/util/FluentBitSetTest.java:61
↓ 119 callersMethodremoveElements
Removes occurrences of specified elements, in specified quantities, from the specified array. All subsequent elements are shifted left. For any elemen
src/main/java/org/apache/commons/lang3/ArrayUtils.java:6271
↓ 117 callersMethodadd
Copies the given array and adds the given element at the end of the new array. <p> The new array contains the same elements of the input array plus th
src/main/java/org/apache/commons/lang3/ArrayUtils.java:240
↓ 117 callersMethodinsert
Inserts elements into an array at the given index (starting from zero). <p> When an array is returned, it is always a new array. </p> <pre> ArrayUti
src/main/java/org/apache/commons/lang3/ArrayUtils.java:3130
↓ 116 callersMethodisEmpty
Tests if a CharSequence is empty ("") or null. <pre> StringUtils.isEmpty(null) = true StringUtils.isEmpty("") = true StringUtils.isEmpty(
src/main/java/org/apache/commons/lang3/StringUtils.java:3587
↓ 114 callersMethodhashCode
()
src/test/java/org/apache/commons/lang3/tuple/PairTest.java:170
↓ 114 callersMethodtoString
()
src/test/java/org/apache/commons/lang3/StringUtilsTest.java:101
↓ 113 callersMethodsubstring
Gets a substring from the specified String avoiding exceptions. <p> A negative start position can be used to start {@code n} characters from the end
src/main/java/org/apache/commons/lang3/StringUtils.java:8211
↓ 109 callersMethodcompareIsCreatableWithCreateNumber
(final String val, final boolean expected)
src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java:80
↓ 109 callersMethodnext
Gets the next token. @return the next String token. @throws NoSuchElementException if there are no more elements.
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:635
↓ 107 callersMethodapply
Applies this function to the given arguments. @param t the first function argument @param u the second function argument @param v the third function
src/main/java/org/apache/commons/lang3/function/TriFunction.java:64
↓ 107 callersMethodtoCharArray
Copies the builder's character array into a new character array. @return a new array that represents the contents of the builder.
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2965
↓ 106 callersMethodarraycopy
A fluent version of {@link System#arraycopy(Object, int, Object, int, int)} that returns the destination array. @param <T> the type. @param sou
src/main/java/org/apache/commons/lang3/ArrayUtils.java:1439
↓ 106 callersMethodcontains
Checks if the value is in the given array. <p> The method returns {@code false} if a {@code null} array is passed in. </p> @param array the array to
src/main/java/org/apache/commons/lang3/ArrayUtils.java:1871
↓ 105 callersMethodindexOf
Searches the string builder to find the first reference to the specified char. @param ch the character to find. @return the first index of the chara
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2007
↓ 105 callersMethodround
Rounds a date, leaving the field specified as the most significant field. <p>For example, if you had the date-time of 28 Mar 2002 13:45:01.231, if th
src/main/java/org/apache/commons/lang3/time/DateUtils.java:1396
↓ 95 callersMethodgetInstance
(final String format, final TimeZone timeZone, final Locale locale)
src/test/java/org/apache/commons/lang3/time/FastDateFormat_PrinterTest.java:27
↓ 95 callersMethodtoHashCode
Returns the computed {@code hashCode}. @return {@code hashCode} based on the fields appended
src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java:981
↓ 93 callersMethodisMatch
Tests whether the number of matching characters, zero for no match. <p> This method is called to check for a match. The parameter {@code pos} represen
src/main/java/org/apache/commons/lang3/text/StrMatcher.java:416
↓ 92 callersMethodisOverlappedBy
Tests whether this range is overlapped by the specified range. <p>Two ranges overlap if there is at least one element in common.</p> <p>This method
src/main/java/org/apache/commons/lang3/Range.java:515
↓ 90 callersMethodcontains
Is the character specified contained in this range. @param ch the character to check. @return {@code true} if this range contains the input characte
src/main/java/org/apache/commons/lang3/CharRange.java:251
↓ 90 callersMethodtoPrimitive
Converts an array of object Booleans to primitives. <p> This method returns {@code null} for a {@code null} input array. </p> <p> Null array elements
src/main/java/org/apache/commons/lang3/ArrayUtils.java:9193
↓ 88 callersMethodreflectionEquals
Uses reflection to determine if the two {@link Object}s are equal. <p>It uses {@code AccessibleObject.setAccessible} to gain access to private fields
src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java:192
↓ 85 callersMethodremove
Removes the element at the specified position from the specified array. All subsequent elements are shifted to the left (subtracts one from their indi
src/main/java/org/apache/commons/lang3/ArrayUtils.java:5039
↓ 85 callersMethodtoList
Returns a new {@link List} containing the tokenizer elements. @return a new {@link List}.
src/main/java/org/apache/commons/lang3/util/IterableStringTokenizer.java:100
↓ 84 callersMethodappend
Appends to the {@code toString} a {@code boolean} value. @param buffer the {@link StringBuffer} to populate. @param fieldName the field name. @par
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:754
↓ 84 callersMethodlastIndexOf
Searches the string builder to find the last reference to the specified char. @param ch the character to find. @return the last index of the charact
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2330
↓ 84 callersMethodnext
()
src/main/java/org/apache/commons/lang3/ClassUtils.java:1215
↓ 83 callersMethodformatDuration
Formats the time gap as a string, using the specified format, and padding with zeros. <p> This method formats durations using the days and lower field
src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java:350
↓ 83 callersMethodgetInstance
Creates a new CharSet using the syntax described below. <ul> <li>{@code null} or empty string ("") - set containing no characters</li> <li>Single c
src/main/java/org/apache/commons/lang3/CharSet.java:161
↓ 83 callersMethodnullToEmpty
Defensive programming technique to change a {@code null} reference to an empty one. <p> This method returns an empty array for a {@code null} input ar
src/main/java/org/apache/commons/lang3/ArrayUtils.java:4636
↓ 83 callersMethodtruncate
Truncates a date, leaving the field specified as the most significant field. <p>For example, if you had the date-time of 28 Mar 2002 13:45:01.231, if
src/main/java/org/apache/commons/lang3/time/DateUtils.java:1720
↓ 82 callersMethodindexOfAny
Search a CharSequence to find the first index of any character in the given set of characters. <p> A {@code null} String will return {@code -1}. A {@
src/main/java/org/apache/commons/lang3/StringUtils.java:2740
↓ 82 callersMethodinitials
Extracts the initial characters from each word in the String. <p>All first characters after whitespace are returned as a new string. Their case is no
src/main/java/org/apache/commons/lang3/text/WordUtils.java:231
↓ 82 callersMethodmax
Returns the maximum value in an array. @param array an array, must not be null or empty. @return the maximum value in the array. @throws NullPointerE
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:717
↓ 81 callersMethodcontainsRange
Checks whether this range contains all the elements of the specified range. <p>This method may fail if the ranges have two different comparators or e
src/main/java/org/apache/commons/lang3/Range.java:270
↓ 81 callersMethodintValue
Gets the fraction as an {@code int}. 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:717
next →1–100 of 9,093, ranked by callers