/** * equality. Two DocumentDescriptor instances are equal if they * have equal paths and names * * @param o the object we're checking equality for * * @return true if the object is equal to this object */ public boolean equals(final Object o) { boolean rval = false; if ((o != null) && (o.getClass() == this.getClass())) { if (this == o) { rval = true; } else { DocumentDescriptor descriptor = ( DocumentDescriptor ) o; rval = this.path.equals(descriptor.path) && this.name.equals(descriptor.name); } } return rval; }
/** * equality. Two DocumentDescriptor instances are equal if they * have equal paths and names * * @param o the object we're checking equality for * * @return true if the object is equal to this object */ public boolean equals(final Object o) { boolean rval = false; if ((o != null) && (o.getClass() == this.getClass())) { if (this == o) { rval = true; } else { DocumentDescriptor descriptor = ( DocumentDescriptor ) o; rval = this.path.equals(descriptor.path) && this.name.equals(descriptor.name); } } return rval; }
/** * equality. Two DocumentDescriptor instances are equal if they * have equal paths and names * * @param o the object we're checking equality for * * @return true if the object is equal to this object */ public boolean equals(final Object o) { boolean rval = false; if ((o != null) && (o.getClass() == this.getClass())) { if (this == o) { rval = true; } else { DocumentDescriptor descriptor = ( DocumentDescriptor ) o; rval = this.path.equals(descriptor.path) && this.name.equals(descriptor.name); } } return rval; }
/** * equality. Two DocumentDescriptor instances are equal if they * have equal paths and names * * @param o the object we're checking equality for * * @return true if the object is equal to this object */ public boolean equals(final Object o) { boolean rval = false; if ((o != null) && (o.getClass() == this.getClass())) { if (this == o) { rval = true; } else { DocumentDescriptor descriptor = ( DocumentDescriptor ) o; rval = this.path.equals(descriptor.path) && this.name.equals(descriptor.name); } } return rval; }