Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · vor 2 JahrenIs this a Nut?media.gehirneimer.deimagemessage-square130linkfedilinkarrow-up11.31Karrow-down120
arrow-up11.29Karrow-down1imageIs this a Nut?media.gehirneimer.deSjmarf@sh.itjust.works to Programmer Humor@programming.dev · vor 2 Jahrenmessage-square130linkfedilink
minus-squaresteeznson@lemmy.worldlinkfedilinkarrow-up8arrow-down3·vor 2 JahrenProvided your method specifies a strongly bound type you can ensure that you get your nut. void dischargeNut(T extends Nut) { ... }
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?