import com.datastax.driver.core.Statement;
public class Cred {
- public static final TreeMap<String,Cred> data = new TreeMap<String,Cred>();
- public static final TreeMap<String,List<Cred>> byNS = new TreeMap<String,List<Cred>>();
+ public static final TreeMap<String,Cred> data = new TreeMap<>();
+ public static final TreeMap<String,List<Cred>> byNS = new TreeMap<>();
public final String id;
public final List<Instance> instances;
public Cred(String id) {
this.id = id;
- instances = new ArrayList<Instance>();
+ instances = new ArrayList<>();
ns=Question.domain2ns(id);
}
public Set<Integer> types() {
- Set<Integer> types = new HashSet<Integer>();
+ Set<Integer> types = new HashSet<>();
for(Instance i : instances) {
types.add(i.type);
}
List<Cred> lscd = byNS.get(cred.ns);
if(lscd==null) {
- byNS.put(cred.ns, (lscd=new ArrayList<Cred>()));
+ byNS.put(cred.ns, (lscd=new ArrayList<>()));
}
boolean found = false;
for(Cred c : lscd) {