Index
All Classes and Interfaces|All Packages
A
- adaptee_() - Method in interface io.foldright.inspectablewrappers.WrapperAdapter
-
Returns the adapted/existed wrapper.
- Attachable<K,
V> - Interface in io.foldright.inspectablewrappers -
This
Attachable
interface is used to be implemented by wrapper classes, provide the attachment storage ability. - AttachableDelegate<K,
V> - Class in io.foldright.inspectablewrappers.utils -
A simple
Attachable
delegate implementation. - AttachableDelegate() - Constructor for class io.foldright.inspectablewrappers.utils.AttachableDelegate
C
- containsInstanceTypeOnWrapperChain(W, Class<?>) - Static method in class io.foldright.inspectablewrappers.Inspector
-
Reports whether any instance on the wrapper chain matches the given type.
- createWrapperAdapter(Class<? super T>, T, T) - Static method in class io.foldright.inspectablewrappers.utils.WrapperAdapterUtils
-
Creates a
WrapperAdapter
instance of the given biz interface type by the underlying(Wrapper.unwrap_()
) and adaptee(WrapperAdapter.adaptee_()
) instances. - createWrapperAdapter(Class<? super T>, T, T, Attachable<?, ?>) - Static method in class io.foldright.inspectablewrappers.utils.WrapperAdapterUtils
-
Creates a
WrapperAdapter
instance of the given biz interface type andAttachable
type by the underlying(Wrapper.unwrap_()
), adaptee(WrapperAdapter.adaptee_()
) and attachable instances. - createWrapperAdapter(Class<? super T>, T, T, Attachable<?, ?>, Class<?>...) - Static method in class io.foldright.inspectablewrappers.utils.WrapperAdapterUtils
-
Same as
createWrapperAdapter(Class, Object, Object, Attachable)
, but the returnedWrapperAdapter
instance also implements the given tag interfaces. - createWrapperAdapter(Class<? super T>, T, T, Class<?>...) - Static method in class io.foldright.inspectablewrappers.utils.WrapperAdapterUtils
-
Same as
createWrapperAdapter(Class, Object, Object)
, but the returnedWrapperAdapter
instance also implements the given tag interfaces.
F
- forEachOnWrapperChain(W, Consumer<? super W>) - Static method in class io.foldright.inspectablewrappers.Inspector
-
Performs the given
action
for each instance on the wrapper chain until all elements have been processed or the action throws an exception.
G
- getAttachment_(K) - Method in interface io.foldright.inspectablewrappers.Attachable
-
Gets the attachment value for the given key.
- getAttachment_(K) - Method in class io.foldright.inspectablewrappers.utils.AttachableDelegate
-
Gets the attachment value for the given key.
- getAttachmentFromWrapperChain(W, K) - Static method in class io.foldright.inspectablewrappers.Inspector
-
Retrieves the attachment of instance on the wrapper chain for the given key by calling
Attachable.getAttachment_(Object)
. - getBaseOfWrapperChain(W) - Static method in class io.foldright.inspectablewrappers.Inspector
-
Gets the base of the wrapper chain, aka.
- getInstancesOfWrapperChain(W) - Static method in class io.foldright.inspectablewrappers.Inspector
-
Gets the wrapper chain, aka.
I
- Inspector - Class in io.foldright.inspectablewrappers
-
This
Inspector
class is used to inspect the wrapper chain. - io.foldright.inspectablewrappers - package io.foldright.inspectablewrappers
-
🪐 Inspectable Wrappers Specification provides a standard for wrapper chain with the inspection ability.
- io.foldright.inspectablewrappers.utils - package io.foldright.inspectablewrappers.utils
-
Utility classes for
inspectable wrappers
. - isWrapper(Object) - Static method in class io.foldright.inspectablewrappers.Inspector
S
- setAttachment_(K, V) - Method in interface io.foldright.inspectablewrappers.Attachable
-
Sets an attachment.
- setAttachment_(K, V) - Method in class io.foldright.inspectablewrappers.utils.AttachableDelegate
-
Sets an attachment.
T
- testWrapperChain(W, Predicate<? super W>) - Static method in class io.foldright.inspectablewrappers.Inspector
-
Reports whether any instance on the wrapper chain satisfies the given
predicate
. - travelWrapperChain(W, Function<? super W, Optional<T>>) - Static method in class io.foldright.inspectablewrappers.Inspector
-
Traverses the wrapper chain and applies the given
process
function to each instance on the wrapper chain, returns the first non-empty(Optional.empty()
) result of the process function, otherwise returnsOptional.empty()
.
U
- unwrap(W) - Static method in class io.foldright.inspectablewrappers.Inspector
- unwrap_() - Method in interface io.foldright.inspectablewrappers.Wrapper
-
Returns the underlying instance that be wrapped.
V
- verifyWrapperChainContracts(W) - Static method in class io.foldright.inspectablewrappers.Inspector
-
Verifies the compliance of wrapper chain with the specification contracts.
- verifyWrapperChainContracts(W, Class<W>) - Static method in class io.foldright.inspectablewrappers.Inspector
-
Verifies the compliance of wrapper chain with the specification contracts, and checks all instances on wrapper chain is an instance of the given
bizInterface
.
W
- Wrapper<T> - Interface in io.foldright.inspectablewrappers
-
This
Wrapper
interface is used to be implemented by wrapper classes, make an inspectable wrapper chain(linked list). - WrapperAdapter<T> - Interface in io.foldright.inspectablewrappers
-
This
WrapperAdapter
interface is used to adapt an existed wrapper instance to typeWrapper
without modifying it. - WrapperAdapterUtils - Class in io.foldright.inspectablewrappers.utils
-
Utility class for creating
WrapperAdapter
instances without writing boilerplate codes of creating new adapter classes.
All Classes and Interfaces|All Packages