org.elastos.hive.endpoint.NodeVersion Maven / Gradle / Ivy
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