@ThreadSafe public final class HashCodeImplementationRegistry extends Object implements IHashCodeImplementationRegistry
IHashCodeImplementation
implementations.| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache() |
IHashCodeImplementation |
getBestMatchingHashCodeImplementation(Class<?> aClass) |
static int |
getHashCode(Object aObj) |
static HashCodeImplementationRegistry |
getInstance() |
void |
registerHashCodeImplementation(Class<?> aClass,
IHashCodeImplementation aImpl)
Register a new hashCode implementation
|
EChange |
unregisterHashCodeImplementation(Class<?> aClass) |
@Nonnull public static HashCodeImplementationRegistry getInstance()
public void registerHashCodeImplementation(@Nonnull Class<?> aClass, @Nonnull IHashCodeImplementation aImpl)
IHashCodeImplementationRegistryregisterHashCodeImplementation in interface IHashCodeImplementationRegistryaClass - The class for which the hashCode implementation is validaImpl - The main implementation@Nonnull public EChange unregisterHashCodeImplementation(@Nonnull Class<?> aClass)
@Nullable public IHashCodeImplementation getBestMatchingHashCodeImplementation(@Nullable Class<?> aClass)
public static void clearCache()
Copyright © 2006–2015 phloc systems. All rights reserved.