Class 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 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • createListFor

        @NotNull
        public static java.util.List<CheckedOutDir> createListFor​(@NotNull
                                                                  java.util.List<? extends VcsRootEntry> entries)
        Creates list of CheckedOutDir 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 interface java.lang.Comparable<CheckedOutDir>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object