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.GroupOfLocations.java

/**
 * Equals.//from ww w. ja  v  a2s  . co  m
 *
 * @param object the object
 * @param equalsBuilder the equals builder
 */
public void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof GroupOfLocations)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final GroupOfLocations that = ((GroupOfLocations) object);
    equalsBuilder.append(this.getGroupOfLocationsExtension(), that.getGroupOfLocationsExtension());
}

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

/**
 * {@inheritDoc}/*  w ww  .  ja  va2  s  .c o  m*/
 */
@Override
public void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof NetworkLocation)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    super.equals(object, equalsBuilder);
    final NetworkLocation that = ((NetworkLocation) object);
    equalsBuilder.append(this.getNetworkLocationExtension(), that.getNetworkLocationExtension());
}

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

/**
 * Equals./*from w w w  . j  ava 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 OpenlrExtendedPoint)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final OpenlrExtendedPoint that = ((OpenlrExtendedPoint) object);
    equalsBuilder.append(this.getOpenlrPointLocationReference(), that.getOpenlrPointLocationReference());
}

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

/**
 * Equals./* w  ww  .j ava  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 OpenlrExtendedLinear)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final OpenlrExtendedLinear that = ((OpenlrExtendedLinear) object);
    equalsBuilder.append(this.getOpenlrLineLocationReference(), that.getOpenlrLineLocationReference());
}

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

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

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

/**
 * Equals./*from www. jav a  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 ExtensionType)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final ExtensionType that = ((ExtensionType) object);
    equalsBuilder.append(this.getAny(), that.getAny());
}

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

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

From source file:com.silverpeas.subscribe.web.SubscriberEntityMatcher.java

@Override
public boolean matches(Object item) {
    if (item instanceof SubscriberEntity) {
        SubscriberEntity actual = (SubscriberEntity) item;
        EqualsBuilder match = new EqualsBuilder();
        match.append(subscriber.getId(), actual.getId());
        switch (subscriber.getType()) {
        case GROUP:
            match.appendSuper(actual.isGroup());
            match.appendSuper(!actual.isUser());
            break;
        case USER:
            match.appendSuper(!actual.isGroup());
            match.appendSuper(actual.isUser());
            break;
        default:/*from w  ww  .j av a2  s . c  o  m*/
            match.appendSuper(false);
            break;
        }
        return match.isEquals();
    }
    return false;
}

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

/**
 * {@inheritDoc}//from w  ww.  ja v a  2s  . co m
 */
@Override
public final void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof OpenlrLastLocationReferencePoint)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    super.equals(object, equalsBuilder);
    final OpenlrLastLocationReferencePoint that = ((OpenlrLastLocationReferencePoint) object);
    equalsBuilder.append(this.getOpenlrLastLocationReferencePointExtension(),
            that.getOpenlrLastLocationReferencePointExtension());
}

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

/**
 * Equals./*from  ww w. j  av  a  2s  . c  om*/
 *
 * @param object the object
 * @param equalsBuilder the equals builder
 */
public final void equals(final Object object, final EqualsBuilder equalsBuilder) {
    if (!(object instanceof Exchange)) {
        equalsBuilder.appendSuper(false);
        return;
    }
    if (this == object) {
        return;
    }
    final Exchange that = ((Exchange) object);
    equalsBuilder.append(this.getSupplierIdentification(), that.getSupplierIdentification());
    equalsBuilder.append(this.getExchangeExtension(), that.getExchangeExtension());
}