@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CapabilityRegistration that = (CapabilityRegistration) o; return id.equals(that.id); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CapabilityRegistration that = (CapabilityRegistration) o; return id.equals(that.id); }
@Override public final boolean equals(Object o) { if (this == o) { return true; } if (o == null || !getClass().isAssignableFrom(o.getClass())) { return false; } RequirementRegistration that = (RequirementRegistration) o; return dependentId.equals(that.dependentId) && requiredName.equals(that.requiredName); }
@Override public final boolean equals(Object o) { if (this == o) { return true; } if (o == null || !getClass().isAssignableFrom(o.getClass())) { return false; } RequirementRegistration that = (RequirementRegistration) o; return dependentId.equals(that.dependentId) && requiredName.equals(that.requiredName); }
@Override public int compareTo(CapabilityId o) { if (equals(o)) { return 0; } int result = scope.getName().compareTo(o.scope.getName()); return result != 0 ? result : name.compareTo(o.name); } }
@Override public int compareTo(CapabilityId o) { if (equals(o)) { return 0; } int result = scope.getName().compareTo(o.scope.getName()); return result != 0 ? result : name.compareTo(o.name); } }