public class CaptionText
extends java.lang.Object
RegularExpression support, common
caption encodings can easily be compared in a meaningful way.| Constructor and Description |
|---|
CaptionText(java.lang.String caption)
Constructs a
CaptionText wrapper class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object right)
Overrides the default
Object.equals to provide a more interesting caption-specific
result. |
java.lang.String |
getCaption()
Returns the caption text encapsulated by this class.
|
void |
setCaption(java.lang.String caption)
Overrides the previously defined caption text encapsulated by this class.
|
java.lang.String |
toString()
Overrides the default
Object.toString to provide a more interesting caption-specific
result. |
public CaptionText(java.lang.String caption)
CaptionText wrapper class. The caption text is wrapped so that more interesting
kinds of comparisons can be performed on this text, rather than just straight character-by-character
comparisons.public java.lang.String getCaption()
public void setCaption(java.lang.String caption)
caption - the caption text to be usedpublic boolean equals(java.lang.Object right)
Object.equals to provide a more interesting caption-specific
result.equals in class java.lang.Objectright - the right side of the equals comparisonpublic java.lang.String toString()
Object.toString to provide a more interesting caption-specific
result.toString in class java.lang.Object