@Override public boolean sameValue(IntSet that) throws IllegalArgumentException, UnimplementedError { if (that == null) { throw new IllegalArgumentException("that == null"); } if (that instanceof SparseIntSet) { return sameValueInternal((SparseIntSet) that); } else if (that instanceof BimodalMutableIntSet) { return that.sameValue(this); } else if (that instanceof BitVectorIntSet) { return that.sameValue(this); } else if (that instanceof MutableSharedBitVectorIntSet) { return sameValue(((MutableSharedBitVectorIntSet) that).makeSparseCopy()); } else { Assertions.UNREACHABLE(that.getClass().toString()); return false; } }
@Override public boolean sameValue(IntSet that) throws IllegalArgumentException, UnimplementedError { if (that == null) { throw new IllegalArgumentException("that == null"); } if (that instanceof SparseIntSet) { return sameValueInternal((SparseIntSet) that); } else if (that instanceof BimodalMutableIntSet) { return that.sameValue(this); } else if (that instanceof BitVectorIntSet) { return that.sameValue(this); } else if (that instanceof MutableSharedBitVectorIntSet) { return sameValue(((MutableSharedBitVectorIntSet) that).makeSparseCopy()); } else { Assertions.UNREACHABLE(that.getClass().toString()); return false; } }
@Override public boolean sameValue(IntSet that) throws IllegalArgumentException, UnimplementedError { if (that == null) { throw new IllegalArgumentException("that == null"); } if (that instanceof SparseIntSet) { return sameValueInternal((SparseIntSet) that); } else if (that instanceof BimodalMutableIntSet) { return that.sameValue(this); } else if (that instanceof BitVectorIntSet) { return that.sameValue(this); } else if (that instanceof MutableSharedBitVectorIntSet) { return sameValue(((MutableSharedBitVectorIntSet) that).makeSparseCopy()); } else { Assertions.UNREACHABLE(that.getClass().toString()); return false; } }