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.ogc.gml.SoureAndPathThemePredicate.java
/** * @see org.kalypso.ogc.gml.mapmodel.IKalypsoThemePredicate#decide(org.kalypso.ogc.gml.IKalypsoTheme) *//* w ww .ja va2 s. c o m*/ @Override public boolean decide(final IKalypsoTheme theme) { if (theme instanceof GisTemplateFeatureTheme) { final GisTemplateFeatureTheme gisTheme = (GisTemplateFeatureTheme) theme; final EqualsBuilder equalsBuilder = new EqualsBuilder(); equalsBuilder.append(m_href, gisTheme.getHref()); equalsBuilder.append(m_featurePath, gisTheme.getFeaturePath()); return equalsBuilder.isEquals(); } return false; }
From source file:org.kalypso.ogc.sensor.impl.AbstractAxis.java
@Override public boolean equals(final Object obj) { if (!(obj instanceof IAxis)) return false; if (this == obj) return true; final IAxis other = (IAxis) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getDataClass(), other.getDataClass()).append(isKey(), other.isKey()) .append(getType(), other.getType()).append(getUnit(), other.getUnit()); builder.append(getName(), other.getName()); return builder.isEquals(); }
From source file:org.kalypso.ogc.sensor.metadata.StaticMetadataWQTable.java
@Override public boolean equals(final Object obj) { if (obj instanceof StaticMetadataWQTable) { final StaticMetadataWQTable other = (StaticMetadataWQTable) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(m_wqtable, other.m_wqtable); builder.append(m_minQ, other.m_minQ); builder.append(m_maxQ, other.m_maxQ); builder.append(m_minW, other.m_minW); builder.append(m_maxW, other.m_maxW); return builder.isEquals(); }/*from w w w . j a v a 2s . c o m*/ return super.equals(obj); }
From source file:org.kalypso.ogc.sensor.timeseries.AxisUtils.java
public static boolean isEqual(final IAxis a1, final IAxis a2) { if (Objects.isNull(a1, a2)) return false; if (Objects.equal(a1, a2)) return true; final EqualsBuilder builder = new EqualsBuilder(); builder.append(a1.getName(), a2.getName()); builder.append(a1.getType(), a2.getType()); builder.append(a1.getUnit(), a2.getUnit()); return builder.isEquals(); }
From source file:org.kalypso.project.database.sei.beans.KalypsoProjectBean.java
/** * @see java.lang.Object#equals(java.lang.Object) *//* ww w .j a v a2s. co m*/ @Override public boolean equals(final Object obj) { if (obj instanceof KalypsoProjectBean) { final KalypsoProjectBean other = (KalypsoProjectBean) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getUnixName(), other.getUnixName()); builder.append(getDescription(), other.getDescription()); builder.append(getProjectVersion(), other.getProjectVersion()); builder.append(getEditLockTicket(), other.getEditLockTicket()); return builder.isEquals(); } return super.equals(obj); }
From source file:org.kalypso.project.database.sei.beans.KalypsoProjectBeanPrimaryKey.java
/** * @see java.lang.Object#equals(java.lang.Object) *///from w w w. j a va2s .c om @Override public boolean equals(final Object obj) { if (obj instanceof KalypsoProjectBeanPrimaryKey) { final KalypsoProjectBeanPrimaryKey foreign = (KalypsoProjectBeanPrimaryKey) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getUnixName(), foreign.getUnixName()); builder.append(getProjectVersion(), foreign.getProjectVersion()); return builder.isEquals(); } return super.equals(obj); }
From source file:org.kalypso.repository.SimpleRepositoryItem.java
/** * @see java.lang.Object#equals(java.lang.Object) *//*from w w w . ja v a 2 s .c om*/ @Override public boolean equals(final Object obj) { if (!(obj instanceof SimpleRepositoryItem)) return false; final EqualsBuilder builder = new EqualsBuilder(); final SimpleRepositoryItem other = (SimpleRepositoryItem) obj; builder.append(m_name, other.m_name); builder.append(m_link, other.m_link); builder.append(m_parent, other.m_parent); return builder.isEquals(); }
From source file:org.kalypso.ui.editor.styleeditor.rule.RuleComposite.java
/** * @see java.lang.Object#equals(java.lang.Object) *///from w ww.j av a 2 s .c o m @Override public boolean equals(final Object obj) { if (obj == null) return false; if (obj == this) return true; if (obj.getClass() != getClass()) return false; final RuleComposite rhs = (RuleComposite) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getRule(), rhs.getRule()); return builder.isEquals(); }
From source file:org.kalypso.ui.editor.styleeditor.style.RuleTabItem.java
/** * @see java.lang.Object#equals(java.lang.Object) *//*from w w w .j av a 2s .c o m*/ @Override public boolean equals(final Object obj) { if (obj == null) return false; if (obj == this) return true; if (obj.getClass() != getClass()) return false; final RuleTabItem rhs = (RuleTabItem) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(getRule(), rhs.getRule()); return builder.isEquals(); }
From source file:org.kalypso.ui.rrm.internal.scenarios.GeneratorKey.java
@Override public boolean equals(final Object obj) { if (!(obj instanceof GeneratorKey)) return false; final GeneratorKey other = (GeneratorKey) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(m_scenarioPath, other.getScenarioPath()); builder.append(m_featureId, other.getFeatureId()); return builder.isEquals(); }