@Override public ImmutableSet<V> values() { ImmutableSet<V> ret = null; if (this.bidirectionalMap!=null) { ret = this.bidirectionalMap.rightSet(); } else { ret = this.valueSetMap.values(); } return ret; }
private Set<RuleSpecification> filterRuleSpecifications(Set<RuleSpecification> specs) { Set<RuleSpecification> ret = new LinkedHashSet<RuleSpecification>(); for (RuleSpecification spec : specs) { for (ExtendedNode node : spec.getMapLhsToTree().rightSet()) { if (affectedNodes.contains(node)) { ret.add(spec); break; } } } return ret; }
protected List<LexicalRule<? extends EmptyRuleInfo>> getRulesOneSide(String lemma, PartOfSpeech pos, boolean right) throws LexicalResourceException { if (pos!=null) { return getRulesOneSidePosKnownToBeNonNull(lemma,pos,right); } else { List<LexicalRule<? extends EmptyRuleInfo>> allRules = new ArrayList<LexicalRule<? extends EmptyRuleInfo>>(); for (PartOfSpeech onePos : posMap.rightSet()) { allRules.addAll(getRulesOneSidePosKnownToBeNonNull(lemma,onePos,right)); } return allRules; } }
@Override public Set<ExtendedNode> getInvolvedNodesInTree() { return getMapLhsToTree().rightSet().getMutableSetCopy(); }
protected void updateAntecedentInformation() { for (ExtendedNode newNode : mapOrigToCopy.rightSet()) { ExtendedNode originalNode = mapOrigToCopy.rightGet(newNode); if (originalNode.getAntecedent()!=null) { ExtendedNode originalNodeAntecedent = originalNode.getAntecedent(); ExtendedNode newNodeAntecedent = mapOrigToCopy.leftGet(originalNodeAntecedent); newNode.setAntecedent(newNodeAntecedent); } } }
for (ArkrefMention entity : map.rightSet())
for (O node : bidiMap1.rightSet())