Class Versioned.Version
java.lang.Object
org.springframework.vault.support.Versioned.Version
Value object representing a Vault version.
Versions greater zero point to a specific secret version whereas version number
zero points to a placeholder whose meaning is tied to a specific operation. Version
number zero can mean first created version, latest version.
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static Versioned.Version
from
(int versionNumber) Create aVersioned.Version
given aversionNumber
.int
int
hashCode()
boolean
toString()
static Versioned.Version
-
Method Details
-
unversioned
- Returns:
- the unversioned
Versioned.Version
as placeholder for specific operations that require version number zero.
-
from
Create aVersioned.Version
given aversionNumber
.- Parameters:
versionNumber
- the version number.- Returns:
- the
Versioned.Version
forversionNumber
.
-
isVersioned
public boolean isVersioned()- Returns:
- true if this
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.
-
getVersion
public int getVersion()- Returns:
- the version number.
-
equals
-
hashCode
public int hashCode() -
toString
-