Class ObjectUtils

java.lang.Object
org.jfree.pdf.util.ObjectUtils

public class ObjectUtils extends Object
Some utility methods.
  • Constructor Details

    • ObjectUtils

      private ObjectUtils()
  • Method Details

    • equals

      public static boolean equals(Object obj1, Object obj2)
      Returns true if the objects are equal or both null, and false otherwise. In Java 7, we could use the Objects class instead.
      Parameters:
      obj1 - object 1.
      obj2 - object 2.
      Returns:
      A boolean.
    • hashCode

      public static int hashCode(Object obj)
      Returns the hash code for the object, or 0 if the object is null. In Java 7, we could use the Objects class instead.
      Parameters:
      obj - the object (null permitted).
      Returns:
      The hash code or 0.