Package net.pms.util

Examples of net.pms.util.Version


  private int totalBytes = -1;
  private boolean downloadCancelled = false;

  public AutoUpdater(String updateServerUrl, String currentVersion) {
    this.serverUrl = updateServerUrl; // may be null if updating is disabled
    this.currentVersion = new Version(currentVersion);
  }
View Full Code Here


    properties.clear();
    properties.loadFromByteArray(data);
  }

  public boolean isStateValid() {
    return getDownloadUrl().length() > 0 && getLatestVersion().isGreaterThan(new Version("0"));
  }
View Full Code Here

  public boolean isStateValid() {
    return getDownloadUrl().length() > 0 && getLatestVersion().isGreaterThan(new Version("0"));
  }

  public Version getLatestVersion() {
    return new Version(getStringWithDefault(KEY_LATEST_VERSION, DEFAULT_LATEST_VERSION));
  }
View Full Code Here

  private int totalBytes = -1;
  private boolean downloadCancelled = false;

  public AutoUpdater(String updateServerUrl, String currentVersion) {
    this.serverUrl = updateServerUrl; // may be null if updating is disabled
    this.currentVersion = new Version(currentVersion);
  }
View Full Code Here

    properties.clear();
    properties.loadFromByteArray(data);
  }

  public boolean isStateValid() {
    return getDownloadUrl().length() > 0 && getLatestVersion().isGreaterThan(new Version("0"));
  }
View Full Code Here

  public boolean isStateValid() {
    return getDownloadUrl().length() > 0 && getLatestVersion().isGreaterThan(new Version("0"));
  }

  public Version getLatestVersion() {
    return new Version(getStringWithDefault(KEY_LATEST_VERSION, DEFAULT_LATEST_VERSION));
  }
View Full Code Here

TOP

Related Classes of net.pms.util.Version

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.