Class Sets

java.lang.Object
convex.core.data.Sets

public class Sets extends Object
  • Field Details

    • EMPTY_REF

      public static final Ref<SetLeaf> EMPTY_REF
  • Constructor Details

    • Sets

      public Sets()
  • Method Details

    • empty

      public static <T extends ACell> SetLeaf<T> empty()
    • emptyRef

      public static <T extends ACell> Ref<SetLeaf<T>> emptyRef()
    • of

      @SafeVarargs public static <T extends ACell> ASet<T> of(Object... elements)
    • of

      @SafeVarargs public static <T extends ACell> ASet<T> of(ACell... elements)
    • create

      public static <T extends ACell> ASet<T> create(ACountable<T> source)
      Creates a set of all the elements in the given data structure
      Type Parameters:
      T - Type of elements
      Parameters:
      source - Source for elements
      Returns:
      A Set
    • fromCollection

      public static <T extends ACell> ASet<T> fromCollection(Collection<T> source)
      Creates a set of all the elements in the given data structure
      Type Parameters:
      T - Type of elements
      Parameters:
      source - Source for elements
      Returns:
      A Set
    • read

      public static <T extends ACell> ASet<T> read(Blob b, int pos) throws BadFormatException
      Throws:
      BadFormatException
    • createWithShift

      public static <T extends ACell> AHashSet<T> createWithShift(int shift, ArrayList<Ref<T>> values)