Sealed wither interface?
See original GitHub issueIts still down the line (Java 17, most likely), but it would be nice to have the RecordName.With
generated interface be sealed so that only the record can implement it
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Bruce Eckel on Java interfaces and sealed classes
An enumeration creates a class that has only a fixed number of instances. JDK 17 finalizes the introduction of sealed classes and interfaces,...
Read more >Sealed Classes and Interfaces in Java 15 - Baeldung
Sealing allows classes and interfaces to define their permitted subtypes. In other words, a class or an interface can now define which ...
Read more >Why does the 'sealed' keyword exist in .Net? - Stack Overflow
My concrete classes that implement these interfaces tend to be a private concern and are marked internal and/or private. I don't feel that...
Read more >Wither (Spigot-API 1.19.2-R0.1-SNAPSHOT API)
Represents one of the Wither's heads. Nested classes/interfaces inherited from interface org.bukkit.entity.Entity · Entity.Spigot ...
Read more >Idiomatic Kotlin. Best Practices. - Philipp Hauer's Blog
Back in Java, fluent setters (also called “Wither”) where used to ... need to implement a framework interface that doesn't have any state....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi again Jordan
I hope you don’t mind that I ask you to reopen this “issue”.
Building systems/good software is IMHO alot about designing the domain model. (I’m a decent Java programmer, but old enough to have appreciated a good old and clever database design 😃)
And as records is more about composition than inheritance this ticket would be gold to keep open IMHO. When Java 17 is out we can have another discussion about the reporter’s initial proposal. My two cents is that this makes sense.
Thanks for your good work and the exciting last days commits 😃 Nice weekend,
/Dan
Hmm - I didn’t think of that! That’s interesting. I’ll play around with that when I get a chance.