Example usage for org.apache.commons.lang.builder EqualsBuilder appendSuper

List of usage examples for org.apache.commons.lang.builder EqualsBuilder appendSuper

Introduction

In this page you can find the example usage for org.apache.commons.lang.builder EqualsBuilder appendSuper.

Prototype

public EqualsBuilder appendSuper(boolean superEquals) 

Source Link

Document

Adds the result of super.equals() to this builder.

Usage

From source file:jp.go.nict.langrid.dao.entity.EqualsBuilderUtil.java

public static <T> EqualsBuilder appendAsSet(EqualsBuilder builder, Collection<T> lhs, Collection<T> rhs) {
    return builder.appendSuper(CollectionUtil.equalsAsSet(lhs, rhs));
}

From source file:jp.go.nict.langrid.dao.entity.EqualsBuilderUtil.java

public static <T> EqualsBuilder appendAsSet(EqualsBuilder builder, Collection<T> lhs, Collection<T> rhs,
        Class<T> clazz, String equalsMethodName)
        throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
    return builder.appendSuper(CollectionUtil.equalsAsSet(lhs, rhs, clazz, equalsMethodName));
}

From source file:it.filosganga.mobile.widgets.component.TableCell.java

@Override
public boolean equals(Object obj) {
    EqualsBuilder builder = new EqualsBuilder();

    builder.appendSuper(super.equals(obj));
    if (builder.isEquals() && obj instanceof TableCell) {
        TableCell other = (TableCell) obj;
        builder.append(summary, other.summary);
        builder.append(colspan, other.colspan);
    }//from w  ww .java 2s.  c  o  m

    return builder.isEquals();
}

From source file:it.filosganga.mobile.widgets.component.TableColumn.java

@Override
public boolean equals(Object obj) {
    EqualsBuilder builder = new EqualsBuilder();

    builder.appendSuper(super.equals(obj));
    if (builder.isEquals() && obj instanceof TableColumn) {
        TableColumn other = (TableColumn) obj;

        builder.append(label, other.label);
        builder.append(shortLabel, other.shortLabel);
        builder.append(colspan, other.colspan);
    }//from  w  ww.jav  a 2  s  .  co  m

    return builder.isEquals();
}

From source file:it.filosganga.mobile.widgets.component.TableHeader.java

@Override
public boolean equals(Object obj) {
    EqualsBuilder builder = new EqualsBuilder();

    builder.appendSuper(super.equals(obj));
    if (builder.isEquals() && obj instanceof TableHeader) {
        TableHeader other = (TableHeader) obj;
        builder.append(columns, other.columns);
    }//  w w w  .j  a  v a2 s  . com

    return builder.isEquals();
}

From source file:jp.go.nict.langrid.dao.entity.OverUseLimit.java

/**
 * //  w  w  w  .j a  va2 s  .c o m
 * 
 */
public boolean equalsIgnoreDates(OverUseLimit value) {
    EqualsBuilder b = new EqualsBuilder();

    b.appendSuper(
            EqualsBuilder.reflectionEquals(this, value, Arrays.asList("createdDateTime", "updatedDateTime")));

    return b.isEquals();
}

From source file:gr.abiss.calipso.model.base.AuditableResource.java

@Override
public boolean equals(Object obj) {
    if (null == obj) {
        return false;
    }/* ww  w  . j  a  v  a 2 s .co m*/

    if (this == obj) {
        return true;
    }
    if (!(obj instanceof User)) {
        return false;
    }
    AuditableResource other = (AuditableResource) obj;
    EqualsBuilder builder = new EqualsBuilder();
    builder.appendSuper(super.equals(obj));
    builder.append(this.getName(), other.getName());
    builder.append(this.getPath(), other.getPath());
    return builder.isEquals();
}

From source file:eu.datex2.schema._2_0rc2._2_0.Point.java

/**
 * {@inheritDoc}/*w  w  w .ja  v  a2  s  .c  om*/
 */
@Override
public final void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof Point)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    super.equals(object, equalsBuilder);
    final Point that = ((Point) object);
    equalsBuilder.append(this.getPointExtension(), that.getPointExtension());
}

From source file:eu.datex2.schema._2_0rc2._2_0.Linear.java

/**
 * {@inheritDoc}//from   w ww .j  ava 2  s.c o m
 */
@Override
public final void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof Linear)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    super.equals(object, equalsBuilder);
    final Linear that = ((Linear) object);
    equalsBuilder.append(this.getLinearExtension(), that.getLinearExtension());
}

From source file:eu.datex2.schema._2_0rc2._2_0.Location.java

/**
 * {@inheritDoc}//ww w  .j a v a2s.c  o m
 */
@Override
public void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof Location)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    super.equals(object, equalsBuilder);
    final Location that = ((Location) object);
    equalsBuilder.append(this.getLocationExtension(), that.getLocationExtension());
}