Collection Factory Methods in Java
Method w/ Parameter Description List.of(E e) A generic type that can be a class or interface. Set.of(E e) A generic type that can be a class or interface. Map.of(K k, V v) A key-value pair of generic types that can each be a class or interface. Map.of(Map.Entry<? extends V> entry) A Map.Entry instance where its … Read more