Class Identifiables

java.lang.Object
com.flowingcode.backendcore.model.Identifiables

public class Identifiables extends Object
Utility methods for Identifiable objects.
Author:
Javier Godoy / Flowing Code
  • Constructor Details

    • Identifiables

      public Identifiables()
  • Method Details

    • hashCode

      public static <K> int hashCode(Identifiable<K> o)
      Return the hash code of an Identifiable
    • equals

      public static boolean equals(Identifiable<?> a, Object b)
      Compare two Identifiable objects for equality. The result is true iff:
      • Both arguments are instances of the same class, and
        • Either both arguments refer to the same object (a==b), or they both have non-null id such that a.id is equal to b.id.
    • toString

      public static String toString(Identifiable<?> obj)
      Return a string representation of the Identifiable.