predicates Questions

2

Solved

I want to group a collection but I don't want the aggregations to include some values. What's the best solution to do that? A solution could be a collector filtering(Predicate,Collector) but there...
Insidious asked 7/10, 2015 at 20:28

7

Solved

Not quite sure how to word this question. I am wondering if there is a method to check certain parts of a custom java class to see if it matches a certain criteria. Such as this public Name(Strin...
Loment asked 25/2, 2010 at 17:27

1

I want to convert this code to assembly using predicated instruction If (A>B){ C=A; D=B; E=0 } else{ C=B; } Is it correct or how can i use jump ? cmp R1,R2; considering B is a...
Connelley asked 14/5, 2016 at 5:34

2

Solved

I have the following map of the search criteria: private final Map<String, Predicate> searchMap = new HashMap<>(); private void initSearchMap() { Predicate<Person> allDrivers ...
Subfusc asked 23/8, 2015 at 12:7

1

Solved

For debugging purposes I am trying to create string representations of lambda expressions (specifically of Predicates, though it would be interesting for other lambda expressions too) in Java...
Grad asked 16/5, 2014 at 20:51

1

Solved

I could have sworn I saw an article on this recently, but I can't find it. I'm trying to make a type to do binary encoding of the numbers mod n, but to do so, I need to be able to write predicates...
Buerger asked 27/2, 2012 at 23:46

2

Solved

I run into problem while reading a book. I see a program use predicate "simple" ( I guess simple/1 ). I don't know what is the meaning of this predicate, I can't find it with ?-help(simple) in the ...
Zarah asked 28/1, 2012 at 4:20

1

Solved

I have an Artist object with a .localConcerts fetched property (basically a subset of the full .concerts set), can I use that property inside my NSFetchedResultsController predicate? Here's what I...
Ragland asked 23/6, 2011 at 5:12

3

Solved

In debugging mode, if I hover over a predicate, what I see is just some type names and some non-understandable symbols. This makes it very difficult to debug a code, for example to know what predic...
Contract asked 9/6, 2011 at 14:20

4

Solved

I am using the guava library and have noticed that a very useful Predicate is not defined - "greater than". Is there another place I should be looking for basic predicates like this, or am I doomed...
Chalcedony asked 2/4, 2011 at 17:19

2

Solved

Performance wise, on a relatively large array (so far the usual count for the original array is ±20000), which method is best suited to filter it? Blocks or predicates? Most of the ivars of the co...
Chucho asked 7/2, 2011 at 13:21

3

Solved

I would like to construct an XPath query that will return a "div" or "table" element, so long as it has a descendant containing the text "abc". The one caveat is that it can not have any div or tab...
Lottie asked 13/10, 2010 at 5:15

3

Solved

How can I reverse a predicate's return value, and remove the elements that return false instead of true? Here is my code: headerList.remove_if(FindName(name)); (please ignore lack of erase) wi...
Ibnrushd asked 5/10, 2010 at 14:27

1

Solved

I am trying to create dynamic predicate so that it can be used against a list for filtering public class Feature { public string Color{get;set;} public string Weight{get;set;} } I want to b...
Smalt asked 7/8, 2010 at 18:49

3

Solved

I'd like a method that has the following API: //get all users with a role of admin var users = myRepository.GetUsers(u => u.Role == Role.Admin); Will something like this work? IList<User&...
Joost asked 5/2, 2010 at 11:43
1

© 2022 - 2024 — McMap. All rights reserved.