Class Sets

java.lang.Object
org.javers.common.collections.Sets

public class Sets extends Object
  • Method Details

    • wrapNull

      public static Set wrapNull(Object set)
    • intersection

      public static <E> Set<E> intersection(Set<E> first, Set<E> second)
      null args are allowed
    • xor

      public static <E> Set<E> xor(Set<E> first, Set<E> second)
    • difference

      public static <E> Set<E> difference(Set<E> first, Set<E> second)
      null args are allowed
      Returns:
      mutable set
    • difference

      public static <E> Collection<E> difference(Set<E> first, Set<E> second, Function<E,String> hasher)
      null args are allowed
    • asSet

      public static <E> Set<E> asSet(E... elements)
    • asSet

      public static <E> Set<E> asSet(Collection<E> elements)
    • transform

      public static <F, T> Set<T> transform(Set<F> input, Function<F,T> transformation)
      Returns:
      ImmutableSet
    • asMap

      public static <T> Map<Integer,T> asMap(Set<T> input)
      Returns:
      index -> value
    • toImmutableSet

      public static <t> Collector<t,Set<t>,Set<t>> toImmutableSet()
    • join

      public static <T> Set<T> join(Set<T> a, Set<T> b)