X Tutup
Skip to content

GH-2: improve Stream and Optional API#3

Merged
alemazzo merged 1 commit intoalemazzo:mainfrom
sskorol:GH-2-improve-stream-and-optional-api
Jan 4, 2022
Merged

GH-2: improve Stream and Optional API#3
alemazzo merged 1 commit intoalemazzo:mainfrom
sskorol:GH-2-improve-stream-and-optional-api

Conversation

@sskorol
Copy link
Copy Markdown
Contributor

@sskorol sskorol commented Jan 4, 2022

  • Added new orElse and orElseGet API to Optional class to follow the original Java style
  • Adjusted Stream's findFirst API to support predicate to follow the original Java style
  • Update py docs with newly added API
  • Added new ignorable items

Fixes #2

@alemazzo note that there were some DeepSource violations in the existing code. E.g. Stream's of API. As python doesn't welcome a Java-like overloading style, it has to be either refactored or ignored. I temporarily ignored this rule for the 49th line.

@sskorol sskorol force-pushed the GH-2-improve-stream-and-optional-api branch 2 times, most recently from 341dfa3 to f8a157e Compare January 4, 2022 16:20
- Added new orElse and orElseGet API to Optional class to follow the original Java style
- Adjusted Stream's findFirst to support predicate to following the original Java style
- Update py docs with newly added API
- Added new ignorable items
@sskorol sskorol force-pushed the GH-2-improve-stream-and-optional-api branch from f8a157e to 440df5a Compare January 4, 2022 16:24
@alemazzo alemazzo merged commit 08706cb into alemazzo:main Jan 4, 2022
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.

Stream API improvements

2 participants

X Tutup