public class MpackVersion extends Object implements Comparable<MpackVersion>
Constructor and Description |
---|
MpackVersion(int major,
int minor,
int maint,
int hotfix,
int build) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MpackVersion other) |
boolean |
equals(Object o) |
static String |
format(String mpackVersion)
Method to format an mpack version in {major}.{minor}.{maint}-h{hotfix}-b{build} format
|
int |
hashCode() |
static MpackVersion |
parse(String mpackVersion)
Method which will parse mpack version
which user passed as parameter.
|
static MpackVersion |
parse(String mpackVersion,
boolean strict) |
static MpackVersion |
parseStackVersion(String stackVersion)
Method which will parse stack version
which user passed as parameter.
|
public MpackVersion(int major, int minor, int maint, int hotfix, int build)
public static MpackVersion parse(String mpackVersion)
mpackVersion
- stringpublic static MpackVersion parse(String mpackVersion, boolean strict)
public static String format(String mpackVersion)
mpackVersion
- input mpack version stringpublic static MpackVersion parseStackVersion(String stackVersion)
stackVersion
- stringpublic int compareTo(MpackVersion other)
compareTo
in interface Comparable<MpackVersion>
Copyright © 2022 Apache Software Foundation. All rights reserved.