Class RevisionRange

    • Constructor Detail

      • RevisionRange

        protected RevisionRange​(long from,
                                long to,
                                boolean inheritable)
        Creates a new instance. Called by native library.
      • RevisionRange

        public RevisionRange​(Revision from,
                             Revision to,
                             boolean inheritable)
        Since:
        1.9
      • RevisionRange

        public RevisionRange​(String revisionElement)
        Accepts a string in one of these forms: n m-n Parses the results into a from and to revision
        Parameters:
        revisionElement - revision range or single revision
    • Method Detail

      • getFromRevision

        public Revision getFromRevision()
      • getToRevision

        public Revision getToRevision()
      • isInheritable

        public boolean isInheritable()
      • getRevisionAsLong

        public static Long getRevisionAsLong​(Revision rev)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object range)
        Overrides:
        equals in class Object
        Parameters:
        range - The RevisionRange to compare this object to.
      • compareTo

        public int compareTo​(RevisionRange range)
        Note: Explicitly ignores inheritable state.
        Specified by:
        compareTo in interface Comparable<RevisionRange>
        Parameters:
        range - The RevisionRange to compare this object to.