Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 8 months agoIs this a Nut?media.gehirneimer.deimagemessage-square175fedilinkarrow-up11.31K
arrow-up11.31KimageIs this a Nut?media.gehirneimer.deSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 8 months agomessage-square175fedilink
minus-squaregandalf_der_12te@feddit.delinkfedilinkarrow-up50·edit-28 months agoIn Java, it’s not called the Crackable interface. It’s the Nuttable interface.
minus-squareBenaaasaaas@lemmy.worldlinkfedilinkarrow-up42·8 months agoActually it’s AbstractNutAndShellsFactory
minus-squaresteeznson@lemmy.worldlinkfedilinkarrow-up8·8 months agoProvided your method specifies a strongly bound type you can ensure that you get your nut. void dischargeNut(T extends Nut) { ... }
minus-squareFishbone@lemmy.worldlinkfedilinkarrow-up5·8 months agoHow do I know if something is Nuttable?
In Java, it’s not called the
Crackable
interface.It’s the
Nuttable
interface.Actually it’s
AbstractNutAndShellsFactory
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?
How do I know if something is
Nuttable
?