Get the interface name from the implementation class
Using Reflection you can invoke the Class.getInterfaces()
method which returns an Array of Interfaces
that your class implements.
list.getClass().getInterfaces()[0];
To get just the name
list.getClass().getInterfaces()[0].getSimpleName();
Class aClass = ... //obtain Class object.
Class[] interfaces = aClass.getInterfaces();