Skip to content

Most visited

Recently visited

navigation

LangUtils | Android Developers

to top
Android APIs
public final class

LangUtils

extends Object
java.lang.Object
   ↳ org.apache.http.util.LangUtils

Class Overview

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

Summary

Constants
int HASH_OFFSET
int HASH_SEED
Public Methods
static boolean equals(Object obj1, Object obj2)
static boolean equals(Object[] a1, Object[] a2)
static int hashCode(int seed, Object obj)
static int hashCode(int seed, boolean b)
static int hashCode(int seed, int hashcode)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int HASH_OFFSET

Added in API level 1

Constant Value: 37 (0x00000025)

public static final int HASH_SEED

Added in API level 1

Constant Value: 17 (0x00000011)

Public Methods

public static boolean equals (Object obj1, Object obj2)

Added in API level 1

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

Added in API level 1

public static int hashCode (int seed, Object obj)

Added in API level 1

public static int hashCode (int seed, boolean b)

Added in API level 1

public static int hashCode (int seed, int hashcode)

Added in API level 1

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.