Methods Summary |
---|
public static boolean | equals(java.lang.Object s1, java.lang.Object s2)
boolean equals = false;
if ( s1 == s2 )
{
equals = true;
}
else if ( s1 != null )
{
equals = s1.equals( s2 );
}
else
{
// s1 is null and s2 isn't
equals = false;
}
return equals;
|
public static int | hashCode(boolean value)
return value ? 1 : 0;
|
public static int | hashCode(java.lang.Object items)
int result = 0;
for( final Object item : items )
{
result ^= hashCode( item );
}
return result;
|
public static int | hashCode(java.lang.Object o)
return o == null ? 0 : o.hashCode();
|
public static int | hashCode(long value)
return (int)value ^ (int)(value >> 32);
|
public static int | hashCode(double value)
return new Double( value ).hashCode();
|