Class MigrationVersion
- java.lang.Object
-
- software.xdev.micromigration.version.MigrationVersion
-
public class MigrationVersion extends java.lang.Object
Defines one version of the MicroStream datastore.- Author:
- Johannes Rabauer
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<MigrationVersion>
COMPARATOR
Provides aComparator
that compares thegetVersions()
of the given versions
-
Constructor Summary
Constructors Constructor Description MigrationVersion(int... versions)
MigrationVersion(java.util.List<java.lang.Integer> versionsAsList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int[]
getVersions()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
COMPARATOR
public static java.util.Comparator<MigrationVersion> COMPARATOR
Provides aComparator
that compares thegetVersions()
of the given versions
-
-
Constructor Detail
-
MigrationVersion
public MigrationVersion(int... versions)
- Parameters:
versions
- as integers. For example 1.0.2 would be an array of [1,0,2]
-
MigrationVersion
public MigrationVersion(java.util.List<java.lang.Integer> versionsAsList)
- Parameters:
versionsAsList
- as integers. For example 1.0.2 would be a list of [1,0,2]
-
-
Method Detail
-
getVersions
public int[] getVersions()
- Returns:
- versions as an array of integers. For example 1.0.2 would be an array of [1,0,2]
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-