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

Consider integrating Plume-lib #7

Open
kjy5 opened this issue Aug 8, 2024 · 0 comments
Open

Consider integrating Plume-lib #7

kjy5 opened this issue Aug 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kjy5
Copy link
Owner

kjy5 commented Aug 8, 2024

// Note that `System.identityHashCode()` is not unique.  Two different values may have the same
// identity hash code.  If it's important that the values are unique (or if it would be
// convenient that they are small in-order values), use
// https://plumelib.org/plume-util/api/org/plumelib/util/UniqueId.html .
// Minor: This would be more efficient (and marginally shorter) as:
// return CollectionsPlume.filter(
//     changeSet.contentTupleSet(), contentTuple -> contentTuple.node().equals(tree));

return changeSet.contentTupleSet().stream()
    .filter(contentTuple -> contentTuple.node().equals(tree))
    .collect(Collectors.toUnmodifiableSet());
  • Pair/triple data types
  • Collection (??) data type
@kjy5 kjy5 self-assigned this Aug 8, 2024
@kjy5 kjy5 added the enhancement New feature or request label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant