Skip to content

Remove PersistedConfiguration support for Supplier<{Boolean,Integer,Long,Double}> - #114

Merged
kcooney merged 3 commits into
mainfrom
kcooney/persisted-configuration-suppliers
Feb 1, 2026
Merged

Remove PersistedConfiguration support for Supplier<{Boolean,Integer,Long,Double}>#114
kcooney merged 3 commits into
mainfrom
kcooney/persisted-configuration-suppliers

Conversation

@kcooney

@kcooney kcooney commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

This reduces complexity in the PersistedConfiguration code.

Users can still use BooleanSupplier, IntegerSupplier, LongSupplier,
DoubleSupplier or Supplier.

Also rename "factory" to "fetcher" (to make the intent more clear).

@kcooney
kcooney force-pushed the kcooney/persisted-configuration-suppliers branch 2 times, most recently from 575f190 to cf1a708 Compare January 10, 2026 20:30
@kcooney
kcooney marked this pull request as ready for review January 10, 2026 20:32
@kcooney
kcooney force-pushed the kcooney/persisted-configuration-suppliers branch from cf1a708 to f6cd704 Compare January 10, 2026 20:49
@kcooney kcooney changed the title Remove support for Supplier<{Boolean,Integer,Long,Double}> PersistedConfiguration: Remove support for Supplier<{Boolean,Integer,Long,Double}> Jan 11, 2026
@kcooney kcooney changed the title PersistedConfiguration: Remove support for Supplier<{Boolean,Integer,Long,Double}> Remove PersistedConfiguration support for Supplier<{Boolean,Integer,Long,Double}> Jan 11, 2026
@kcooney
kcooney force-pushed the kcooney/int-preferences branch from f6499ee to 02c0739 Compare January 15, 2026 02:25
@kcooney
kcooney force-pushed the kcooney/persisted-configuration-suppliers branch from f6cd704 to 05c0362 Compare January 15, 2026 02:26
Base automatically changed from kcooney/int-preferences to main February 1, 2026 02:57
@kcooney
kcooney force-pushed the kcooney/persisted-configuration-suppliers branch from 05c0362 to 92d8fe5 Compare February 1, 2026 02:58

@cuttestkittensrule cuttestkittensrule left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There is a minor doc fix that should be done, but other than that, it looks good to go

Comment thread lib/src/main/java/com/team2813/lib2813/preferences/PersistedConfiguration.java Outdated
This reduces complexity in the PersistedConfiguration code.

Users can still use BooleanSupplier, IntegerSupplier, LongSupplier,
DoubleSupplier or Supplier<String>.
@kcooney
kcooney force-pushed the kcooney/persisted-configuration-suppliers branch from 246101b to bcbda35 Compare February 1, 2026 03:10
@kcooney
kcooney merged commit 780aad8 into main Feb 1, 2026
1 check passed
@kcooney
kcooney deleted the kcooney/persisted-configuration-suppliers branch February 1, 2026 04:12
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.

2 participants