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.ObjectEncapsulates an expansion result fromAbbreviationTable.expandAbbreviation(java.lang.String).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAbbreviation()Returns the abbreviation that triggered the result.java.lang.StringgetExpansion()Returns the expansion associated with the abbreviation.java.lang.StringtoString()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:
toStringin classjava.lang.Object- Returns:
- a string describing this expansion result
-
-