net.java.sen.dictionary
Class Reading

java.lang.Object
  extended by net.java.sen.dictionary.Reading

public class Reading
extends Object

A class representing a reading applied to a set of characters within a sentence


Field Summary
 int length
          The number of characters of the sentence covered by the reading
 int start
          The starting point within the sentence
 String text
          The reading text applied to the covered span
 
Constructor Summary
Reading(int start, int length, String text)
           
 
Method Summary
 boolean equals(Object object)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

start

public final int start
The starting point within the sentence


length

public final int length
The number of characters of the sentence covered by the reading


text

public final String text
The reading text applied to the covered span

Constructor Detail

Reading

public Reading(int start,
               int length,
               String text)
Parameters:
start - The starting point within the sentence
length - The number of characters of the sentence covered by the reading
text - The reading text applied to the covered span
Method Detail

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.