Skip to content

IvoNet/ApacheCommonsEqualsHashcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

NOTE!!!! DEPRECATED !!! Time has surpassed the need for this plugin...

An IntelliJ Plugin for generating equals and hashCode methods based on the commons-lang EqualsBuilder and HashCodeBuilder Builders.

This little plugin is loosly based of the equals and hasCode generator deluxe

It has been tested on IntelliJ 11 and 12 On Windows and Mac Operating Systems

Example

@Override
public int hashCode() {
    return new HashCodeBuilder().appendSuper(super.hashCode()).append(this.foo).append(this.bar)
                                .toHashCode();
}

@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (getClass() != obj.getClass()) {
        return false;
    }
    final Foo other = (Foo) obj;
    return new EqualsBuilder().appendSuper(super.equals(obj)).append(this.foo, other.foo)
                              .append(this.bar, other.bar).isEquals();
}

Note:

This project was cool for intellij but is now deprecated because its more or less a standard feature in this fantastic IDE.

About

IntelliJ plugin for creating equals() and hashCode() methods in the Apache commons way.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published