@Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (obj instanceof Item) {
            Item i = (Item) obj;
            if (! this.getCode().equals(i.getCode()))
                return false;
        }
        return true;
    }