public final class ConcurrencyUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
hash(Object object)
Returns a hash code for non-null Object x.
|
static int |
selectLock(Object key,
int numberOfLocks)
Selects a lock for a key.
|
public static int hash(Object object)
object
- the object serving as a keypublic static int selectLock(Object key, int numberOfLocks)
key
- Copyright © 2020 Magnolia International Ltd.. All rights reserved.