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:eu.datex2.schema._2_0rc2._2_0.OpenlrOffsets.java

/**
 * Equals.//www.ja  v a  2  s .  c  o m
 *
 * @param object the object
 * @param equalsBuilder the equals builder
 */
public final void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof OpenlrOffsets)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final OpenlrOffsets that = ((OpenlrOffsets) object);
    equalsBuilder.append(this.getOpenlrPositiveOffset(), that.getOpenlrPositiveOffset());
    equalsBuilder.append(this.getOpenlrNegativeOffset(), that.getOpenlrNegativeOffset());
    equalsBuilder.append(this.getOpenlrOffsetsExtension(), that.getOpenlrOffsetsExtension());
}

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

/**
 * Equals.//from   ww  w.j a  va  2s  .  c o m
 *
 * @param object the object
 * @param equalsBuilder the equals builder
 */
public final void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof InternationalIdentifier)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final InternationalIdentifier that = ((InternationalIdentifier) object);
    equalsBuilder.append(this.getCountry(), that.getCountry());
    equalsBuilder.append(this.getNationalIdentifier(), that.getNationalIdentifier());
    equalsBuilder.append(this.getInternationalIdentifierExtension(),
            that.getInternationalIdentifierExtension());
}

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

/**
 * Equals./*  w ww . j a v  a 2 s. co m*/
 * 
 * @param object
 *            the object
 * @param equalsBuilder
 *            the equals builder
 */
public final void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof OpenlrPathAttributes)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final OpenlrPathAttributes that = ((OpenlrPathAttributes) object);
    equalsBuilder.append(this.getOpenlrLowestFRCToNextLRPoint(), that.getOpenlrLowestFRCToNextLRPoint());
    equalsBuilder.append(this.getOpenlrDistanceToNextLRPoint(), that.getOpenlrDistanceToNextLRPoint());
    equalsBuilder.append(this.getOpenlrPathAttributesExtension(), that.getOpenlrPathAttributesExtension());
}

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

@Override
protected EqualsBuilder appendSpecialEquals(EqualsBuilder builder, Object value,
        Collection<String> appendedFields, boolean ignoreDates) {
    BPELService s = (BPELService) value;
    EqualsBuilder b = super.appendSpecialEquals(builder, value, appendedFields, ignoreDates);
    appendedFields.add("invocations");
    if (!ignoreDates) {
        return b.appendSuper(CollectionUtil.equalsAsSet(getInvocations(), s.getInvocations()));
    }/*from w  ww .j  av  a 2  s  .  co m*/
    try {
        return b.appendSuper(CollectionUtil.equalsAsSet(getInvocations(), s.getInvocations(), Invocation.class,
                "equalsIgnoreDates"));
    } catch (IllegalAccessException e) {
        throw new RuntimeException(e);
    } catch (InvocationTargetException e) {
        throw new RuntimeException(e);
    } catch (NoSuchMethodException e) {
        throw new RuntimeException(e);
    }
}

From source file:com.googlecode.markuputils.CssStyleBuilder.java

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

    if (obj instanceof CssStyleBuilder) {
        CssStyleBuilder other = (CssStyleBuilder) obj;
        builder.append(buffer, other.buffer);
    } else {//from   w  ww . java  2s.co  m
        builder.appendSuper(false);
    }

    return builder.isEquals();
}

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

/**
 * Equals.//www. jav  a2  s  .  c  o  m
 *
 * @param object the object
 * @param equalsBuilder the equals builder
 */
public void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof OpenlrBaseLocationReferencePoint)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final OpenlrBaseLocationReferencePoint that = ((OpenlrBaseLocationReferencePoint) object);
    equalsBuilder.append(this.getOpenlrCoordinate(), that.getOpenlrCoordinate());
    equalsBuilder.append(this.getOpenlrLineAttributes(), that.getOpenlrLineAttributes());
    equalsBuilder.append(this.getOpenlrBaseLocationReferencePointExtension(),
            that.getOpenlrBaseLocationReferencePointExtension());
}

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

/**
 * Equals.//from   w ww  . j a  v  a2  s . c  o m
 *
 * @param object the object
 * @param equalsBuilder the equals builder
 */
public final void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof OpenlrLineAttributes)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final OpenlrLineAttributes that = ((OpenlrLineAttributes) object);
    equalsBuilder.append(this.getOpenlrFunctionalRoadClass(), that.getOpenlrFunctionalRoadClass());
    equalsBuilder.append(this.getOpenlrFormOfWay(), that.getOpenlrFormOfWay());
    equalsBuilder.append(this.getOpenlrBearing(), that.getOpenlrBearing());
    equalsBuilder.append(this.getOpenlrLineAttributesExtension(), that.getOpenlrLineAttributesExtension());
}

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

/**
 * Equals./*ww  w . jav  a2  s  .c o m*/
 * 
 * @param object
 *            the object
 * @param equalsBuilder
 *            the equals builder
 */
public void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof PayloadPublication)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final PayloadPublication that = ((PayloadPublication) object);
    equalsBuilder.append(this.getPublicationTime(), that.getPublicationTime());
    equalsBuilder.append(this.getPublicationCreator(), that.getPublicationCreator());
    equalsBuilder.append(this.getPayloadPublicationExtension(), that.getPayloadPublicationExtension());
    equalsBuilder.append(this.getLang(), that.getLang());
}

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

/**
 * Equals.//  www.  j a  va  2  s .c  om
 * 
 * @param object
 *            the object
 * @param equalsBuilder
 *            the equals builder
 */
public final void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof OpenlrPointLocationReference)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final OpenlrPointLocationReference that = ((OpenlrPointLocationReference) object);
    equalsBuilder.append(this.getOpenlrGeoCoordinate(), that.getOpenlrGeoCoordinate());
    equalsBuilder.append(this.getOpenlrPoiWithAccessPoint(), that.getOpenlrPoiWithAccessPoint());
    equalsBuilder.append(this.getOpenlrPointAlongLine(), that.getOpenlrPointAlongLine());
    equalsBuilder.append(this.getOpenlrPointLocationReferenceExtension(),
            that.getOpenlrPointLocationReferenceExtension());
}

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

/**
 * Equals.//  w  ww. ja v a  2 s . co  m
 *
 * @param object the object
 * @param equalsBuilder the equals builder
 */
public final void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof OpenlrLineLocationReference)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final OpenlrLineLocationReference that = ((OpenlrLineLocationReference) object);
    equalsBuilder.append(this.getOpenlrLocationReferencePoint(), that.getOpenlrLocationReferencePoint());
    equalsBuilder.append(this.getOpenlrLastLocationReferencePoint(),
            that.getOpenlrLastLocationReferencePoint());
    equalsBuilder.append(this.getOpenlrOffsets(), that.getOpenlrOffsets());
    equalsBuilder.append(this.getOpenlrLineLocationReferenceExtension(),
            that.getOpenlrLineLocationReferenceExtension());
}