move compare method to AbstractBean
[jSite2.git] / src / net / pterodactylus / util / beans / Comparer.java
diff --git a/src/net/pterodactylus/util/beans/Comparer.java b/src/net/pterodactylus/util/beans/Comparer.java
deleted file mode 100644 (file)
index 68c5264..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * jSite2 - StringComparer.java
- * Copyright © 2008 David Roden
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-package net.pterodactylus.util.beans;
-
-/**
- * Compares different objects. Can be used to detect change in property values.
- * 
- * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
- */
-public class Comparer {
-
-       /**
-        * Compares the two objects and returns whether they are equal according to
-        * {@link Object#equals(Object)}. This method takes <code>null</code>
-        * into account as a valid value for an object.
-        * 
-        * @param first
-        *            The first object
-        * @param second
-        *            The second object
-        * @return <code>true</code> if the two objects are equal,
-        *         <code>false</code> otherwise
-        */
-       public static boolean equal(Object first, Object second) {
-               return ((first == null) && (second == null)) || ((first != null) && first.equals(second)) || ((second != null) && second.equals(first));
-       }
-
-}