Class CheckedOutDir
- java.lang.Object
-
- jetbrains.buildServer.serverSide.vcs.CheckedOutDir
-
- All Implemented Interfaces:
java.lang.Comparable<CheckedOutDir>
public class CheckedOutDir extends java.lang.Object implements java.lang.Comparable<CheckedOutDir>
Contains information about from what vcs root sources are checking out and where they are checking out to. Do not put this object as key to TreeMap because its equals does not correspond to compareTo method.
-
-
Constructor Summary
Constructors Constructor Description CheckedOutDir(VcsRoot root, IncludeRule rule)
Creates new object
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CheckedOutDir o)
static java.util.List<CheckedOutDir>
createListFor(java.util.List<? extends VcsRootEntry> entries)
Creates list ofCheckedOutDir
objects corresponding to the vcs entries.boolean
equals(java.lang.Object o)
static java.util.List<CheckedOutDir>
findCheckedOutDirsByPath(java.lang.String path, java.util.List<? extends VcsRootEntry> entries)
VcsRoot
getRoot()
Sources location description.IncludeRule
getRule()
Include rule describes what part of the described repository should be checked out and where it should be checked out to.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CheckedOutDir
public CheckedOutDir(VcsRoot root, IncludeRule rule)
Creates new object- Parameters:
root
- vcs settings checked out from.rule
- associated checkout rule.
-
-
Method Detail
-
getRoot
public VcsRoot getRoot()
Sources location description.- Returns:
- vcs root containing vcs settings.
-
getRule
public IncludeRule getRule()
Include rule describes what part of the described repository should be checked out and where it should be checked out to.- Returns:
- description of what part of the described repository should be checked out and where it should be checked out to.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
createListFor
@NotNull public static java.util.List<CheckedOutDir> createListFor(@NotNull java.util.List<? extends VcsRootEntry> entries)
Creates list ofCheckedOutDir
objects corresponding to the vcs entries.- Parameters:
entries
- specified vcs entries.- Returns:
- list of
CheckedOutDir
objects.
-
findCheckedOutDirsByPath
@NotNull public static java.util.List<CheckedOutDir> findCheckedOutDirsByPath(@NotNull java.lang.String path, @NotNull java.util.List<? extends VcsRootEntry> entries)
- Since:
- 8.0
-
compareTo
public int compareTo(CheckedOutDir o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<CheckedOutDir>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-