Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 9 months agoIs this a Nut?media.gehirneimer.deimagemessage-square117fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageIs this a Nut?media.gehirneimer.deSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 9 months agomessage-square117fedilink
minus-squaregandalf_der_12te@feddit.delinkfedilinkarrow-up0·edit-29 months agoIn Java, it’s not called the Crackable interface. It’s the Nuttable interface.
minus-squareFishbone@lemmy.worldlinkfedilinkarrow-up0·9 months agoHow do I know if something is Nuttable?
minus-squareBenaaasaaas@lemmy.worldlinkfedilinkarrow-up0·9 months agoActually it’s AbstractNutAndShellsFactory
minus-squaresteeznson@lemmy.worldlinkfedilinkarrow-up0·9 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.How do I know if something is
Nuttable
?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?