1 package org.simantics.graph.representation;
3 import java.util.TreeMap;
5 import org.simantics.databoard.Bindings;
6 import org.simantics.databoard.binding.Binding;
7 import org.simantics.databoard.binding.mutable.Variant;
9 public class Extensions {
11 public static final Binding BINDING = Bindings.getBindingUnchecked(Extensions.class);
14 * Used for storing a cached hash code computed from a
15 * {@link TransferableGraph1} instance <em>without</em> this cached hashcode
16 * key,value pair in the <code>extensions</code> map.
18 public final static String CACHED_HASHCODE = "cached.hashCode";
20 final public static String CLUSTERING = "clustering";
21 final public static String CLUSTER_SETS = "clusterSets";
22 final public static int NO_CLUSTER_SET = -1;
23 final public static int ROOT_LIBRARY_CLUSTER_SET = -1;
24 final public static int INDEX_ROOT_CLUSTER_SET = -2;
26 public TreeMap<String, Variant> map;
29 this.map = new TreeMap<>();
32 public Extensions(TreeMap<String, Variant> map) {