1 package org.simantics.scl.runtime.collection;
4 import java.util.TreeMap;
6 public class TreeMapUtils {
7 public static TreeMap<?, ?> asTreeMap(Map<?, ?> map) {
8 if (map instanceof TreeMap<?, ?>) {
9 return (TreeMap<?, ?>)map;
11 throw new ClassCastException();