Skip to content

Refactor CustomEnum to enum semantics - #4

Merged
tjXJNOOBIE merged 9 commits into
staging/platformfrom
working/custom-enum-enum-semantics-20260918
Sep 19, 2026
Merged

tjXJNOOBIE merged 9 commits into
staging/platformfrom
working/custom-enum-enum-semantics-20260918

Conversation

@tjXJNOOBIE

Copy link
Copy Markdown
Contributor

Refactors CustomEnum around the intended low-level enum model:

  • custom-enum families declare typed constants once with register(...)
  • identity equality and enum-style name() / ordinal() semantics
  • exact valueOf(type, name) lookup and ordered immutable values(type) snapshots
  • duplicate names rejected within a concrete type
  • removes the public registry/bootstrap/alias/freeze abstraction
  • moves EnumValues to its own top-level package-private class
  • replaces registry-centric tests with enum-behavior tests
  • rewrites the README around a simple ThreadType example
  • updates Gradle/project/package publication metadata for tavall-custom-enum-java

Local javac -Xlint:all -Werror smoke validation passed before opening this PR.

@tjXJNOOBIE
tjXJNOOBIE merged commit c8fa2e9 into staging/platform Sep 19, 2026
2 checks passed
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.

1 participant