question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sealed wither interface?

See original GitHub issue

Its 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:closed
  • Created 3 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
danp11commented, Jun 24, 2021

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

0reactions
Randgaltcommented, Jul 14, 2021

Hmm - I didn’t think of that! That’s interesting. I’ll play around with that when I get a chance.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found