T
- Type of serialised classpublic class Converter170202<T extends IQuimpSerialize> extends Object implements IQconfOlderConverter<T>
Replaces version tag from String[3] to QuimpVersion
- current version of QuimP.
QParamsQconf.readParams()
Modifier and Type | Field and Description |
---|---|
Double |
trigger
Version below the
upgradeFromOld(Serializer) will be executed. |
Constructor and Description |
---|
Converter170202(QuimpVersion version) |
Modifier and Type | Method and Description |
---|---|
Double |
executeForLowerThan()
Threshold to execture converter.
|
void |
upgradeFromOld(Serializer<T> localref)
This method is run when deserialised class is in version lower that version of loader.
|
public final Double trigger
upgradeFromOld(Serializer)
will be executed.public Converter170202(QuimpVersion version)
version
- new version format. The old version will be replaced with this onepublic void upgradeFromOld(Serializer<T> localref) throws QuimpException
IQconfOlderConverter
upgradeFromOld
in interface IQconfOlderConverter<T extends IQuimpSerialize>
localref
- reference to loaded objectQuimpException
- on problems with conversionpublic Double executeForLowerThan()
IQconfOlderConverter
Converter is executed if version returned by this method is lower than that provided in
Serializer.Serializer(IQuimpSerialize, com.github.celldynamics.quimp.QuimpVersion)
constructor.
executeForLowerThan
in interface IQconfOlderConverter<T extends IQuimpSerialize>
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.