Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Making experimental factory functions of NotEmptyList.Companion available on Java #497

Closed
2 of 6 tasks
Tracked by #498 ...
LVMVRQUXL opened this issue Feb 20, 2024 · 1 comment
Closed
2 of 6 tasks
Tracked by #498 ...
Labels
feature New feature or request. jvm Item related to the Kotlin/JVM platform.

Comments

@LVMVRQUXL
Copy link
Contributor

LVMVRQUXL commented Feb 20, 2024

πŸ“ Description

We would like to make the experimental factory functions of the NotEmptyList.Companion type with the following signature available for Java users:

fun <E> NotEmptyList.Companion.create(collection: Collection<E>): NotEmptyList<E>
fun <E> NotEmptyList.Companion.createOrNull(collection: Collection<E>): NotEmptyList<E>?

fun <E> NotEmptyList.Companion.of(head: E, vararg tail: E): NotEmptyList<E>

This means that their compatibility should be tested and their documentation should indicate their usage from Java code.

πŸ”— Dependencies

This issue is blocked by the following ones:

βœ… Checklist

  • Make the create(Collection<E>) function available for Java users, test its compatibility, update the public API binaries and update the unreleased changelog.
  • Make the createOrNull(Collection<E>) function available for Java users, test its compatibility, update the public API binaries and update the unreleased changelog.
  • Make the of(E, vararg E) function available for Java users, test its compatibility, update the public API binaries and update the unreleased changelog.
  • Close this issue as completed and update tracking ones if present.
@LVMVRQUXL LVMVRQUXL added feature New feature or request. jvm Item related to the Kotlin/JVM platform. labels Feb 20, 2024
@LVMVRQUXL LVMVRQUXL added this to the 5.1.0 milestone Feb 20, 2024
@LVMVRQUXL LVMVRQUXL changed the title Making experimental factory functions of NotEmptyList available on Java Making experimental factory functions of NotEmptyList.Companion available on Java Feb 21, 2024
@LVMVRQUXL LVMVRQUXL changed the title Making experimental factory functions of NotEmptyList.Companion available on Java ✨ Making experimental factory functions of NotEmptyList.Companion available on Java Feb 25, 2024
@LVMVRQUXL LVMVRQUXL removed this from the 5.1.0 milestone Mar 22, 2024
@LVMVRQUXL
Copy link
Contributor Author

Another issue for stabilizing these functions will be created while resolving #619.

@LVMVRQUXL LVMVRQUXL closed this as not planned Won't fix, can't repro, duplicate, stale Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request. jvm Item related to the Kotlin/JVM platform.
Projects
None yet
Development

No branches or pull requests

1 participant