org.springframework.boot.origin

Class TextResourceOrigin.Location

  • Enclosing class:
    TextResourceOrigin


    public static final class TextResourceOrigin.Location
    extends Object
    A location (line and column number) within the resource.
    • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object