Top Description Constructors Methods
org.eclipse.jgit.util

public Class Equality

extends Object
Class Inheritance

Equality utilities.
Since
6.2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <
type of the objects to compare
T
>
boolean

Returns:

true if the objects are identical, false otherwise
isSameInstance
(T
First object to compare
a
,
T
Second object to compare
b
)

Compare by reference

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Equalityback to summary
public Equality()

Method Detail

isSameInstanceback to summary
public static <T> boolean isSameInstance(T a, T b)

Compare by reference

Parameters
<T>
type of the objects to compare
a:T

First object to compare

b:T

Second object to compare

Returns:boolean

true if the objects are identical, false otherwise

Annotations
@SuppressWarnings:ReferenceEquality
Since
6.2