MCPcopy Create free account

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

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

↓ 6 callersMethodapplyAsFloat
Applies this function to the given argument. @param value the function argument @return the function result @throws E Thrown when the function fails.
src/main/java/org/apache/commons/lang3/function/FailableIntToFloatFunction.java:53
↓ 6 callersMethodapplyRules
Performs the formatting by applying the rules to the specified calendar. @param calendar the calendar to format. @param buf the buffer to format in
src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java:1074
↓ 6 callersMethodassertCorrect
(final String assertMessage, final NotImplementedException nie, final String message, final Throwable nested,
src/test/java/org/apache/commons/lang3/NotImplementedExceptionTest.java:30
↓ 6 callersMethodassertCreateNumberZero
(final String number, final Object zero, final Object negativeZero)
src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java:52
↓ 6 callersMethodassertEqualsAndHashCodeContract
Asserts that if {@code lhs} equals {@code rhs} then their hash codes MUST be identical. @param lhs The Left-Hand-Side of the equals test @param rhs T
src/test/java/org/apache/commons/lang3/builder/HashCodeBuilderAndEqualsBuilderTest.java:85
↓ 6 callersMethodassertSupportedEncoding
(final String name)
src/test/java/org/apache/commons/lang3/CharEncodingTest.java:36
↓ 6 callersMethodassertXYZCompareOrder
(final Object x, final Object y, final Object z, final boolean testTransients, final String[] excludeFields)
src/test/java/org/apache/commons/lang3/builder/CompareToBuilderTest.java:145
↓ 6 callersMethodatLeast
Tests whether this version of Java is at least the version of Java passed in. <p> For example: </p> <pre> {@code myVersion.atLeast(JavaVersion.JAVA
src/main/java/org/apache/commons/lang3/JavaVersion.java:380
↓ 6 callersMethodbinaryToByte
Converts binary (represented as boolean array) into a byte using the default (little-endian, LSB0) byte and bit ordering. @param src the binary t
src/main/java/org/apache/commons/lang3/Conversion.java:159
↓ 6 callersMethodcall
Calls the callable. @return The value returned from the callable @throws E if the callable fails
src/main/java/org/apache/commons/lang3/function/FailableCallable.java:36
↓ 6 callersMethodclose
Closes the given {@link AutoCloseable} as a null-safe operation. @param closeable The resource to close, may be null. @throws Exception if an error o
src/main/java/org/apache/commons/lang3/AutoCloseables.java:43
↓ 6 callersMethodcommaMatcher
Gets the matcher for the comma character. @return the matcher for a comma.
src/main/java/org/apache/commons/lang3/text/StrMatcher.java:297
↓ 6 callersMethodcompare
Compares two {@code boolean} values. This is the same functionality as provided in Java 7. @param x the first {@code boolean} to compare @param y the
src/main/java/org/apache/commons/lang3/BooleanUtils.java:158
↓ 6 callersMethodcreateDouble
Creates a {@link Double} 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:255
↓ 6 callersMethodcreateInitializerThatThrowsException
( FailableSupplier<CloseableObject, ? extends Exception> supplier, FailableConsumer<CloseableObjec
src/test/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializerCloseAndExceptionsTest.java:80
↓ 6 callersMethodcreateInteger
Creates an {@link Integer} from a {@link String}. Handles hexadecimal (0xhhhh) and octal (0dddd) notations. A leading zero means octal; spaces are no
src/main/java/org/apache/commons/lang3/math/NumberUtils.java:293
↓ 6 callersMethoddaemon
Sets the daemon flag for the new {@link BasicThreadFactory} to {@code true} causing a new thread factory to create daemon threads. @return a referenc
src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java:157
↓ 6 callersMethoddeleteImpl
Internal method to delete a range without validation. @param startIndex the start index, must be valid. @param endIndex the end index (exclusive),
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:1809
↓ 6 callersMethoddeserialize
Deserializes the first object from {@code bytes}.
src/test/java/org/apache/commons/lang3/event/EventListenerSupportReadObjectTest.java:105
↓ 6 callersMethoddoubleQuoteMatcher
Gets the matcher for the double quote character. @return the matcher for a double quote.
src/main/java/org/apache/commons/lang3/text/StrMatcher.java:306
↓ 6 callersMethodequals
Compares two objects for equality, where either one or both objects may be {@code null}. <pre> ObjectUtils.equals(null, null) = true
src/main/java/org/apache/commons/lang3/ObjectUtils.java:563
↓ 6 callersMethodequals
Compares this pair to another based on the two elements. @param obj the object to compare to, null returns false. @return true if the elements of th
src/main/java/org/apache/commons/lang3/tuple/Pair.java:167
↓ 6 callersMethodescapeEcmaScript
Escapes the characters in a {@link String} using EcmaScript String rules. <p>Escapes any values it finds into their EcmaScript String form. Deals corr
src/main/java/org/apache/commons/lang3/StringEscapeUtils.java:459
↓ 6 callersMethodescapeXml10
Escapes the characters in a {@link String} using XML entities. <p> For example: </p> <pre>{@code "bread" & "butter" }</pre> <p> converts to: </p> <p
src/main/java/org/apache/commons/lang3/StringEscapeUtils.java:626
↓ 6 callersMethodextractCause
Inspects the cause of the specified {@link ExecutionException} and creates a {@link ConcurrentException} with the checked cause if necessary. This met
src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java:208
↓ 6 callersMethodextractCauseUnchecked
Inspects the cause of the specified {@link ExecutionException} and creates a {@link ConcurrentRuntimeException} with the checked cause if necessary. T
src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java:228
↓ 6 callersMethodformatDurationISO
Formats the time gap as a string. <p> The format used is the ISO 8601 period format. </p> <p> This method formats durations using the days and lower f
src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java:420
↓ 6 callersMethodgetAllFields
Gets all fields of the given class and its parents (if any). @param cls the {@link Class} to query @return an array of Fields (possibly em
src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java:58
↓ 6 callersMethodgetAllInterfaces
Gets a {@link List} of all interfaces implemented by the given class and its superclasses. <p> The order is determined by looking through each interf
src/main/java/org/apache/commons/lang3/ClassUtils.java:373
↓ 6 callersMethodgetAsBoolean
Invokes a boolean supplier, and returns the result. @param supplier The boolean supplier to invoke. @param <E> The type of checked exception, which t
src/main/java/org/apache/commons/lang3/function/Failable.java:423
↓ 6 callersMethodgetContentEnd
Gets the content end text. @return the current content end text.
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:1836
↓ 6 callersMethodgetDaemonFlag
Gets the daemon flag. This flag determines whether newly created threads should be daemon threads. If <strong>true</strong>, this factory object calls
src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java:303
↓ 6 callersMethodgetDateInstance
(final int dateStyle, final Locale locale)
src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java:181
↓ 6 callersMethodgetExternalExecutor
Gets the external {@link ExecutorService} to be used by this class. @return the {@link ExecutorService}.
src/main/java/org/apache/commons/lang3/concurrent/BackgroundInitializer.java:289
↓ 6 callersMethodgetFieldsListWithAnnotation
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:242
↓ 6 callersMethodgetLeft
Gets the left element from this pair. <p>When treated as a key-value pair, this is the key.</p> @return the left element, may be null.
src/main/java/org/apache/commons/lang3/tuple/Pair.java:200
↓ 6 callersMethodgetMethodsListWithAnnotation
Gets all class level public methods of the given class that are annotated with the given annotation. @param cls the {@link Class} to query.
src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java:482
↓ 6 callersMethodgetPath
Gets the current value for the property named {@code key} as a {@link Path}. <p> If a {@link SecurityException} is caught, the return value is {@code
src/main/java/org/apache/commons/lang3/SystemProperties.java:3878
↓ 6 callersMethodgetRawMessage
Provides the message explaining the exception without the contextual data. @see Throwable#getMessage() @return the message @since 3.0.1
src/main/java/org/apache/commons/lang3/exception/ContextedException.java:232
↓ 6 callersMethodgetRootCauseStackTraceList
Gets a compact stack trace for the root cause of the supplied {@link Throwable}. <p> The output of this method is consistent across JDK versions. It
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:367
↓ 6 callersMethodgetSplits
Gets the split list. @return the list of splits. @since 3.20.0
src/main/java/org/apache/commons/lang3/time/StopWatch.java:449
↓ 6 callersMethodgetStopInstant
Gets the Instant this StopWatch was stopped, between the current time and midnight, January 1, 1970 UTC. @return the Instant this StopWatch was stopp
src/main/java/org/apache/commons/lang3/time/StopWatch.java:504
↓ 6 callersMethodgetStopTime
Gets the time this StopWatch was stopped in milliseconds, between the current time and midnight, January 1, 1970 UTC. @return the time this StopWatch
src/main/java/org/apache/commons/lang3/time/StopWatch.java:519
↓ 6 callersMethodgetString
()
src/test/java/org/apache/commons/lang3/function/MethodFixtures.java:121
↓ 6 callersMethodgetTimeInstance
Gets a time formatter instance using the specified style in the default time zone and locale. @param style time style: {@link #FULL}, {@link #LONG},
src/main/java/org/apache/commons/lang3/time/FastDateFormat.java:294
↓ 6 callersMethodgetTimeZone
Gets a TimeZone, looking first for GMT custom ids, then falling back to Olson ids. A GMT custom id can be 'Z', or 'UTC', or has an optional prefix of
src/main/java/org/apache/commons/lang3/time/FastTimeZone.java:82
↓ 6 callersMethodgetValue
()
src/test/java/org/apache/commons/lang3/tuple/PairTest.java:165
↓ 6 callersMethodgreatestCommonDivisor
Gets the greatest common divisor of the absolute value of two numbers, using the "binary gcd" method which avoids division and modulo operations. See
src/main/java/org/apache/commons/lang3/math/Fraction.java:343
↓ 6 callersMethodhandleCause
Handles the specified {@link ExecutionException}. This method calls {@link #extractCause(ExecutionException)} for obtaining the cause of the exception
src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java:249
↓ 6 callersMethodhashCodeMulti
Gets the hash code for multiple objects. <p> This allows a hash code to be rapidly calculated for a number of objects. The hash code for a single obj
src/main/java/org/apache/commons/lang3/ObjectUtils.java:751
↓ 6 callersMethodinitialCapacity
Computes a safe initial capacity for the {@link StringBuilder} used by {@link #replace(String, String, String, int)}. <p> Uses {@code long} arithmetic
src/main/java/org/apache/commons/lang3/Strings.java:335
↓ 6 callersMethodisApplyNonNull
(final String s, final Function<String, ?> function)
src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java:109
↓ 6 callersMethodisChecked
Checks if a throwable represents a checked exception @param throwable The throwable to check. @return True if the given Throwable is a che
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:685
↓ 6 callersMethodisClosed
()
src/test/java/org/apache/commons/lang3/AutoCloseablesTest.java:63
↓ 6 callersMethodisInnerClass
Tests whether the specified class an inner class or static nested class. @param cls the class to check, may be null. @return {@code true} if the clas
src/main/java/org/apache/commons/lang3/ClassUtils.java:1502
↓ 6 callersMethodisInstanceOf
Validates that the argument is an instance of the specified class, if not throws an exception. <p>This method is useful when validating according to
src/main/java/org/apache/commons/lang3/Validate.java:447
↓ 6 callersMethodisMatch
(final char[] buffer, int pos, final int bufferStart, final int bufferEnd)
src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java:63
↓ 6 callersMethodisNumberFormatParsable
(final String s)
src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java:121
↓ 6 callersMethodisNumberIntegerOnlyFormatParsable
(final String s)
src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java:132
↓ 6 callersMethodisPPC
Tests if {@link Processor} is type of Power PC. @return {@code true}. if {@link Processor} is {@link Type#PPC}, else {@code false}.
src/main/java/org/apache/commons/lang3/arch/Processor.java:223
↓ 6 callersMethodisSameLocalTime
Tests whether two calendar objects represent the same local time. <p>This method compares the values of the fields of the two objects. In addition, b
src/main/java/org/apache/commons/lang3/time/DateUtils.java:936
↓ 6 callersMethodisUnchecked
Checks if a throwable represents an unchecked exception @param throwable The throwable to check. @return True if the given Throwable is an
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java:697
↓ 6 callersMethodisValidEnum
Checks if the specified name is a valid enum for the class. <p> This method differs from {@link Enum#valueOf} in that it checks if the name is a vali
src/main/java/org/apache/commons/lang3/EnumUtils.java:390
↓ 6 callersMethodisValidEnumIgnoreCase
Checks if the specified name is a valid enum for the class. <p> This method differs from {@link Enum#valueOf} in that it checks if the name is a vali
src/main/java/org/apache/commons/lang3/EnumUtils.java:408
↓ 6 callersMethodisVarArgs
()
src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java:65
↓ 6 callersMethodlowerCase
Converts a String to lower case as per {@link String#toLowerCase()}. <p> A {@code null} input String returns {@code null}. </p> <pre> StringUtils.lo
src/main/java/org/apache/commons/lang3/StringUtils.java:5298
↓ 6 callersMethodmode
Finds the most frequently occurring item. @param <T> type of values processed by this method. @param items to check. @return most populous T, {@code
src/main/java/org/apache/commons/lang3/ObjectUtils.java:1121
↓ 6 callersMethodmodify
Internal calculation method. @param val the calendar, not null. @param field the field constant. @param modType type to truncate, round or ceiling
src/main/java/org/apache/commons/lang3/time/DateUtils.java:1109
↓ 6 callersMethodnanoTime
{@inheritDoc} This implementation returns the value passed to the {@code at()} method.
src/test/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreakerTest.java:115
↓ 6 callersMethodnewCalendar
Creates a new Calendar instance. @return a new Calendar instance.
src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java:1330
↓ 6 callersMethodnextBytes
Generates an array of random bytes. @param count the size of the returned array. @return the random byte array. @throws IllegalArgumentException if {
src/main/java/org/apache/commons/lang3/RandomUtils.java:126
↓ 6 callersMethodnextGraph
Creates a random string whose length is the number of characters specified. <p> Characters will be chosen from the set of characters which match the
src/main/java/org/apache/commons/lang3/RandomStringUtils.java:971
↓ 6 callersMethodnextPrint
Creates a random string whose length is the number of characters specified. <p> Characters will be chosen from the set of characters which match the
src/main/java/org/apache/commons/lang3/RandomStringUtils.java:1036
↓ 6 callersMethodnop
Gets the NOP Consumer singleton. @param <T> type type to consume. @return the NOP Consumer singleton.
src/main/java/org/apache/commons/lang3/function/Consumers.java:54
↓ 6 callersMethodnul
Gets the singleton supplier that always returns null. <p> This supplier never throws an exception. </p> @param <T> Supplied type. @param <E> The kind
src/main/java/org/apache/commons/lang3/function/FailableSupplier.java:54
↓ 6 callersMethodofNonNull
Obtains a mutable triple of three non-null objects inferring the generic types. @param <L> The left element type. @param <M> The middle element type.
src/main/java/org/apache/commons/lang3/tuple/MutableTriple.java:88
↓ 6 callersMethodofNonNull
Creates a mutable pair of two non-null objects inferring the generic types. @param <L> The left element type. @param <R> The right element type. @par
src/main/java/org/apache/commons/lang3/tuple/MutablePair.java:104
↓ 6 callersMethodofNonNull
Obtains an immutable triple of three non-null objects inferring the generic types. @param <L> The left element type. @param <M> The middle element ty
src/main/java/org/apache/commons/lang3/tuple/Triple.java:96
↓ 6 callersMethodprimitivesToWrappers
Converts the specified array of primitive Class objects to an array of its corresponding wrapper Class objects. @param classes the class array to con
src/main/java/org/apache/commons/lang3/ClassUtils.java:1551
↓ 6 callersMethodreverse
Reverses the string builder placing each character in the opposite index. @return {@code this} instance.
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2754
↓ 6 callersMethodrunTest
(final Duration delay, final boolean exclusiveLock, final LongConsumer runTimeCheck, final boolean
src/test/java/org/apache/commons/lang3/concurrent/locks/LockingVisitorsTest.java:60
↓ 6 callersMethodsetAccessibleWorkaround
Default access superclass workaround. <p> When a {@code public} class has a default access superclass with {@code public} members, these members are a
src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java:322
↓ 6 callersMethodsetContentEnd
Sets the content end text. <p> {@code null} is accepted, but will be converted to an empty String. </p> @param contentEnd the new content end text.
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:2125
↓ 6 callersMethodsetContentStart
Sets the content start text. <p> {@code null} is accepted, but will be converted to an empty String. </p> @param contentStart the new content start
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:2138
↓ 6 callersMethodsetElementAppender
Sets the consumer used to render each element of type {@code T} onto an {@link Appendable}. @param appender The consumer used to render each element
src/main/java/org/apache/commons/lang3/AppendableJoiner.java:137
↓ 6 callersMethodsetHobbies
(final List<Hobby> hobbies)
src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java:115
↓ 6 callersMethodsetMonths
Sets the months field to a date returning a new object. The original {@link Date} is unchanged. @param date the date, not null. @param amount the am
src/main/java/org/apache/commons/lang3/time/DateUtils.java:1570
↓ 6 callersMethodsetNewLineText
Sets the text to be appended when {@link #appendNewLine() new line} is called. @param newLine the new line text, {@code null} means use the system de
src/main/java/org/apache/commons/lang3/text/StrBuilder.java:2853
↓ 6 callersMethodsetObject
Sets the Object to build a {@code toString} for, not recommended to be null. @param object the Object to build a {@code toString} for, not recommende
src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java:137
↓ 6 callersMethodsetObjectReference
(final TestObjectReference reference)
src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java:215
↓ 6 callersMethodsetShortBoolean
Sets a boolean BitField. @param holder the short data containing the bits we're interested in. @param flag indicating whether to set or clear the b
src/main/java/org/apache/commons/lang3/BitField.java:356
↓ 6 callersMethodsetUseClassName
Sets whether to use the class name. @param useClassName the new useClassName flag.
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:2283
↓ 6 callersMethodsetUseIdentityHashCode
Sets whether to use the identity hash code. @param useIdentityHashCode the new useIdentityHashCode flag.
src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java:2301
↓ 6 callersMethodsleepQuietly
Sleeps for the given duration without throwing {@link InterruptedException}. <p> The sleep duration may be shorter than the given duration if we catch
src/main/java/org/apache/commons/lang3/ThreadUtils.java:523
↓ 6 callersMethodspacer
Creates a StringBuilder responsible for the indenting. @param spaces how far to indent @return a StringBuilder with {spaces} leading space characters
src/main/java/org/apache/commons/lang3/builder/MultilineRecursiveToStringStyle.java:211
↓ 6 callersMethodstream
Converts the FailableStream into an equivalent stream. @return A stream, which will return the same elements, which this FailableStream would return.
src/main/java/org/apache/commons/lang3/Streams.java:458
↓ 6 callersMethodstream
Converts the FailableStream into an equivalent stream. @return A stream, which will return the same elements, which this FailableStream would return.
src/main/java/org/apache/commons/lang3/stream/Streams.java:476
↓ 6 callersMethodstripToEmpty
Strips whitespace from the start and end of a String returning an empty String if {@code null} input. <p> This is similar to {@link #trimToEmpty(Stri
src/main/java/org/apache/commons/lang3/StringUtils.java:8152
↓ 6 callersMethodstripToNull
Strips whitespace from the start and end of a String returning {@code null} if the String is empty ("") after the strip. <p> This is similar to {@lin
src/main/java/org/apache/commons/lang3/StringUtils.java:8178
↓ 6 callersMethodtestTimeZoneStrategyPattern
(final Locale locale, final String timeZoneId)
src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java:145
← previousnext →1,101–1,200 of 9,093, ranked by callers