Interface LenientEquals<T>

All Known Implementing Classes:
Address, Collection, Comment, Contact, Contact, Dataset, DescriptorGroup, Endpoint, Identifier, Installation, Institution, MachineTag, Metadata, Network, Node, OccurrenceMapping, Organization, PipelineStep, Tag

public interface LenientEquals<T>
An interface to allow model objects to offer a consistent lenient equality check. Implementations are free to declare what this means in the specific context, but it is expected that this be used to imply a business logic unique. For example, contact details that are not yet persisted might be equal to a persisted contact in every way except that the server controlled fields of key, createdDate, modifiedDate etc are not yet present.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Leniently tests if the objects are the same.
  • Method Details

    • lenientEquals

      boolean lenientEquals(T other)
      Leniently tests if the objects are the same. Implementors should declare what this means in practice.
      Parameters:
      other - To compare against
      Returns:
      true if...