Package one.microstream.reflect
Class ReflectiveCopier.Default<S>
java.lang.Object
one.microstream.reflect.ReflectiveCopier.Default<S>
- All Implemented Interfaces:
ReflectiveCopier<S>
- Enclosing interface:
- ReflectiveCopier<S>
public static final class ReflectiveCopier.Default<S> extends Object implements ReflectiveCopier<S>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.reflect.ReflectiveCopier
ReflectiveCopier.Default<S>
-
Method Summary
Modifier and Type Method Description <T extends S>
Tcopy(S sourceInstance, T targetInstance)
CopyPredicate
copySelector()
Predicate<? super Field>
fieldSelector()
<I extends Consumer<? super Field>>
IiterateFields(I iterator)
Class<?>
sourceClass()
Does not necessarily have to be S.S
sourceInstance()
-
Method Details
-
sourceClass
Description copied from interface:ReflectiveCopier
Does not necessarily have to be S. S could be an interface.- Specified by:
sourceClass
in interfaceReflectiveCopier<S>
- Returns:
- the source class
-
sourceInstance
- Specified by:
sourceInstance
in interfaceReflectiveCopier<S>
-
fieldSelector
- Specified by:
fieldSelector
in interfaceReflectiveCopier<S>
-
copySelector
- Specified by:
copySelector
in interfaceReflectiveCopier<S>
-
iterateFields
- Specified by:
iterateFields
in interfaceReflectiveCopier<S>
-
copy
- Specified by:
copy
in interfaceReflectiveCopier<S>
-