org.schwa.dr
Class Slice<T extends Ann>

java.lang.Object
  extended by org.schwa.dr.Slice<T>

public class Slice<T extends Ann>
extends Object

A slice over other Ann instances in the docrep Java API.

Slices in the Java API are [inclusive, inclusive] unlike the C++ and Python APIs, which are [inclusive, exclusive).

Author:
Tim Dawborn

Field Summary
 T start
          The inclusive starting point of the slice.
 T stop
          The inclusive stopping point of the slice.
 
Constructor Summary
Slice()
           
Slice(T start, T stop)
           
 
Method Summary
 boolean equals(Object o)
           
 T getStart()
           
 T getStop()
           
 int hashCode()
           
 void setStart(T start)
           
 void setStop(T stop)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

public T extends Ann start
The inclusive starting point of the slice.


stop

public T extends Ann stop
The inclusive stopping point of the slice.

Constructor Detail

Slice

public Slice()

Slice

public Slice(T start,
             T stop)
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getStart

public T getStart()

getStop

public T getStop()

setStart

public void setStart(T start)

setStop

public void setStop(T stop)


Copyright © 2014. All rights reserved.