public class Hyphenation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int[] |
hyphenPoints |
private int |
len
number of hyphenation points in word
|
private java.lang.String |
word |
| Constructor and Description |
|---|
Hyphenation(java.lang.String word,
int[] points)
rawWord as made of alternating strings and
Hyphen
instances |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getHyphenationPoints() |
java.lang.String |
getPostHyphenText(int index) |
java.lang.String |
getPreHyphenText(int index) |
int |
length() |
java.lang.String |
toString() |
private int[] hyphenPoints
private java.lang.String word
private int len
Hyphenation(java.lang.String word,
int[] points)
Hyphen
instancespublic int length()
public java.lang.String getPreHyphenText(int index)
public java.lang.String getPostHyphenText(int index)
public int[] getHyphenationPoints()
public java.lang.String toString()
toString in class java.lang.Object