The home of utility methods that don't quite fit anywhere else.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1203 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// $Id: ObjectUtil.java,v 1.1 2003/08/18 21:53:59 ray Exp $
|
||||
|
||||
package com.samskivert.util;
|
||||
|
||||
/**
|
||||
* Utility methods that don't fit anywhere else.
|
||||
*/
|
||||
public class ObjectUtil
|
||||
{
|
||||
/**
|
||||
* Test two objects for equality safely.
|
||||
*/
|
||||
public static boolean equals (Object o1, Object o2)
|
||||
{
|
||||
return (o1 == null) ? (o2 == null) : o1.equals(o2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user