Class TextResourceOrigin.Location

java.lang.Object
org.springframework.boot.origin.TextResourceOrigin.Location
Enclosing class:
TextResourceOrigin

public static final class TextResourceOrigin.Location extends Object
A location (line and column number) within the resource.
  • Constructor Details

    • Location

      public Location(int line, int column)
      Create a new TextResourceOrigin.Location instance.
      Parameters:
      line - the line number (zero indexed)
      column - the column number (zero indexed)
  • Method Details

    • getLine

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

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object