public static class ContentfulUserAgentHeaderInterceptor.Section.Version
extends java.lang.Object
Constructor and Description |
---|
Version(int major,
int minor,
int patch)
Create a release version, omitting stability
|
Version(int major,
int minor,
int patch,
java.lang.String stability)
Create a version including a stability.
|
Modifier and Type | Method and Description |
---|---|
int |
getMajor() |
int |
getMinor() |
int |
getPatch() |
java.lang.String |
getStability() |
static ContentfulUserAgentHeaderInterceptor.Section.Version |
parse(java.lang.String version)
Convert a version into a Semver and Contentful conform version number.
|
java.lang.String |
toString() |
public Version(int major, int minor, int patch)
major
- How many breaking changes did this version release?minor
- How many additional backwards compatible changes were added?patch
- How many bugs were fixed in the release?parse(String)
public Version(int major, int minor, int patch, java.lang.String stability)
major
- How many breaking changes did this version release?minor
- How many additional backwards compatible changes were added?patch
- How many bugs were fixed in the release?stability
- Is this a stable version(null) or is this not (dev, BETA, …)?parse(String)
public static ContentfulUserAgentHeaderInterceptor.Section.Version parse(java.lang.String version)
A valid version string would be one similar to
version
- with 3 numbers for major, minor, patch and stability (dev, BETA3, etc)public int getMajor()
public int getMinor()
public int getPatch()
public java.lang.String getStability()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.