Example usage for org.apache.commons.lang3.builder EqualsBuilder append

List of usage examples for org.apache.commons.lang3.builder EqualsBuilder append

Introduction

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

Prototype

public EqualsBuilder append(final boolean[] lhs, final boolean[] rhs) 

Source Link

Document

Deep comparison of array of boolean.

Usage

From source file:ductive.commons.Pair.java

@Override
public boolean equals(Object obj) {
    return Equals.eq(this, obj, new Equals.EqualsDefinition<Pair<A, B>>() {
        @Override//from www  .  j  a va 2 s .  c o m
        public void check(Pair<A, B> l, Pair<A, B> r, EqualsBuilder b) {
            b.append(l.a, r.a).append(l.b, r.b);
        }
    });
}

From source file:ductive.console.commands.parser.model.Option.java

@Override
public boolean equals(Object obj) {
    return Equals.eq(this, obj, new EqualsDefinition<Option>() {
        @Override/*from w w w  .  j a  v  a 2s.co  m*/
        public void check(Option l, Option r, EqualsBuilder b) {
            b.append(l.name, r.name);
        }
    });
}

From source file:ductive.console.commands.parser.model.Argument.java

@Override
public boolean equals(Object obj) {
    return Equals.eq(this, obj, new EqualsDefinition<Argument>() {
        @Override// w w w  . j  a v  a  2 s .c o m
        public void check(Argument l, Argument r, EqualsBuilder b) {
            b.append(l.name, r.name);
            b.append(l.value, r.value);
        }
    });
}

From source file:com.evrythng.commons.domain.Value.java

@Override
public final boolean equals(final Object other) {

    if (other == null || other.getClass() != getClass()) {
        return false;
    }/*w ww  . jav  a  2s .c  o  m*/
    Value<V> that = (Value<V>) other;
    EqualsBuilder equals = new EqualsBuilder();
    equals.append(value, that.value);
    return equals.build();
}

From source file:com.jdom.util.patterns.mvp.ActionConfiguration.java

@Override
public boolean equals(Object obj) {
    if (obj instanceof ActionConfiguration) {
        ActionConfiguration other = (ActionConfiguration) obj;
        EqualsBuilder eqBuilder = new EqualsBuilder();
        eqBuilder.append(this.getDisplayText(), other.getDisplayText());
        eqBuilder.append(this.getClickAction(), other.getClickAction());
        return eqBuilder.isEquals();
    }/* w w w.  j  a v  a  2s  . c o  m*/
    return false;
}

From source file:com.invariantproperties.project.student.matcher.ClassroomEquality.java

@Override
public boolean matchesSafely(Classroom actual) {
    if (actual == null) {
        return false;
    }/*from ww  w.  j ava 2 s  .  co m*/

    EqualsBuilder eq = new EqualsBuilder();
    eq.append(expected.getId(), actual.getId());
    eq.append(expected.getUuid(), actual.getUuid());
    eq.append(expected.getName(), actual.getName());
    eq.append(expected.getCreationDate(), actual.getCreationDate());

    return eq.isEquals();
}

From source file:com.invariantproperties.project.student.matcher.SectionEquality.java

@Override
public boolean matchesSafely(Section actual) {
    if (actual == null) {
        return false;
    }/*from  w w  w .  java2 s.com*/

    EqualsBuilder eq = new EqualsBuilder();
    eq.append(expected.getId(), actual.getId());
    eq.append(expected.getUuid(), actual.getUuid());
    eq.append(expected.getName(), actual.getName());
    eq.append(expected.getCreationDate(), actual.getCreationDate());

    return eq.isEquals();
}

From source file:com.invariantproperties.project.student.matcher.TermEquality.java

@Override
public boolean matchesSafely(Term actual) {
    if (actual == null) {
        return false;
    }//w  ww. ja  va 2  s . co  m

    EqualsBuilder eq = new EqualsBuilder();
    eq.append(expected.getId(), actual.getId());
    eq.append(expected.getUuid(), actual.getUuid());
    eq.append(expected.getName(), actual.getName());
    eq.append(expected.getCreationDate(), actual.getCreationDate());

    return eq.isEquals();
}

From source file:com.invariantproperties.sandbox.springentitylistener.matcher.UserEquality.java

@Override
public boolean matchesSafely(TwitterUser actual) {
    if (actual == null) {
        return false;
    }// w  w  w  . j av a  2s .  co m

    EqualsBuilder eq = new EqualsBuilder();
    eq.append(expected.getId(), actual.getId());
    eq.append(expected.getUuid(), actual.getUuid());
    eq.append(expected.getName(), actual.getName());
    eq.append(expected.getEmailAddress(), actual.getEmailAddress());
    eq.append(expected.getPassword(), actual.getPassword());

    return eq.isEquals();
}

From source file:com.invariantproperties.project.student.matcher.InstructorEquality.java

@Override
public boolean matchesSafely(Instructor actual) {
    if (actual == null) {
        return false;
    }/*from  w  w  w.j a v  a 2s. c o m*/

    EqualsBuilder eq = new EqualsBuilder();
    eq.append(expected.getId(), actual.getId());
    eq.append(expected.getUuid(), actual.getUuid());
    eq.append(expected.getName(), actual.getName());
    eq.append(expected.getEmailAddress(), actual.getEmailAddress());
    eq.append(expected.getCreationDate(), actual.getCreationDate());

    return eq.isEquals();
}