Advertisement · 728 × 90
#
Hashtag

#sealedInterface

Advertisement · 728 × 90

First time I coded a #sealedInterface in #Java. A method could return 3 different results, each with its own supplementary information. A sealed interface and three implementing record types seemed right.

2 1 0 0