Package convex.core.data
Class Sets
java.lang.Object
convex.core.data.Sets
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(ACountable<T> source) Creates a set of all the elements in the given data structurecreateWithShift
(int shift, ArrayList<Ref<T>> values) empty()
emptyRef()
fromCollection
(Collection<T> source) Creates a set of all the elements in the given data structureread
(ByteBuffer bb)
-
Field Details
-
EMPTY_REF
-
-
Constructor Details
-
Sets
public Sets()
-
-
Method Details
-
empty
-
emptyRef
-
of
-
of
-
create
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
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
- Throws:
BadFormatException
-
createWithShift
-