What does it mean when people write public class Nir<E> as the name of the class?
Does it mean that the instances of Nir will be collection of type E?
I don’t really get it. Is it just a declaration that the methods in the Nir will use collections?
Eis a generic type parameter.Nir<E>is readNirofE. It says thatNiris a class that is in some way related toE.Collection<E>uses generics to say it containsEs.Class<E>says it describesE.Comparator<E>says it comparesEs.There are many uses for generics.