public class Version extends Object implements Comparable<Version>
Constructor and Description |
---|
Version() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Version o) |
boolean |
equals(Object obj) |
boolean |
isEqualTo(Version other) |
boolean |
isNewerThan(Version other) |
boolean |
isNewerThanOrEqualTo(Version other) |
boolean |
isOlderThan(Version other) |
boolean |
isOlderThanOrEqualTo(Version other) |
boolean |
isPreRelease() |
static boolean |
isValidVersionString(@NotNull String versionString) |
static @NotNull Version |
of(@NotNull String rawVersion) |
static @Nullable Version |
ofNullable(@NotNull String rawVersion) |
String |
toString() |
public static boolean isValidVersionString(@NotNull @NotNull String versionString)
@NotNull public static @NotNull Version of(@NotNull @NotNull String rawVersion) throws InvalidVersionSyntaxException
InvalidVersionSyntaxException
@Nullable public static @Nullable Version ofNullable(@NotNull @NotNull String rawVersion)
public boolean isPreRelease()
public int compareTo(@Nonnull Version o)
compareTo
in interface Comparable<Version>
Copyright © 2023. All rights reserved.