/** * Test if a constraint evaluator is affected from a * change of a certain attribute. * @param tupleindex The tuple index. * @param attr The attribute. * @return True, if affected. */ public boolean isAffected(int tupleindex, OAVAttributeType attr) { return (this.tupleindex==tupleindex || tupleindex==-1) && SUtil.equals(this.attr, attr); }
/** * Test if two values are equal * according to current identity/equality * settings. */ public boolean equals(Object a, Object b) { return SUtil.equals(a, b); } }
/** * Test if a constraint evaluator is affected from a * change of a certain attribute. * @param tupleindex The tuple index. * @param attr The attribute. * @return True, if affected. */ public boolean isAffected(int tupleindex, OAVAttributeType attr) { return (this.tupleindex==tupleindex || tupleindex==-1) && SUtil.equals(this.attr, attr); }
/** * Test if two objects are equal. */ public boolean equals(Object obj) { return obj instanceof RemoteCMSListener && SUtil.equals(((RemoteCMSListener)obj).id, id); }
/** * Test if a constraint evaluator is affected from a * change of a certain attribute. * @param tupleindex The tuple index. * @param attr The attribute. * @return True, if affected. */ public boolean isAffected(int tupleindex, OAVAttributeType attr) { return (this.tupleindex==tupleindex || tupleindex==-1) && SUtil.equals(this.attr, attr); }
/** * Test if a constraint evaluator is affected from a * change of a certain attribute. * @param tupleindex The tuple index. * @param attr The attribute. * @return True, if affected. */ public boolean isAffected(int tupleindex, OAVAttributeType attr) { return tupleindex==-1 && SUtil.equals(this.attr, attr); }
/** * Test if two component identifiers are equal. * @return True, if equal. */ public boolean equals(Object obj) { return this==obj || obj instanceof IComponentIdentifier && SUtil.equals(name, ((IComponentIdentifier)obj).getName()); }
/** * Test for equality. */ public boolean equals(Object obj) { if(this==obj) return true; return obj instanceof PrefixExtractor && SUtil.equals(attr, ((PrefixExtractor)obj).getAttribute()); } }
public void setItem(Object obj) { if(obj==null || SUtil.equals(val, obj)) return; String text = obj instanceof ClassInfo? model.convertToString((ClassInfo)obj): ""; if(text!=null && !text.equals(editor.getText())) { val = obj; editor.setText(text); } }
public void resultAvailable(IServiceProvider result) { // Cut search if parent was already visisted. if(SUtil.equals(source, result)) result = null; // SEARCH.set(search); processNode(start, provider, (IServiceProvider)result, context, ret, up, 0, false); // SEARCH.set(null); }
public void setItem(Object obj) { if(SUtil.equals(val, obj) || obj==null) return; String text = getAutoModel().convertToString((T)obj); if(text!=null && !text.equals(editor.getText())) { val = obj; if(text.length()>0) editor.setText(text); } }
/** * Test if this value is equal to some object. */ public boolean equals(Object o) { return o instanceof LiteralExpression && SUtil.equals(((LiteralExpression)o).getValue(), getValue()); }
/** * Test if two nodes are equal. */ public boolean equals(Object obj) { return obj instanceof ITreeNode && SUtil.equals(getId(), ((ITreeNode) obj).getId()); }
/** * Test for equality. */ public boolean equals(Object obj) { return obj instanceof TransferInfo && SUtil.equals(((TransferInfo)obj).getId(), getId()); } }
/** * Test if two nodes are equal. */ @Override public boolean equals(Object obj) { return obj instanceof ISwingTreeNode && SUtil.equals(getId(), ((ISwingTreeNode)obj).getId()); }
/** * Test if this value is equal to some object. */ public boolean equals(Object o) { return o instanceof LiteralExpression && SUtil.equals(((LiteralExpression)o).getValue(), getValue()); }
/** * Test if this constant equals another object. * @param obj The other object. * @return True, if equal. */ public boolean equals(Object obj) { return obj instanceof Constant && SUtil.equals(getValue(), ((Constant)obj).getValue()); }
/** * Test if two nodes are equal. */ public boolean equals(Object o) { return super.equals(o) && type==((ReflectNode)o).type && SUtil.equals(getText(), ((ReflectNode)o).getText()); }
/** * Test if two nodes are equal. */ public boolean equals(Object o) { return super.equals(o) && SUtil.equals(getValue(null), ((TypeNode)o).getValue(null)); }
/** * Test if a rid is local to this platform. * Test is performed by MAC address. * Root cid is only used as fallback. */ public static boolean isLocal(IResourceIdentifier rid, IComponentIdentifier root) { return rid!=null && rid.getLocalIdentifier()!=null && (SUtil.equals(rid.getLocalIdentifier().getHostIdentifier(), SUtil.getMacAddress()) || SUtil.equals(rid.getLocalIdentifier().getHostIdentifier(), root.getName())); }