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:org.xwiki.rendering.block.WordBlock.java

@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }/*w  w w . j  a v a2 s  .c om*/

    if (obj instanceof WordBlock && super.equals(obj)) {
        EqualsBuilder builder = new EqualsBuilder();

        builder.append(getWord(), ((WordBlock) obj).getWord());

        return builder.isEquals();
    }

    return false;
}