Class Equality

java.lang.Object
org.eclipse.jgit.util.Equality

public class Equality extends Object
Equality utilities.
Since:
6.2
  • Constructor Details

    • Equality

      public Equality()
  • Method Details

    • isSameInstance

      public static <T> boolean isSameInstance(T a, T b)
      Compare by reference
      Type Parameters:
      T - type of the objects to compare
      Parameters:
      a - First object to compare
      b - Second object to compare
      Returns:
      true if the objects are identical, false otherwise
      Since:
      6.2