@Beta public final class SemVer extends Object implements Comparable<SemVer>, Serializable
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SemVer other) |
static @NonNull SemVer |
create(int major) |
static @NonNull SemVer |
create(int major,
int minor) |
static @NonNull SemVer |
create(int major,
int minor,
int patch) |
boolean |
equals(Object obj) |
int |
getMajor()
Return the major version number.
|
int |
getMinor()
Return the minor version number.
|
int |
getPatch()
Return the patch version number.
|
int |
hashCode() |
String |
toString() |
static @NonNull SemVer |
valueOf(@NonNull String str) |
public static @NonNull SemVer create(@Nonnegative int major)
public static @NonNull SemVer create(@Nonnegative int major, @Nonnegative int minor)
public static @NonNull SemVer create(@Nonnegative int major, @Nonnegative int minor, @Nonnegative int patch)
public int getMajor()
public int getMinor()
public int getPatch()
public int compareTo(SemVer other)
compareTo
in interface Comparable<SemVer>
Copyright © 2019 OpenDaylight. All rights reserved.