java - Add dynamically to a lambda expression -
Is there any way to add dynamic elements with examples for loop inside lambda expression?
I have the current code:
filtered list & lt; List & lt; String & gt; & Gt; Filtered items = new filtered list (data, e -> true); FilteredItems.predicateProperty (). Tie (binding.SentObjectBadding (-) -> li -get (0) contains (filterField.getText ()) & amp; amp; li.get (1). (FilterField2. Gettext ()), filterField.textProperty (), filterField2.textProperty ())); and I have the ability to add
li.get (x). Lemon is dependent on li size for expression, so if the size of the lye is 3, then lambda should be:
li.get (0) . (FilterField0.getText ()) & amp; Amp; Li.get (1). Includes (filterField1.getText ()) & amp; Amp; Li.get (2). (Filter Field contains 2.getText ())
Assume that you have your FilterField in a list, make sure: filteredItems.predicateProperty (). Bind (Bindings.createObjectBinding (-) -> - For - (Int i = 0; i
Comments
Post a Comment