public interface ArchiveEntrySettings<T extends ArchiveEntrySettings<T>> extends Cloneable
Every property in a settings object have two states. It can either be set
(i.e: non-null
), or not set (i.e: null
).
Different settings objects can be combined using the
combineWith(ArchiveEntrySettings)
method. That is used a lot by
ArchiveBuilder
:s.
Modifier and Type | Method and Description |
---|---|
T |
clone()
Clone this settings object.
|
T |
combineWith(T settings)
Create a new settings object that contains this object's settings
combined with the settings from the supplied object.
|
T |
setReadOnly()
Set this settings object to be read only to prevent accidental
modification.
|
T combineWith(T settings)
The returned object is created by first cloning this object, and then by replacing all the property values for properties that are set in the supplied object with the values from that object. In other words, properties from the supplied object take precedence over properties from this object.
settings
- The other settings object.T setReadOnly()
After calling this method, a call to any of the object's setter methods
will result in an IllegalStateException
.
This method can safely be called several times.
this
.T clone()