Sjmarfcake to Programmer Humor@programming.dev • 4 months agoIs this a Nut?media.gehirneimer.deimagemessage-square131fedilinkarrow-up11.3Karrow-down120
arrow-up11.28Karrow-down1imageIs this a Nut?media.gehirneimer.deSjmarfcake to Programmer Humor@programming.dev • 4 months agomessage-square131fedilink
minus-square@gandalf_der_12te@feddit.delinkfedilink47•edit-24 months agoIn Java, it’s not called the Crackable interface. It’s the Nuttable interface.
minus-square@Benaaasaaas@lemmy.worldlinkfedilink42•4 months agoActually it’s AbstractNutAndShellsFactory
minus-square@steeznson@lemmy.worldlinkfedilink5•4 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.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
?