public boolean eq(IntLongSortedVector other) {
        // This is slow, but correct.
        IntLongSortedVector v1 = IntLongSortedVector.getWithNoZeroValues(this);
        IntLongSortedVector v2 = IntLongSortedVector.getWithNoZeroValues(other);
                
        if (v2.size() != v1.size()) {
            return false;
        }

        for (IntLongEntry ve : v1) {
            if (!Primitives.equals(ve.get(), v2.get(ve.index()))) {
                return false;
            }
        }
        for (IntLongEntry ve : v2) {
            if (!Primitives.equals(ve.get(), v1.get(ve.index()))) {
                return false;
            }
        }
        return true;
    }
public boolean eq ( IntLongSortedVector other ) { IntLongSortedVector v1 = IntLongSortedVector . getWithNoZeroValues ( this ) ; IntLongSortedVector v2 = IntLongSortedVector . getWithNoZeroValues ( other ) ; if ( v2 . size ( ) != v1 . size ( ) ) { return false ; } for ( IntLongEntry ve : v1 ) { if ( ! Primitives . equals ( ve . get ( ) , v2 . get ( ve . index ( ) ) ) ) { return false ; } } for ( IntLongEntry ve : v2 ) { if ( ! Primitives . equals ( ve . get ( ) , v1 . get ( ve . index ( ) ) ) ) { return false ; } } return true ; }
Returns true if the input vector is equal to this one.