org.sonar.batch.components
Class PastSnapshot
java.lang.Object
org.sonar.batch.components.PastSnapshot
public class PastSnapshot
- extends Object
PastSnapshot
public PastSnapshot(String mode,
@Nullable
Date targetDate,
@Nullable
Snapshot projectSnapshot)
PastSnapshot
public PastSnapshot(String mode,
@Nullable
Date targetDate)
PastSnapshot
public PastSnapshot(String mode)
- See SONAR-2428 : even if previous analysis does not exist (no snapshot and no target date), we should perform comparison.
setIndex
public PastSnapshot setIndex(int index)
getIndex
public int getIndex()
isRelatedToSnapshot
public boolean isRelatedToSnapshot()
getProjectSnapshot
public Snapshot getProjectSnapshot()
getDate
public Date getDate()
setMode
public PastSnapshot setMode(String mode)
getMode
public String getMode()
getModeParameter
public String getModeParameter()
setModeParameter
public PastSnapshot setModeParameter(String s)
getQualifier
public String getQualifier()
getTargetDate
@Deprecated
public Date getTargetDate()
- Deprecated. in 4.2. Target date should only be used in labels.
clonePastSnapshot
public PastSnapshot clonePastSnapshot()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009–2015 SonarSource. All rights reserved.