public class VersionInfo extends Object implements Comparable<VersionInfo>, Serializable
Constructor and Description |
---|
VersionInfo(String title,
String vendorId,
String version,
String revision,
String timestamp)
Constructs a new
VersionInfo instance. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VersionInfo obj) |
boolean |
equals(Object obj) |
String |
getDate() |
String |
getFullVersion() |
String |
getRevision() |
String |
getTimestamp() |
String |
getTitle() |
String |
getVendorId() |
String |
getVersion() |
int |
hashCode() |
boolean |
matches(VersionInfo filter)
Determines whether this
VersionInfo instance matches the specified filter. |
void |
setRevision(String revision) |
void |
setTimestamp(String timestamp) |
String |
toString() |
public VersionInfo(@Nullable String title, @Nullable String vendorId, @Nullable String version, @Nullable String revision, @Nullable String timestamp)
VersionInfo
instance.title
- the implementation titlevendorId
- the implementation vendor identifierversion
- the implementation versionrevision
- the implementation versiontimestamp
- the implementation timestamppublic String getTitle()
public String getVendorId()
public String getVersion()
public String getRevision()
public String getTimestamp()
public String getFullVersion()
public String getDate()
public boolean matches(@Nullable VersionInfo filter) throws PatternSyntaxException
VersionInfo
instance matches the specified filter.
The filter is also an instance of VersionInfo
, but its fields are expected
to contain regular expressions instead of plain values.
If the filter is null
, then this method returns true
.
If a field in the filter is set to null
, then all values are allowed.
filter
- the filter to use for pattern matchingPatternSyntaxException
- if the filter contains an invalid regular expressionpublic int compareTo(VersionInfo obj)
compareTo
in interface Comparable<VersionInfo>
public void setRevision(String revision)
public void setTimestamp(String timestamp)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.