Package org.eclipse.emf.compare.match
Class DefaultEqualityHelperFactory
java.lang.Object
org.eclipse.emf.compare.match.DefaultEqualityHelperFactory
- All Implemented Interfaces:
IEqualityHelperFactory
Default implementation of
IEqualityHelperFactory
.-
Constructor Summary
ConstructorDescriptionDefault constructor.DefaultEqualityHelperFactory
(com.google.common.cache.CacheBuilder<Object, Object> cacheBuilder) Creates a factory with the given CacheBuilder. -
Method Summary
Modifier and TypeMethodDescriptionReturns a newIEqualityHelper
.Returns the cache builder that should be used by this factory to create its equality helpers.
-
Constructor Details
-
DefaultEqualityHelperFactory
public DefaultEqualityHelperFactory()Default constructor. -
DefaultEqualityHelperFactory
public DefaultEqualityHelperFactory(com.google.common.cache.CacheBuilder<Object, Object> cacheBuilder) Creates a factory with the given CacheBuilder.- Parameters:
cacheBuilder
- The cache builder to use to instantiate anEqualityHelper
.
-
-
Method Details
-
createEqualityHelper
Returns a newIEqualityHelper
.- Specified by:
createEqualityHelper
in interfaceIEqualityHelperFactory
- Returns:
- a new
IEqualityHelper
. - See Also:
-
getCacheBuilder
Returns the cache builder that should be used by this factory to create its equality helpers.- Returns:
- The cache builder that should be used by this factory to create its equality helpers.
-