Package hudson.scm
Class ChangeLogSet<T extends ChangeLogSet.Entry>
- java.lang.Object
-
- hudson.scm.ChangeLogSet<T>
-
- All Implemented Interfaces:
Iterable<T>
@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 newer changes first then older changes later.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ChangeLogSet.AffectedFile
Represents a file change.static class
ChangeLogSet.Entry
-
Field Summary
Fields Modifier and Type Field Description AbstractBuild<?,?>
build
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChangeLogSet(AbstractBuild<?,?> build)
Deprecated.protected
ChangeLogSet(Run<?,?> run, RepositoryBrowser<?> browser)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ChangeLogSet<? extends ChangeLogSet.Entry>
createEmpty(AbstractBuild build)
Deprecated.static ChangeLogSet<? extends ChangeLogSet.Entry>
createEmpty(Run build)
Constant instance that represents no changes.RepositoryBrowser<?>
getBrowser()
Object[]
getItems()
All changes in this change set.String
getKind()
Optional identification of the kind of SCM being used.Run<?,?>
getRun()
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
forEach, iterator, spliterator
-
-
-
-
Field Detail
-
build
@Deprecated public final AbstractBuild<?,?> build
Deprecated.
-
-
Constructor Detail
-
ChangeLogSet
protected ChangeLogSet(Run<?,?> run, RepositoryBrowser<?> browser)
- Since:
- 1.568
-
ChangeLogSet
@Deprecated protected ChangeLogSet(AbstractBuild<?,?> build)
Deprecated.
-
-
Method Detail
-
getRun
public Run<?,?> getRun()
- Since:
- 1.568
-
getBrowser
public RepositoryBrowser<?> getBrowser()
- Since:
- 1.568
-
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(Run build)
Constant instance that represents no changes.- Since:
- 1.568
-
createEmpty
@Deprecated public static ChangeLogSet<? extends ChangeLogSet.Entry> createEmpty(AbstractBuild build)
Deprecated.
-
-