Accessing functions from Java Generics

Sorry if I didn’t make it clear, I’m using Sorter as an example right now. What I’m trying to do is to find out how to do it, such as if I wanted a QuadTree to be able to handle any types of objects.