public static final class SemVer.Prerelease extends java.lang.Object implements Indexable<SemVer.Prerelease.Identifier>, java.lang.Comparable<SemVer.Prerelease>
This is the prerelease part of a semantic version.
| Modifier and Type | Class and Description |
|---|---|
static class |
SemVer.Prerelease.AlphanumericIdentifier
Alphanumeric identifier.
|
static interface |
SemVer.Prerelease.Identifier
Identifier.
|
static class |
SemVer.Prerelease.NumericIdentifier
Numeric identifier.
|
Indexable.Base<TT>, Indexable.IndexableSpliterator<TElem>, Indexable.ListView<T>| Modifier and Type | Field and Description |
|---|---|
static SemVer.Prerelease |
ALPHA
Alpha prerelease.
|
static SemVer.Prerelease |
BETA
Beta prerelease.
|
static SemVer.Prerelease |
RC
Release candidate prerelease.
|
EMPTY, EMPTY_INDEXABLE_STRING| Constructor and Description |
|---|
Prerelease(SemVer.Prerelease.Identifier ident)
Constructor for a simple one-identifier prerelease.
|
Prerelease(SemVer.Prerelease.Identifier firstIdent,
SemVer.Prerelease.Identifier... moreIdents)
Constructor for a multiple-identifier prerelease.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SemVer.Prerelease o) |
boolean |
equals(java.lang.Object o) |
SemVer.Prerelease.Identifier |
get(int index)
Get the identifier in the given position.
|
int |
hashCode() |
static SemVer.Prerelease |
parse(java.lang.String prereleaseString)
Create a prerelase from its string representation.
|
int |
size()
Get the number of identifiers in this prerelease definition.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaddToArray, addToArray, addToCollection, asBase, asCollection, asList, binarySearch, checkIndex, combine, compare, downCast, emptyIndexable, equal, findAll, findAllX, findFirst, findFirst, findFirst, findFirstX, findLast, findLast, findLast, findNext, findNext, findNext, findNextX, findPrevious, findPrevious, findPrevious, first, firstMatch, firstMatch, firstMatchX, forEachEntry, forEachEntryFragile, fromArray, fromCollection, fromCollection, fromCountable, fromCountable, fromEnumeration, fromEnumeration, fromIterable, fromIterable, fromIterable, fromIterable, fromIterator, fromList, fromOptional, frozenSpliterator, getMod, gyt, hash, headSet, indexedView, indexes, init, initByIndex, initFragile, intIndexes, isEmpty, isOrdered, isStrictlyOrdered, iterator, iterator, last, listIterator, mapArray, optional, ordered, reverse, rotated, singleton, spliterator, subSet, sybSet, tailSet, toString, view, view, viewArray, viewArray, viewAsBooleanIndexable, viewAsByteIndexable, viewAsCharIndexable, viewAsDict, viewAsDoubleIndexable, viewAsFloatIndexable, viewAsIntIndexable, viewAsLongIndexable, viewAsShortIndexable, viewByIndex, viewFragile, viewList, viewList, viewListN, viewListN, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, withAppendedItem, withCachedHash, withExchangedItemAt, withInsertedItemAt, withPrependedItem, withRemovedItemAt, withSwappedItemsAtaddAllTo, combined, combined, containsEq, containsRef, downCast, empty, equal, equals, filtered, filteredToIndexable, filterToCountable, firstOrNull, foldLeft, forEachFragile, freeze, frozen, frozen, getAny, groupingBy, groupingBy, hasAll, hasAny, isSorted, isStrictlySorted, lastOrNull, mappingBy, mappingBy, optFirst, optLast, orderedCombination, parellelStream, sorted, stream, toArray, toArray, toList, toString, uniform, viewCollection, viewCollection, viewCollectionN, viewCollectionNpublic static final SemVer.Prerelease ALPHA
public static final SemVer.Prerelease BETA
public static final SemVer.Prerelease RC
public Prerelease(@NotNull SemVer.Prerelease.Identifier ident)
ident - identifierpublic Prerelease(@NotNull SemVer.Prerelease.Identifier firstIdent, @NotNull SemVer.Prerelease.Identifier... moreIdents)
firstIdent - first identifiermoreIdents - second identifierpublic SemVer.Prerelease.Identifier get(int index)
get in interface Indexable<SemVer.Prerelease.Identifier>index - index between 0 and size() - 1, from most significant to leastpublic int size()
@Nullable public static SemVer.Prerelease parse(@NotNull java.lang.String prereleaseString)
prereleaseString - prerelease stringnull if prereleaseString is not validpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(@NotNull SemVer.Prerelease o)
compareTo in interface java.lang.Comparable<SemVer.Prerelease>@NotNull public java.lang.String toString()
toString in class java.lang.Object