Home > Back-end >  How do you understand this generic please?
How do you understand this generic please?

Time:11-18

public class MapBuilder , K, V> {

Private final Map The map=new HashMap (a);

Key public B put (K, V value) {
This. The map. The put (key, value);
Return _this ();
}

Public Map The get () {
Return this. The map;
}

@ SuppressWarnings (" unchecked ")
Protected final _this B () {//NOSONAR the underscore
This return (B);
}

}

How did he do it extends itself, create the class object need how? New MapBuilder The (direct) error
  • Related