# DeviceVersion

public final class DeviceVersion

Class to describe Nix device revisions

## Constructors

DeviceVersion
Link copied to clipboard
public DeviceVersion DeviceVersion(String string)

## Types

Companion
Link copied to clipboard
public class Companion

## Properties

Companion
Link copied to clipboard
public final static DeviceVersion.Companion Companion
major
Link copied to clipboard
private final Integer major

Major revision number

minor
Link copied to clipboard
private final Integer minor

Minor revision number

patch
Link copied to clipboard
private final Integer patch

Patch revision number

prefix
Link copied to clipboard
private final String prefix

Single character prefix for this version. Expected values are 'F' for firmware version, 'H' for hardware version, 'S' for software version.

PREFIX_ERROR
Link copied to clipboard
public final static String PREFIX_ERROR
string
Link copied to clipboard
private final String string

String value for this version

VERSION_ERROR
Link copied to clipboard
public final static Integer VERSION_ERROR

## Functions

getMajor
Link copied to clipboard
public final Integer getMajor()

Major revision number

getMinor
Link copied to clipboard
public final Integer getMinor()

Minor revision number

getPatch
Link copied to clipboard
public final Integer getPatch()

Patch revision number

getPrefix
Link copied to clipboard
public final String getPrefix()

Single character prefix for this version. Expected values are 'F' for firmware version, 'H' for hardware version, 'S' for software version.

getString
Link copied to clipboard
public final String getString()

String value for this version

toString
Link copied to clipboard
public String toString()

Version information formatted as a string, or empty if unavailable.