类 TextResourceOrigin.Location

java.lang.Object
org.springframework.boot.origin.TextResourceOrigin.Location
封闭类:
TextResourceOrigin

public static final class TextResourceOrigin.Location extends Object
A location (line and column number) within the resource.
  • 构造器详细资料

    • Location

      public Location(int line, int column)
      Create a new TextResourceOrigin.Location instance.
      参数:
      line - the line number (zero indexed)
      column - the column number (zero indexed)
  • 方法详细资料

    • getLine

      public int getLine()
      Return the line of the text resource where the property originated.
      返回:
      the line number (zero indexed)
    • getColumn

      public int getColumn()
      Return the column of the text resource where the property originated.
      返回:
      the column number (zero indexed)
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object