org.modeshape.common.util

## Class ObjectUtil

- java.lang.Object
- - org.modeshape.common.util.ObjectUtil

-     public class ObjectUtil
      extends Object

  Common utility methods for general objects.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ObjectUtil()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `compareNoNulls(Comparable reference1, Comparable reference2)`
    `static int` | `compareWithNulls(Comparable reference1, Comparable reference2)`
    `static <Type> boolean` | `isEqualNoNulls(Type reference1, Type reference2)`
    `static <Type> boolean` | `isEqualWithNulls(Type reference1, Type reference2)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ObjectUtil

          public ObjectUtil()

  - ### Method Detail

    - #### isEqualNoNulls

          public static <Type> boolean isEqualNoNulls(Type reference1,
                                      Type reference2)

    - #### isEqualWithNulls

          public static <Type> boolean isEqualWithNulls(Type reference1,
                                        Type reference2)

    - #### compareNoNulls

          public static int compareNoNulls(Comparable reference1,
                           Comparable reference2)

    - #### compareWithNulls

          public static int compareWithNulls(Comparable reference1,
                             Comparable reference2)

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.