N
N
No Name2017-10-30 17:25:53
Java
No Name, 2017-10-30 17:25:53

Generics: What does this entry mean?

What does such a record mean?
ClassName<T,A,R>
How can generic take multiple input types, what does that expand into in the code? Please provide code examples.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
illuzor, 2017-10-30
@iLLuzor

This means that three generics must be specified for this class.
For an example, look at the sources of the Map interface and/or the HashMap/LinkedHashMap/LinkedTreeMap classes. There are two generics.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question