Class MultiSlice


  • public class MultiSlice
    extends Slice
    A MultiSlice is a list of slices to support e.g. [x:y,a:b] It subclasses Slice so it can appear in same places slices do; code is expected to differentiate.
    • Field Detail

      • count

        protected int count
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Compare two slices for equality
        Overrides:
        equals in class Slice
        Parameters:
        o - the other slice to compare with
        Returns:
        true if this and other are the same, false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Slice
      • finish

        public Slice finish()
                     throws DapException
        Description copied from class: Slice
        Perform sanity checks on a slice and repair where possible.
        Overrides:
        finish in class Slice
        Returns:
        this (fluent interface)
        Throws:
        DapException - if slice is malformed
      • getCount

        public int getCount()
        Description copied from class: Slice
        Compute the number of elements in the slice. Note that this is different from getStop() because stride is taken into account.
        Overrides:
        getCount in class Slice