• @steeznson
    link
    510 months ago

    Provided your method specifies a strongly bound type you can ensure that you get your nut.

    void dischargeNut(T extends Nut) { ... }