public boolean equals()

in modules/vfs-class-loader/src/main/java/org/apache/accumulo/classloader/vfs/AccumuloVFSClassLoader.java [734:755]


  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    AccumuloVFSClassLoader other = (AccumuloVFSClassLoader) obj;
    if (name == null) {
      if (other.name != null)
        return false;
    } else if (!name.equals(other.name))
      return false;
    var parent = getParent();
    var otherParent = other.getParent();
    if (parent == null) {
      if (otherParent != null)
        return false;
    } else if (!parent.getName().equals(otherParent.getName()))
      return false;
    return true;
  }