Class SetUtils


  • public final class SetUtils
    extends Object
    Since:
    1.0
    Author:
    Daniel Fernández
    • Method Detail

      • toSet

        public static Set<?> toSet(Object target)
      • size

        public static int size(Set<?> target)
      • isEmpty

        public static boolean isEmpty(Set<?> target)
      • contains

        public static boolean contains(Set<?> target,
                                       Object element)
      • containsAll

        public static boolean containsAll(Set<?> target,
                                          Object[] elements)
      • containsAll

        public static boolean containsAll(Set<?> target,
                                          Collection<?> elements)
      • singletonSet

        public static <X> Set<X> singletonSet(X element)