All Classes
-
All Classes Interface Summary Class Summary Enum Summary Exception Summary Class Description AbstractMessageTemplate Accessibles Utility class for working withAccessibleObject/Member'sBoxedTypes CheckedBiFunction<T1,T2,R> Variant ofBiFunctionthat behaves likeBiFunction, but which allows checkedException's to be thrown from itsCheckedBiFunction.apply(Object, Object)method
– the first function argument type – the second function argument type – the function result type CheckedConsumer<T> Variant ofConsumerthat behaves likeConsumer, but which allows checkedException's to be thrown from itsCheckedConsumer.accept(Object)methodCheckedExceptionRethrownException Used by the various Checked functional interfaces to indicate that a CheckedExceptionhas been catched and rethrownCheckedFunction<T,R> Variant ofFunctionthat behaves likeFunction, but which allows checkedException's to be thrown from itsCheckedFunction.apply(Object)method
– the function argument type – the function result type CheckedRunnable Variant ofRunnablethat behaves likeRunnable, but which allows checkedException's to be thrown from itsCheckedRunnable.run()methodCheckedSupplier<R> Variant ofSupplierthat behaves likeSupplier, but which allows checkedException's to be thrown from itsCheckedSupplier.get()methodCheckedTripleFunction<T1,T2,T3,R> Variant ofTripleFunctionthat behaves likeTripleFunction, but which allows checkedException's to be thrown from itsCheckedTripleFunction.apply(Object, Object, Object)method
– the first function argument type – the second function argument type – the third function argument type – the function result type Classes Utility class for working withClass'sComparableEmpty Represents aComparableTuplewith zero elementsComparablePair<T1 extends Comparable<? super T1>,T2 extends Comparable<? super T2>> Represents aComparableTuplewith two elements.
Note:ComparablePairsupportsComparablePair.equals(Object)comparison using subclasses, e.g.:ComparableSingle<T1 extends Comparable<? super T1>> Represents aComparableTuplewith one element.
Note:ComparableSinglesupportsComparableSingle.equals(Object)comparison using subclasses, e.g.:ComparableTriple<T1 extends Comparable<? super T1>,T2 extends Comparable<? super T2>,T3 extends Comparable<? super T3>> Represents aComparableTuplewith three elements.
Note:ComparableTriplesupportsComparableTriple.equals(Object)comparison using subclasses, e.g.:ComparableTuple<CONCRETE_TUPLE extends ComparableTuple<CONCRETE_TUPLE>> Base interface for allComparableTuple's.
AComparableTupleis an immutable object that can contain the following (supported) number of elements: Number of element in TupleConcreteComparableTupletypeFactory method 0ComparableEmptyComparableTuple.empty()1ComparableSingleComparableTuple.of(Comparable)2ComparablePairComparableTuple.of(Comparable, Comparable)3ComparableTripleComparableTuple.of(Comparable, Comparable, Comparable)
Note:ComparableTuple(and its subclasses) supportsObject.equals(Object)comparison using subclasses for the different subclassesConstructors Utility class for working withConstructor'sDefaultInterceptorChain<OPERATION,RESULT,INTERCEPTOR_TYPE extends Interceptor> Default implementation for theInterceptorChain.Either<T1,T2> Represents aTuplewith two potential elements, but where only one element can have a value at a time
This is used to represent a choice type that can have two different values, but only one value at a time.
The value can either beEither._1()OREither._2()
UseEither(Object, Object)orEither.of_1(Object)/Either.of_2(Object)to create a newEitherinstance
UseEither.is_1()orEither.is_2()to check which value is non-null andEither._1()orEither._2()to get the value of the element.
Conditional logic can be applied usingEither.ifIs_1(Consumer)orEither.ifIs_2(Consumer)ElseIfExpression<RETURN_TYPE> The ElseIf/Else part of anIfExpressionEmpty Represents aTuplewith zero elementsExceptions FailFast Collection ofObjects.requireNonNull(Object)replacement methodsFields Utility class for working withField'sGenericType<T> Using this class makes it possible to capture a generic/parameterized argument type, such asList<Money>, instead of having to rely on the classical.classconstruct.
When you specify a type reference using.classyou loose any Generic/Parameterized information, as you cannot writeList<Money>.class, onlyList.class.
WithGenericTypeyou can specify and capture parameterized type information
You can specify a parameterized type usingGenericType:
var genericType = new GenericType<List<Money>>(){};
Thetype/getType()will returnList.class
AndgenericType/getGenericType()will returnParameterizedType, which can be introspected further
You can also supply a non-parameterized type toGenericType:
var genericType = new GenericType<Money>(){};
In which casetype/getType()will returnMoney.class
AndgenericType/getGenericType()will returnMoney.classGetFieldException IfExpression<RETURN_TYPE> An if expression is anIfExpression.If(boolean, Object)andElseIfExpression.Else(Object), with multiple optional intermediateElseIfExpression.ElseIf(boolean, Object)'s, which returns a value of the evaluation of the if expression:IfPredicate AnIfPredicateis evaluated to resolve if anIfExpressionorElseIfExpressionelement is true and hence the return value from theifReturnValueSuppliermust be returnedInterceptor Each interceptor, configured on the method allows you to perform before, after or around interceptor logic according to your needs.
TheInterceptoris built around supporting Intercepting specific Operations, where an Operation is determined by the user of the Interceptor.InterceptorChain<OPERATION,RESULT,INTERCEPTOR_TYPE extends Interceptor> Generic interceptor chain concept that supports intercepting concreteInterceptoroperations to modify the behaviour or add to the default behaviourInterfaces Utility class for working withInterfaces'sInvocationException InvocationStrategy Determines which among as set of matching methods are invokedLists Listutility methodsLoadingClassFailedException Message AMessageis an instance of aMessageTemplatewith parameters bound to it
AMessageinstance is e.g.MessageFormatter Slf4J compatible message formatter.
TheMessageFormattersupports formatting a message using Slf4J style message anchors:MessageFormatter.NamedArgumentBinding Named argument binding instanceMessageTemplate TheMessageTemplateconcept supports structured messages with typed parameters.
EachMessageTemplateinstance has a uniqueMessageTemplate.getKey()that clearly identifies theMessageTemplate.
MessageTemplatekeys can be nested, to support message hierarchies:MessageTemplate0 MessageTemplate1<PARAM_1> MessageTemplate2<PARAM_1,PARAM_2> MessageTemplate3<PARAM_1,PARAM_2,PARAM_3> MessageTemplate4<PARAM_1,PARAM_2,PARAM_3,PARAM_4> MessageTemplates Marker interface for classes or interfaces that containMessageTemplatefields, which can be queried usingMessageTemplates.getMessageTemplates(Class, boolean)
Example of a concreteMessageTemplatessubclass:MethodInvocationFailedException MethodPatternMatcher<ARGUMENT_COMMON_ROOT_TYPE> Strategy interface that determines the mechanics of which methods are candidates for matching, what type a given method supports and how the method is invokedMethods Utility class for working withMethod'sNetwork NoFieldFoundException NoMatchingMethodFoundException NoMatchingMethodsHandler Consumer that will be called ifPatternMatchingMethodInvoker.invoke(Object)orPatternMatchingMethodInvoker.invoke(Object, NoMatchingMethodsHandler)is called with an argument that doesn't match any methodsPair<T1,T2> Represents aTuplewith two elements.
Note:PairsupportsPair.equals(Object)comparison using subclasses, e.g.:Parameters Utility class for working withMethods/Methodparameters andConstructors/Constructordeclaration parameters or method/constructor call argumentsParameters.NULL_ARGUMENT_TYPE Class used to represent the unknown type for anullparameter toParameters.argumentTypes(Object...)PatternMatchingMethodInvoker<ARGUMENT_COMMON_ROOT_TYPE> The purpose of thePatternMatchingMethodInvokeris to support pattern matching a set of typed methods against a concreteargumentand have the method(s) that match the type resolved by theMethodPatternMatcher.resolveInvocationArgumentTypeFromObject(Object)will be invoked by theMethodPatternMatcher.invokeMethod(Method, Object, Object, Class)with the argumentReflectionException Reflector Caching Java Reflection helper
EncapsulatesConstructors,MethodsandFieldswhile providing high-level method for invoking constructors, method and getting/setting fields
Depending on the version of Java you're using you may need to explicitly add something like the following to your Module Config or Java arguments to ensure thatReflectoris allowed to perform Java reflection
See https://docs.oracle.com/en/java/javase/17/migrate/migrating-jdk-8-later-jdk-releases.html#GUID-12F945EB-71D6-46AF-8C3D-D354FD0B1781 for more information and to understand the implications of adding the--add-opensargument.SetFieldException Single<T1> Represents aTuplewith one element.
Note:SinglesupportsSingle.equals(Object)comparison using subclasses, e.g.:SingleArgumentAnnotatedMethodPatternMatcher<ARGUMENT_COMMON_ROOT_TYPE> A strategy that matches methods annotated withmatchOnMethodsAnnotatedWithand have a single method argument that is the same type or a sub-type of theARGUMENT_COMMON_ROOT_TYPE
Example using parameterized types:StopWatch Stop watch feature that allows you to time operationsStreams ThreadFactoryBuilder Builder for aThreadFactoryto allow setting thread names, auto increment thread numbers, etc.Timing TimingWithResult<R> The result ofStopWatch.time(Supplier)TooManyMatchingFieldsFoundException TooManyMatchingMethodsFoundException Triple<T1,T2,T3> Represents aTuplewith three elements.
Note:TriplesupportsTriple.equals(Object)comparison using subclasses, e.g.:TripleFunction<T1,T2,T3,R> Represents a function that accepts three arguments and produces a result.
This is a specialization of theFunctioninterface.Tuple<CONCRETE_TUPLE extends Tuple<CONCRETE_TUPLE>> Base interface for allTuple's.
ATupleis an immutable object that can contain the following (supported) number of elements: Number of element in TupleConcreteTupletypeFactory method 0EmptyTuple.empty()1SingleTuple.of(Object)2PairTuple.of(Object, Object)3TripleTuple.of(Object, Object, Object)
Note:Tuple(and its subclasses) supportsObject.equals(Object)comparison using subclasses for the different subclasses