Top Description Methods
org.eclipse.jgit.util

public Interface References


Utility methods for object references
Since
5.4

Method Summary

Modifier and TypeMethod and Description
public static <
type of the references
T
>
boolean

Returns:

true if both references refer to the same object
isSameObject
(T
first reference
ref1
,
T
second reference
ref2
)

Compare two references

Method Detail

isSameObjectback to summary
public static <T> boolean isSameObject(T ref1, T ref2)

Compare two references

Parameters
<T>
type of the references
ref1:T

first reference

ref2:T

second reference

Returns:boolean

true if both references refer to the same object

Annotations
@SuppressWarnings:ReferenceEquality