de.speexx.util
Class EqualsUtil

java.lang.Object
  extended by de.speexx.util.EqualsUtil

public final class EqualsUtil
extends Object

Simple utilityclass for Object.equals(java.lang.Object) handling.

© Copyright 2006 Sascha Kohlmann under the terms of the GNU LGPL

Since:
2.1
Author:
Sascha Kohlmann
See Also:
HashUtil

Constructor Summary
EqualsUtil()
           
 
Method Summary
static boolean isEquals(boolean own, boolean other)
          Equals two boolean objects.
static boolean isEquals(byte own, byte other)
          Equals two byte objects.
static boolean isEquals(char own, char other)
          Equals two char objects.
static boolean isEquals(double own, double other)
          Equals two float objects.
static boolean isEquals(float own, float other)
          Equals two float objects.
static boolean isEquals(int own, int other)
          Equals two int objects.
static boolean isEquals(long own, long other)
          Equals two long objects.
static boolean isEquals(Object own, Object other)
          Equals two Objects wich may possible null.
static boolean isEquals(short own, short other)
          Equals two short objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqualsUtil

public EqualsUtil()
Method Detail

isEquals

public static boolean isEquals(boolean own,
                               boolean other)
Equals two boolean objects.

Parameters:
own - the own object
other - the other object
Returns:
true if both are equals. Otherwise false.

isEquals

public static boolean isEquals(char own,
                               char other)
Equals two char objects.

Parameters:
own - the own object
other - the other object
Returns:
true if both are equals. Otherwise false.

isEquals

public static boolean isEquals(byte own,
                               byte other)
Equals two byte objects.

Parameters:
own - the own object
other - the other object
Returns:
true if both are equals. Otherwise false.

isEquals

public static boolean isEquals(short own,
                               short other)
Equals two short objects.

Parameters:
own - the own object
other - the other object
Returns:
true if both are equals. Otherwise false.

isEquals

public static boolean isEquals(int own,
                               int other)
Equals two int objects.

Parameters:
own - the own object
other - the other object
Returns:
true if both are equals. Otherwise false.

isEquals

public static boolean isEquals(long own,
                               long other)
Equals two long objects.

Parameters:
own - the own object
other - the other object
Returns:
true if both are equals. Otherwise false.

isEquals

public static boolean isEquals(float own,
                               float other)
Equals two float objects.

Parameters:
own - the own object
other - the other object
Returns:
true if both are equals. Otherwise false.

isEquals

public static boolean isEquals(double own,
                               double other)
Equals two float objects.

Parameters:
own - the own object
other - the other object
Returns:
true if both are equals. Otherwise false.

isEquals

public static boolean isEquals(Object own,
                               Object other)
Equals two Objects wich may possible null. The implementation dows'nt equals arrays. Use Arrays for equals test of arrays.

Parameters:
own - the own object
other - the other object
Returns:
true if both are equals. Otherwise false.


Copyright © 2000-2006 SpeexX. All Rights Reserved.