package org.eclipse.viatra.solver.data.model.representation; import org.eclipse.viatra.solver.data.map.ContinousHashProvider; public abstract class DataRepresentation { protected final ContinousHashProvider hashProvider; protected final V defaultValue; protected DataRepresentation(ContinousHashProvider hashProvider, V defaultValue) { this.hashProvider = hashProvider; this.defaultValue = defaultValue; } public abstract String getName(); public ContinousHashProvider getHashProvider() { return hashProvider; } public abstract boolean isValidKey(K key); public V getDefaultValue() { return defaultValue; } }