Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 8 months agoIs this a Nut?sh.itjust.worksimagemessage-square28fedilinkarrow-up16arrow-down10
arrow-up16arrow-down1imageIs this a Nut?sh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 8 months agomessage-square28fedilink
minus-squaregandalf_der_12te@feddit.delinkfedilinkarrow-up0·edit-28 months agoIn Java, it’s not called the Crackable interface. It’s the Nuttable interface.
minus-squaresteeznson@lemmy.worldlinkfedilinkarrow-up0·8 months agoProvided your method specifies a strongly bound type you can ensure that you get your nut. void dischargeNut(T extends Nut) { ... }
In Java, it’s not called the
Crackable
interface.It’s the
Nuttable
interface.Provided your method specifies a strongly bound type you can ensure that you get your nut.
void dischargeNut(T extends Nut) { ... }
strongly bound you say?