Skip to content

Conversation

@bioball
Copy link
Member

@bioball bioball commented Jan 8, 2026

Adds convenience methods isNotEmpty and isNotBlank. This borrows the same methods from Kotlin.

This helps users write more fluent constraints, for example, foo.isNotEmpty.implies(bar).

Adds:

  • List#isNotEmpty
  • Map#isNotEmpty
  • Set#isNotEmpty
  • Mapping#isNotEmpty
  • Listing#isNotEmpty
  • String#isNotEmpty
  • String#isNotBlank

Adds convenience methods `isNotEmpty` and `isNotBlank`.
This borrows the same methods from Kotlin.

This helps users write more fluent constraints, for example,
`foo.isNotEmpty.implies(bar)`.
Copy link
Contributor

@HT154 HT154 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@stackoverflow stackoverflow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bioball bioball merged commit ac4f2fd into apple:main Jan 8, 2026
17 checks passed
@bioball bioball deleted the is-not-empty branch January 8, 2026 21:22
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

Successfully merging this pull request may close these issues.

3 participants