@Deprecated public Set<Constituent> getCanonicalEntities() { findCanonicalEntries(); final Set<Constituent> cc = new HashSet<>(); this.canonicalEntitiesMap.forEachKey(new TIntProcedure() { @Override public boolean execute(int value) { return cc.add(constituents.get(value)); } }); return cc; }
@Deprecated public Set<Constituent> getCanonicalEntities() { findCanonicalEntries(); final Set<Constituent> cc = new HashSet<>(); this.canonicalEntitiesMap.forEachKey(new TIntProcedure() { @Override public boolean execute(int value) { return cc.add(constituents.get(value)); } }); return cc; }
/** * Given a constituent, it returns the canonical constituent which represents the cluster. */ @Deprecated public Constituent getCanonicalEntity(Constituent c) { findCanonicalEntries(); int cId = this.canonicalEntitiesMap.get(this.constituents.indexOf(c)); return this.constituents.get(cId); }
/** * Given a constituent, it returns the canonical constituent which represents the cluster. */ @Deprecated public Constituent getCanonicalEntity(Constituent c) { findCanonicalEntries(); int cId = this.canonicalEntitiesMap.get(this.constituents.indexOf(c)); return this.constituents.get(cId); }