@Override public boolean equals(Object obj) { boolean equal = false; if (this == obj) { equal = true; } else if (obj != null && this.getClass().equals(obj.getClass())) { MatlabDoubleSparseMatrix other = (MatlabDoubleSparseMatrix) obj; equal = _array.equals(other._array); } return equal; }