org.apache.geronimo.system.plugin
Class SnapshotVersion
java.lang.Object
org.apache.geronimo.kernel.repository.Version
org.apache.geronimo.system.plugin.SnapshotVersion
- All Implemented Interfaces:
- Serializable, Comparable
public class SnapshotVersion
- extends Version
SnapshotVersion is like Version but holds extra fields that appear in the
filename of a snapshot artifact. The toString() method is not overriden
because the super implementation produces the correct string for navigating
the directory structure of a plugin repository. The extra fields maintained
in this class are needed for constructing the filename portion of a URL for a
snapshot artifact where the qualifier and build number are replaced with a
snapshot timestamp and build number.
- See Also:
- Serialized Form
SnapshotVersion
public SnapshotVersion(Version version)
SnapshotVersion
public SnapshotVersion(String version)
getBuildNumber
public int getBuildNumber()
- Overrides:
getBuildNumber
in class Version
setBuildNumber
public void setBuildNumber(int buildNumber)
getTimestamp
public String getTimestamp()
setTimestamp
public void setTimestamp(String timestamp)
equals
public boolean equals(Object other)
- Overrides:
equals
in class Version
hashCode
public int hashCode()
- Overrides:
hashCode
in class Version
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.