Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.httpclient.util
Class LangUtils

    java.lang.Object
      org.apache.commons.httpclient.util.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 int` | `HASH_OFFSET`
`static int` | `HASH_SEED`

Method Summary
`static boolean` | `equals(Object obj1, Object obj2)`
`static int` | `hashCode(int seed, boolean b)`
`static int` | `hashCode(int seed, int hashcode)`
`static int` | `hashCode(int seed, Object obj)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### HASH_SEED

    public static final int HASH_SEED

See Also:
  Constant Field Values

### HASH_OFFSET

    public static final int HASH_OFFSET

See Also:
  Constant Field Values

Method Detail

### 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)

### equals

    public static boolean equals(Object obj1,
                                 Object obj2)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.