Package migratedb.v1.core.api
Class TargetVersion
- java.lang.Object
-
- migratedb.v1.core.api.TargetVersion
-
public final class TargetVersion extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTargetVersion.OrElseDoStepclassTargetVersion.OrElseGetStep<T>
-
Field Summary
Fields Modifier and Type Field Description static TargetVersionCURRENTRepresentsMigrateDb.info().current().static TargetVersionLATESTRepresentsMigrateDb.info().latest().static TargetVersionNEXTRepresentsMigrateDb.info().next().
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayText()<T> TargetVersion.OrElseGetStep<T>mapVersion(Function<? super Version,? extends T> mapper)static TargetVersionof(Version version)static TargetVersionparse(String s)StringtoString()TargetVersion.OrElseDoStepwithVersion(Consumer<Version> action)
-
-
-
Field Detail
-
LATEST
public static final TargetVersion LATEST
RepresentsMigrateDb.info().latest().
-
CURRENT
public static final TargetVersion CURRENT
RepresentsMigrateDb.info().current().
-
NEXT
public static final TargetVersion NEXT
RepresentsMigrateDb.info().next().
-
-
Method Detail
-
of
public static TargetVersion of(Version version)
-
parse
public static TargetVersion parse(String s)
-
getDisplayText
public final String getDisplayText()
-
withVersion
public TargetVersion.OrElseDoStep withVersion(Consumer<Version> action)
-
mapVersion
public <T> TargetVersion.OrElseGetStep<T> mapVersion(Function<? super Version,? extends T> mapper)
-
-