public class MultiSlice extends Slice
Slice.Sort
Modifier and Type | Field and Description |
---|---|
protected int |
count |
protected java.util.List<Slice> |
subslices |
constrained, MAXLENGTH, SCALARSLICE, SCALARSLICES, sort, UNDEFINED
Constructor and Description |
---|
MultiSlice(java.util.List<Slice> subslices) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compare two slices for equality
|
Slice |
finish()
Perform sanity checks on a slice and repair where possible.
|
int |
getCount()
Compute the number of elements in
the slice.
|
Slice |
getSubSlice(int i) |
java.util.List<Slice> |
getSubSlices() |
int |
hashCode() |
Slice |
setMaxSize(int size) |
java.lang.String |
toConstraintString()
Convert this multislice to a string
suitable for use in a constraint
|
java.lang.String |
toString() |
compose, getFirst, getLast, getMax, getSize, getSort, getStop, getStride, isConstrained, isScalar, isWhole, iterator, setConstrained, setIndices, setIndices, setWhole, toString
protected java.util.List<Slice> subslices
protected int count
public MultiSlice(java.util.List<Slice> subslices) throws DapException
DapException
public boolean equals(java.lang.Object o)
public java.lang.String toConstraintString() throws DapException
toConstraintString
in class Slice
DapException
public Slice finish() throws DapException
Slice
finish
in class Slice
DapException
- if slice is malformedpublic java.util.List<Slice> getSubSlices()
getSubSlices
in class Slice
public Slice getSubSlice(int i)
getSubSlice
in class Slice
public int getCount()
Slice
public Slice setMaxSize(int size) throws DapException
setMaxSize
in class Slice
DapException