List of usage examples for org.apache.commons.lang3.builder EqualsBuilder append
public EqualsBuilder append(final boolean[] lhs, final boolean[] rhs)
Deep comparison of array of boolean
.
From source file:org.kalypso.ui.rrm.internal.scenarios.MappingKey.java
@Override public boolean equals(final Object obj) { if (!(obj instanceof MappingKey)) return false; final MappingKey other = (MappingKey) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(m_scenarioPath, other.getScenarioPath()); builder.append(m_featureId, other.getFeatureId()); return builder.isEquals(); }
From source file:org.kalypso.zml.core.base.MultipleTsLink.java
@Override public boolean equals(final Object obj) { if (obj instanceof MultipleTsLink) { final MultipleTsLink other = (MultipleTsLink) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getIdentifier(), other.getIdentifier()); final TSLinkWithName[] links = getSources(); final TSLinkWithName[] otherLinks = other.getSources(); if (links.length != otherLinks.length) return false; final String[] set = getSortedLinks(links); final String[] otherSet = getSortedLinks(otherLinks); for (int i = 0; i < links.length; i++) { builder.append(set[i], otherSet[i]); }//from w ww . j a va2s .c o m return builder.isEquals(); } return super.equals(obj); }
From source file:org.kalypso.zml.core.base.TSLinkWithName.java
@Override public boolean equals(final Object obj) { if (obj instanceof TSLinkWithName) { final TSLinkWithName other = (TSLinkWithName) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getIdentifier(), other.getIdentifier()); builder.append(getContext(), other.getContext()); builder.append(getHref(), other.getHref()); return builder.isEquals(); }/*w w w. j ava 2 s . c om*/ return super.equals(obj); }
From source file:org.kalypso.zml.core.table.binding.BaseColumn.java
/** * @see java.lang.Object#equals(java.lang.Object) */// w ww . j ava 2s. co m @Override public boolean equals(final Object obj) { if (obj instanceof BaseColumn) { final BaseColumn other = (BaseColumn) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getIdentifier(), other.getIdentifier()); return builder.isEquals(); } return super.equals(obj); }
From source file:org.kalypso.zml.core.table.model.references.ZmlModelIndexCell.java
@Override public boolean equals(final Object obj) { if (obj instanceof ZmlModelIndexCell) { final ZmlModelIndexCell other = (ZmlModelIndexCell) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getIndexValue(), other.getIndexValue()); return builder.isEquals(); }//from w ww.j a v a2s .c o m return super.equals(obj); }
From source file:org.kalypso.zml.core.table.model.references.ZmlModelValueCell.java
@Override public boolean equals(final Object obj) { if (obj instanceof ZmlModelValueCell) { try {/*from w ww. j av a 2s. co m*/ final ZmlModelValueCell other = (ZmlModelValueCell) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getColumn().getIdentifier(), other.getColumn().getIdentifier()); builder.append(getModelIndex(), getModelIndex()); builder.append(getValue(), other.getValue()); return builder.isEquals(); } catch (final SensorException e) { e.printStackTrace(); } } return super.equals(obj); }
From source file:org.kalypso.zml.core.table.model.ZmlModelRow.java
@Override public boolean equals(final Object obj) { if (obj instanceof ZmlModelRow) { final ZmlModelRow other = (ZmlModelRow) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getIndex(), other.getIndex()); return builder.isEquals(); }/* www .j av a2 s. c o m*/ return super.equals(obj); }
From source file:org.kalypso.zml.core.table.rules.AppliedRule.java
@Override public boolean equals(final Object obj) { if (obj instanceof AppliedRule) { final AppliedRule other = (AppliedRule) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getLabel(), other.getLabel()); return builder.isEquals(); }// w w w. j a v a2 s. com return super.equals(obj); }
From source file:org.kalypso.zml.ui.core.element.AbstractTsLinkDiagramElement.java
@Override public boolean equals(final Object obj) { if (obj instanceof AbstractTsLinkDiagramElement) { final AbstractTsLinkDiagramElement other = (AbstractTsLinkDiagramElement) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(m_link.getIdentifier(), other.m_link.getIdentifier()); builder.append(m_link.getHref(), other.m_link.getHref()); return builder.isEquals(); }/*from ww w. j a va 2 s . com*/ return super.equals(obj); }
From source file:org.kalypso.zml.ui.table.dialogs.input.ZmlEinzelwert.java
/** * @see java.lang.Object#equals(java.lang.Object) *///from w w w . j a v a 2 s. c o m @Override public boolean equals(final Object obj) { if (obj instanceof ZmlEinzelwert) { final ZmlEinzelwert other = (ZmlEinzelwert) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getDate(), other.getDate()); builder.append(getValue(), other.getValue()); return builder.isEquals(); } return super.equals(obj); }