public class

HelixVersion

extends Object
java.lang.Object
   ↳ org.apache.helix.api.HelixVersion

Class Overview

Helix version (e.g. 0.6.1.5)

Summary

Public Constructors
HelixVersion(String version)
Construct with a version string (e.g.
Public Methods
static HelixVersion from(String version)
Create a version from a version string
String getMajor()
Get major version (e.g.
String getMinor()
Get minor version (e.g.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HelixVersion (String version)

Construct with a version string (e.g. 0.6.1.5)

Public Methods

public static HelixVersion from (String version)

Create a version from a version string

Parameters
version string in the form of a.b.c.d
Returns
  • HelixVersion

public String getMajor ()

Get major version (e.g. 6 in 0.6.1.5)

Returns
  • major version number

public String getMinor ()

Get minor version (e.g. 1 in 0.6.1.5)

Returns
  • minor version number

public String toString ()