blob: f1df962b703fae50c74f12bbdd12c8425dead551 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package org.zwobble.couscous.util;
import com.google.common.collect.ImmutableSet;
import java.util.Set;
public class ExtraSets {
private ExtraSets() {}
public static <T> Set<T> set() {
return ImmutableSet.of();
}
public static <T> Set<T> set(T value1) {
return ImmutableSet.of(value1);
}
public static <T> Set<T> set(T... values) {
return ImmutableSet.copyOf(values);
}
public static <T> Set<T> copyOf(Iterable<T> iterable) {
return ImmutableSet.copyOf(iterable);
}
}
|