Settings classes
Using such a base class seems to be a lot simpler than depending on any one
of those many JAXB / XJC plugins. Besides, cloning objects through the
standard Java Cloneable mechanism is around factor 1000x faster than
using Serializable, and even 10000x faster than using
jakarta.,
marshalling a JAXB object into a ByteArrayOutputStream.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| SettingsBase | back to summary |
|---|---|
| pack-priv SettingsBase() | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |