public class SnapshotVersion extends Object implements Comparable<SnapshotVersion>
| Modifier and Type | Field and Description |
|---|---|
static Comparator<SnapshotVersion> |
COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SnapshotVersion that) |
boolean |
equals(Object obj) |
Date |
getSnapshotDate()
Retrieve the week this snapshot was released.
|
String |
getSnapshotString()
Retrieve the raw snapshot string (yy'w'ww[a-z]).
|
int |
getSnapshotWeekVersion()
Retrieve the snapshot version within a week, starting at zero.
|
int |
hashCode() |
static SnapshotVersion |
parse(String version)
Parses a snapshot version
|
String |
toString() |
public static final Comparator<SnapshotVersion> COMPARATOR
@Nonnull public static SnapshotVersion parse(String version) throws IllegalArgumentException
version - the version stringIllegalArgumentException - if the version is not a snapshot versionpublic int getSnapshotWeekVersion()
public Date getSnapshotDate()
public String getSnapshotString()
public int compareTo(SnapshotVersion that)
compareTo in interface Comparable<SnapshotVersion>Copyright © 2022. All rights reserved.