org.jfree.graphics2d
Class ObjectUtils

java.lang.Object
  extended by org.jfree.graphics2d.ObjectUtils

public final class ObjectUtils
extends Object

Provides a couple of static utility methods used throughout JFreeSVG.


Method Summary
static boolean equals(Object obj1, Object obj2)
          Returns true if the objects are equal or both null, and false otherwise.
static int hashCode(Object obj)
          Returns the hash code for the object, or 0 if the object is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 methods in the Objects class instead, but for now JFreeSVG is supporting Java 6 and above.

Parameters:
obj1 - object 1 (null permitted).
obj2 - object 2 (null permitted).
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 methods in the Objects class instead, but for now JFreeSVG is supporting Java 6 and above.

Parameters:
obj - the object (null permitted).
Returns:
The hash code or 0.


Copyright © 2015. All rights reserved.