public static class Versioned.Version extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Versioned.Version |
from(int versionNumber)
Create a
Versioned.Version given a versionNumber . |
int |
getVersion() |
int |
hashCode() |
boolean |
isVersioned() |
String |
toString() |
static Versioned.Version |
unversioned() |
public static Versioned.Version unversioned()
Versioned.Version
as placeholder for specific operations
that require version number zero.public static Versioned.Version from(int versionNumber)
Versioned.Version
given a versionNumber
.versionNumber
- the version number.Versioned.Version
for versionNumber
.public boolean isVersioned()
Versioned.Version
points to a valid version
number, false otherwise.
Version numbers that are equal zero are placeholders to denote unversioned or
latest versions in the context of particular versioning operations.public int getVersion()
Copyright © 2016–2021 Pivotal Software, Inc.. All rights reserved.