public long
    getCount()
    {
        assert this.first != UNDEFINED && this.stride != UNDEFINED && this.stop != UNDEFINED;
        long count = (this.stop) - this.first;
        count = (count + this.stride - 1);
        count /= this.stride;
        return count;
    }
public long
    getCount()
    {
        assert this.first != UNDEFINED && this.stride != UNDEFINED && this.stop != UNDEFINED;
        long count = (this.stop) - this.first;
        count = (count + this.stride - 1);
        count /= this.stride;
        return count;
    }
public long getCount ( ) { assert this . first != UNDEFINED && this . stride != UNDEFINED && this . stop != UNDEFINED ; long count = ( this . stop ) - this . first ; count = ( count + this . stride - 1 ) ; count /= this . stride ; return count ; }
Compute the number of elements in
the slice. Note that this is different from
getStop() because stride is taken into account.
Compute the number of elements in the slice . Note that this is different from getStop () because stride is taken into account .