Package ca.cgjennings.ui.textedit
Class AbbreviationTable.Expansion
- java.lang.Object
-
- ca.cgjennings.ui.textedit.AbbreviationTable.Expansion
-
- Enclosing class:
- AbbreviationTable
public static class AbbreviationTable.Expansion extends java.lang.Object
Encapsulates an expansion result fromAbbreviationTable.expandAbbreviation(java.lang.String)
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAbbreviation()
Returns the abbreviation that triggered the result.java.lang.String
getExpansion()
Returns the expansion associated with the abbreviation.java.lang.String
toString()
Returns a string describing the expansion; useful for debugging.
-
-
-
Method Detail
-
getAbbreviation
public java.lang.String getAbbreviation()
Returns the abbreviation that triggered the result.- Returns:
- the matching abbreviation
-
getExpansion
public java.lang.String getExpansion()
Returns the expansion associated with the abbreviation.- Returns:
- the expansion for the abbreviation
-
toString
public java.lang.String toString()
Returns a string describing the expansion; useful for debugging.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string describing this expansion result
-
-