001         package com.croftsoft.core.lang;
002    
003         /*********************************************************************
004         * A collection of static methods to manipulate java.lang.Object.
005         * 
006         * @version
007         *   2002-02-06
008         * @since
009         *   2001-03-23
010         * @author
011         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
012         *********************************************************************/
013    
014         public final class  ObjectLib
015         //////////////////////////////////////////////////////////////////////
016         //////////////////////////////////////////////////////////////////////
017         {
018    
019         public static final Object [ ]  EMPTY_OBJECT_ARRAY
020           = new Object [ ] { };
021    
022         /*********************************************************************
023         * Determines if the objects are equal or are both null.
024         *
025         * @return
026         *   object1 == null ? object2 == null : object1.equals ( object2 );
027         *********************************************************************/
028         public static boolean  equivalent (
029           Object  object1,
030           Object  object2 )
031         //////////////////////////////////////////////////////////////////////
032         {
033           return
034             object1 == null ? object2 == null : object1.equals ( object2 );
035         }
036    
037         //////////////////////////////////////////////////////////////////////
038         //////////////////////////////////////////////////////////////////////
039    
040         private  ObjectLib ( ) { }
041    
042         //////////////////////////////////////////////////////////////////////
043         //////////////////////////////////////////////////////////////////////
044         }