org.apache.commons.httpclient.util

Class LangUtils

public class LangUtils extends Object

A set of utility methods to help produce consistent Object#equals(Object) and Object#hashCode methods.

Since: 3.0

Author: Oleg Kalnichevski

Field Summary
static intHASH_OFFSET
static intHASH_SEED
Method Summary
static booleanequals(Object obj1, Object obj2)
static inthashCode(int seed, int hashcode)
static inthashCode(int seed, Object obj)
static inthashCode(int seed, boolean b)

Field Detail

HASH_OFFSET

public static final int HASH_OFFSET

HASH_SEED

public static final int HASH_SEED

Method Detail

equals

public static boolean equals(Object obj1, Object obj2)

hashCode

public static int hashCode(int seed, int hashcode)

hashCode

public static int hashCode(int seed, Object obj)

hashCode

public static int hashCode(int seed, boolean b)
Copyright (c) 1999-2005 - Apache Software Foundation