Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Create PredicateX#isNull and PredicateX#notNull #62

Closed
alexengrig opened this issue Aug 3, 2019 · 0 comments · Fixed by #75
Closed

Create PredicateX#isNull and PredicateX#notNull #62

alexengrig opened this issue Aug 3, 2019 · 0 comments · Fixed by #75
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@alexengrig
Copy link
Owner

alexengrig commented Aug 3, 2019

Use:

boxes
    .stream()
//      .filter(box -> box.getItem().getName() == null
    .filter(PredicateX.of(Box::getItem).map(Item::getName).isNull())
//      .filter(box -> box.getItem().getName() != null
    .filter(PredicateX.of(Box::getItem).map(Item::getName).notNull())
@alexengrig alexengrig added the enhancement New feature or request label Aug 3, 2019
@alexengrig alexengrig added this to the v0.2.0 milestone Aug 3, 2019
alexengrig added a commit that referenced this issue Aug 14, 2019
@alexengrig alexengrig changed the title Create PredicateX#equals, PredicateX#null and PredicateX#notNull Create PredicateX#isNull and PredicateX#notNull Aug 15, 2019
@alexengrig alexengrig self-assigned this Aug 15, 2019
alexengrig added a commit that referenced this issue Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant