dap4/d4core/src/main/java/dap4/core/util/DapUtil.java
static public boolean
    isWhole(List<Slice> slices, List<DapDimension> dimset)
    {
        if(slices.size() != dimset.size())
            return false;
        for(int i = 0; i < slices.size(); i++) {
            Slice slice = slices.get(i);
            DapDimension dim = dimset.get(i);
            if(slice.getStride() != 1 || slice.getFirst() != 0 || slice.getCount() != dim.getSize())
                return false;
        }
        return true;
    }
static public boolean
    isWhole(List<Slice> slices, List<DapDimension> dimset)
    {
        if(slices.size() != dimset.size())
            return false;
        for(int i = 0; i < slices.size(); i++) {
            Slice slice = slices.get(i);
            DapDimension dim = dimset.get(i);
            if(slice.getStride() != 1 || slice.getFirst() != 0 || slice.getCount() != dim.getSize())
                return false;
        }
        return true;
    }
Test a List<Slice> against set of DapDimensions
to see if the list is whole wrt the dimensions

@param slices the set of slices
@param dimset the list of DapDimension
@result true if slices is whole wrt dimset; false otherwise