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

rip out TreeChildPrefixIndex.java and all its dependants #3295

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

awildturtok
Copy link
Collaborator

No description provided.

@@ -76,7 +76,7 @@ public void valid(long seed) {
IntStream
.range(0, 8192)
.boxed()
.sorted(TernaryTreeTestUtil.shuffle(random))
.sorted(TreeTestUtil.shuffle(random))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kannst du hier einen kommentar ran machen, was das macht?
Es liest sich verwirrend


public class TreeTestUtil {

public static <T> Comparator<T> shuffle(Random random) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warum braucht man hier die UUID? und den Random?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich hab das nicht geschrieben, aber es assigned einfach eine random UUID jedem Element und benutzt die als comparison Wert, damit das zufällig sortiert ist. Warum das in dem TernaryTree Test so gebraúcht wird weiß ich nicht

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, ich denke man könnte auch einfach random ints/Integer zurückgeben

@awildturtok awildturtok merged commit bb94d32 into develop Feb 15, 2024
6 checks passed
@delete-merged-branch delete-merged-branch bot deleted the feature/bye-bye-index branch February 15, 2024 10:32
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

Successfully merging this pull request may close these issues.

None yet

2 participants