hudson.scm
Class ChangeLogSet<T extends ChangeLogSet.Entry>

java.lang.Object
  extended by hudson.scm.ChangeLogSet<T>
All Implemented Interfaces:
Iterable<T>
Direct Known Subclasses:
ExtractChangeLogSet, FakeChangeLogSCM.FakeChangeLogSet, FilteredChangeLogSet

@ExportedBean(defaultVisibility=999)
public abstract class ChangeLogSet<T extends ChangeLogSet.Entry>
extends Object
implements Iterable<T>

Represents SCM change list.

Use the "index" view of this object to render the changeset detail page, and use the "digest" view of this object to render the summary page. For the change list at project level, see SCM.

Iterator is expected to return recent changes first.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static interface ChangeLogSet.AffectedFile
          Represents a file change.
static class ChangeLogSet.Entry
           
 
Field Summary
 AbstractBuild<?,?> build
          AbstractBuild whose change log this object represents.
 
Constructor Summary
protected ChangeLogSet(AbstractBuild<?,?> build)
           
 
Method Summary
static ChangeLogSet<? extends ChangeLogSet.Entry> createEmpty(AbstractBuild build)
          Constant instance that represents no changes.
 Object[] getItems()
          All changes in this change set.
 String getKind()
          Optional identification of the kind of SCM being used.
abstract  boolean isEmptySet()
          Returns true if there's no change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Iterable
iterator
 

Field Detail

build

public final AbstractBuild<?,?> build
AbstractBuild whose change log this object represents.

Constructor Detail

ChangeLogSet

protected ChangeLogSet(AbstractBuild<?,?> build)
Method Detail

isEmptySet

public abstract boolean isEmptySet()
Returns true if there's no change.


getItems

@Exported
public final Object[] getItems()
All changes in this change set.


getKind

@Exported
public String getKind()
Optional identification of the kind of SCM being used.

Returns:
a short token, such as the SCM's main CLI executable name
Since:
1.284

createEmpty

public static ChangeLogSet<? extends ChangeLogSet.Entry> createEmpty(AbstractBuild build)
Constant instance that represents no changes.



Copyright © 2004-2013. All Rights Reserved.