package uk.co.eluinhost.ultrahardcore.borders;

import com.sk89q.worldedit.EditSession;
import com.sk89q.worldedit.MaxChangedBlocksException;

public abstract class WorldEditBorder {

    public abstract String getID();

    public abstract String getDescription();

    protected abstract void createBorder(BorderParams bp, EditSession es) throws MaxChangedBlocksException;

    @Override
    public boolean equals(Object o) {
        return o instanceof WorldEditBorder && ((WorldEditBorder) o).getID().equals(getID());
    }
}

@@ -134,16 +134,72 @@
 ception;
+%0Aimport org.apache.commons.lang.builder.HashCodeBuilder;
 %0A%0Apublic
@@ -473,16 +473,18 @@
 Object o
+bj
 ) %7B%0A    
@@ -495,16 +495,18 @@
 return o
+bj
  instanc
@@ -548,16 +548,18 @@
 order) o
+bj
 ).getID(
@@ -582,11 +582,132 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public int hashCode()%7B%0A        return new HashCodeBuilder(17, 31).append(getID()).toHashCode();%0A    %7D
 %0A%7D%0A

add hashCode