public class ReleaseCandidate extends Object implements Comparable<ReleaseCandidate>
Instances are immutable, which makes them thread-safe.
The equals()
and hashCode()
methods have been overridden so that this class
will play nicely with the Collection framework (e.g. using instances as keys in maps).
This class implements the Comparable
interface so instances sort correctly.
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ReleaseCandidate o) |
boolean |
equals(Object o) |
Date |
getBuildDate()
Returns a copy of the date of the build for this release candidate.
|
BuildVersion |
getBuildVersion()
Returns the build version for this release candidate.
|
int |
getNumber()
Returns this release candidate number.
|
int |
hashCode() |
boolean |
isOfficial()
This predicate returns true if this release candidate is the official release.
|
String |
toString() |
static ReleaseCandidate |
valueOf(int candidateNumber,
BuildVersion theBuild,
Date buildDate,
boolean official)
Returns a ReleaseCandidate instance populated with the given parameters.
|
public int getNumber()
public BuildVersion getBuildVersion()
public Date getBuildDate()
public boolean isOfficial()
public int compareTo(ReleaseCandidate o)
compareTo
in interface Comparable<ReleaseCandidate>
public static ReleaseCandidate valueOf(int candidateNumber, BuildVersion theBuild, Date buildDate, boolean official)
candidateNumber
- the release candidate numbertheBuild
- the build version for this candidatebuildDate
- the date of the buildofficial
- whether this candidate is the official releaseCopyright © 2016. All Rights Reserved.