public boolean isEquivalent(IORFactory other) { if (!(other instanceof IORTemplateList)) return false; IORTemplateList list = (IORTemplateList) other; Iterator<Object> thisIterator = iterator(); Iterator<Object> listIterator = list.iterator(); while (thisIterator.hasNext() && listIterator.hasNext()) { IORTemplate thisTemplate = (IORTemplate) thisIterator.next(); IORTemplate listTemplate = (IORTemplate) listIterator.next(); if (!thisTemplate.isEquivalent(listTemplate)) return false; } return thisIterator.hasNext() == listIterator.hasNext(); } }
public boolean isEquivalent(IORFactory other) { if (!(other instanceof IORTemplateList)) return false; IORTemplateList list = (IORTemplateList) other; Iterator<Object> thisIterator = iterator(); Iterator<Object> listIterator = list.iterator(); while (thisIterator.hasNext() && listIterator.hasNext()) { IORTemplate thisTemplate = (IORTemplate) thisIterator.next(); IORTemplate listTemplate = (IORTemplate) listIterator.next(); if (!thisTemplate.isEquivalent(listTemplate)) return false; } return thisIterator.hasNext() == listIterator.hasNext(); } }
/** * Construct an IOR from an IORTemplate by applying the same object id to each TaggedProfileTemplate in the * IORTemplate. */ public IORImpl(ORB orb, String typeId, IORTemplateList iortemps, ObjectId id) { this(orb, typeId); this.iortemps = iortemps; Iterator<Object> iter = iortemps.iterator(); while (iter.hasNext()) { IORTemplate iortemp = (IORTemplate) (iter.next()); addTaggedProfiles(iortemp, id); } makeImmutable(); }
/** * Construct an IOR from an IORTemplate by applying the same object id to each TaggedProfileTemplate in the * IORTemplate. */ public IORImpl(ORB orb, String typeId, IORTemplateList iortemps, ObjectId id) { this(orb, typeId); this.iortemps = iortemps; Iterator<Object> iter = iortemps.iterator(); while (iter.hasNext()) { IORTemplate iortemp = (IORTemplate) (iter.next()); addTaggedProfiles(iortemp, id); } makeImmutable(); }