public Set<Role> getEquivalentProperties() { return SetUtils.intersection( subRoles, superRoles ); }
public Set<Role> getEquivalentProperties() { return SetUtils.intersection( subRoles, superRoles ); }
Collection<BetaNode> sharedBetas = SetUtils.intersection(alpha.getBetas(), node.getBetas()); for (BetaNode existingBeta : sharedBetas) { if (existingBeta instanceof BetaMemoryNode) {
public AtomicDatatype intersection(AtomicDatatype dt) { if(getPrimitiveType().equals(dt.getPrimitiveType()) && dt instanceof BaseAtomicDatatype) { BaseAtomicDatatype other = (BaseAtomicDatatype) dt; if(values == null) { if(negated) return this; else return other; } else if(other.values == null) { if(other.negated) return other; else return this; } else if(negated) { if(other.negated) return derive(SetUtils.union(values, other.values), true); else return derive(SetUtils.difference(other.values, values), false); } else if(other.negated) return derive(SetUtils.difference(values, other.values), false); else return derive(SetUtils.intersection(values, other.values), false); } return null; }
Set<Role> transRoles = SetUtils.intersection( edgeRole.getSuperRoles(), prop .getTransitiveSubRoles() ); for( Iterator<Role> j = transRoles.iterator(); j.hasNext(); ) {
Set<Role> transRoles = SetUtils.intersection( edgeRole.getSuperRoles(), prop .getTransitiveSubRoles() ); for( Iterator<Role> j = transRoles.iterator(); j.hasNext(); ) {