forked from mvolkmann/mvolkmann.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObjectUtil.java.html
More file actions
30 lines (26 loc) · 831 Bytes
/
Copy pathObjectUtil.java.html
File metadata and controls
30 lines (26 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR.html1/DTD.html1-transitional.dtd">
<html xmlns="http://www.w3.org/1999.html">
<head>
<title>ObjectUtil.java</title>
<link rel="stylesheet" type="text/css" href="../../common.css"/>
</head>
<body>
<h2>ObjectUtil.java</h2>
<pre><div class="code">package com.ociweb.lang;
public class ObjectUtil {
/**
* This compares two object references and works
* regardless of whether one or both are null.
*/
public static boolean equals(Object o1, Object o2) {
return o1 == null ? o2 == null : o1.equals(o2);
}
}</div></pre>
<hr/>
<p style="text-align:center">
Copyright © 2007 Object Computing, Inc. All rights reserved.
</p>
</body>
</html>