Package com.mayam.wf.attributes.shared
Class AttributeMap.Exporter
java.lang.Object
com.mayam.wf.attributes.shared.AttributeMap.Exporter
- Enclosing class:
AttributeMap
Fluid export with optional filtering and merging instructions.
Example:
final AttributeMap changes = subject.export() .cacheConflicting() .persistenceScoped() .keepingDirty() .asMap();
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull AttributeMap
asMap()
Export as a new AttributeMapasSet()
Export as a new set.Only export source attributes with values conflicting with or missing from the cache associated with the source.Only export source attributes with values equal to those of the cache associated with the source.excluding
(Collection<Attribute> excluding) Limit export to the attributes NOT found within the provided set.Associates the destination map with the source cache.intoMap
(AttributeMap dst) Export into an existing AttributeMap (returned for convenience).Export into an existing set (returned for convenience).Transfer source dirty status to destination.limitedTo
(Collection<Attribute> limitedTo) Limit export to the attributes found within the provided set.Mark all exported attributes as clean in destination.Mark all exported attributes as dirty in destination.Only export source attributes with value classes NOT flagged as internal.nonNull()
Only export attributes with a non-null value.Only export source attributes marked as clean.Only export source attributes marked as dirty.Only export source attributes with value classes flagged as internal.Only overwrite attributes marked as clean in the destination.Only overwrite attributes marked as dirty in the destination.Allow no overwrites; only source attributes missing in destination will be exported.Only export source attributes with values matching a persistent scope.Only export source attributes with values matching provided scopes.shallow()
Transfer possibly mutable objects from source to destination.
-
Constructor Details
-
Exporter
public Exporter()
-
-
Method Details
-
onlyDirty
Only export source attributes marked as dirty. -
onlyClean
Only export source attributes marked as clean. -
keepingDirty
Transfer source dirty status to destination. -
markingDirty
Mark all exported attributes as dirty in destination. -
markingClean
Mark all exported attributes as clean in destination. -
limitedTo
Limit export to the attributes found within the provided set. -
excluding
Limit export to the attributes NOT found within the provided set. -
persistenceScoped
Only export source attributes with values matching a persistent scope. -
cacheMatching
Only export source attributes with values equal to those of the cache associated with the source. -
cacheConflicting
Only export source attributes with values conflicting with or missing from the cache associated with the source. -
forwardCache
Associates the destination map with the source cache. -
overwriteNone
Allow no overwrites; only source attributes missing in destination will be exported. -
overwriteDirty
Only overwrite attributes marked as dirty in the destination. -
overwriteClean
Only overwrite attributes marked as clean in the destination. -
shallow
Transfer possibly mutable objects from source to destination. -
noInternal
Only export source attributes with value classes NOT flagged as internal. -
onlyInternal
Only export source attributes with value classes flagged as internal. -
nonNull
Only export attributes with a non-null value. -
asMap
Export as a new AttributeMap -
intoSet
Export into an existing set (returned for convenience). -
asSet
Export as a new set.
-