Class SourceContextLoader.Line
- java.lang.Object
- 
- software.amazon.smithy.model.loader.sourcecontext.SourceContextLoader.Line
 
- 
- Enclosing interface:
- SourceContextLoader
 
 public static final class SourceContextLoader.Line extends java.lang.ObjectA pair of line numbers to the contents of lines.
- 
- 
Constructor SummaryConstructors Constructor Description Line(int lineNumber, java.lang.CharSequence content)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.CharSequencegetContent()Returns the content as a CharSequence.intgetLineNumber()Get the line number of the line, starting at 1.inthashCode()java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
getLineNumberpublic int getLineNumber() Get the line number of the line, starting at 1.- Returns:
- Returns the 1-based line number.
 
 - 
getContentpublic java.lang.CharSequence getContent() Returns the content as a CharSequence.CharSequence is used here to allow implementations to potentially use things like CharBuffer slices. - Returns:
- The content of the line.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-