MCPcopy Create free account

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

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

↓ 12 callersMethodis32Bit
Tests if {@link Processor} is 32 bit. @return {@code true}, if {@link Processor} is {@link Arch#BIT_32}, else {@code false}.
src/main/java/org/apache/commons/lang3/arch/Processor.java:186
↓ 12 callersMethodis64Bit
Tests if {@link Processor} is 64 bit. @return {@code true}, if {@link Processor} is {@link Arch#BIT_64}, else {@code false}.
src/main/java/org/apache/commons/lang3/arch/Processor.java:195
↓ 12 callersMethodisAllEmpty
Tests if all of the CharSequences are empty ("") or null. <pre> StringUtils.isAllEmpty(null) = true StringUtils.isAllEmpty(null, "")
src/main/java/org/apache/commons/lang3/StringUtils.java:3201
↓ 12 callersMethodisAlphanumericSpace
Tests if the CharSequence contains only Unicode letters, digits or space ({@code ' '}). <p> {@code null} will return {@code false}. An empty CharSequ
src/main/java/org/apache/commons/lang3/StringUtils.java:3382
↓ 12 callersMethodisAvailableLocale
Checks if the locale specified is in the set of available locales. @param locale the Locale object to check if it is available. @return true if the l
src/main/java/org/apache/commons/lang3/LocaleUtils.java:189
↓ 12 callersMethodisLanguageUndetermined
Tests whether a Locale's language is undetermined. <p> A Locale's language tag is undetermined if it's value is {@code "und"}. If a language is empty,
src/main/java/org/apache/commons/lang3/LocaleUtils.java:225
↓ 12 callersMethodisSameInstant
Tests whether two calendar objects represent the same instant in time. <p>This method compares the long millisecond time of the two objects.</p> @pa
src/main/java/org/apache/commons/lang3/time/DateUtils.java:901
↓ 12 callersMethodjoin4
(final Object... objects)
src/test/java/org/apache/commons/lang3/stream/LangCollectorsTest.java:74
↓ 12 callersMethodmapLookup
Returns a lookup which looks up values using a map. <p> If the map is null, then null will be returned from every lookup. The map result object is con
src/main/java/org/apache/commons/lang3/text/StrLookup.java:122
↓ 12 callersMethodnext
Creates a random string whose length is the number of characters specified. <p> Characters will be chosen from the set of all characters. </p> @para
src/main/java/org/apache/commons/lang3/RandomStringUtils.java:756
↓ 12 callersMethodnullPair
Returns an immutable pair of nulls. @param <L> The left element of this pair. Value is {@code null}. @param <R> The right element of this pair. Value
src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java:91
↓ 12 callersMethodnullTo
Defensive programming technique to change a {@code null} reference to an empty one. <p> This method returns a default array for a {@code null} input a
src/main/java/org/apache/commons/lang3/ArrayUtils.java:4617
↓ 12 callersMethodparameterizeWithOwner
Creates a parameterized type instance. @param owner the owning type. @param rawClass the raw class to create a parameterized type in
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:1469
↓ 12 callersMethodregionMatches
Tests if two string regions are equal. @param cs the {@link CharSequence} to be processed. @param ignoreCase whether or not to be case-insens
src/main/java/org/apache/commons/lang3/CharSequenceUtils.java:313
↓ 12 callersMethodremove
Unsupported ListIterator operation. @throws UnsupportedOperationException always.
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:848
↓ 12 callersMethodreplaceIn
Replaces all the occurrences of variables within the given source builder with their matching values from the resolver. @param source the builder to
src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java:739
↓ 12 callersMethodreplaceOnce
Replaces a String with another String inside a larger String, once. <p> A {@code null} reference passed to this method is a no-op. </p> <p> Case-sen
src/main/java/org/apache/commons/lang3/Strings.java:1382
↓ 12 callersMethodset
Sets the specified field to a date returning a new object. This does not use a lenient calendar. The original {@link Date} is unchanged. @param date
src/main/java/org/apache/commons/lang3/time/DateUtils.java:1483
↓ 12 callersMethodsplitByCharacterTypeCamelCase
Splits a String by Character type as returned by {@link Character#getType(int)}. Groups of contiguous characters of the same type are returned as comp
src/main/java/org/apache/commons/lang3/StringUtils.java:7311
↓ 12 callersMethodsplitByWholeSeparatorPreserveAllTokens
Splits the provided text into an array, separator string specified. <p> The separator is not included in the returned String array. Adjacent separato
src/main/java/org/apache/commons/lang3/StringUtils.java:7399
↓ 12 callersMethodstartsWithAny
Tests if a CharSequence starts with any of the provided prefixes. <p> Case-sensitive examples </p> <pre> Strings.CS.startsWithAny(null, null) =
src/main/java/org/apache/commons/lang3/Strings.java:1472
↓ 12 callersMethodstartsWithAny
Tests if a CharSequence starts with any of the provided case-sensitive prefixes. <pre> StringUtils.startsWithAny(null, null) = false StringUtils
src/main/java/org/apache/commons/lang3/StringUtils.java:7850
↓ 12 callersMethodtoPattern
{@inheritDoc}
src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java:513
↓ 12 callersMethodtoStringExclude
Builds a String for a toString method excluding the given field names. @param object The object to "toString". @param excludeFieldNames
src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java:398
↓ 12 callersMethodtranslate
{@inheritDoc}
src/main/java/org/apache/commons/lang3/text/translate/OctalUnescaper.java:60
↓ 12 callersMethodtrim
Removes control characters plus space (char &lt;= 32) from both ends of this String, handling {@code null} by returning {@code null}. <p> The String
src/main/java/org/apache/commons/lang3/StringUtils.java:8836
↓ 12 callersMethodtrimAsciiControl
Removes control characters (char &lt;= 31) from both ends of this String, handling {@code null} by returning {@code null}. <p> To trim your choice of
src/main/java/org/apache/commons/lang3/StringUtils.java:8859
↓ 12 callersMethoduncapitalize
Uncapitalizes a String, changing the first character to lower case as per {@link Character#toLowerCase(int)}. No other characters are changed. <p> Fo
src/main/java/org/apache/commons/lang3/StringUtils.java:9059
↓ 12 callersMethodvalidateArray
Checks if the specified array is neither null nor empty. @param array the array to check. @throws IllegalArgumentException if {@code array} is empty.
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:1678
↓ 11 callersMethodallNotNull
Tests if all values in the array are not {@code nulls}. <p> If any value is {@code null} or the array is {@code null} then {@code false} is returned.
src/main/java/org/apache/commons/lang3/ObjectUtils.java:144
↓ 11 callersMethodanyNull
Tests if any value in the given array is {@code null}. <p> If any of the values are {@code null} or the array is {@code null}, then {@code true} is r
src/main/java/org/apache/commons/lang3/ObjectUtils.java:219
↓ 11 callersMethodappendAll
Appends each item in an iterable to the builder without any separators. Appending a null iterable will have no effect. Each object is appended using {
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:790
↓ 11 callersMethodappendSummarySize
Appends to the {@code toString} a size summary. <p> The size summary is used to summarize the contents of {@link Collection}s, {@link Map}s and array
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1752
↓ 11 callersMethodbuilder
Creates a new builder. @param <T> The type of elements. @return a new builder.
src/main/java/org/apache/commons/lang3/AppendableJoiner.java:172
↓ 11 callersMethodclear
Fills and returns the given array, assigning {@code 0} to each element of the array. <pre> ArrayFill.fill(a, (byte) 0); </pre> @param a the array t
src/main/java/org/apache/commons/lang3/ArrayFill.java:44
↓ 11 callersMethodcontainsTokenWithValue
Helper method to determine if a set of tokens contain a value @param tokens set to search. @param value to look find. @return boolean {@code true} if
src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java:110
↓ 11 callersMethoddifference
Compares two Strings, and returns the portion where they differ. More precisely, return the remainder of the second String, starting from where it's d
src/main/java/org/apache/commons/lang3/StringUtils.java:1693
↓ 11 callersMethoddistance
Returns the number of inheritance hops between two classes. @param child the child class, may be {@code null} @param parent the parent class, may be
src/main/java/org/apache/commons/lang3/reflect/InheritanceUtils.java:37
↓ 11 callersMethodfindThreadById
Finds the active thread with the specified id. @param threadId The thread id. @return The thread with the specified id or {@code null} if no such thr
src/main/java/org/apache/commons/lang3/ThreadUtils.java:185
↓ 11 callersMethodgetArraySeparator
Gets the array separator text. @return the current array separator text.
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1818
↓ 11 callersMethodgetFirstContextValue
Gets the first available contextual data value associated with the label. @param label the label to get the contextual value for, may be {@code null
src/main/java/org/apache/commons/lang3/exception/ExceptionContext.java:79
↓ 11 callersMethodgetFirstNonNull
Executes the given suppliers in order and returns the first return value where a value other than {@code null} is returned. Once a non-{@code null} va
src/main/java/org/apache/commons/lang3/ObjectUtils.java:632
↓ 11 callersMethodgetFormattedExceptionMessage
Gets the contextualized error message based on a base message. This will add the context label-value pairs to the message. @param baseMessage the ba
src/main/java/org/apache/commons/lang3/exception/ExceptionContext.java:88
↓ 11 callersMethodgetFuzzyDistance
Gets the Fuzzy Distance which indicates the similarity score between two Strings. <p> This string matching algorithm is similar to the algorithms of
src/main/java/org/apache/commons/lang3/StringUtils.java:2118
↓ 11 callersMethodgetLocale
Gets the locale used by this formatter. @return the locale.
src/main/java/org/apache/commons/lang3/time/FastDateFormat.java:534
↓ 11 callersMethodgetObject
Gets the {@link Object} being output. @return The object being output. @since 2.0
src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java:1062
↓ 11 callersMethodgreaterThanOrEqualTo
Tests if the object passed to {@link #is} is greater than or equal to {@code b} @param b the object to compare to the base object @return true if the
src/main/java/org/apache/commons/lang3/compare/ComparableUtils.java:103
↓ 11 callersMethodintValue
Returns the value of this MutableLong as an int. @return the numeric value represented by this object after conversion to type int.
src/main/java/org/apache/commons/lang3/mutable/MutableLong.java:302
↓ 11 callersMethodinvert
Gets a fraction that is the inverse (1/fraction) of this one. <p> The returned fraction is not reduced. </p> @return a new fraction instance with the
src/main/java/org/apache/commons/lang3/math/Fraction.java:731
↓ 11 callersMethodisAllBlank
Tests if all of the CharSequences are empty (""), null or whitespace only. <p> Whitespace is defined by {@link Character#isWhitespace(char)}. </p> <
src/main/java/org/apache/commons/lang3/StringUtils.java:3170
↓ 11 callersMethodisAnyEmpty
Tests if any of the CharSequences are empty ("") or null. <pre> StringUtils.isAnyEmpty((String) null) = true StringUtils.isAnyEmpty((String[]) nul
src/main/java/org/apache/commons/lang3/StringUtils.java:3491
↓ 11 callersMethodisFullDetail
Is this field to be output in full detail. <p> This method converts a detail request into a detail level. The calling code may request full detail ({
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1992
↓ 11 callersMethodisNoneBlank
Tests if none of the CharSequences are empty (""), null or whitespace only. <p> Whitespace is defined by {@link Character#isWhitespace(char)}. </p>
src/main/java/org/apache/commons/lang3/StringUtils.java:3662
↓ 11 callersMethodisSet
Tests whether the field is set or not. <p> This is most commonly used for a single-bit field, which is often used to represent a boolean value; the re
src/main/java/org/apache/commons/lang3/BitField.java:255
↓ 11 callersMethodjoin
Waits for the given thread to die for the given duration. Implemented using {@link Thread#join(long, int)}. <p> Calling this method with {@link Durati
src/main/java/org/apache/commons/lang3/ThreadUtils.java:484
↓ 11 callersMethodjoining
Returns a {@code Collector} that concatenates the input elements, separated by the specified delimiter, in encounter order. <p> This is a variation of
src/main/java/org/apache/commons/lang3/stream/LangCollectors.java:132
↓ 11 callersMethodlastOrdinalIndexOf
Finds the n-th last index within a String, handling {@code null}. This method uses {@link String#lastIndexOf(String)}. <p> A {@code null} String will
src/main/java/org/apache/commons/lang3/StringUtils.java:5112
↓ 11 callersMethodlongValue
Returns the value of this MutableInt as a long. @return the numeric value represented by this object after conversion to type long.
src/main/java/org/apache/commons/lang3/mutable/MutableInt.java:312
↓ 11 callersMethodprintRootCauseStackTrace
Prints a compact stack trace for the root cause of a throwable to {@code System.err}. <p> The compact stack trace starts with the root cause and print
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:721
↓ 11 callersMethodremoveFirst
Removes the first substring of the text string that matches the given regular expression. This method is a {@code null} safe equivalent to: <ul> <li>
src/main/java/org/apache/commons/lang3/StringUtils.java:5942
↓ 11 callersMethodremoveStartIgnoreCase
Case-insensitive removal of a substring if it is at the beginning of a source string, otherwise returns the source string. <p> A {@code null} source
src/main/java/org/apache/commons/lang3/StringUtils.java:6095
↓ 11 callersMethodrotate
Rotate (circular shift) a String of {@code shift} characters. <ul> <li>If {@code shift > 0}, right circular shift (ex : ABCDEF =&gt; FABCDE)</li> <li>
src/main/java/org/apache/commons/lang3/StringUtils.java:7082
↓ 11 callersMethodrun
Runs a runnable and rethrows any exception as a {@link RuntimeException}. @param runnable The runnable to run, may be null for a noop. @param <E> The
src/main/java/org/apache/commons/lang3/function/Failable.java:531
↓ 11 callersMethodsecure
Gets the singleton instance based on {@link SecureRandom#SecureRandom()} which uses the default algorithm and provider of {@link SecureRandom}. <p> Th
src/main/java/org/apache/commons/lang3/RandomUtils.java:250
↓ 11 callersMethodsetTrimmerMatcher
Sets the matcher for characters to trim. <p> These characters are trimmed off on each side of the delimiter until the token or quote is found. </p> @
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:1043
↓ 11 callersMethodstream
Converts the given collection into a {@link FailableStream}. The {@link FailableStream} consists of the collections elements. Shortcut for <pre> Func
src/main/java/org/apache/commons/lang3/Functions.java:559
↓ 11 callersMethodstream
Converts the given collection into a {@link FailableStream}. The {@link FailableStream} consists of the collections elements. Shortcut for <pre> Func
src/main/java/org/apache/commons/lang3/function/Failable.java:563
↓ 11 callersMethodstream
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:780
↓ 11 callersMethodtoIntegerObject
Converts a boolean to an Integer using the convention that {@code true} is {@code 1} and {@code false} is {@code 0}. <pre> BooleanUtils.toIntegerOb
src/main/java/org/apache/commons/lang3/BooleanUtils.java:945
↓ 11 callersMethodtoMap
Converts the given array into a {@link java.util.Map}. Each element of the array must be either a {@link java.util.Map.Entry} or an Array, containing
src/main/java/org/apache/commons/lang3/ArrayUtils.java:9010
↓ 11 callersMethodtoProperString
Gets the fraction as a proper {@link String} in the format X Y/Z. <p> The format used in '<em>wholeNumber</em> <em>numerator</em>/<em>denominator</em>
src/main/java/org/apache/commons/lang3/math/Fraction.java:883
↓ 11 callersMethodtoString
Converts a boolean to a String returning one of the input Strings. <pre> BooleanUtils.toString(true, "true", "false") = "true" BooleanUtils.toS
src/main/java/org/apache/commons/lang3/BooleanUtils.java:1022
↓ 11 callersMethodtoString
Converts the character to a String that contains the one character. <p>For ASCII 7 bit characters, this uses a cache that will return the same String
src/main/java/org/apache/commons/lang3/CharUtils.java:528
↓ 11 callersMethodtoString
Gets the fraction as a {@link String}. <p> The format used is '<em>numerator</em>/<em>denominator</em>' always. </p> @return a {@link String} form of
src/main/java/org/apache/commons/lang3/math/Fraction.java:917
↓ 11 callersMethodtoStringArray
Returns an array containing the string representation of each element in the argument array. <p> This method returns {@code null} for a {@code null} i
src/main/java/org/apache/commons/lang3/ArrayUtils.java:9653
↓ 11 callersMethodunescapeXml
Unescapes a string containing XML entity escapes to a string containing the actual Unicode characters corresponding to the escapes. <p>Supports only
src/main/java/org/apache/commons/lang3/StringEscapeUtils.java:780
↓ 11 callersMethodvalidateAllFieldsPresent
(final String toString)
src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderIncludeTest.java:206
↓ 11 callersMethodwrappedFactory
Sets the {@link ThreadFactory} to be wrapped by the new {@code BasicThreadFactory}. @param factory the wrapped {@link ThreadFactory} (must not be {@c
src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java:239
↓ 10 callersMethodappend
Appends to the {@code builder} the comparison of two {@code booleans}s. @param lhs left-hand side value @param rhs right-hand side value @return {@
src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java:440
↓ 10 callersMethodappend
Appends a {@code hashCode} for a {@code boolean}. <p> This adds {@code 1} when true, and {@code 0} when false to the {@code hashCode}. </p> <p> This
src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java:607
↓ 10 callersMethodassertEqualsArchNotNull
(final Processor.Arch arch, final Processor processor)
src/test/java/org/apache/commons/lang3/ArchUtilsTest.java:47
↓ 10 callersMethodassertEqualsTypeNotNull
(final Processor.Type type, final Processor processor)
src/test/java/org/apache/commons/lang3/ArchUtilsTest.java:53
↓ 10 callersMethodassertGetClassThrowsClassNotFound
(final String className)
src/test/java/org/apache/commons/lang3/ClassUtilsTest.java:107
↓ 10 callersMethodassertNotEqualsArchNotNull
(final Processor.Arch arch, final Processor processor)
src/test/java/org/apache/commons/lang3/ArchUtilsTest.java:59
↓ 10 callersMethodassertWeekIterator
This checks that this is a 7 element iterator of Calendar objects that are dates (no time), and exactly 1 day spaced after each other.
src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java:88
↓ 10 callersMethodbyteArrayToLong
Converts an array of byte into a long using the default (little-endian, LSB0) byte and bit ordering. @param src the byte array to convert. @param
src/main/java/org/apache/commons/lang3/Conversion.java:426
↓ 10 callersMethodcheckAppendInput
(final String fieldName, final Boolean fullDetail)
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:291
↓ 10 callersMethodcheckBuiltInFormat
Create an ExtendedMessageFormat for the specified pattern and locale and check the formatted output matches the expected result for the parameters. @p
src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java:253
↓ 10 callersMethodcloseQuietly
Closes an {@link AutoCloseable}, never throwing an {@link Exception}. <p> Equivalent to {@link AutoCloseable#close()}, except any exceptions will be i
src/main/java/org/apache/commons/lang3/AutoCloseables.java:75
↓ 10 callersMethodcompare
Comparable based compare implementation. @param obj1 left-hand side side of comparison. @param obj2 right-hand side side of comparison. @return negat
src/main/java/org/apache/commons/lang3/Range.java:51
↓ 10 callersMethoddecrementAndGet
Decrements this instance's value by 1; this method returns the value associated with the instance immediately after the decrement operation. This meth
src/main/java/org/apache/commons/lang3/mutable/MutableInt.java:157
↓ 10 callersMethoddelete
Deletes the characters between the two specified indices. @param startIndex the start index, inclusive, must be valid. @param endIndex the end inde
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1671
↓ 10 callersMethoddeleteWhitespace
Deletes all whitespaces from a String as defined by {@link Character#isWhitespace(char)}. <pre> StringUtils.deleteWhitespace(null) = null Str
src/main/java/org/apache/commons/lang3/StringUtils.java:1646
↓ 10 callersMethodequalsIgnoreCase
Checks the contents of this builder against another to see if they contain the same character content ignoring case. @param other the object to chec
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1903
↓ 10 callersMethodfirstNonBlank
Returns the first value in the array which is not empty (""), {@code null} or whitespace only. <p> Whitespace is defined by {@link Character#isWhites
src/main/java/org/apache/commons/lang3/StringUtils.java:1924
↓ 10 callersMethodfirstNonEmpty
Returns the first value in the array which is not empty. <p> If all values are empty or the array is {@code null} or empty then {@code null} is retur
src/main/java/org/apache/commons/lang3/StringUtils.java:1959
↓ 10 callersMethodgenericArrayType
Creates a generic array type instance. @param componentType the type of the elements of the array. For example the component type of {@code boolean[]
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:573
↓ 10 callersMethodgetDigits
Checks if a String {@code str} contains Unicode digits, if yes then concatenate all the digits in {@code str} and return it as a String. <p> An empty
src/main/java/org/apache/commons/lang3/StringUtils.java:2071
↓ 10 callersMethodgetDisplayName
{@inheritDoc}
src/main/java/org/apache/commons/lang3/time/ImmutableTimeZone.java:47
↓ 10 callersMethodgetExpectedToString
Create an expected to String for the given WithArraysInstance @param wa Instance @param arrayType Type - empty used to indica
src/test/java/org/apache/commons/lang3/builder/MultilineRecursiveToStringStyleTest.java:178
← previousnext →701–800 of 9,093, ranked by callers