sk.uniba.euromath.tools
Class JavaTools

java.lang.Object
  extended by sk.uniba.euromath.tools.JavaTools

public final class JavaTools
extends Object

Contains various tools concerning to Java utilities.

Author:
Martin Vysny

Constructor Summary
JavaTools()
           
 
Method Summary
static boolean equals(Object o1, Object o2)
          Deprecated. superseded by the ObjectUtils class.
static
<T> T
getReferent(Reference<T> reference)
          Returns object referred to by the reference.
static int hashCode(Object o)
          Deprecated. superseded by the ObjectUtils class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaTools

public JavaTools()
Method Detail

equals

@Deprecated
public static boolean equals(Object o1,
                                        Object o2)
Deprecated. superseded by the ObjectUtils class.

Calls o1.equals to check if o1 is equal to o2. If o1 is null then returns true if and only if o2 is null.

Parameters:
o1 - first object
o2 - second object
Returns:
true if objects are equal or both null.

hashCode

@Deprecated
public static int hashCode(Object o)
Deprecated. superseded by the ObjectUtils class.

Calls o.hashCode() and returns it.

Parameters:
o - object
Returns:
o.hashCode() or 0 if o is null.

getReferent

public static <T> T getReferent(Reference<T> reference)
Returns object referred to by the reference.

Type Parameters:
T - the referent type.
Parameters:
reference - the reference. May be null.
Returns:
the referent or null if there is no referent available.


Copyright © 2003-2006 null. All Rights Reserved.