MCPcopy Create free account

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

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

↓ 6 callersMethodthrowOnOdd
()
src/test/java/org/apache/commons/lang3/FunctionsTest.java:100
↓ 6 callersMethodtoBooleanDefaultIfNull
Converts a Boolean to a boolean handling {@code null}. <pre> BooleanUtils.toBooleanDefaultIfNull(Boolean.TRUE, false) = true BooleanUtils.toBool
src/main/java/org/apache/commons/lang3/BooleanUtils.java:566
↓ 6 callersMethodtoFullyQualifiedName
Returns the fully qualified name for the resource with name {@code resourceName} relative to the given context. <p> Note that this method does not ch
src/main/java/org/apache/commons/lang3/ClassPathUtils.java:73
↓ 6 callersMethodtoFullyQualifiedPath
Returns the fully qualified path for the resource with name {@code resourceName} relative to the given context. <p> Note that this method does not ch
src/main/java/org/apache/commons/lang3/ClassPathUtils.java:117
↓ 6 callersMethodtoLocalDateTime
Converts a {@link Date} to a {@link LocalDateTime}. @param date the Date to convert, not null. @return a new LocalDateTime. @since 3.19.0
src/main/java/org/apache/commons/lang3/time/DateUtils.java:1639
↓ 6 callersMethodtoMillisSince
Converts an Instant to milliseconds since that Instant bound to a {@code long} without throwing {@link ArithmeticException}. <ul> <li>If the duration
src/main/java/org/apache/commons/lang3/time/Instants.java:88
↓ 6 callersMethodtoStringWithStatics
This method uses reflection to build a suitable {@code toString} value which includes static fields. <p> It uses {@code AccessibleObject.setAccessible
src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java:1201
↓ 6 callersMethodtoSupplier
(final String message, final Object... values)
src/main/java/org/apache/commons/lang3/Validate.java:1065
↓ 6 callersMethodtranslate
{@inheritDoc}
src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java:44
↓ 6 callersMethodupperCase
Converts a String to upper case as per {@link String#toUpperCase()}. <p> A {@code null} input String returns {@code null}. </p> <pre> StringUtils.up
src/main/java/org/apache/commons/lang3/StringUtils.java:9162
↓ 6 callersMethoduseDaylightTime
()
src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java:112
↓ 6 callersMethoduuidToByteArray
Converts UUID into an array of byte using the default (little-endian, LSB0) byte and bit ordering. @param src the UUID to convert. @param dst t
src/main/java/org/apache/commons/lang3/Conversion.java:1378
↓ 6 callersMethodwithLowerBounds
Specify lower bounds of the wildcard type to build. @param bounds to set. @return {@code this} instance.
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java:207
↓ 6 callersMethodxor
Performs a logical <strong>XOR</strong> of this bit set with the bit set argument. This bit set is modified so that a bit in it has the value {@code t
src/main/java/org/apache/commons/lang3/util/FluentBitSet.java:607
↓ 5 callersMethodBASIC_ESCAPE
Mapping to escape the basic XML and HTML character entities. Namely: {@code " & < >} @return the mapping table.
src/main/java/org/apache/commons/lang3/text/translate/EntityArrays.java:382
↓ 5 callersMethodaccessibleString
Helps test reflection classes. @param string An input string. @return The given string or "<null>".
src/test/java/org/apache/commons/lang3/builder/AbstractBuilderTest.java:39
↓ 5 callersMethodaddEventListener
Adds an event listener to the specified source. This looks for an "add" method corresponding to the event type (addActionListener, for example). @pa
src/main/java/org/apache/commons/lang3/event/EventUtils.java:97
↓ 5 callersMethodaddMonths
Adds a number of months to a date returning a new object. The original {@link Date} is unchanged. @param date the date, not null. @param amount the
src/main/java/org/apache/commons/lang3/time/DateUtils.java:291
↓ 5 callersMethodaddToken
Adds a token to a list, paying attention to the parameters we've set. @param list the list to add to. @param tok the token to add.
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:421
↓ 5 callersMethodallMatch
Returns whether all elements of this stream match the provided predicate. May not evaluate the predicate on all elements if not necessary for determin
src/main/java/org/apache/commons/lang3/Streams.java:168
↓ 5 callersMethodasBiFunction
Produces a {@link BiFunction} for a given a <em>function</em> Method. You call the BiFunction with two arguments: (1) the object receiving the method
src/main/java/org/apache/commons/lang3/function/MethodInvokers.java:108
↓ 5 callersMethodasFailableBiConsumer
Produces a {@link FailableBiConsumer} for a given <em>consumer</em> Method. For example, a classic setter method (as opposed to a fluent setter). You
src/main/java/org/apache/commons/lang3/function/MethodInvokers.java:123
↓ 5 callersMethodasFailableBiFunction
Produces a {@link FailableBiFunction} for a given a <em>function</em> Method. You call the FailableBiFunction with two arguments: (1) the object recei
src/main/java/org/apache/commons/lang3/function/MethodInvokers.java:139
↓ 5 callersMethodasFailableFunction
Produces a {@link FailableFunction} for a given a <em>supplier</em> Method. You call the Function with one argument: the object receiving the method c
src/main/java/org/apache/commons/lang3/function/MethodInvokers.java:153
↓ 5 callersMethodassertNotTerminated
Throws IllegalStateException if this stream is already terminated. @throws IllegalStateException if this stream is already terminated.
src/main/java/org/apache/commons/lang3/Streams.java:202
↓ 5 callersMethodassertNotTerminated
Throws IllegalStateException if this stream is already terminated. @throws IllegalStateException if this stream is already terminated.
src/main/java/org/apache/commons/lang3/stream/Streams.java:233
↓ 5 callersMethodassertReflectionCompareContract
See "Effective Java" under "Consider Implementing Comparable". @param x an object to compare @param y an object to compare @param z an object to comp
src/test/java/org/apache/commons/lang3/builder/CompareToBuilderTest.java:118
↓ 5 callersMethodassertRegionMatchesParity
(final String source, final boolean ignoreCase, final int toffset, final String other, final int o
src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java:168
↓ 5 callersMethodassertUnmodifiableCollection
@param coll the collection to check
src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java:145
↓ 5 callersMethodavailableLocaleSet
Obtains an unmodifiable set of installed locales. <p> This method is a wrapper around {@link Locale#getAvailableLocales()}. It is more efficient, as
src/main/java/org/apache/commons/lang3/LocaleUtils.java:121
↓ 5 callersMethodbuild
Builds a {@link DiffResult} based on the differences appended to this builder. @return a {@link DiffResult} containing the differences between the tw
src/main/java/org/apache/commons/lang3/builder/DiffBuilder.java:594
↓ 5 callersMethodbuilder
Constructs a new {@link Builder} instance. @return a new {@link Builder} instance.
src/main/java/org/apache/commons/lang3/Strings.java:280
↓ 5 callersMethodbuilder
Creates a new builder. @param <T> The type of object to build. @return a new builder. @since 3.14.0
src/main/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializer.java:94
↓ 5 callersMethodcheckChild
Tests whether a child initializer has been executed. Optionally the expected executor service can be checked, too. @param child the child initializer
src/test/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializerTest.java:172
↓ 5 callersMethodcheckTokenized
Checks if tokenization has been done, and if not then do it.
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:436
↓ 5 callersMethodclear
Clears the cache.
src/main/java/org/apache/commons/lang3/time/FastDateParser.java:737
↓ 5 callersMethodcodePoints
()
src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java:128
↓ 5 callersMethodcompareTo
Compares this mutable to another in ascending order. @param other the other mutable to compare to, not null @return negative if this is less, zero i
src/main/java/org/apache/commons/lang3/mutable/MutableBoolean.java:91
↓ 5 callersMethodconstantFuture
Gets an implementation of {@link Future} that is immediately done and returns the specified constant value. <p> This can be useful to return a simple
src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java:129
↓ 5 callersMethodcreateFloat
Creates a {@link Float} from a {@link String}. <p> Returns {@code null} if the string is {@code null}. </p> @param str a {@link String} to convert,
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:273
↓ 5 callersMethodcreateIfAbsent
Checks if a concurrent map contains a key and creates a corresponding value if not. This method first checks the presence of the key in the given map.
src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java:153
↓ 5 callersMethodequals
(final Object other)
src/test/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializerTest.java:115
↓ 5 callersMethodescapeHtml4
Escapes the characters in a {@link String} using HTML entities. <p> For example: </p> <p>{@code "bread" &amp; "butter"}</p> becomes: <p> {@code &amp;
src/main/java/org/apache/commons/lang3/StringEscapeUtils.java:500
↓ 5 callersMethodescapeJson
Escapes the characters in a {@link String} using Json String rules. <p>Escapes any values it finds into their Json String form. Deals correctly with q
src/main/java/org/apache/commons/lang3/StringEscapeUtils.java:551
↓ 5 callersMethodestimateLength
Returns the estimated length of the result. @return the estimated length of the result.
src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java:326
↓ 5 callersMethodgetAsDouble
Invokes a double supplier, and returns the result. @param supplier The double supplier to invoke. @param <E> The type of checked exception, which the
src/main/java/org/apache/commons/lang3/function/Failable.java:438
↓ 5 callersMethodgetAsInt
Supplies an int. @return a result @throws E if the supplier fails
src/main/java/org/apache/commons/lang3/function/FailableIntSupplier.java:37
↓ 5 callersMethodgetAsLong
Supplies a long. @return a result @throws E if the supplier fails
src/main/java/org/apache/commons/lang3/function/FailableLongSupplier.java:37
↓ 5 callersMethodgetCSVInstance
Gets a new tokenizer instance which parses Comma Separated Value strings initializing it with the given input. The default for CSV processing will be
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:139
↓ 5 callersMethodgetCloseableCounter
()
src/test/java/org/apache/commons/lang3/concurrent/BackgroundInitializerTest.java:73
↓ 5 callersMethodgetComparator
Gets the comparator being used to determine if objects are within the range. <p>Natural ordering uses an internal comparator implementation, thus thi
src/main/java/org/apache/commons/lang3/Range.java:367
↓ 5 callersMethodgetCount
()
src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java:53
↓ 5 callersMethodgetDSTSavings
{@inheritDoc}
src/main/java/org/apache/commons/lang3/time/ImmutableTimeZone.java:55
↓ 5 callersMethodgetEnumSystemProperty
Gets the enum for the class in a system property, returning {@code defaultEnum} if not found. <p> This method differs from {@link Enum#valueOf} in th
src/main/java/org/apache/commons/lang3/EnumUtils.java:325
↓ 5 callersMethodgetExcludeFieldNames
Gets the field names that should be excluded from the diff. @return the excludeFieldNames. @since 3.13.0
src/main/java/org/apache/commons/lang3/builder/ReflectionDiffBuilder.java:238
↓ 5 callersMethodgetExecutorService
Gets the executor service used by this instance. @return the executor service.
src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java:368
↓ 5 callersMethodgetFieldName
()
src/test/java/org/apache/commons/lang3/builder/DiffResultTest.java:40
↓ 5 callersMethodgetFieldSeparator
Gets the field separator text. @return the current field separator text.
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1863
↓ 5 callersMethodgetFieldsWithAnnotation
Gets all fields of the given class and its parents (if any) that are annotated with the given annotation. @param cls the {@link Class} to
src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java:259
↓ 5 callersMethodgetLabel
()
src/test/java/org/apache/commons/lang3/EnumUtilsTest.java:662
↓ 5 callersMethodgetLocaleSpecificStrategy
Constructs a Strategy that parses a Text field @param field The Calendar field @param definingCalendar The calendar to obtain the short an
src/main/java/org/apache/commons/lang3/time/FastDateParser.java:894
↓ 5 callersMethodgetMethodForGetString
()
src/test/java/org/apache/commons/lang3/function/MethodFixtures.java:35
↓ 5 callersMethodgetMethodForStaticGetString
()
src/test/java/org/apache/commons/lang3/function/MethodFixtures.java:103
↓ 5 callersMethodgetPriority
Gets the priority of the threads created by this factory. Result can be {@code null} if no priority was specified. @return the priority for newly cre
src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java:327
↓ 5 callersMethodgetProperWhole
Gets the proper whole part of the fraction. <p> An improper fraction 7/4 can be resolved into a proper one, 1 3/4. This method returns the 1 from the
src/main/java/org/apache/commons/lang3/math/Fraction.java:697
↓ 5 callersMethodgetRegistry
Gets the registry of objects being traversed by the reflection methods in the current thread. @return Set the registry of objects being traversed
src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java:203
↓ 5 callersMethodgetRegistry
Gets the registry of objects being traversed by the {@code reflectionToString} methods in the current thread. @return Set the registry of objects bei
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:597
↓ 5 callersMethodgetRootCauseMessage
Gets a short message summarizing the root cause exception. <p> The message returned is of the form {ClassNameWithoutPackage}: {ThrowableMessage} </p>
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:333
↓ 5 callersMethodgetStyle
Gets the {@link ToStringStyle} being used. @return the {@link ToStringStyle} being used @since 2.0
src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java:1081
↓ 5 callersMethodgetSystemThreadGroup
Gets the system thread group (sometimes also referred as "root thread group"). <p> This method returns null if this thread has died (been stopped). </
src/main/java/org/apache/commons/lang3/ThreadUtils.java:464
↓ 5 callersMethodgetTSVInstance
Gets a new tokenizer instance which parses Tab Separated Value strings. The default for CSV processing will be trim whitespace from both ends (which c
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:192
↓ 5 callersMethodgetUncaughtExceptionHandler
Gets the {@link UncaughtExceptionHandler} for the threads created by this factory. Result can be {@code null} if no handler was provided. @return the
src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java:348
↓ 5 callersMethodgetUnchecked
Delegates to {@link Field#get(Object)} and rethrows {@link IllegalAccessException} as {@link IllegalArgumentException}. @param field The receiver of
src/main/java/org/apache/commons/lang3/builder/Reflection.java:36
↓ 5 callersMethodgetUserHome
Gets the current value from the system properties map for {@value #USER_HOME}. <p> Returns {@code null} if the property cannot be read due to a {@link
src/main/java/org/apache/commons/lang3/SystemProperties.java:4161
↓ 5 callersMethodhandleCauseUnchecked
Handles the specified {@link ExecutionException} and transforms it into a runtime exception. This method works exactly like {@link #handleCause(Execut
src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java:269
↓ 5 callersMethodhash
(final int value1, final int value2)
src/main/java/org/apache/commons/lang3/math/Fraction.java:400
↓ 5 callersMethodhex
Returns an upper case hexadecimal {@link String} for the given character. @param codePoint The code point to convert. @return An upper case hexadecim
src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java:50
↓ 5 callersMethodincrement
Increments the value. @since 2.2
src/main/java/org/apache/commons/lang3/mutable/MutableInt.java:280
↓ 5 callersMethodindexOf
Worker method for the {@code indexOfType} methods. @param throwable the throwable to inspect, may be null. @param type the type to search for, s
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:576
↓ 5 callersMethodinitializerNames
Returns a set with the names of all {@link BackgroundInitializer} objects managed by the {@link MultiBackgroundInitializer}. @return an (unmodifiable
src/main/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializer.java:197
↓ 5 callersMethodinnerTestSplit
(final char separator, final String sepStr, final char noMatch)
src/test/java/org/apache/commons/lang3/StringUtilsTest.java:141
↓ 5 callersMethodinnerTestSplitPreserveAllTokens
(final char separator, final String sepStr, final char noMatch)
src/test/java/org/apache/commons/lang3/StringUtilsTest.java:181
↓ 5 callersMethodinvert
Used to invert an escape array into an unescape array. @param array String[][] to be inverted. @return String[][] inverted array.
src/main/java/org/apache/commons/lang3/text/translate/EntityArrays.java:421
↓ 5 callersMethodisArrayIndexValid
Tests whether a given array can safely be accessed at the given index. <pre> ArrayUtils.isArrayIndexValid(null, 0) = false ArrayUtils.isArrayIn
src/main/java/org/apache/commons/lang3/ArrayUtils.java:3515
↓ 5 callersMethodisEmpty
(final String str, final String... set)
src/main/java/org/apache/commons/lang3/CharSetUtils.java:135
↓ 5 callersMethodisIA64
Tests if {@link Processor} is type of Intel Itanium. @return {@code true}. if {@link Processor} is {@link Type#IA_64}, else {@code false}.
src/main/java/org/apache/commons/lang3/arch/Processor.java:214
↓ 5 callersMethodisStopped
Tests whether StopWatch is stopped. this StopWatch which's not yet started and explicitly stopped StopWatch is considered as stopped. @return boolean
src/main/java/org/apache/commons/lang3/time/StopWatch.java:592
↓ 5 callersMethodisValidAnnotationMemberType
Checks if the specified type is permitted as an annotation member. <p>The Java language specification only permits certain types to be used in annota
src/main/java/org/apache/commons/lang3/AnnotationUtils.java:287
↓ 5 callersMethodisX86
Tests if {@link Processor} is type of x86. @return {@code true}, if {@link Processor} is {@link Type#X86}, else {@code false}.
src/main/java/org/apache/commons/lang3/arch/Processor.java:242
↓ 5 callersMethodisZero
Utility method for {@link #createNumber(java.lang.String)}. <p> This will check if the magnitude of the number is zero by checking if there are only
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:704
↓ 5 callersMethodminimizeCapacity
Minimizes the capacity to the actual length of the string. @return {@code this} instance.
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2493
↓ 5 callersMethodnop
Gets the NOP singleton. @param <T> Consumed type. @param <R> Return type. @param <E> The type of thrown exception or error. @return The NOP singleton
src/main/java/org/apache/commons/lang3/function/FailableFunction.java:71
↓ 5 callersMethodnotEqual
Compares two objects for inequality, where either one or both objects may be {@code null}. <pre> ObjectUtils.notEqual(null, null) =
src/main/java/org/apache/commons/lang3/ObjectUtils.java:1163
↓ 5 callersMethodobservesDaylightTime
{@inheritDoc}
src/main/java/org/apache/commons/lang3/time/ImmutableTimeZone.java:111
↓ 5 callersMethodofNonNull
Creates an immutable pair of two non-null objects inferring the generic types. @param <L> The left element type. @param <R> The right element type. @
src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java:133
↓ 5 callersMethodoutsideOf
Constructs a {@link JavaUnicodeEscaper} outside of the specified values (exclusive). @param codePointLow below which to escape. @param cod
src/main/java/org/apache/commons/lang3/text/translate/JavaUnicodeEscaper.java:74
↓ 5 callersMethodpreviousToken
Gets the previous token from the String. @return the previous sequential token, or null when no more tokens are found.
src/main/java/org/apache/commons/lang3/text/StrTokenizer.java:695
↓ 5 callersMethodready
{@inheritDoc}
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:154
↓ 5 callersMethodreset
()
src/test/java/org/apache/commons/lang3/function/FailableTest.java:96
↓ 5 callersMethodrethrow
Throws the given (usually checked) exception without adding the exception to the throws clause of the calling method. This method prevents throws clau
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:873
← previousnext →1,201–1,300 of 9,093, ranked by callers