/** * update this version to the new passed in version * * @return the newly updated version */ public KyloVersion update(KyloVersion v) { setMajorVersion(v.getMajorVersion()); setMinorVersion(v.getMinorVersion()); return this; }
public Version(KyloVersion version) { this(version.getMajorVersion(), version.getMinorVersion(), version.getPointVersion(), version.getTag()); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof KyloVersion)) { return false; } KyloVersion that = (KyloVersion) o; return Objects.equals(this.getMajorVersion(), that.getMajorVersion()) && Objects.equals(this.getMinorVersion(), that.getMinorVersion()) && Objects.equals(this.getPointVersion(), that.getPointVersion()) && Objects.equals(this.getTag(), that.getTag()); }
/** * update this version to the new passed in version * * @return the newly updated version */ public KyloVersion update(KyloVersion v) { setMajorVersion(v.getMajorVersion()); setMinorVersion(v.getMinorVersion()); return this; }
/** * update this version to the new passed in version * * @return the newly updated version */ public KyloVersion update(KyloVersion v) { setMajorVersion(v.getMajorVersion()); setMinorVersion(v.getMinorVersion()); return this; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof KyloVersion)) { return false; } KyloVersion that = (KyloVersion) o; return Objects.equals(this.getMajorVersion(), that.getMajorVersion()) && Objects.equals(this.getMinorVersion(), that.getMinorVersion()) && Objects.equals(this.getPointVersion(), that.getPointVersion()) && Objects.equals(this.getTag(), that.getTag()); }
public Version(KyloVersion version) { this(version.getMajorVersion(), version.getMinorVersion(), version.getPointVersion(), version.getTag()); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof KyloVersion)) { return false; } KyloVersion that = (KyloVersion) o; return Objects.equals(this.getMajorVersion(), that.getMajorVersion()) && Objects.equals(this.getMinorVersion(), that.getMinorVersion()) && Objects.equals(this.getPointVersion(), that.getPointVersion()) && Objects.equals(this.getTag(), that.getTag()); }
@Override public boolean isUpToDate() { KyloVersion buildVer = KyloVersionUtil.getBuildVersion(); KyloVersion currentVer = getCurrentVersion(); return currentVer != null && buildVer.matches(currentVer.getMajorVersion(), currentVer.getMinorVersion(), currentVer.getPointVersion()); }
@Override public void setCurrentVersion(KyloVersion version) { JpaKyloVersion update = new JpaKyloVersion(version.getMajorVersion(), version.getMinorVersion(), version.getPointVersion(), version.getTag()); kyloVersionRepository.save(update); }