Module technology.sola.engine
Interface MergeableProperty<P extends MergeableProperty<?>>
- Type Parameters:
P
- the type of data to merge with
- All Known Implementing Classes:
Background
,Border
,Padding
,Position
@NullMarked
public interface MergeableProperty<P extends MergeableProperty<?>>
MergeableProperty defines the contract for a style property that can be merged with another like type property.
-
Method Summary
-
Method Details
-
mergeWith
Returns a new instance of the property with the resulting values being a merge of the right on top of the left.- Parameters:
otherProperty
- the other property object to merge values on top of this one- Returns:
- a new instance with the merged properties
-