summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/funcutils/SetUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/src/main/java/bjc/utils/funcutils/SetUtils.java')
-rw-r--r--base/src/main/java/bjc/utils/funcutils/SetUtils.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/base/src/main/java/bjc/utils/funcutils/SetUtils.java b/base/src/main/java/bjc/utils/funcutils/SetUtils.java
index 83c191b..b721d10 100644
--- a/base/src/main/java/bjc/utils/funcutils/SetUtils.java
+++ b/base/src/main/java/bjc/utils/funcutils/SetUtils.java
@@ -15,8 +15,8 @@ public class SetUtils {
/**
* Create a power-set (set of all subsets) of a given set.
*
- * @param originalSet
- * The set to create a power-set of.
+ * @param <T> The type of elements contained in the set.
+ * @param originalSet The set to create a power-set of.
* @return The power-set of the set.
*/
public static <T> Set<Set<T>> powerSet(Set<T> originalSet) {
@@ -55,17 +55,15 @@ public class SetUtils {
/**
* Utility method for set construction.
*
- * @param elms
- * The elements to stick in the set.
+ * @param <T> The type of elements in the set.
+ * @param elms The elements to stick in the set.
* @return A set containing the specified elements.
*/
@SafeVarargs
public static <T> Set<T> toSet(T... elms) {
Set<T> set = new HashSet<>();
- for (T elm : elms) {
- set.add(elm);
- }
+ for (T elm : elms) set.add(elm);
return set;
}