A B C D E F G H I K L M N O P R S T U V Z _
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractMessageTemplate - Class in dk.cloudcreate.essentials.shared.messages
- AbstractMessageTemplate(String) - Constructor for class dk.cloudcreate.essentials.shared.messages.AbstractMessageTemplate
- AbstractMessageTemplate(String, String) - Constructor for class dk.cloudcreate.essentials.shared.messages.AbstractMessageTemplate
- accept(T) - Method in interface dk.cloudcreate.essentials.shared.functional.CheckedConsumer
-
This method performs the operation that may fail with a Checked
Exception - accessible(T) - Static method in class dk.cloudcreate.essentials.shared.reflection.Accessibles
-
Set the
AccessibleObjectas accessible - Accessibles - Class in dk.cloudcreate.essentials.shared.reflection
-
Utility class for working with
AccessibleObject/Member's - Accessibles() - Constructor for class dk.cloudcreate.essentials.shared.reflection.Accessibles
- andThen(Function<? super R, ? extends V>) - Method in interface dk.cloudcreate.essentials.shared.functional.TripleFunction
-
Returns a composed function that first applies this function to its input, and then applies the after function to the result.
- apply(T) - Method in interface dk.cloudcreate.essentials.shared.functional.CheckedFunction
-
This method performs the operation that may fail with a Checked
Exception - apply(T1, T2) - Method in interface dk.cloudcreate.essentials.shared.functional.CheckedBiFunction
-
This method performs the operation that may fail with a Checked
Exception - apply(T1, T2, T3) - Method in interface dk.cloudcreate.essentials.shared.functional.CheckedTripleFunction
-
This method performs the operation that may fail with a Checked
Exception - apply(T1, T2, T3) - Method in interface dk.cloudcreate.essentials.shared.functional.TripleFunction
-
Applies this function to the given arguments.
- arg(String, Object) - Static method in class dk.cloudcreate.essentials.shared.MessageFormatter.NamedArgumentBinding
-
Create a named argument binding:
- argumentTypes(Object...) - Static method in class dk.cloudcreate.essentials.shared.reflection.Parameters
-
Convert method/constructor call arguments to their corresponding types.
nullvalues are represented using theParameters.NULL_ARGUMENT_TYPEtype - arity() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableEmpty
- arity() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
- arity() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableSingle
- arity() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
- arity() - Method in interface dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTuple
-
Number of arguments/elements in the Tuple
- arity() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
- arity() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Empty
- arity() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
- arity() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Single
- arity() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
- arity() - Method in interface dk.cloudcreate.essentials.shared.functional.tuple.Tuple
-
Number of arguments/elements in the Tuple
B
- bind(String, MessageFormatter.NamedArgumentBinding...) - Static method in class dk.cloudcreate.essentials.shared.MessageFormatter
-
Replaces placeholders of style
"Hello {:firstName} {:lastName}."with bind offirstNameto "Peter" andlastNameto "Hansen" this will return the string"Hello Peter Hansen.": - bind(String, List<MessageFormatter.NamedArgumentBinding>) - Static method in class dk.cloudcreate.essentials.shared.MessageFormatter
-
Replaces placeholders of style
"Hello {:firstName} {:lastName}."with bind offirstNameto "Peter" andlastNameto "Hansen" this will return the string "Hello Peter Hansen.": - bind(String, Map<String, Object>) - Static method in class dk.cloudcreate.essentials.shared.MessageFormatter
-
Replaces placeholders of style
"Hello {:firstName} {:lastName}."with bind offirstNameto "Peter" andlastNameto "Hansen" this will return the string"Hello Peter Hansen.": - boxedType(Class<?>) - Static method in class dk.cloudcreate.essentials.shared.reflection.BoxedTypes
- BoxedTypes - Class in dk.cloudcreate.essentials.shared.reflection
- BoxedTypes() - Constructor for class dk.cloudcreate.essentials.shared.reflection.BoxedTypes
- build() - Method in class dk.cloudcreate.essentials.shared.concurrent.ThreadFactoryBuilder
-
Create the
ThreadFactorybased on the builder settings - builder() - Static method in class dk.cloudcreate.essentials.shared.concurrent.ThreadFactoryBuilder
-
Create a new builder
C
- CheckedBiFunction<T1,T2,R> - Interface in dk.cloudcreate.essentials.shared.functional
-
Variant of
BiFunctionthat 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> - Interface in dk.cloudcreate.essentials.shared.functional
-
Variant of
Consumerthat behaves likeConsumer, but which allows checkedException's to be thrown from itsCheckedConsumer.accept(Object)method - CheckedExceptionRethrownException - Exception in dk.cloudcreate.essentials.shared.functional
-
Used by the various Checked functional interfaces to indicate that a Checked
Exceptionhas been catched and rethrown - CheckedExceptionRethrownException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.functional.CheckedExceptionRethrownException
- CheckedExceptionRethrownException(Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.functional.CheckedExceptionRethrownException
- CheckedFunction<T,R> - Interface in dk.cloudcreate.essentials.shared.functional
-
Variant of
Functionthat behaves likeFunction, but which allows checkedException's to be thrown from itsCheckedFunction.apply(Object)method
– the function argument type – the function result type - CheckedRunnable - Interface in dk.cloudcreate.essentials.shared.functional
-
Variant of
Runnablethat behaves likeRunnable, but which allows checkedException's to be thrown from itsCheckedRunnable.run()method - CheckedSupplier<R> - Interface in dk.cloudcreate.essentials.shared.functional
-
Variant of
Supplierthat behaves likeSupplier, but which allows checkedException's to be thrown from itsCheckedSupplier.get()method - CheckedTripleFunction<T1,T2,T3,R> - Interface in dk.cloudcreate.essentials.shared.functional
-
Variant of
TripleFunctionthat 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 - Class in dk.cloudcreate.essentials.shared.reflection
-
Utility class for working with
Class's - Classes() - Constructor for class dk.cloudcreate.essentials.shared.reflection.Classes
- ComparableEmpty - Class in dk.cloudcreate.essentials.shared.functional.tuple.comparable
-
Represents a
ComparableTuplewith zero elements - ComparablePair<T1 extends Comparable<? super T1>,T2 extends Comparable<? super T2>> - Class in dk.cloudcreate.essentials.shared.functional.tuple.comparable
-
Represents a
ComparableTuplewith two elements.
Note:ComparablePairsupportsComparablePair.equals(Object)comparison using subclasses, e.g.: - ComparablePair(T1, T2) - Constructor for class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
-
Construct a new
ComparableTuplewith 2 elements - ComparableSingle<T1 extends Comparable<? super T1>> - Class in dk.cloudcreate.essentials.shared.functional.tuple.comparable
-
Represents a
ComparableTuplewith one element.
Note:ComparableSinglesupportsComparableSingle.equals(Object)comparison using subclasses, e.g.: - ComparableSingle(T1) - Constructor for class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableSingle
-
Create a new
ComparableTuplewith 1 element - ComparableTriple<T1 extends Comparable<? super T1>,T2 extends Comparable<? super T2>,T3 extends Comparable<? super T3>> - Class in dk.cloudcreate.essentials.shared.functional.tuple.comparable
-
Represents a
ComparableTuplewith three elements.
Note:ComparableTriplesupportsComparableTriple.equals(Object)comparison using subclasses, e.g.: - ComparableTriple(T1, T2, T3) - Constructor for class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
Construct a new
ComparableTuplewith 3 elements - ComparableTuple<CONCRETE_TUPLE extends ComparableTuple<CONCRETE_TUPLE>> - Interface in dk.cloudcreate.essentials.shared.functional.tuple.comparable
-
Base interface for all
ComparableTuple'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 subclasses - compareTo(ComparableEmpty) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableEmpty
- compareTo(ComparablePair<T1, T2>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
- compareTo(ComparableSingle<T1>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableSingle
- compareTo(ComparableTriple<T1, T2, T3>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
- compareTypeSpecificity(Class<?>, Class<?>) - Static method in class dk.cloudcreate.essentials.shared.reflection.Classes
-
Compares
leftSidewith therightSidefor inheritance order.
It returns: negative integer - if the leftSide is less specific then the rightSide
Example: If leftSide is a CharSequence and rightSide is a String (a specialization of CharSequence). zero - if the leftSide is equally specific to rightSide (i.e. - constructors - Variable in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
All the constructors defined in
Reflector.type- seeConstructors.constructors(Class) - constructors(Class<?>) - Static method in class dk.cloudcreate.essentials.shared.reflection.Constructors
-
Get all declared constructors on type
- Constructors - Class in dk.cloudcreate.essentials.shared.reflection
-
Utility class for working with
Constructor's - Constructors() - Constructor for class dk.cloudcreate.essentials.shared.reflection.Constructors
- create() - Method in class dk.cloudcreate.essentials.shared.messages.MessageTemplate0
- create(PARAM_1) - Method in class dk.cloudcreate.essentials.shared.messages.MessageTemplate1
-
Create a
Message, with the provided parameter, based on thisMessageTemplate
Example creating aMessagefrom aMessageTemplate1: - create(PARAM_1, PARAM_2) - Method in class dk.cloudcreate.essentials.shared.messages.MessageTemplate2
-
Create a
Message, with the provided parameter, based on thisMessageTemplate
Example creating aMessagefrom aMessageTemplate2: - create(PARAM_1, PARAM_2, PARAM_3) - Method in class dk.cloudcreate.essentials.shared.messages.MessageTemplate3
-
Create a
Message, with the provided parameter, based on thisMessageTemplate
Example creating aMessagefrom aMessageTemplate3: - create(PARAM_1, PARAM_2, PARAM_3, PARAM_4) - Method in class dk.cloudcreate.essentials.shared.messages.MessageTemplate4
-
Create a
Message, with the provided parameter, based on thisMessageTemplate
Example creating aMessagefrom aMessageTemplate4:
D
- daemon(boolean) - Method in class dk.cloudcreate.essentials.shared.concurrent.ThreadFactoryBuilder
-
Set if the
Thread's created by the resultingThreadFactoryare daemon threads - DefaultInterceptorChain<OPERATION,RESULT,INTERCEPTOR_TYPE extends Interceptor> - Class in dk.cloudcreate.essentials.shared.interceptor
-
Default implementation for the
InterceptorChain. - DefaultInterceptorChain(OPERATION, List<INTERCEPTOR_TYPE>, BiFunction<INTERCEPTOR_TYPE, InterceptorChain<OPERATION, RESULT, INTERCEPTOR_TYPE>, RESULT>, Supplier<RESULT>) - Constructor for class dk.cloudcreate.essentials.shared.interceptor.DefaultInterceptorChain
-
Create a new
InterceptorChaininstance for the providedoperation - defaultMessage - Variable in class dk.cloudcreate.essentials.shared.messages.AbstractMessageTemplate
- delegateThreadFactory(ThreadFactory) - Method in class dk.cloudcreate.essentials.shared.concurrent.ThreadFactoryBuilder
-
Set the
ThreadFactorythat will generate newThread's. - description - Variable in class dk.cloudcreate.essentials.shared.time.Timing
-
Description of the timing - typically a description of what was timed/measured
- dk.cloudcreate.essentials.shared - module dk.cloudcreate.essentials.shared
- dk.cloudcreate.essentials.shared - package dk.cloudcreate.essentials.shared
- dk.cloudcreate.essentials.shared.collections - package dk.cloudcreate.essentials.shared.collections
- dk.cloudcreate.essentials.shared.concurrent - package dk.cloudcreate.essentials.shared.concurrent
- dk.cloudcreate.essentials.shared.functional - package dk.cloudcreate.essentials.shared.functional
- dk.cloudcreate.essentials.shared.functional.tuple - package dk.cloudcreate.essentials.shared.functional.tuple
- dk.cloudcreate.essentials.shared.functional.tuple.comparable - package dk.cloudcreate.essentials.shared.functional.tuple.comparable
- dk.cloudcreate.essentials.shared.interceptor - package dk.cloudcreate.essentials.shared.interceptor
- dk.cloudcreate.essentials.shared.logic - package dk.cloudcreate.essentials.shared.logic
- dk.cloudcreate.essentials.shared.messages - package dk.cloudcreate.essentials.shared.messages
- dk.cloudcreate.essentials.shared.network - package dk.cloudcreate.essentials.shared.network
- dk.cloudcreate.essentials.shared.reflection - package dk.cloudcreate.essentials.shared.reflection
- dk.cloudcreate.essentials.shared.reflection.invocation - package dk.cloudcreate.essentials.shared.reflection.invocation
- dk.cloudcreate.essentials.shared.time - package dk.cloudcreate.essentials.shared.time
- dk.cloudcreate.essentials.shared.types - package dk.cloudcreate.essentials.shared.types
- doesClassExistOnClasspath(String) - Static method in class dk.cloudcreate.essentials.shared.reflection.Classes
-
Check if a class with the specified Fully Qualified Class Name (FQCN) exists on the classpath
- doesClassExistOnClasspath(String, ClassLoader) - Static method in class dk.cloudcreate.essentials.shared.reflection.Classes
-
Check if a class with the specified Fully Qualified Class Name (FQCN) exists on the classpath
- duration - Variable in class dk.cloudcreate.essentials.shared.time.Timing
-
How long did the operation performed take
E
- Either<T1,T2> - Class in dk.cloudcreate.essentials.shared.functional.tuple
-
Represents a
Tuplewith 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) - Either(T1, T2) - Constructor for class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
Construct a new
Tuplewith 2 potential elements, but where only one of them can have a non-null value and one element MUST have a non-null value. - Else(Supplier<RETURN_TYPE>) - Method in class dk.cloudcreate.essentials.shared.logic.ElseIfExpression
- Else(RETURN_TYPE) - Method in class dk.cloudcreate.essentials.shared.logic.ElseIfExpression
- ElseIf(boolean, Supplier<RETURN_TYPE>) - Method in class dk.cloudcreate.essentials.shared.logic.ElseIfExpression
- ElseIf(boolean, RETURN_TYPE) - Method in class dk.cloudcreate.essentials.shared.logic.ElseIfExpression
- ElseIf(IfPredicate, Supplier<RETURN_TYPE>) - Method in class dk.cloudcreate.essentials.shared.logic.ElseIfExpression
- ElseIf(IfPredicate, RETURN_TYPE) - Method in class dk.cloudcreate.essentials.shared.logic.ElseIfExpression
- ElseIfExpression<RETURN_TYPE> - Class in dk.cloudcreate.essentials.shared.logic
-
The ElseIf/Else part of an
IfExpression - empty() - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTuple
-
Create/Get and
ComparableEmptyComparableTuple - empty() - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.Tuple
- Empty - Class in dk.cloudcreate.essentials.shared.functional.tuple
-
Represents a
Tuplewith zero elements - equals(Object) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableEmpty
- equals(Object) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
- equals(Object) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableSingle
- equals(Object) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
- equals(Object) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
- equals(Object) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Empty
- equals(Object) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
- equals(Object) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Single
- equals(Object) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
- equals(Object) - Method in class dk.cloudcreate.essentials.shared.messages.AbstractMessageTemplate
- Exceptions - Class in dk.cloudcreate.essentials.shared
- Exceptions() - Constructor for class dk.cloudcreate.essentials.shared.Exceptions
F
- FailFast - Class in dk.cloudcreate.essentials.shared
-
Collection of
Objects.requireNonNull(Object)replacement methods - FailFast() - Constructor for class dk.cloudcreate.essentials.shared.FailFast
- fields - Variable in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
All the fields defined in
Reflector.type- seeFields.fields(Class) - fields(Class<?>) - Static method in class dk.cloudcreate.essentials.shared.reflection.Fields
-
Get all fields in the type
- Fields - Class in dk.cloudcreate.essentials.shared.reflection
-
Utility class for working with
Field's - Fields() - Constructor for class dk.cloudcreate.essentials.shared.reflection.Fields
- findField(Set<Field>, String, Class<?>) - Static method in class dk.cloudcreate.essentials.shared.reflection.Fields
-
Find a field by name and type
- findFieldByAnnotation(Class<? extends Annotation>) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Find the
Fieldin theReflector.typewrapped by thisReflectorinstance, which has the specified annotation - findFieldByName(String) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Find the instance
Field, in theReflector.typewrapped by thisReflectorinstance, that matches on the field name - findMatchingMethod(String, boolean, Class<?>...) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Find the first method in the
Reflector.typewrapped by thisReflectorinstance that matches on: Method Name Being an Instance or a Static method Method parameters that match theargumentTypes
The parameters matching uses theParameters.parameterTypesMatches(Class[], Class[], boolean)without requiring an exact parameter type match - findMatchingMethod(Set<Method>, String, Class<?>, Class<?>...) - Static method in class dk.cloudcreate.essentials.shared.reflection.Methods
-
Find a matching method based on: method name return type exact parameter-type comparison using
Parameters.parameterTypesMatches(Class[], Class[], boolean) - findStaticFieldByName(String) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Find the static
Field, in theReflector.typewrapped by thisReflectorinstance, that matches on the field name - first(List<T>) - Static method in class dk.cloudcreate.essentials.shared.collections.Lists
-
Get the first element in a list
- forName(String) - Static method in class dk.cloudcreate.essentials.shared.reflection.Classes
-
Load a class based on a fully qualified class name (FQCN)
- forName(String, ClassLoader) - Static method in class dk.cloudcreate.essentials.shared.reflection.Classes
-
Load a class based on a fully qualified class name (FQCN) and using a specific
ClassLoader - fromEntry(Map.Entry<? extends T1, ? extends T2>) - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTuple
- fromEntry(Map.Entry<? extends T1, ? extends T2>) - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.Tuple
G
- genericType - Variable in class dk.cloudcreate.essentials.shared.types.GenericType
- GenericType<T> - Class in dk.cloudcreate.essentials.shared.types
-
Using this class makes it possible to capture a generic/parameterized argument type, such as
List<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>>(){};
TheGenericType.type/GenericType.getType()will returnList.class
AndGenericType.genericType/GenericType.getGenericType()will returnParameterizedType, which can be introspected further
You can also supply a non-parameterized type toGenericType:
var genericType = new GenericType<Money>(){};
In which caseGenericType.type/GenericType.getType()will returnMoney.class
AndGenericType.genericType/GenericType.getGenericType()will returnMoney.class - GenericType() - Constructor for class dk.cloudcreate.essentials.shared.types.GenericType
- get() - Method in interface dk.cloudcreate.essentials.shared.functional.CheckedSupplier
-
This method performs the operation that may fail with a Checked
Exception - get(Object, Field) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Get the value of an instance field
- get(Object, String) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Get the value of an instance field
- get_1() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
The first element in this tuple wrapped as an
Optional - get_2() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
The second element in this tuple wrapped as an
Optional - getDefaultConstructor() - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Get the default no-arguments constructor
- getDefaultMessage() - Method in class dk.cloudcreate.essentials.shared.messages.AbstractMessageTemplate
- getDefaultMessage() - Method in interface dk.cloudcreate.essentials.shared.messages.MessageTemplate
-
The default Message for the given message key
E.g. - getDescription() - Method in class dk.cloudcreate.essentials.shared.time.Timing
-
Description of the timing - typically what was timed/measured
- getDuration() - Method in class dk.cloudcreate.essentials.shared.time.Timing
-
How long did the operation performed take
- GetFieldException - Exception in dk.cloudcreate.essentials.shared.reflection
- GetFieldException() - Constructor for exception dk.cloudcreate.essentials.shared.reflection.GetFieldException
- GetFieldException(String) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.GetFieldException
- GetFieldException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.GetFieldException
- GetFieldException(String, Throwable, boolean, boolean) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.GetFieldException
- GetFieldException(Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.GetFieldException
- getGenericType() - Method in class dk.cloudcreate.essentials.shared.types.GenericType
- getKey() - Method in class dk.cloudcreate.essentials.shared.messages.AbstractMessageTemplate
- getKey() - Method in class dk.cloudcreate.essentials.shared.messages.Message
- getKey() - Method in interface dk.cloudcreate.essentials.shared.messages.MessageTemplate
-
The message key for this
MessageTemplate. - getMessage() - Method in class dk.cloudcreate.essentials.shared.messages.Message
-
The
MessageTemplate.getDefaultMessage()with theMessage.getParameters()applied usingMessageFormat.format(String, Object...)
Example creating aMessagefrom aMessageTemplate4: - getMessageTemplates(Class<? extends MessageTemplates>, boolean) - Static method in interface dk.cloudcreate.essentials.shared.messages.MessageTemplates
-
Extract all
MessageTemplate's defined as fields inMessageTemplatessub-type (interface or class) - getParameters() - Method in class dk.cloudcreate.essentials.shared.messages.Message
-
The concrete parameters for the message
- getResult() - Method in class dk.cloudcreate.essentials.shared.time.TimingWithResult
-
The result of the operation performed
- getRootCause(Throwable) - Static method in class dk.cloudcreate.essentials.shared.Exceptions
-
Get the root cause (top most parent) of an Exception.
- getStackTrace(Throwable) - Static method in class dk.cloudcreate.essentials.shared.Exceptions
-
Get the stacktrace of the
throwableas a String - getStatic(Field) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Get the value of a static field on the
Reflector.typewrapped by thisReflectorinstance - getStatic(String) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Get the value of a static field on the
Reflector.typewrapped by thisReflectorinstance - getTemplate() - Method in class dk.cloudcreate.essentials.shared.messages.Message
-
The message template that this message is based on
- getType() - Method in class dk.cloudcreate.essentials.shared.types.GenericType
H
- hasDefaultConstructor() - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Does the type have a default no-arguments constructor?
- hashCode() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableEmpty
- hashCode() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
- hashCode() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableSingle
- hashCode() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
- hashCode() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
- hashCode() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Empty
- hashCode() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
- hashCode() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Single
- hashCode() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
- hashCode() - Method in class dk.cloudcreate.essentials.shared.messages.AbstractMessageTemplate
- hasMatchingConstructorBasedOnArguments(Object...) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Perform constructor matching based on actual argument values (as opposed to
Reflector.hasMatchingConstructorBasedOnParameterTypes(Class[]))
The constructor match doesn't require exact type matches only compatible type matches - hasMatchingConstructorBasedOnParameterTypes(Class<?>...) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Perform constructor matching based on exact parameter types (as opposed to
Reflector.hasMatchingConstructorBasedOnArguments(Object...)) - hasMatchingMethod(Class<?>) - Method in class dk.cloudcreate.essentials.shared.reflection.invocation.PatternMatchingMethodInvoker
- hasMethod(String, boolean, Class<?>...) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Does the
Reflector.typewrapped by thisReflectorinstance have a method that matches on: Method Name Being an Instance or a Static method Method parameters that match theargumentTypes
The parameters matching uses theParameters.parameterTypesMatches(Class[], Class[], boolean)without requiring an exact parameter type match - hostName() - Static method in class dk.cloudcreate.essentials.shared.network.Network
I
- If(boolean, Supplier<RETURN_TYPE>) - Static method in class dk.cloudcreate.essentials.shared.logic.IfExpression
- If(boolean, RETURN_TYPE) - Static method in class dk.cloudcreate.essentials.shared.logic.IfExpression
- If(IfPredicate, Supplier<RETURN_TYPE>) - Static method in class dk.cloudcreate.essentials.shared.logic.IfExpression
- If(IfPredicate, RETURN_TYPE) - Static method in class dk.cloudcreate.essentials.shared.logic.IfExpression
- IfExpression<RETURN_TYPE> - Class in dk.cloudcreate.essentials.shared.logic
-
An if expression is an
IfExpression.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: - ifIs_1(Consumer<T1>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
- ifIs_2(Consumer<T2>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
- IfPredicate - Interface in dk.cloudcreate.essentials.shared.logic
-
An
IfPredicateis evaluated to resolve if anIfExpressionorElseIfExpressionelement is true and hence the return value from theifReturnValueSuppliermust be returned - instance() - Static method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableEmpty
-
The shared single instance of the
ComparableEmptytuple - instance() - Static method in class dk.cloudcreate.essentials.shared.functional.tuple.Empty
-
The shared single instance of the
Emptytuple - INSTANCE - Static variable in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableEmpty
-
The shared single instance of the
ComparableEmptytuple - INSTANCE - Static variable in class dk.cloudcreate.essentials.shared.functional.tuple.Empty
-
The shared single instance of the
Emptytuple - instanceFields() - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
- Interceptor - Interface in dk.cloudcreate.essentials.shared.interceptor
-
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> - Interface in dk.cloudcreate.essentials.shared.interceptor
-
Generic interceptor chain concept that supports intercepting concrete
Interceptoroperations to modify the behaviour or add to the default behaviour - interfaces(Class<?>) - Static method in class dk.cloudcreate.essentials.shared.reflection.Interfaces
-
Returns a set of all interfaces implemented by type supplied
- Interfaces - Class in dk.cloudcreate.essentials.shared.reflection
-
Utility class for working with
Interfaces's - Interfaces() - Constructor for class dk.cloudcreate.essentials.shared.reflection.Interfaces
- InvocationException - Exception in dk.cloudcreate.essentials.shared.reflection.invocation
- InvocationException() - Constructor for exception dk.cloudcreate.essentials.shared.reflection.invocation.InvocationException
- InvocationException(String) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.invocation.InvocationException
- InvocationException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.invocation.InvocationException
- InvocationException(Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.invocation.InvocationException
- InvocationStrategy - Enum in dk.cloudcreate.essentials.shared.reflection.invocation
-
Determines which among as set of matching methods are invoked
- invoke(Object) - Method in class dk.cloudcreate.essentials.shared.reflection.invocation.PatternMatchingMethodInvoker
-
Invoke matching methods based on the
argumenton thePatternMatchingMethodInvoker.invokeMethodsOnbased on theMethodPatternMatcherandInvocationStrategyusing the defaultdefaultNoMatchingMethodsHandlerdefined in thePatternMatchingMethodInvoker(Object, MethodPatternMatcher, InvocationStrategy, Optional) - invoke(Object, NoMatchingMethodsHandler) - Method in class dk.cloudcreate.essentials.shared.reflection.invocation.PatternMatchingMethodInvoker
-
Invoke matching methods based on the
argumenton thePatternMatchingMethodInvoker.invokeMethodsOnbased on theMethodPatternMatcherandInvocationStrategy - invoke(Method, Object, Object...) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Invoke the instance method on the
invokeOnObjectinstance - invoke(String, Object, Object...) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Invoke an instance method on the
invokeOnObjectinstance - InvokeAllMatches - dk.cloudcreate.essentials.shared.reflection.invocation.InvocationStrategy
-
If multiple methods match, then all matching methods will be invoked in sequence (notice: the order of the methods called is not deterministic)
- invokeMethod(Method, Object, Object, Class<?>) - Method in interface dk.cloudcreate.essentials.shared.reflection.invocation.MethodPatternMatcher
-
This method is responsible for calling the
methodToInvokeon theinvokeMethodOnObjectobject using the right parameters based on thewithObject.
For simple cases the argument will only be thewithObject, where it for other cases may involve extracting the real object to pass onto themethodToInvokefrom within thewithObject(e.g. - invokeMethod(Method, Object, Object, Class<?>) - Method in class dk.cloudcreate.essentials.shared.reflection.invocation.SingleArgumentAnnotatedMethodPatternMatcher
- InvokeMostSpecificTypeMatched - dk.cloudcreate.essentials.shared.reflection.invocation.InvocationStrategy
-
If multiple methods match, then the method with the most specific type (in a type hierarchy) will be chosen as only a SINGLE method will be invoked.
- invokeStatic(Method, Object...) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Invoke the static on the
Reflector.typewrapped by thisReflectorinstance - invokeStatic(String, Object...) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Invoke a static method on the
Reflector.typewrapped by thisReflectorinstance - is_1() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
Does first element in this tuple have a non-null value
- is_2() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
Does second element in this tuple have a non-null value
- isAccessible(AccessibleObject) - Static method in class dk.cloudcreate.essentials.shared.reflection.Accessibles
- isBoxedType(Class<?>) - Static method in class dk.cloudcreate.essentials.shared.reflection.BoxedTypes
- isInvokableMethod(Method) - Method in interface dk.cloudcreate.essentials.shared.reflection.invocation.MethodPatternMatcher
-
Determines if a candidateMethod is a candidate for being invoked by
PatternMatchingMethodInvoker - isInvokableMethod(Method) - Method in class dk.cloudcreate.essentials.shared.reflection.invocation.SingleArgumentAnnotatedMethodPatternMatcher
- isPrimitiveType(Class<?>) - Static method in class dk.cloudcreate.essentials.shared.reflection.BoxedTypes
K
- key - Variable in class dk.cloudcreate.essentials.shared.messages.AbstractMessageTemplate
- key(String) - Static method in interface dk.cloudcreate.essentials.shared.messages.MessageTemplates
-
Create a message key (same as
MessageTemplates.root(String)) with no parameters.
Example: - key(String, String) - Static method in interface dk.cloudcreate.essentials.shared.messages.MessageTemplates
-
Create a message key (same as
MessageTemplates.root(String)) with no parameters.
Example: - key1(String, String) - Method in class dk.cloudcreate.essentials.shared.messages.MessageTemplate0
-
Create a
MessageTemplateswith 1 parameter Example: - key1(String, String) - Static method in interface dk.cloudcreate.essentials.shared.messages.MessageTemplates
-
Create a
MessageTemplateswith 1 parameter Example: - key2(String, String) - Method in class dk.cloudcreate.essentials.shared.messages.MessageTemplate0
-
Create a
MessageTemplateswith 2 parameters Example: - key2(String, String) - Static method in interface dk.cloudcreate.essentials.shared.messages.MessageTemplates
-
Create a
MessageTemplateswith 2 parameters Example: - key3(String, String) - Method in class dk.cloudcreate.essentials.shared.messages.MessageTemplate0
-
Create a
MessageTemplateswith 3 parameters Example: - key3(String, String) - Static method in interface dk.cloudcreate.essentials.shared.messages.MessageTemplates
-
Create a
MessageTemplateswith 3 parameters Example: - key4(String, String) - Method in class dk.cloudcreate.essentials.shared.messages.MessageTemplate0
-
Create a
MessageTemplateswith 4 parameters Example: - key4(String, String) - Static method in interface dk.cloudcreate.essentials.shared.messages.MessageTemplates
-
Create a
MessageTemplateswith 4 parameters Example:
L
- last(List<T>) - Static method in class dk.cloudcreate.essentials.shared.collections.Lists
-
Get the last element in a list
- Lists - Class in dk.cloudcreate.essentials.shared.collections
-
Listutility methods - Lists() - Constructor for class dk.cloudcreate.essentials.shared.collections.Lists
- LoadingClassFailedException - Exception in dk.cloudcreate.essentials.shared.reflection
- LoadingClassFailedException() - Constructor for exception dk.cloudcreate.essentials.shared.reflection.LoadingClassFailedException
- LoadingClassFailedException(String) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.LoadingClassFailedException
- LoadingClassFailedException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.LoadingClassFailedException
- LoadingClassFailedException(String, Throwable, boolean, boolean) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.LoadingClassFailedException
- LoadingClassFailedException(Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.LoadingClassFailedException
M
- map(TripleFunction<? super T1, ? super T2, ? super T3, ComparableTriple<R1, R2, R3>>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
Maps the elements of this
ComparableTripleusing the mapping function - map(TripleFunction<? super T1, ? super T2, ? super T3, Triple<R1, R2, R3>>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
Maps the elements of this
Tripleusing the mapping function - map(BiFunction<? super T1, ? super T2, ComparablePair<R1, R2>>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
-
Maps the elements of this
ComparablePairusing the mapping function - map(BiFunction<? super T1, ? super T2, Either<R1, R2>>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
Maps the elements of this
Eitherusing the mapping function - map(BiFunction<? super T1, ? super T2, Pair<R1, R2>>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
-
Maps the elements of this
Pairusing the mapping function - map(Function<? super T1, ? extends R1>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableSingle
-
Maps the element of this
ComparableSingleusing the mapping function - map(Function<? super T1, ? extends R1>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Single
-
Maps the element of this
Singleusing the mapping function - map(Function<? super T1, ? super R1>, Function<? super T2, ? super R2>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
-
Maps the elements of this
ComparablePairusing two distinct mapping functions - map(Function<? super T1, ? super R1>, Function<? super T2, ? super R2>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
Maps the elements of this
Eitherusing two distinct mapping functions - map(Function<? super T1, ? super R1>, Function<? super T2, ? super R2>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
-
Maps the elements of this
Pairusing two distinct mapping functions - map(Function<? super T1, ? super R1>, Function<? super T2, ? super R2>, Function<? super T3, ? super R3>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
Maps the elements of this
ComparableTripleusing three distinct mapping functions - map(Function<? super T1, ? super R1>, Function<? super T2, ? super R2>, Function<? super T3, ? super R3>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
Maps the elements of this
Tripleusing three distinct mapping functions - map1(Function<? super T1, ? super R1>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
-
Map the first element of this
ComparablePairusing the mapping function - map1(Function<? super T1, ? super R1>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
Map the first element of this
ComparableTripleusing the mapping function - map1(Function<? super T1, ? super R1>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
Map the first element of this
Eitherusing the mapping function - map1(Function<? super T1, ? super R1>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
-
Map the first element of this
Pairusing the mapping function - map1(Function<? super T1, ? super R1>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
Map the first element of this
Tripleusing the mapping function - map2(Function<? super T2, ? super R2>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
-
Map the second element of this
ComparablePairusing the mapping function - map2(Function<? super T2, ? super R2>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
Map the second element of this
ComparableTripleusing the mapping function - map2(Function<? super T2, ? super R2>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
Map the second element of this
Eitherusing the mapping function - map2(Function<? super T2, ? super R2>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
-
Map the second element of this
Pairusing the mapping function - map2(Function<? super T2, ? super R2>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
Map the second element of this
Tripleusing the mapping function - map3(Function<? super T3, ? super R3>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
Map the third element of this
ComparableTripleusing the mapping function - map3(Function<? super T3, ? super R3>) - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
Map the third element of this
Tripleusing the mapping function - Message - Class in dk.cloudcreate.essentials.shared.messages
-
A
Messageis an instance of aMessageTemplatewith parameters bound to it
AMessageinstance is e.g. - Message(MessageTemplate, Object...) - Constructor for class dk.cloudcreate.essentials.shared.messages.Message
-
Create a concrete instance of a
MessageTemplate - MessageFormatter - Class in dk.cloudcreate.essentials.shared
-
Slf4J compatible message formatter.
TheMessageFormattersupports formatting a message using Slf4J style message anchors: - MessageFormatter() - Constructor for class dk.cloudcreate.essentials.shared.MessageFormatter
- MessageFormatter.NamedArgumentBinding - Class in dk.cloudcreate.essentials.shared
-
Named argument binding instance
- MessageTemplate - Interface in dk.cloudcreate.essentials.shared.messages
-
The
MessageTemplateconcept supports structured messages with typed parameters.
EachMessageTemplateinstance has a uniqueMessageTemplate.getKey()that clearly identifies theMessageTemplate.
MessageTemplatekeys can be nested, to support message hierarchies: - MessageTemplate0 - Class in dk.cloudcreate.essentials.shared.messages
- MessageTemplate0(String) - Constructor for class dk.cloudcreate.essentials.shared.messages.MessageTemplate0
- MessageTemplate0(String, String) - Constructor for class dk.cloudcreate.essentials.shared.messages.MessageTemplate0
- MessageTemplate1<PARAM_1> - Class in dk.cloudcreate.essentials.shared.messages
- MessageTemplate1(String, String) - Constructor for class dk.cloudcreate.essentials.shared.messages.MessageTemplate1
- MessageTemplate2<PARAM_1,PARAM_2> - Class in dk.cloudcreate.essentials.shared.messages
- MessageTemplate2(String, String) - Constructor for class dk.cloudcreate.essentials.shared.messages.MessageTemplate2
- MessageTemplate3<PARAM_1,PARAM_2,PARAM_3> - Class in dk.cloudcreate.essentials.shared.messages
- MessageTemplate3(String, String) - Constructor for class dk.cloudcreate.essentials.shared.messages.MessageTemplate3
- MessageTemplate4<PARAM_1,PARAM_2,PARAM_3,PARAM_4> - Class in dk.cloudcreate.essentials.shared.messages
- MessageTemplate4(String, String) - Constructor for class dk.cloudcreate.essentials.shared.messages.MessageTemplate4
- MessageTemplates - Interface in dk.cloudcreate.essentials.shared.messages
-
Marker interface for classes or interfaces that contain
MessageTemplatefields, which can be queried usingMessageTemplates.getMessageTemplates(Class, boolean)
Example of a concreteMessageTemplatessubclass: - MethodInvocationFailedException - Exception in dk.cloudcreate.essentials.shared.reflection
- MethodInvocationFailedException() - Constructor for exception dk.cloudcreate.essentials.shared.reflection.MethodInvocationFailedException
- MethodInvocationFailedException(String) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.MethodInvocationFailedException
- MethodInvocationFailedException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.MethodInvocationFailedException
- MethodInvocationFailedException(String, Throwable, boolean, boolean) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.MethodInvocationFailedException
- MethodInvocationFailedException(Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.MethodInvocationFailedException
- MethodPatternMatcher<ARGUMENT_COMMON_ROOT_TYPE> - Interface in dk.cloudcreate.essentials.shared.reflection.invocation
-
Strategy interface that determines the mechanics of which methods are candidates for matching, what type a given method supports and how the method is invoked
- methods - Variable in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
All the methods defined in
Reflector.type- seeMethods.methods(Class) - methods(Class<?>) - Static method in class dk.cloudcreate.essentials.shared.reflection.Methods
-
Get all methods on type.
- Methods - Class in dk.cloudcreate.essentials.shared.reflection
-
Utility class for working with
Method's - Methods() - Constructor for class dk.cloudcreate.essentials.shared.reflection.Methods
- msg(String, Object...) - Static method in class dk.cloudcreate.essentials.shared.MessageFormatter
-
Format a message using Slf4J like message anchors.
Example:msg("This {} a {} message {}", "is", "simple", "example");will result in this String:
"This is a simple message example"
N
- name - Variable in class dk.cloudcreate.essentials.shared.MessageFormatter.NamedArgumentBinding
-
The name of the argument
- NamedArgumentBinding(String, Object) - Constructor for class dk.cloudcreate.essentials.shared.MessageFormatter.NamedArgumentBinding
-
Create a new Named argument binding
- nameFormat(String) - Method in class dk.cloudcreate.essentials.shared.concurrent.ThreadFactoryBuilder
-
Set the name format for generated thread names.
- Network - Class in dk.cloudcreate.essentials.shared.network
- Network() - Constructor for class dk.cloudcreate.essentials.shared.network.Network
- newInstance(Object...) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Create a new instance of the
Reflector.type()using a constructor that matches theconstructorArguments
The constructor matching uses theParameters.parameterTypesMatches(Class[], Class[], boolean)without requiring an exact parameter type match - newInterceptorChainForOperation(OPERATION, List<INTERCEPTOR_TYPE>, BiFunction<INTERCEPTOR_TYPE, InterceptorChain<OPERATION, RESULT, INTERCEPTOR_TYPE>, RESULT>, Supplier<RESULT>) - Static method in interface dk.cloudcreate.essentials.shared.interceptor.InterceptorChain
-
Create a new
InterceptorChaininstance for the providedoperationinstance
InterceptorChaininstances are not reusable across different operation instances.
Example: - NoFieldFoundException - Exception in dk.cloudcreate.essentials.shared.reflection
- NoFieldFoundException() - Constructor for exception dk.cloudcreate.essentials.shared.reflection.NoFieldFoundException
- NoFieldFoundException(String) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.NoFieldFoundException
- NoFieldFoundException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.NoFieldFoundException
- NoFieldFoundException(String, Throwable, boolean, boolean) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.NoFieldFoundException
- NoFieldFoundException(Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.NoFieldFoundException
- noMatchesFor(Object) - Method in interface dk.cloudcreate.essentials.shared.reflection.invocation.NoMatchingMethodsHandler
-
This method will be called if
PatternMatchingMethodInvoker.invoke(Object)orPatternMatchingMethodInvoker.invoke(Object, NoMatchingMethodsHandler)is called with an argument that doesn't match any methods - NoMatchingMethodFoundException - Exception in dk.cloudcreate.essentials.shared.reflection
- NoMatchingMethodFoundException() - Constructor for exception dk.cloudcreate.essentials.shared.reflection.NoMatchingMethodFoundException
- NoMatchingMethodFoundException(String) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.NoMatchingMethodFoundException
- NoMatchingMethodFoundException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.NoMatchingMethodFoundException
- NoMatchingMethodFoundException(String, Throwable, boolean, boolean) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.NoMatchingMethodFoundException
- NoMatchingMethodFoundException(Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.NoMatchingMethodFoundException
- NoMatchingMethodsHandler - Interface in dk.cloudcreate.essentials.shared.reflection.invocation
-
Consumer that will be called if
PatternMatchingMethodInvoker.invoke(Object)orPatternMatchingMethodInvoker.invoke(Object, NoMatchingMethodsHandler)is called with an argument that doesn't match any methods - NULL_ARGUMENT_TYPE() - Constructor for class dk.cloudcreate.essentials.shared.reflection.Parameters.NULL_ARGUMENT_TYPE
O
- of() - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTuple
-
Create/Get and
ComparableEmptyTuple - of() - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.Tuple
- of(String, Duration) - Static method in class dk.cloudcreate.essentials.shared.time.Timing
-
Create a new
Timing - of(Duration) - Static method in class dk.cloudcreate.essentials.shared.time.Timing
-
Create a new
Timing - of(R, String, Duration) - Static method in class dk.cloudcreate.essentials.shared.time.TimingWithResult
-
Create a new
TimingWithResult - of(R, Duration) - Static method in class dk.cloudcreate.essentials.shared.time.TimingWithResult
-
Create a new
TimingWithResult - of(T1) - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTuple
-
Create a new
ComparableTuplewith 1 element - of(T1) - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.Tuple
-
Create a new
Tuplewith 1 element - of(T1, T2) - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTuple
-
Create a new
ComparableTuplewith 2 elements - of(T1, T2) - Static method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
-
Create a new
Tuplewith 2 elements - of(T1, T2) - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.Tuple
-
Create a new
Tuplewith 2 elements - of(T1, T2, T3) - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTuple
-
Create a new
ComparableTuplewith 3 elements - of(T1, T2, T3) - Static method in interface dk.cloudcreate.essentials.shared.functional.tuple.Tuple
-
Create a new
Tuplewith 3 elements - of_1(T1) - Static method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
Construct a new
TuplewithEither._1()element having a value - of_2(T2) - Static method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
Construct a new
TuplewithEither._2()element having a value - operation() - Method in class dk.cloudcreate.essentials.shared.interceptor.DefaultInterceptorChain
- operation() - Method in interface dk.cloudcreate.essentials.shared.interceptor.InterceptorChain
-
The operation details
P
- Pair<T1,T2> - Class in dk.cloudcreate.essentials.shared.functional.tuple
-
Represents a
Tuplewith two elements.
Note:PairsupportsPair.equals(Object)comparison using subclasses, e.g.: - Pair(T1, T2) - Constructor for class dk.cloudcreate.essentials.shared.functional.tuple.Pair
-
Construct a new
Tuplewith 2 elements - Parameters - Class in dk.cloudcreate.essentials.shared.reflection
-
Utility class for working with
Methods/Methodparameters andConstructors/Constructordeclaration parameters or method/constructor call arguments - Parameters() - Constructor for class dk.cloudcreate.essentials.shared.reflection.Parameters
- Parameters.NULL_ARGUMENT_TYPE - Class in dk.cloudcreate.essentials.shared.reflection
-
Class used to represent the unknown type for a
nullparameter toParameters.argumentTypes(Object...) - parameterTypesMatches(Class<?>[], Class<?>[], boolean) - Static method in class dk.cloudcreate.essentials.shared.reflection.Parameters
-
Check if an array of actual-parameter-types MATCH an array of declared-parameter-types while taking
nullactual parameter types andBoxedTypes.boxedType(java.lang.Class<?>)into consideration (in caseexactMatchis false) - PatternMatchingMethodInvoker<ARGUMENT_COMMON_ROOT_TYPE> - Class in dk.cloudcreate.essentials.shared.reflection.invocation
-
The purpose of the
PatternMatchingMethodInvokeris 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 argument - PatternMatchingMethodInvoker(Object, MethodPatternMatcher<ARGUMENT_COMMON_ROOT_TYPE>, InvocationStrategy) - Constructor for class dk.cloudcreate.essentials.shared.reflection.invocation.PatternMatchingMethodInvoker
-
Setup a pattern matching method invoker using the default no-op
NoMatchingMethodsHandler - PatternMatchingMethodInvoker(Object, MethodPatternMatcher<ARGUMENT_COMMON_ROOT_TYPE>, InvocationStrategy, Optional<NoMatchingMethodsHandler>) - Constructor for class dk.cloudcreate.essentials.shared.reflection.invocation.PatternMatchingMethodInvoker
- priority(int) - Method in class dk.cloudcreate.essentials.shared.concurrent.ThreadFactoryBuilder
-
Set the priority of the
Thread's generated by the resultingThreadFactory - proceed() - Method in class dk.cloudcreate.essentials.shared.interceptor.DefaultInterceptorChain
- proceed() - Method in interface dk.cloudcreate.essentials.shared.interceptor.InterceptorChain
-
To continue the processing a
Interceptorwill call this method, which in turn will call otherInterceptor's (if more interceptors are configured) and finally the default implementation will be called.
If theInterceptorcan provide a result without calling the default behaviour then it can just return its (e.g.
R
- ReflectionException - Exception in dk.cloudcreate.essentials.shared.reflection
- ReflectionException() - Constructor for exception dk.cloudcreate.essentials.shared.reflection.ReflectionException
- ReflectionException(String) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.ReflectionException
- ReflectionException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.ReflectionException
- ReflectionException(String, Throwable, boolean, boolean) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.ReflectionException
- ReflectionException(Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.ReflectionException
- reflectOn(Class<?>) - Static method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Create a
Reflectorinstance for thetype - reflectOn(String) - Static method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Create a
Reflectorinstance for the class withfullyQualifiedClassName - Reflector - Class in dk.cloudcreate.essentials.shared.reflection
-
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. - requireFalse(boolean, String) - Static method in class dk.cloudcreate.essentials.shared.FailFast
-
Assert that the boolean value
mustBeTrueistrue. - requireMustBeInstanceOf(Object, Class<?>, String) - Static method in class dk.cloudcreate.essentials.shared.FailFast
-
Assert that the
objectThatMustBeAnInstanceOfis an instance ofmustBeAnInstanceOfparameter, if not thenIllegalArgumentExceptionis thrown - requireMustBeInstanceOf(Object, Class<T>) - Static method in class dk.cloudcreate.essentials.shared.FailFast
-
Assert that the
objectThatMustBeAnInstanceOfis an instance ofmustBeAnInstanceOfparameter, if not thenIllegalArgumentExceptionis thrown - requireNonBlank(T, String) - Static method in class dk.cloudcreate.essentials.shared.FailFast
-
Assert that the
characterStreamThatMustNotBeEmptyOrNullis NOT null AND NOT empty/blank, otherwise aIllegalArgumentExceptionis thrown - requireNonEmpty(Object[], String) - Static method in class dk.cloudcreate.essentials.shared.FailFast
- requireNonEmpty(List<T>, String) - Static method in class dk.cloudcreate.essentials.shared.FailFast
- requireNonEmpty(Map<K, V>, String) - Static method in class dk.cloudcreate.essentials.shared.FailFast
- requireNonEmpty(Set<T>, String) - Static method in class dk.cloudcreate.essentials.shared.FailFast
- requireNonNull(T) - Static method in class dk.cloudcreate.essentials.shared.FailFast
-
Assert that the
objectThatMayNotBeNullis NOT null. - requireNonNull(T, String) - Static method in class dk.cloudcreate.essentials.shared.FailFast
-
Assert that the
objectThatMayNotBeNullis NOT null. - requireNonNull(T, String, Object...) - Static method in class dk.cloudcreate.essentials.shared.FailFast
-
Assert that the
objectThatMayNotBeNullis NOT null. - requireTrue(boolean, String) - Static method in class dk.cloudcreate.essentials.shared.FailFast
-
Assert that the boolean value
mustBeTrueistrue. - resolveGenericTypeForInterface(Class<?>, Class<?>, int) - Static method in class dk.cloudcreate.essentials.shared.types.GenericType
-
Resolve a specific parameterized type argument
typeArgumentIndexfor a givenforTypewhich implements a generic/parameterize interfacewithGenericInterface
Example:
Given thiswithGenericInterface: - resolveGenericTypeOnSuperClass(Class<?>, int) - Static method in class dk.cloudcreate.essentials.shared.types.GenericType
-
Resolve the concrete parameterized type a given
forTypehas specified with its direct super class.
Example:
Given super-class:
class AggregateRoot<ID, AGGREGATE_TYPE extends AggregateRoot<ID, AGGREGATE_TYPE>> implements Aggregate<ID>
And sub/concrete class:
class Order extends AggregateRoot<OrderId, Order>br>
Then:
GenericType.resolveGenericType(Order.class, 0)will returnOrderId.class
and
GenericType.resolveGenericType(Order.class, 1)will returnOrder.class - resolveInvocationArgumentTypeFromMethodDefinition(Method) - Method in interface dk.cloudcreate.essentials.shared.reflection.invocation.MethodPatternMatcher
-
Returns the (single) type this method can be invoked with.
- resolveInvocationArgumentTypeFromMethodDefinition(Method) - Method in class dk.cloudcreate.essentials.shared.reflection.invocation.SingleArgumentAnnotatedMethodPatternMatcher
- resolveInvocationArgumentTypeFromObject(Object) - Method in interface dk.cloudcreate.essentials.shared.reflection.invocation.MethodPatternMatcher
-
Resolves which type should be used for looking up matching invokable methods
In simple cases this will be the same type as theargument's, but for enveloped types (such as Messages that encapsulate a payload) we may want to match methods against the message' payload type instead of the message type - resolveInvocationArgumentTypeFromObject(Object) - Method in class dk.cloudcreate.essentials.shared.reflection.invocation.SingleArgumentAnnotatedMethodPatternMatcher
- result - Variable in class dk.cloudcreate.essentials.shared.time.TimingWithResult
-
The result of the operation performed
- root(String) - Static method in interface dk.cloudcreate.essentials.shared.messages.MessageTemplates
-
Create a root message key (same as
MessageTemplates.key(String)).
This is usually used for the root key, to provide context for message template.
Example: - run() - Method in interface dk.cloudcreate.essentials.shared.functional.CheckedRunnable
-
This method performs the operation that may fail with a Checked
Exception
S
- safe(CheckedBiFunction<T1, T2, R>) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedBiFunction
-
Wraps a
CheckedBiFunction(basically a lambda with two arguments that returns a result and which throws a CheckedException) by returning a newBiFunctioninstance
The returnedBiFunction.apply(Object, Object)method delegates directly to theCheckedBiFunction.apply(Object, Object)and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
Unless you provide a context-message (usingCheckedBiFunction.safe(String, CheckedBiFunction)then any caught checkedException's message also becomes theCheckedExceptionRethrownException's message.
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aBiFunctionwith the purpose of the calling theBiFunction.apply(Object, Object). - safe(CheckedConsumer<T>) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedConsumer
-
Wraps a
CheckedConsumer(basically a lambda with one argument that doesn't return any result and which throws a CheckedException) by returning a newConsumerinstance
The returnedConsumer.accept(Object)method delegates directly to theCheckedConsumer.accept(Object)and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
Unless you provide a context-message (usingCheckedConsumer.safe(String, CheckedConsumer)then any caught checkedException's message also becomes theCheckedExceptionRethrownException's message.
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aConsumerwith the purpose of the calling theConsumer.accept(Object). - safe(CheckedFunction<T, R>) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedFunction
-
Wraps a
CheckedFunction(basically a lambda with one argument that returns a result and which throws a CheckedException) by returning a newFunctioninstance
The returnedFunction.apply(Object)method delegates directly to theCheckedFunction.apply(Object)and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
Unless you provide a context-message (usingCheckedFunction.safe(String, CheckedFunction)then any caught checkedException's message also becomes theCheckedExceptionRethrownException's message.
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aFunctionwith the purpose of the calling theFunction.apply(Object). - safe(CheckedRunnable) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedRunnable
-
Wraps a
CheckedRunnable(basically a lambda with no arguments that doesn't return any result and which throws a CheckedException) by returning a newRunnableinstance
The returnedRunnable.run()method delegates directly to theCheckedRunnable.run()and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
Unless you provide a context-message (usingCheckedRunnable.safe(String, CheckedRunnable)then any caught checkedException's message also becomes theCheckedExceptionRethrownException's message.
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aRunnablewith the purpose of the calling theRunnable.run(). - safe(CheckedSupplier<R>) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedSupplier
-
Wraps a
CheckedSupplier(basically a lambda with no arguments that returns a result and which throws a CheckedException) by returning a newSupplierinstance
The returnedSupplier.get()method delegates directly to theCheckedSupplier.get()and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
Unless you provide a context-message (usingCheckedSupplier.safe(String, CheckedSupplier)then any caught checkedException's message also becomes theCheckedExceptionRethrownException's message.
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aSupplierwith the purpose of the calling theSupplier.get(). - safe(CheckedTripleFunction<T1, T2, T3, R>) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedTripleFunction
-
Wraps a
CheckedTripleFunction(basically a lambda with three arguments that returns a result and which throws a CheckedException) by returning a newTripleFunctioninstance
The returnedTripleFunction.apply(Object, Object, Object)method delegates directly to theCheckedTripleFunction.apply(Object, Object, Object)and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
Unless you provide a context-message (usingCheckedTripleFunction.safe(String, CheckedTripleFunction)then any caught checkedException's message also becomes theCheckedExceptionRethrownException's message.
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aTripleFunctionwith the purpose of the calling theTripleFunction.apply(Object, Object, Object). - safe(String, CheckedBiFunction<T1, T2, R>) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedBiFunction
-
Wraps a
CheckedBiFunction(basically a lambda with two arguments that returns a result and which throws a CheckedException) by returning a newBiFunctioninstance
The returnedBiFunction.apply(Object, Object)method delegates directly to theCheckedBiFunction.apply(Object, Object)and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aBiFunctionwith the purpose of the calling theBiFunction.apply(Object, Object). - safe(String, CheckedConsumer<T>) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedConsumer
-
Wraps a
CheckedConsumer(basically a lambda with one argument that doesn't return any result and which throws a CheckedException) by returning a newConsumerinstance
The returnedConsumer.accept(Object)method delegates directly to theCheckedConsumer.accept(Object)and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aConsumerwith the purpose of the calling theConsumer.accept(Object). - safe(String, CheckedFunction<T, R>) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedFunction
-
Wraps a
CheckedFunction(basically a lambda with one argument that returns a result and which throws a CheckedException) by returning a newFunctioninstance
The returnedFunction.apply(Object)method delegates directly to theCheckedFunction.apply(Object)and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aFunctionwith the purpose of the calling theFunction.apply(Object). - safe(String, CheckedRunnable) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedRunnable
-
Wraps a
CheckedRunnable(basically a lambda with no arguments that doesn't return any result and which throws a CheckedException) by returning a newRunnableinstance
The returnedRunnable.run()method delegates directly to theCheckedRunnable.run()and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aRunnablewith the purpose of the calling theRunnable.run(). - safe(String, CheckedSupplier<R>) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedSupplier
-
Wraps a
CheckedSupplier(basically a lambda with no arguments that returns a result and which throws a CheckedException) by returning a newSupplierinstance
The returnedSupplier.get()method delegates directly to theCheckedSupplier.get()and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aSupplierwith the purpose of the calling theSupplier.get(). - safe(String, CheckedTripleFunction<T1, T2, T3, R>) - Static method in interface dk.cloudcreate.essentials.shared.functional.CheckedTripleFunction
-
Wraps a
CheckedTripleFunction(basically a lambda with three arguments that returns a result and which throws a CheckedException) by returning a newTripleFunctioninstance
The returnedTripleFunction.apply(Object, Object, Object)method delegates directly to theCheckedTripleFunction.apply(Object, Object, Object)and catches any thrown checkedException's and rethrows them as aCheckedExceptionRethrownException
AnyRuntimeException's thrown aren't caught and the calling code will receive the originalRuntimeExceptionthrown.
Usage example:
Let's say we have a method calledsomeOperationthat cannot change, but which accepts aTripleFunctionwith the purpose of the calling theTripleFunction.apply(Object, Object, Object). - set(Object, Field, Object) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Set the instance field to the provided
newFieldValue - set(Object, String, Object) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Set the instance field to the provided
newFieldValue - SetFieldException - Exception in dk.cloudcreate.essentials.shared.reflection
- SetFieldException() - Constructor for exception dk.cloudcreate.essentials.shared.reflection.SetFieldException
- SetFieldException(String) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.SetFieldException
- SetFieldException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.SetFieldException
- SetFieldException(String, Throwable, boolean, boolean) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.SetFieldException
- SetFieldException(Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.SetFieldException
- setStatic(Field, Object) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Set the static field, on the
Reflector.typewrapped by thisReflectorinstance, to the providednewFieldValue - setStatic(String, Object) - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
Set the static field, on the
Reflector.typewrapped by thisReflectorinstance, to the providednewFieldValue - Single<T1> - Class in dk.cloudcreate.essentials.shared.functional.tuple
-
Represents a
Tuplewith one element.
Note:SinglesupportsSingle.equals(Object)comparison using subclasses, e.g.: - Single(T1) - Constructor for class dk.cloudcreate.essentials.shared.functional.tuple.Single
-
Create a new
Tuplewith 1 element - SingleArgumentAnnotatedMethodPatternMatcher<ARGUMENT_COMMON_ROOT_TYPE> - Class in dk.cloudcreate.essentials.shared.reflection.invocation
-
A strategy that matches methods annotated with
matchOnMethodsAnnotatedWithand have a single method argument that is the same type or a sub-type of theARGUMENT_COMMON_ROOT_TYPE
Example using parameterized types: - SingleArgumentAnnotatedMethodPatternMatcher(Class<? extends Annotation>, GenericType<ARGUMENT_COMMON_ROOT_TYPE>) - Constructor for class dk.cloudcreate.essentials.shared.reflection.invocation.SingleArgumentAnnotatedMethodPatternMatcher
-
Create a new strategy that matches methods annotated with
matchOnMethodsAnnotatedWithand have a single method argument that is the same type or a sub-type of theARGUMENT_COMMON_ROOT_TYPE - SingleArgumentAnnotatedMethodPatternMatcher(Class<? extends Annotation>, Class<ARGUMENT_COMMON_ROOT_TYPE>) - Constructor for class dk.cloudcreate.essentials.shared.reflection.invocation.SingleArgumentAnnotatedMethodPatternMatcher
-
Create a new strategy that matches methods annotated with
matchOnMethodsAnnotatedWithand have a single method argument that is the same type or a sub-type of theARGUMENT_COMMON_ROOT_TYPE - sneakyThrow(Throwable) - Static method in class dk.cloudcreate.essentials.shared.Exceptions
-
Allows us to sneaky throw a checked exception without having to wrap it
Use with caution - start() - Static method in class dk.cloudcreate.essentials.shared.time.StopWatch
-
Create a new
StopWatch - start(String) - Static method in class dk.cloudcreate.essentials.shared.time.StopWatch
-
Create a new
StopWatch - staticFields() - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
- stop() - Method in class dk.cloudcreate.essentials.shared.time.StopWatch
-
Call this method to end the timing operation
- StopWatch - Class in dk.cloudcreate.essentials.shared.time
-
Stop watch feature that allows you to time operations
- StopWatch() - Constructor for class dk.cloudcreate.essentials.shared.time.StopWatch
-
Create a new
StopWatch - StopWatch(String) - Constructor for class dk.cloudcreate.essentials.shared.time.StopWatch
-
Create a new
StopWatch - Streams - Class in dk.cloudcreate.essentials.shared.collections
- Streams() - Constructor for class dk.cloudcreate.essentials.shared.collections.Streams
- subKey(String) - Method in class dk.cloudcreate.essentials.shared.messages.MessageTemplate0
-
Create a sub key which concatenates this
MessageTemplate'sAbstractMessageTemplate.getKey()with the providedmessageKey
Example: - subKey(String, String) - Method in class dk.cloudcreate.essentials.shared.messages.MessageTemplate0
-
Create a
MessageTemplatewith a key that is a concatenation of thisMessageTemplate'sAbstractMessageTemplate.getKey()and the providedmessageKey
Example: - superClasses(Class<?>) - Static method in class dk.cloudcreate.essentials.shared.reflection.Classes
-
Get all superclasses of a type.
- swap() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
-
Swap the elements of this
ComparablePair - swap() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
Swap the elements of this
Either - swap() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
-
Swap the elements of this
Pair
T
- test() - Method in interface dk.cloudcreate.essentials.shared.logic.IfPredicate
-
Evaluate the if predicate
- ThreadFactoryBuilder - Class in dk.cloudcreate.essentials.shared.concurrent
-
Builder for a
ThreadFactoryto allow setting thread names, auto increment thread numbers, etc. - ThreadFactoryBuilder() - Constructor for class dk.cloudcreate.essentials.shared.concurrent.ThreadFactoryBuilder
- time(Runnable) - Static method in class dk.cloudcreate.essentials.shared.time.StopWatch
-
Time how long it takes to perform an operation
- time(Supplier<R>) - Static method in class dk.cloudcreate.essentials.shared.time.StopWatch
-
Time how long it takes to perform an operation
- Timing - Class in dk.cloudcreate.essentials.shared.time
- Timing(String, Duration) - Constructor for class dk.cloudcreate.essentials.shared.time.Timing
- Timing(Duration) - Constructor for class dk.cloudcreate.essentials.shared.time.Timing
- TimingWithResult<R> - Class in dk.cloudcreate.essentials.shared.time
-
The result of
StopWatch.time(Supplier) - TimingWithResult(R, String, Duration) - Constructor for class dk.cloudcreate.essentials.shared.time.TimingWithResult
-
Create a new
TimingWithResult - TimingWithResult(R, Duration) - Constructor for class dk.cloudcreate.essentials.shared.time.TimingWithResult
-
Create a new
TimingWithResult - toEntry() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
- toEntry() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
- toIndexedStream(List<T>) - Static method in class dk.cloudcreate.essentials.shared.collections.Lists
- toList() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableEmpty
- toList() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
- toList() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableSingle
- toList() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
- toList() - Method in interface dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTuple
-
Convert the Tuple to a list
- toList() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
- toList() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Empty
- toList() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
- toList() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Single
- toList() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
- toList() - Method in interface dk.cloudcreate.essentials.shared.functional.tuple.Tuple
-
Convert the Tuple to a list
- TooManyMatchingFieldsFoundException - Exception in dk.cloudcreate.essentials.shared.reflection
- TooManyMatchingFieldsFoundException() - Constructor for exception dk.cloudcreate.essentials.shared.reflection.TooManyMatchingFieldsFoundException
- TooManyMatchingFieldsFoundException(String) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.TooManyMatchingFieldsFoundException
- TooManyMatchingFieldsFoundException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.TooManyMatchingFieldsFoundException
- TooManyMatchingFieldsFoundException(String, Throwable, boolean, boolean) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.TooManyMatchingFieldsFoundException
- TooManyMatchingFieldsFoundException(Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.TooManyMatchingFieldsFoundException
- TooManyMatchingMethodsFoundException - Exception in dk.cloudcreate.essentials.shared.reflection
- TooManyMatchingMethodsFoundException() - Constructor for exception dk.cloudcreate.essentials.shared.reflection.TooManyMatchingMethodsFoundException
- TooManyMatchingMethodsFoundException(String) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.TooManyMatchingMethodsFoundException
- TooManyMatchingMethodsFoundException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.TooManyMatchingMethodsFoundException
- TooManyMatchingMethodsFoundException(String, Throwable, boolean, boolean) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.TooManyMatchingMethodsFoundException
- TooManyMatchingMethodsFoundException(Throwable) - Constructor for exception dk.cloudcreate.essentials.shared.reflection.TooManyMatchingMethodsFoundException
- toString() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableEmpty
- toString() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
- toString() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableSingle
- toString() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
- toString() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
- toString() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Empty
- toString() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
- toString() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Single
- toString() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
- toString() - Method in class dk.cloudcreate.essentials.shared.interceptor.DefaultInterceptorChain
- toString() - Method in class dk.cloudcreate.essentials.shared.MessageFormatter.NamedArgumentBinding
- toString() - Method in class dk.cloudcreate.essentials.shared.messages.AbstractMessageTemplate
- toString() - Method in class dk.cloudcreate.essentials.shared.time.Timing
- toString() - Method in class dk.cloudcreate.essentials.shared.time.TimingWithResult
- Triple<T1,T2,T3> - Class in dk.cloudcreate.essentials.shared.functional.tuple
-
Represents a
Tuplewith three elements.
Note:TriplesupportsTriple.equals(Object)comparison using subclasses, e.g.: - Triple(T1, T2, T3) - Constructor for class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
Construct a new
Tuplewith 3 elements - TripleFunction<T1,T2,T3,R> - Interface in dk.cloudcreate.essentials.shared.functional
-
Represents a function that accepts three arguments and produces a result.
This is a specialization of theFunctioninterface. - Tuple<CONCRETE_TUPLE extends Tuple<CONCRETE_TUPLE>> - Interface in dk.cloudcreate.essentials.shared.functional.tuple
-
Base interface for all
Tuple'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 - type - Variable in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
The type wrapped by this
Reflectorinstance - type - Variable in class dk.cloudcreate.essentials.shared.types.GenericType
- type() - Method in class dk.cloudcreate.essentials.shared.reflection.Reflector
-
The type wrapped by this
Reflectorinstance
U
- uncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - Method in class dk.cloudcreate.essentials.shared.concurrent.ThreadFactoryBuilder
-
Set the
Thread.UncaughtExceptionHandlerfor theThread's created by the resultingThreadFactoryare daemon threads
V
- value - Variable in class dk.cloudcreate.essentials.shared.MessageFormatter.NamedArgumentBinding
-
the value that will be inserted where ever an argument with name matching
MessageFormatter.NamedArgumentBinding.nameis placed - valueOf(String) - Static method in enum dk.cloudcreate.essentials.shared.reflection.invocation.InvocationStrategy
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum dk.cloudcreate.essentials.shared.reflection.invocation.InvocationStrategy
-
Returns an array containing the constants of this enum type, in the order they are declared.
Z
- zipOrderedAndEqualSizedStreams(Stream<T>, Stream<U>, BiFunction<T, U, R>) - Static method in class dk.cloudcreate.essentials.shared.collections.Streams
_
- _1 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
-
The first element in this tuple
- _1 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableSingle
-
The first element in this tuple
- _1 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
The first element in this tuple
- _1 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
The potential first element in this tuple
- _1 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
-
The first element in this tuple
- _1 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.Single
-
The first element in this tuple
- _1 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
The first element in this tuple
- _1() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
-
The first element in this tuple
- _1() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableSingle
-
Returns the first element in this tuple
- _1() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
The first element in this tuple
- _1() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
The first element in this tuple (can be null)
- _1() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
-
The first element in this tuple
- _1() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Single
-
Returns the first element in this tuple
- _1() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
The first element in this tuple
- _2 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
-
The second element in this tuple
- _2 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
The second element in this tuple
- _2 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
The potential second element in this tuple
- _2 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
-
The second element in this tuple
- _2 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
The second element in this tuple
- _2() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparablePair
-
The second element in this tuple
- _2() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
The second element in this tuple
- _2() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Either
-
The second element in this tuple (can be null)
- _2() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Pair
-
The second element in this tuple
- _2() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
The second element in this tuple
- _3 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
The third element in this tuple
- _3 - Variable in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
The third element in this tuple
- _3() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableTriple
-
The third element in this tuple
- _3() - Method in class dk.cloudcreate.essentials.shared.functional.tuple.Triple
-
The third element in this tuple
All Classes All Packages