It is very common to use "preparameterization" (I don't know the technical name) in Java classes and methods. For example:
public static <Integer> String descodificar(){}
where what I call pre-parameterization refers to the specification of the "Integer" type. My specific question is:
What is it called and how do I use it? Not knowing the technical name, I jump around the web without success. It seems that it is used to restrict the type of parameters that the method can receive, but I am not sure either.
It's called Generics ( java generics ). It allows defining generic classes and methods in java. What you call pre-parameterization is called a type parameter
Basically, classes can be defined that contain fields of an indeterminate type (or subgroup of types, eg: < ? extends T> only accepts objects of type T or its subclasses) and when using them, the type is indicated. Remember that types are Classes or Interfaces (not primitive types).
You can also define generic methods like the one in the statement, it is not necessary for the class to be generic.
It is a vast topic and can be used in many ways. It can't be fully explained in one answer, it has several details to consider. Greetings.