Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提个问题 有关于Ass1文档的 #8

Open
Price1999a opened this issue Apr 3, 2024 · 0 comments
Open

提个问题 有关于Ass1文档的 #8

Price1999a opened this issue Apr 3, 2024 · 0 comments

Comments

@Price1999a
Copy link

assignments/Assignment 1.md

中提到copy并不会生成真正的深拷贝
但是就A1A2中的源码 显然确实生成了一个深拷贝

    /**
     * Creates and returns a copy of this fact.
     */
    public SetFact<E> copy() {
        return new SetFact<>(this.set);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant