Sjmarf to Programmer [email protected] • 9 months agoIs this a Nut?media.gehirneimer.deimagemessage-square128fedilinkarrow-up11.29Karrow-down120
arrow-up11.27Karrow-down1imageIs this a Nut?media.gehirneimer.deSjmarf to Programmer [email protected] • 9 months agomessage-square128fedilink
minus-square@[email protected]linkfedilink45•edit-29 months agoIn Java, it’s not called the Crackable interface. It’s the Nuttable interface.
minus-square@steeznsonlink5•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.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
?