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

Stream API Support #3

Open
monksy opened this issue Oct 10, 2014 · 5 comments
Open

Stream API Support #3

monksy opened this issue Oct 10, 2014 · 5 comments

Comments

@monksy
Copy link

monksy commented Oct 10, 2014

Add stream API support so that we don't have to write custom methods for doing simple stuff.

@jacek99
Copy link
Owner

jacek99 commented Feb 3, 2015

Could you give me some samples and suggestions? Just learning all the ropes for Java 8 myself at this time...

@hhhxxjj
Copy link

hhhxxjj commented Feb 12, 2015

Maybe KotliFx project can be useful for U. See:
https://github.com/eugenkiss/kotlinfx/wiki
https://github.com/eugenkiss/kotlinfx/wiki/Why-KotlinFX#ui-builders

I hope that:

  1. javabuilders is more simplicated than KotlinFx;
  2. javaBuilder can be used at Android in the future.

@jacek99
Copy link
Owner

jacek99 commented Feb 17, 2015

sure thing, should be possible
however I am still waiting for @monksy to give me some samples of how he things stream support could work and in what use cases

@monksy
Copy link
Author

monksy commented Feb 17, 2015

I guess the biggest example that I had in mind was:

Lets say that you have a table of <id, name, value> values and you had the underlying list named dataContents.

Lets also say that you have a search box above. Well the onaction could become:

incomingValue -> dataContents.stream().filter(s-> s.name.contains(incomingValue) || s.value.contains(incomingValue)).list()

The incoming value isn't hugely neccessary if you want to hard code that name. However this line would remove the code within the code behind, and it's just used for filtering the data contents. Its just a thought.

@jacek99
Copy link
Owner

jacek99 commented Feb 17, 2015

sure, but that is on the code side, not in the YML side (which is where we focus). So I am not sure how you imagine it being integrated.

With the improvements in Java 8, a lot of the verbosity is cut down.

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

3 participants