/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (o instanceof RepoProject) { RepoProject that = (RepoProject) o; return this.getPathWithSlash().equals(that.getPathWithSlash()); } return false; }
/** {@inheritDoc} */ @Override public int compareTo(RepoProject that) { return this.getPathWithSlash().compareTo(that.getPathWithSlash()); } }
/** * Check if this sub repo is an ancestor of the given path. * * @param thatPath * path to be checked to see if it is within this repository * @return true if this sub repo is an ancestor of the given path. * @since 4.2 */ public boolean isAncestorOf(String thatPath) { return thatPath.startsWith(getPathWithSlash()); }
/** {@inheritDoc} */ @Override public int hashCode() { return this.getPathWithSlash().hashCode(); }
/** * Check if this sub repo is the ancestor of given sub repo. * * @param that * non null * @return true if this sub repo is the ancestor of given sub repo. */ public boolean isAncestorOf(RepoProject that) { return isAncestorOf(that.getPathWithSlash()); }
@Override public boolean equals(Object o) { if (o instanceof RepoProject) { RepoProject that = (RepoProject) o; return this.getPathWithSlash().equals(that.getPathWithSlash()); } return false; }
/** {@inheritDoc} */ @Override public int compareTo(RepoProject that) { return this.getPathWithSlash().compareTo(that.getPathWithSlash()); } }
@Override public int compareTo(RepoProject that) { return this.getPathWithSlash().compareTo(that.getPathWithSlash()); } }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (o instanceof RepoProject) { RepoProject that = (RepoProject) o; return this.getPathWithSlash().equals(that.getPathWithSlash()); } return false; }
/** * Check if this sub repo is an ancestor of the given path. * * @param thatPath * path to be checked to see if it is within this repository * @return true if this sub repo is an ancestor of the given path. * @since 4.2 */ public boolean isAncestorOf(String thatPath) { return thatPath.startsWith(getPathWithSlash()); }
/** * Check if this sub repo is an ancestor of the given path. * * @param thatPath * path to be checked to see if it is within this repository * @return true if this sub repo is an ancestor of the given path. * @since 4.2 */ public boolean isAncestorOf(String thatPath) { return thatPath.startsWith(getPathWithSlash()); }
/** {@inheritDoc} */ @Override public int hashCode() { return this.getPathWithSlash().hashCode(); }
@Override public int hashCode() { return this.getPathWithSlash().hashCode(); }
/** * Check if this sub repo is the ancestor of given sub repo. * * @param that * non null * @return true if this sub repo is the ancestor of given sub repo. */ public boolean isAncestorOf(RepoProject that) { return isAncestorOf(that.getPathWithSlash()); }
/** * Check if this sub repo is the ancestor of given sub repo. * * @param that * non null * @return true if this sub repo is the ancestor of given sub repo. */ public boolean isAncestorOf(RepoProject that) { return isAncestorOf(that.getPathWithSlash()); }