package org.simantics.graph.representation; import java.util.TreeMap; import org.simantics.databoard.Bindings; import org.simantics.databoard.binding.Binding; import org.simantics.databoard.binding.mutable.Variant; public class Extensions { public static final Binding BINDING = Bindings.getBindingUnchecked(Extensions.class); /** * Used for storing a cached hash code computed from a * {@link TransferableGraph1} instance without this cached hashcode * key,value pair in the extensions map. */ public final static String CACHED_HASHCODE = "cached.hashCode"; final public static String CLUSTERING = "clustering"; final public static String CLUSTER_SETS = "clusterSets"; final public static int NO_CLUSTER_SET = -1; final public static int ROOT_LIBRARY_CLUSTER_SET = -1; final public static int INDEX_ROOT_CLUSTER_SET = -2; public TreeMap map; public Extensions() { this.map = new TreeMap<>(); } public Extensions(TreeMap map) { this.map = map; } }