org.springframework.boot.origin

Class TextResourceOrigin.Location

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


    public static final class TextResourceOrigin.Location
    extends java.lang.Object
    A location (line and column number) within the resource.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      int getColumn()
      Return the column of the text resource where the property originated.
      int getLine()
      Return the line of the text resource where the property originated.
      int hashCode() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • 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(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object