Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.http.util
Class LangUtils  view LangUtils download LangUtils.java

java.lang.Object
  extended byorg.apache.http.util.LangUtils

public class LangUtils
extends java.lang.Object

A set of utility methods to help produce consistent equals 55 and hashCode 55 methods.

Since:
4.0

Field Summary
static int HASH_OFFSET
           
static int HASH_SEED
           
 
Constructor Summary
private LangUtils()
           
 
Method Summary
static boolean equals(java.lang.Object[] a1, java.lang.Object[] a2)
           
static boolean equals(java.lang.Object obj1, java.lang.Object obj2)
           
static int hashCode(int seed, boolean b)
           
static int hashCode(int seed, int hashcode)
           
static int hashCode(int seed, java.lang.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
Constructor Detail

LangUtils

private LangUtils()
Method Detail

hashCode

public static int hashCode(int seed,
                           int hashcode)

hashCode

public static int hashCode(int seed,
                           boolean b)

hashCode

public static int hashCode(int seed,
                           java.lang.Object obj)

equals

public static boolean equals(java.lang.Object obj1,
                             java.lang.Object obj2)

equals

public static boolean equals(java.lang.Object[] a1,
                             java.lang.Object[] a2)