com.microsoft.tfs.core.httpclient.util
Class LangUtils
java.lang.Object
com.microsoft.tfs.core.httpclient.util.LangUtils
public class LangUtils
- extends java.lang.Object
A set of utility methods to help produce consistent Object#equals(Object) and
Object#hashCode methods.
- Since:
- 3.0
Method Summary |
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 |
HASH_SEED
public static final int HASH_SEED
- Constant Field Value:
17
- See Also:
- Constant Field Values
HASH_OFFSET
public static final int HASH_OFFSET
- Constant Field Value:
37
- See Also:
- Constant Field Values
hashCode
public static int hashCode(int seed,
int hashcode)
hashCode
public static int hashCode(int seed,
java.lang.Object obj)
hashCode
public static int hashCode(int seed,
boolean b)
equals
public static boolean equals(java.lang.Object obj1,
java.lang.Object obj2)
© 2015 Microsoft. All rights reserved.