Sjmarf to Programmer [email protected] • 3 years agoIs this a Nut?media.gehirneimer.deimagemessage-square128fedilinkarrow-up11.31Karrow-down121
arrow-up11.29Karrow-down1imageIs this a Nut?media.gehirneimer.deSjmarf to Programmer [email protected] • 3 years agomessage-square128fedilink
minus-square@[email protected]linkfedilink5•3 years agoProvided 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?