Top "Predicate" questions

A Predicate is a method which represents a set of criteria and decides for a given object if these criteria are fulfilled or not.

Spring Data + QueryDSL empty predicate + Predicate chaining

let me get straight to the point. I am using Spring Data JPA with QueryDSL in a project and I …

spring predicate querydsl
How to filter child entities collections with predicate?

I have an entity service on which I need to filter a collection of child entity, based on a list …

jpa spring-data predicate criteria-api
Finding elements in a scala list and also know which predicate has been satisfied

I have the following problem in scala. I have to find the first element in al list which satisfies a …

list scala find predicate
XPath element which contains an attribute and whose parent's parent contains another attribute

This is my first post here and since I've seen many great answers I thought I'd give it a try. …

xpath element parent predicate axes
Default value on generic predicate as argument

First time question for me :) I need some way to define a default predicate using a generic on the format …

c# arguments default-value predicate
Predicates vs if statements

I have seen in some projects that people use Predicates instead of pure if statements, as illustrated with a simple …

java if-statement lambda java-8 predicate
Java 8 - Filter with BiPredicate

I have a Stream of Integer and I would like to find the two numbers whose sum is equals to …

java lambda filter functional-programming predicate
How to add a list of Predicates to CriteriaBuilder.or

I have a List to append in an or condition The Issue I am facing is when I am iterating …

java jpa spring-data-jpa hibernate-criteria predicate
Difference between std::greater<int>() and std::greater<int>?

This code works: #include <iostream> #include <queue> #include <vector> #include <functional> using …

c++ c++11 templates predicate functor
What is the VB.NET syntax for using List.FindAll() with a lambda?

In C# I have been performing a FindAll in a generic list as follows: List<group.category> tlist = …

c# vb.net predicate generic-list findall