@ThreadSafe @Singleton public final class HashCodeImplementationRegistry extends Object implements IHashCodeImplementationRegistry
IHashCodeImplementation
implementations.| Modifier and Type | Method and Description |
|---|---|
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
|
void |
reinitialize() |
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 reinitialize()
Copyright © 2014–2016 Philip Helger. All rights reserved.