java.lang.Object
org.apache.maven.artifact.repository.metadata.Snapshot
All Implemented Interfaces:
Serializable, Cloneable

public class Snapshot extends Object implements Serializable, Cloneable
Snapshot data for the current artifact version.
Version:
$Revision$ $Date$
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
    The incremental build number.
    private boolean
    Whether to use a local copy instead (with filename that includes the base version).
    private String
    The time it was deployed.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Method clone.
    int
    Get the incremental build number.
    Get the time it was deployed.
    boolean
    Get whether to use a local copy instead (with filename that includes the base version).
    void
    setBuildNumber(int buildNumber)
    Set the incremental build number.
    void
    setLocalCopy(boolean localCopy)
    Set whether to use a local copy instead (with filename that includes the base version).
    void
    setTimestamp(String timestamp)
    Set the time it was deployed.

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • timestamp

      private String timestamp
      The time it was deployed.
    • buildNumber

      private int buildNumber
      The incremental build number.
    • localCopy

      private boolean localCopy
      Whether to use a local copy instead (with filename that includes the base version).
  • Constructor Details

    • Snapshot

      public Snapshot()
  • Method Details

    • clone

      public Snapshot clone()
      Method clone.
      Overrides:
      clone in class Object
      Returns:
      Snapshot
    • getBuildNumber

      public int getBuildNumber()
      Get the incremental build number.
      Returns:
      int
    • getTimestamp

      public String getTimestamp()
      Get the time it was deployed.
      Returns:
      String
    • isLocalCopy

      public boolean isLocalCopy()
      Get whether to use a local copy instead (with filename that includes the base version).
      Returns:
      boolean
    • setBuildNumber

      public void setBuildNumber(int buildNumber)
      Set the incremental build number.
      Parameters:
      buildNumber -
    • setLocalCopy

      public void setLocalCopy(boolean localCopy)
      Set whether to use a local copy instead (with filename that includes the base version).
      Parameters:
      localCopy -
    • setTimestamp

      public void setTimestamp(String timestamp)
      Set the time it was deployed.
      Parameters:
      timestamp -