public class PluginMigrations
extends java.lang.Object
| Constructor and Description |
|---|
PluginMigrations() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMigration(IPluginMigration migration)
Registers a migration into this storage class.
|
boolean |
equals(java.lang.Object obj) |
java.util.Set<IPluginMigration> |
getMigrations()
Gets a
Set view of the migrations. |
int |
hashCode() |
void |
migrate(int from,
int to,
AbstractPlugin plugin)
A method to start all possible applicable migrations.
|
public void addMigration(IPluginMigration migration)
migration - public java.util.Set<IPluginMigration> getMigrations()
Set view of the migrations.public void migrate(int from,
int to,
AbstractPlugin plugin)
throws PluginException
from - the older versionto - the newer versionplugin - the pluginPluginExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object