MCPcopy Create free account

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

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

↓ 22 callersMethodbaseRoundTest
When using this basetest all extremes are tested.<br> It will test the Date, Calendar and Object-implementation<br> lastRoundDownDate should round dow
src/test/java/org/apache/commons/lang3/time/DateUtilsRoundingTest.java:74
↓ 22 callersMethoddefaultIfBlank
Returns either the passed in CharSequence, or if the CharSequence is {@link #isBlank(CharSequence) blank} (whitespaces, empty ({@code ""}), or {@code
src/main/java/org/apache/commons/lang3/StringUtils.java:1560
↓ 22 callersMethodfindThreadsByName
Finds active threads with the specified name. @param threadName The thread name. @return The threads with the specified name or an empty collection i
src/main/java/org/apache/commons/lang3/ThreadUtils.java:396
↓ 22 callersMethodgetBytes
Calls {@link String#getBytes(Charset)} in a null-safe manner. @param string input string. @param charset The {@link Charset} to encode the {@link Str
src/main/java/org/apache/commons/lang3/StringUtils.java:1980
↓ 22 callersMethodgetMaximum
Gets the maximum value in this range. @return the maximum value in this range, not null.
src/main/java/org/apache/commons/lang3/Range.java:376
↓ 22 callersMethodgetRawType
Transforms the passed in type to a {@link Class} object. Type-checking method of convenience. @param parameterizedType the type to be converted. @ret
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:689
↓ 22 callersMethodgetReducedFraction
Creates a reduced {@link Fraction} instance with the 2 parts of a fraction Y/Z. <p> For example, if the input parameters represent 2/4, then the creat
src/main/java/org/apache/commons/lang3/math/Fraction.java:309
↓ 22 callersMethodgetTimeZone
Gets the time zone used by this parser. <p> The default {@link TimeZone} used to create a {@link Date} when the {@link TimeZone} is not specified by
src/main/java/org/apache/commons/lang3/time/DateParser.java:63
↓ 22 callersMethodisAsciiNumeric
Tests whether the character is ASCII 7 bit numeric. <pre> CharUtils.isAsciiNumeric('a') = false CharUtils.isAsciiNumeric('A') = false CharUti
src/main/java/org/apache/commons/lang3/CharUtils.java:206
↓ 22 callersMethodisAsciiPrintable
Tests if the CharSequence contains only ASCII printable characters. <p> {@code null} will return {@code false}. An empty CharSequence (length()=0) wi
src/main/java/org/apache/commons/lang3/StringUtils.java:3529
↓ 22 callersMethodisMixedCase
Tests if the CharSequence contains mixed casing of both uppercase and lowercase characters. <p> {@code null} will return {@code false}. An empty Char
src/main/java/org/apache/commons/lang3/StringUtils.java:3615
↓ 22 callersMethodisNumeric
Tests if the CharSequence contains only Unicode digits. A decimal point is not a Unicode digit and returns false. <p> {@code null} will return {@code
src/main/java/org/apache/commons/lang3/StringUtils.java:3765
↓ 22 callersMethodnewInstance
Delegates to {@link Array#newInstance(Class,int)} using generics. @param <T> The array type. @param componentType The array class. @param length the
src/main/java/org/apache/commons/lang3/ArrayUtils.java:4595
↓ 22 callersMethodsetNullText
Sets the text to be appended when null is added. @param nullText the null text, null means no append. @return {@code this} instance.
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2864
↓ 22 callersMethodshutdown
Initializes a shutdown. After that the object cannot be used anymore. This method can be invoked an arbitrary number of times. All invocations after t
src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java:449
↓ 22 callersMethodsort
(final Field[] fields)
src/test/java/org/apache/commons/lang3/reflect/FieldUtilsTest.java:102
↓ 22 callersMethodtoFloat
Converts a {@link String} to a {@code float}, returning {@code 0.0f} if the conversion fails. <p> If the string {@code str} is {@code null}, {@code 0
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:1368
↓ 22 callersMethodtoIntValue
Converts the character to the Integer it represents, throwing an exception if the character is not numeric. <p>This method converts the char '1' to t
src/main/java/org/apache/commons/lang3/CharUtils.java:447
↓ 22 callersMethoduncapitalize
Uncapitalizes all the whitespace separated words in a String. Only the first character of each word is changed. <p>Whitespace is defined by {@link Ch
src/main/java/org/apache/commons/lang3/text/WordUtils.java:390
↓ 21 callersMethodadd
(final String fieldName, final SerializableSupplier<F> left, final SerializableSupplier<F> right, final Class<
src/main/java/org/apache/commons/lang3/builder/DiffBuilder.java:276
↓ 21 callersMethodaddInitializer
Adds a new {@link BackgroundInitializer} to this object. When this {@link MultiBackgroundInitializer} is started, the given initializer will be proces
src/main/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializer.java:253
↓ 21 callersMethodcapitalizeFully
Converts all the whitespace separated words in a String into capitalized words, that is each word is made up of a titlecase character and then a serie
src/main/java/org/apache/commons/lang3/text/WordUtils.java:134
↓ 21 callersMethodcompareTo
Compares the pair based on the left element followed by the right element. The types must be {@link Comparable}. @param other the other pair, not nu
src/main/java/org/apache/commons/lang3/tuple/Pair.java:151
↓ 21 callersMethodequalsAny
Compares given {@code string} to a CharSequences vararg of {@code searchStrings}, returning {@code true} if the {@code string} is equal to any of the
src/main/java/org/apache/commons/lang3/StringUtils.java:1841
↓ 21 callersMethodexpectMatchingAccessibleConstructorParameterTypes
(final Class<?> cls, final Class<?>[] requestTypes, final Class<?>[] actualTypes)
src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java:137
↓ 21 callersMethodget
Gets the nTh element of an array or null if the index is out of bounds or the array is null. @param <T> The type of array elements. @param array The
src/main/java/org/apache/commons/lang3/ArrayUtils.java:2108
↓ 21 callersMethodgetFragmentInHours
Gets the number of hours within the fragment. All date fields greater than the fragment will be ignored. <p>Asking the hours of any date will only re
src/main/java/org/apache/commons/lang3/time/DateUtils.java:585
↓ 21 callersMethodgetFragmentInMinutes
Gets the number of minutes within the fragment. All date fields greater than the fragment will be ignored. <p>Asking the minutes of any date will onl
src/main/java/org/apache/commons/lang3/time/DateUtils.java:734
↓ 21 callersMethodgetInstance
Creates a new instance based on the current time in the default time zone with the default {@link Category#FORMAT} locale. @return a new instance. @s
src/main/java/org/apache/commons/lang3/time/CalendarUtils.java:52
↓ 21 callersMethodgetMatchingMethod
Gets a method whether or not it's accessible. If no such method can be found, return {@code null}. @param cls The class that will be subje
src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java:415
↓ 21 callersMethodgetMinimum
Gets the minimum value in this range. @return the minimum value in this range, not null.
src/main/java/org/apache/commons/lang3/Range.java:385
↓ 21 callersMethodgetOsMatches
Tests if the operating system matches the given name prefix and version prefix. <p> The result depends on the value of the {@link #OS_NAME} and {@link
src/main/java/org/apache/commons/lang3/SystemUtils.java:2227
↓ 21 callersMethodintToHex
Converts an int into an array of char 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:945
↓ 21 callersMethodlastIndexOf
Finds the last index within a CharSequence, handling {@code null}. This method uses {@link String#lastIndexOf(String)} if possible. <p> A {@code null
src/main/java/org/apache/commons/lang3/Strings.java:940
↓ 21 callersMethodlongToByteArray
Converts a long into an array of byte 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:1115
↓ 21 callersMethodlongToHex
Converts a long into an array of char using the default (little-endian, LSB0) byte and bit ordering. @param src the long to convert. @param srcPo
src/main/java/org/apache/commons/lang3/Conversion.java:1141
↓ 21 callersMethodnoNullElements
Validate that the specified argument iterable is neither {@code null} nor contains any elements that are {@code null}; otherwise throwing an exception
src/main/java/org/apache/commons/lang3/Validate.java:666
↓ 21 callersMethodoverlay
Overlays part of a String with another String. <p> A {@code null} string input returns {@code null}. A negative index is treated as zero. An index gr
src/main/java/org/apache/commons/lang3/StringUtils.java:5622
↓ 21 callersMethodremove
Removes all occurrences of a character from within the source string. <p> A {@code null} source string will return {@code null}. An empty ("") source
src/main/java/org/apache/commons/lang3/StringUtils.java:5751
↓ 21 callersMethodremovePattern
Removes each substring of the source String that matches the given regular expression using the DOTALL option. This call is a {@code null} safe equiv
src/main/java/org/apache/commons/lang3/RegExUtils.java:344
↓ 21 callersMethodsetDefaultStyle
Sets the default {@link ToStringStyle} to use. <p>This method sets a singleton default value, typically for the whole JVM. Changing this default shou
src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java:266
↓ 21 callersMethodsetLength
Updates the length of the builder by either dropping the last characters or adding filler of Unicode zero. @param length the length to set to, must
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2833
↓ 21 callersMethodstripStart
Strips any of a set of characters from the start of a String. <p> A {@code null} input String returns {@code null}. An empty string ("") input return
src/main/java/org/apache/commons/lang3/StringUtils.java:8110
↓ 21 callersMethodtoString
Outputs an array as a String, treating {@code null} as an empty array. <p> Multi-dimensional arrays are handled correctly, including multi-dimensional
src/main/java/org/apache/commons/lang3/ArrayUtils.java:9621
↓ 21 callersMethodtoZoneId
{@inheritDoc}
src/main/java/org/apache/commons/lang3/time/ImmutableTimeZone.java:143
↓ 20 callersMethodappendln
Appends a boolean value followed by a new line to the string builder. @param value the value to append. @return {@code this} instance. @since 2.3
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:936
↓ 20 callersMethodassertAbbreviateWithAbbrevMarkerAndOffset
(final String expected, final String abbrevMarker, final int offset, final int maxWidth)
src/test/java/org/apache/commons/lang3/StringUtilsAbbreviateTest.java:34
↓ 20 callersMethodat
Sets the current time to be used by this test object for the next operation. @param time the time to set @return a reference to this object
src/test/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreakerTest.java:106
↓ 20 callersMethodcompute
This method will return the result of the calculation and cache it, if it has not previously been calculated. <p> This cache will also cache exceptio
src/main/java/org/apache/commons/lang3/concurrent/Memoizer.java:122
↓ 20 callersMethodcountMatches
Counts how many times the char appears in the given string. <p> A {@code null} or empty ("") String input returns {@code 0}. </p> <pre> StringUtils.
src/main/java/org/apache/commons/lang3/StringUtils.java:1486
↓ 20 callersMethoddoTestNoReplace
(final String replaceTemplate)
src/test/java/org/apache/commons/lang3/text/StrSubstitutorTest.java:48
↓ 20 callersMethodendsWithIgnoreCase
Case-insensitive check if a CharSequence ends with a specified suffix. <p> {@code null}s are handled without exceptions. Two {@code null} references
src/main/java/org/apache/commons/lang3/StringUtils.java:1788
↓ 20 callersMethodgetAccessibleMethod
Gets an accessible method (that is, one that can be invoked via reflection) that implements the specified Method. If no such method can be found, retu
src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java:115
↓ 20 callersMethodgetEnum
Gets the enum for the class, returning {@code null} if not found. <p>This method differs from {@link Enum#valueOf} in that it does not throw an excep
src/main/java/org/apache/commons/lang3/EnumUtils.java:202
↓ 20 callersMethodgetFragmentInMilliseconds
Gets the number of milliseconds within the fragment. All date fields greater than the fragment will be ignored. <p>Asking the milliseconds of any dat
src/main/java/org/apache/commons/lang3/time/DateUtils.java:661
↓ 20 callersMethodgetFragmentInSeconds
Gets the number of seconds within the fragment. All date fields greater than the fragment will be ignored. <p>Asking the seconds of any date will onl
src/main/java/org/apache/commons/lang3/time/DateUtils.java:810
↓ 20 callersMethodgetID
()
src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java:74
↓ 20 callersMethodgetMessage
Gets the message using {@link String#format(String, Object...) String.format(message, values)} if the values are not empty, otherwise return the messa
src/main/java/org/apache/commons/lang3/Validate.java:254
↓ 20 callersMethodidentityToString
Appends the toString that would be produced by {@link Object} if a class did not override toString itself. {@code null} will throw a NullPointerExcept
src/main/java/org/apache/commons/lang3/ObjectUtils.java:793
↓ 20 callersMethodintersectionWith
Calculate the intersection of {@code this} and an overlapping Range. @param other overlapping Range. @return range representing the intersection of {
src/main/java/org/apache/commons/lang3/Range.java:407
↓ 20 callersMethodisAssignableFrom
Validates that the argument can be converted to the specified class, if not, throws an exception. <p>This method is useful when validating that there
src/main/java/org/apache/commons/lang3/Validate.java:400
↓ 20 callersMethodmatches
(final CharSequence first, final CharSequence second)
src/main/java/org/apache/commons/lang3/StringUtils.java:5330
↓ 20 callersMethodmedian
Finds the "best guess" middle value among comparables. If there is an even number of total values, the lower of the two middle values will be returned
src/main/java/org/apache/commons/lang3/ObjectUtils.java:1055
↓ 20 callersMethodnormalizeSpace
Similar to <a href="https://www.w3.org/TR/xpath/#function-normalize-space">https://www.w3.org/TR/xpath/#function-normalize -space</a> <p> This functi
src/main/java/org/apache/commons/lang3/StringUtils.java:5461
↓ 20 callersMethodrun
Runs the function. @throws E Thrown when the function fails.
src/main/java/org/apache/commons/lang3/function/FailableRunnable.java:34
↓ 20 callersMethodsubstringBetween
Gets the String that is nested in between two instances of the same String. <p> A {@code null} input String returns {@code null}. A {@code null} tag
src/main/java/org/apache/commons/lang3/StringUtils.java:8588
↓ 20 callersMethodtoByteArray
Returns a new byte array containing all the bits in this bit set. <p> More precisely, if: </p> <ol> <li>{@code byte[] bytes = s.toByteArray();}</li>
src/main/java/org/apache/commons/lang3/util/FluentBitSet.java:566
↓ 19 callersMethodCONST
Returns the provided value unchanged. This can prevent javac from inlining a constant field, e.g., <pre> public final static boolean MAGIC_FLAG = Obj
src/main/java/org/apache/commons/lang3/ObjectUtils.java:335
↓ 19 callersMethodappendFieldEnd
Appends to the {@code toString} the field end. @param buffer the {@link StringBuffer} to populate. @param fieldName the field name, typically not
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1446
↓ 19 callersMethodappendFieldStart
Appends to the {@code toString} the field start. @param buffer the {@link StringBuffer} to populate. @param fieldName the field name.
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1465
↓ 19 callersMethodappendNewLine
Appends this builder's new line string to this builder. <p> By default, the new line is the system default from {@link System#lineSeparator()}. </p> <
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1164
↓ 19 callersMethodappendSummary
Appends to the {@code toString} a summary of a {@code boolean} array. @param buffer the {@link StringBuffer} to populate. @param fieldName the fie
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1628
↓ 19 callersMethodassertAbbreviateWithOffset
(final String expected, final int offset, final int maxWidth)
src/test/java/org/apache/commons/lang3/StringUtilsAbbreviateTest.java:45
↓ 19 callersMethodbaseTruncateTest
When using this basetest all extremes are tested.<br> It will test the Date, Calendar and Object-implementation<br> lastTruncateDate should round down
src/test/java/org/apache/commons/lang3/time/DateUtilsRoundingTest.java:124
↓ 19 callersMethoddeleteFirst
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:1759
↓ 19 callersMethoddoubleValue
Returns the value of this MutableDouble as a double. @return the numeric value represented by this object after conversion to type double.
src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java:169
↓ 19 callersMethodendsWith
Tests if a CharSequence ends with a specified suffix. <p> {@code null}s are handled without exceptions. Two {@code null} references are considered to
src/main/java/org/apache/commons/lang3/StringUtils.java:1732
↓ 19 callersMethodequalsAnyIgnoreCase
Compares given {@code string} to a CharSequences vararg of {@code searchStrings}, returning {@code true} if the {@code string} is equal to any of the
src/main/java/org/apache/commons/lang3/StringUtils.java:1866
↓ 19 callersMethodgetCommonPrefix
Compares all Strings in an array and returns the initial sequence of characters that is common to all of them. <p> For example, {@code getCommonPrefi
src/main/java/org/apache/commons/lang3/StringUtils.java:2030
↓ 19 callersMethodgetEnumIgnoreCase
Gets the enum for the class, returning {@code null} if not found. <p>This method differs from {@link Enum#valueOf} in that it does not throw an excep
src/main/java/org/apache/commons/lang3/EnumUtils.java:242
↓ 19 callersMethodincrementAndGet
Increments this instance's value by 1; this method returns the value associated with the instance immediately after the increment operation. This meth
src/main/java/org/apache/commons/lang3/mutable/MutableInt.java:291
↓ 19 callersMethodinvokeExactMethod
Invokes a method whose parameter types match exactly the object type. <p> This uses reflection to invoke the method obtained from a call to {@link #g
src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java:609
↓ 19 callersMethodisClosed
Tests the current closed state of this circuit breaker. A return value of <strong>true</strong> means that the circuit breaker is currently closed. Th
src/main/java/org/apache/commons/lang3/concurrent/CircuitBreaker.java:77
↓ 19 callersMethoditerator
Constructs an {@link Iterator} over each day in a date range defined by a focus date and range style. <p>For instance, passing Thursday, July 4, 2002
src/main/java/org/apache/commons/lang3/time/DateUtils.java:973
↓ 19 callersMethodlongToShortArray
Converts a long into an array of short using the default (little-endian, LSB0) byte and bit ordering. @param src the long to convert. @param srcP
src/main/java/org/apache/commons/lang3/Conversion.java:1203
↓ 19 callersMethodnul
Gets the singleton supplier that always returns null. <p> This supplier never throws an exception. </p> @param <T> Supplied type. @return The NUL sin
src/main/java/org/apache/commons/lang3/function/Suppliers.java:59
↓ 19 callersMethodprimitiveToWrapper
Converts the specified primitive Class object to its corresponding wrapper Class object. <p> NOTE: From v2.2, this method handles {@code Void.TYPE},
src/main/java/org/apache/commons/lang3/ClassUtils.java:1572
↓ 19 callersMethodsecure
Gets the singleton instance based on {@link SecureRandom#SecureRandom()} which uses a secure random number generator (RNG) implementing the default ra
src/main/java/org/apache/commons/lang3/RandomStringUtils.java:704
↓ 19 callersMethodsetAccessible
(final Field field, final boolean forceAccess)
src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java:611
↓ 19 callersMethodsetTestRecursive
Sets whether to test fields recursively, instead of using their equals method, when reflectively comparing objects. String objects, which cache a hash
src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java:1105
↓ 19 callersMethodsubtract
Subtracts the value of another fraction from the value of this one, returning the result in reduced form. @param fraction the fraction to subtract,
src/main/java/org/apache/commons/lang3/math/Fraction.java:870
↓ 19 callersMethodtest
()
src/test/java/org/apache/commons/lang3/function/FailableTest.java:224
↓ 19 callersMethodvarOverload
(final Boolean... args)
src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java:285
↓ 18 callersMethodappend
Test if two {@code booleans}s are equal. @param lhs the left-hand side {@code boolean} @param rhs the right-hand side {@code boolean} @return {@cod
src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java:399
↓ 18 callersMethodappendSeparator
Appends a separator if the builder is currently non-empty. The separator is appended using {@link #append(char)}. <p> This method is useful for adding
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1223
↓ 18 callersMethodappendWithSeparators
Appends an iterable placing separators between each value, but not before the first or after the last. Appending a null iterable will have no effect.
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1413
↓ 18 callersMethodapplyNonNull
Applies a value to a function if the value isn't {@code null}, otherwise the method returns {@code null}. If the value isn't {@code null} then return
src/main/java/org/apache/commons/lang3/function/Functions.java:68
↓ 18 callersMethodassertGetClassReturnsClass
(final Class<?> c)
src/test/java/org/apache/commons/lang3/ClassUtilsTest.java:103
↓ 18 callersMethodbetweenExclusive
Creates a predicate to test if {@code (b < a < c)} or {@code (b > a > c)} where the {@code a} is the tested object. @param b the object to compare to
src/main/java/org/apache/commons/lang3/compare/ComparableUtils.java:148
↓ 18 callersMethodclone
Creates a new instance of this Tokenizer. The new instance is reset so that it will be at the start of the token list. If a {@link CloneNotSupportedEx
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:456
← previousnext →401–500 of 9,093, ranked by callers