@ThreadSafe public final class HashCodeImplementationRegistry extends Object implements IHashCodeImplementationRegistry
IHashCodeImplementation
implementations.| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
IHashCodeImplementation |
getBestMatchingHashCodeImplementation(Class<?> aClass) |
static int |
getHashCode(Object aObj) |
static HashCodeImplementationRegistry |
getInstance() |
static boolean |
isInstantiated() |
void |
registerHashCodeImplementation(Class<?> aClass,
IHashCodeImplementation aImpl)
Register a new hashCode implementation
|
EChange |
unregisterHashCodeImplementation(Class<?> aClass) |
public static boolean isInstantiated()
@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 void clearCache()
Copyright © 2014–2015 Philip Helger. All rights reserved.