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

Add new Table operations #16

Open
1 of 3 tasks
Clashsoft opened this issue May 25, 2021 · 0 comments
Open
1 of 3 tasks

Add new Table operations #16

Clashsoft opened this issue May 25, 2021 · 0 comments
Assignees
Labels
feature New feature or request
Milestone

Comments

@Clashsoft
Copy link
Member

Clashsoft commented May 25, 2021

Add the following new table operations for parity with generated tables, as suggested by @azuendorf:

  • forEach as a shorthand for toSet().forEach / stream().distinct().forEach.
  • get(int i) for getting the value in the ith row of the current column.
  • <S extends T> Table<S> filterAs(Class<S> type), which filters by instanceof and also returns a new table of the correct type.
@Clashsoft Clashsoft added the feature New feature or request label May 25, 2021
@Clashsoft Clashsoft added this to the v1.5.0 milestone May 25, 2021
@Clashsoft Clashsoft self-assigned this May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant