Class FirmwareVersion

  • java.lang.Object
    • com.zentri.zentri_ble_ota.FirmwareVersion

public class FirmwareVersion
extends java.lang.Object

Constructor Summary

Constructor and Description
FirmwareVersion(java.nio.ByteBuffer fileData) 
FirmwareVersion(int major, int minor, int patch, int rc) 
FirmwareVersion(java.lang.String version) 

Method Summary

Modifier and Type Method and Description
boolean isEqualTo(FirmwareVersion version)
Compare versions to check if update required
boolean isLessThan(FirmwareVersion version)
Compare versions to check if update required
java.lang.String toString() 
  • Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

  • FirmwareVersion

    public FirmwareVersion(int major,
                   int minor,
                   int patch,
                   int rc)
  • FirmwareVersion

    public FirmwareVersion(java.lang.String version)
  • FirmwareVersion

    public FirmwareVersion(java.nio.ByteBuffer fileData)

Method Detail

  • isEqualTo

    public boolean isEqualTo(FirmwareVersion version)
    Compare versions to check if update required
    Parameters:
    version - Version to compare this instance to
    Returns:
    true if versions equal
  • isLessThan

    public boolean isLessThan(FirmwareVersion version)
    Compare versions to check if update required
    Parameters:
    version - version to compare this instance to.
    Returns:
    true if this version is less than given version
  • toString

    public java.lang.String toString()
    Overrides:
    toString in class java.lang.Object