All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.elastos.hive.endpoint.NodeVersion Maven / Gradle / Ivy

There is a newer version: 2.0.27-pre
Show newest version
package org.elastos.hive.endpoint;

import com.google.gson.annotations.SerializedName;

/**
 * The version of the hive node is returned by {@link AboutController#getNodeVersion()}
 */
public class NodeVersion {
	@SerializedName("major")
	long major;

	@SerializedName("minor")
	long minor;

	@SerializedName("patch")
	long patch;

	public long major() {
		return major;
	}

	public long minor() {
		return minor;
	}

	public long patch() {
		return patch;
	}

	@Override
	public String toString() {
		return String.format("%d.%d.%d", major, minor, patch);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy