[Fix] SynchronizedCollections should be public and static

This commit is contained in:
Robert von Burg 2020-02-15 17:18:53 +01:00
parent ad371ecb1b
commit 9b452b1ba3
1 changed files with 4 additions and 4 deletions

View File

@ -7,17 +7,17 @@ import java.util.*;
import java.util.function.*;
import java.util.stream.Stream;
class SynchronizedCollections {
public class SynchronizedCollections {
public <T, U> MapOfLists<T, U> synchronizedMapOfLists(MapOfLists<T, U> mapOfLists) {
public static <T, U> MapOfLists<T, U> synchronizedMapOfLists(MapOfLists<T, U> mapOfLists) {
return new SynchronizedMapOfLists<T, U>(mapOfLists);
}
public <T, U> MapOfSets<T, U> synchronizedMapOfSets(MapOfSets<T, U> mapOfSets) {
public static <T, U> MapOfSets<T, U> synchronizedMapOfSets(MapOfSets<T, U> mapOfSets) {
return new SynchronizedMapOfSets<T, U>(mapOfSets);
}
public <T, U, V> MapOfMaps<T, U, V> synchronizedMapOfMaps(MapOfMaps<T, U, V> mapOfMaps) {
public static <T, U, V> MapOfMaps<T, U, V> synchronizedMapOfMaps(MapOfMaps<T, U, V> mapOfMaps) {
return new SynchronizedMapOfMaps<T, U, V>(mapOfMaps);
}