org.fusesource.insight.log.support
Class Objects

java.lang.Object
  extended by org.fusesource.insight.log.support.Objects

public class Objects
extends java.lang.Object


Constructor Summary
Objects()
           
 
Method Summary
static int compare(java.lang.Object a, java.lang.Object b)
          A helper method for performing an ordered comparison on the objects handling nulls and objects which do not handle sorting gracefully
static boolean equal(java.lang.Object a, java.lang.Object b)
          A helper method for comparing objects for equality while handling nulls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Objects

public Objects()
Method Detail

equal

public static boolean equal(java.lang.Object a,
                            java.lang.Object b)
A helper method for comparing objects for equality while handling nulls


compare

public static int compare(java.lang.Object a,
                          java.lang.Object b)
A helper method for performing an ordered comparison on the objects handling nulls and objects which do not handle sorting gracefully

Parameters:
a - the first object
b - the second object
ignoreCase - ignore case for string comparison


Copyright © 2013 Red Hat. All Rights Reserved.