ucar.visad
Class Segment

java.lang.Object
  extended by ucar.visad.Segment

public class Segment
extends Object

Provides support for a run-length encoded data segment.

Author:
Steven R. Emmerson

Constructor Summary
Segment(int index, int count)
          Constructs.
 
Method Summary
 int getCount()
          Gets the count.
 int getIndex()
          Gets the starting index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Segment

public Segment(int index,
               int count)
Constructs.

Parameters:
index - The starting index.
count - The count.
Method Detail

getIndex

public int getIndex()
Gets the starting index.

Returns:
The starting index.

getCount

public int getCount()
Gets the count.

Returns:
The count.