Interface TupleBridge<D,C>
- Type Parameters:
D- The domain type of the tuple like objectC- The component type
- All Superinterfaces:
TupleAccessor<D,C>
- All Known Subinterfaces:
GenericTupleAccessor<D,C, K>, TupleBridge3<D, C>, TupleBridge4<D, C>, TupleMutator<DomainType, ComponentType>
- All Known Implementing Classes:
GenericTupleAccessorForMap, GenericTupleAccessorFromListOfKeysBase, TupleAccessorForArrayOfInts, TupleAccessorForList, TupleAccessorRemap
A bridge between domain objects and tuple representation.
The bridge adds the capability to create domain objects from tuples.
- Author:
- Claus Stadler 11/09/2020
-
Method Summary
Modifier and TypeMethodDescriptiondefault D<T> Dbuild(T obj, TupleAccessor<? super T, ? extends C> accessor) Build a domain object from some tuple-like object with its corresponding accessor.default ObjectIf the dimension is 1 then return the component, otherwise the tuple.intdefault C[]toComponentArray(D domainObject) If dimension == 1 then return the object as is, otherwise interpret it as a domain tuple.default voidvalidateBuildArg(TupleBridge<?, ?> bridge) Methods inherited from interface TupleAccessor
get, map
-
Method Details
-
getDimension
int getDimension() -
build
Build a domain object from some tuple-like object with its corresponding accessor. -
build
-
validateBuildArg
-
compact
-
toComponentArray
-