Package net.paulhertz.pixelaudio.granular

# Class OverlapUtil.Slice

java.lang.Object
net.paulhertz.pixelaudio.granular.OverlapUtil.Slice

Enclosing class:
  OverlapUtil

public static final class OverlapUtil.Slice extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final int`
  `endIndex`
  One past the last index in the block where the span overlaps.
  `final boolean`
  `hasOverlap`
  True if there is any overlap at all.
  `final int`
  `startIndex`
  First index in the block (0..blockSize) where the span overlaps.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Slice(int startIndex, int endIndex, boolean hasOverlap)`

- ## Method Summary

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### startIndex

    public final int startIndex
    First index in the block (0..blockSize) where the span overlaps.

  - ### endIndex

    public final int endIndex
    One past the last index in the block where the span overlaps.

  - ### hasOverlap

    public final boolean hasOverlap
    True if there is any overlap at all.

- ## Constructor Details

  - ### Slice

    public Slice(int startIndex, int endIndex, boolean hasOverlap)