From a24c1042499f76ff2d442ae133ef165011a7af4c Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Mon, 12 Jul 2021 15:53:22 -0300 Subject: Formatting tweaks --- .../main/java/bjc/utils/funcutils/SetUtils.java | 33 +++++++++------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'base/src/main/java/bjc/utils/funcutils/SetUtils.java') diff --git a/base/src/main/java/bjc/utils/funcutils/SetUtils.java b/base/src/main/java/bjc/utils/funcutils/SetUtils.java index babdb8e..799eadc 100644 --- a/base/src/main/java/bjc/utils/funcutils/SetUtils.java +++ b/base/src/main/java/bjc/utils/funcutils/SetUtils.java @@ -5,20 +5,17 @@ import java.util.HashSet; import java.util.List; import java.util.Set; -/** - * Various utility functions dealing with sets. +/** Various utility functions dealing with sets. * - * @author bjculkin - * - */ + * @author bjculkin */ public class SetUtils { - /** - * Create a power-set (set of all subsets) of a given set. + /** Create a power-set (set of all subsets) of a given set. * - * @param originalSet - * The set to create a power-set of. - * @return The power-set of the set. - */ + * @param The type of element in the set. + * + * @param originalSet The set to create a power-set of. + * + * @return The power-set of the set. */ public static Set> powerSet(Set originalSet) { Set> sets = new HashSet<>(); @@ -52,19 +49,17 @@ public class SetUtils { return sets; } - /** - * Utility method for set construction. + /** Utility method for set construction. * - * @param elms - * The elements to stick in the set. - * @return A set containing the specified elements. - */ + * @param The type of element in the set. + * + * @param elms The elements to stick in the set. + * + * @return A set containing the specified elements. */ @SafeVarargs public static Set toSet(T... elms) { Set set = new HashSet<>(); - for (T elm : elms) set.add(elm); - return set; } } -- cgit v1.2.3