Class Line

java.lang.Object
aQute.bnd.properties.Line
All Implemented Interfaces:
IRegion

final class Line extends Object implements IRegion
Describes a line as a particular number of characters beginning at a particular offset, consisting of a particular number of characters, and being closed with a particular line delimiter.
  • Field Details

    • offset

      public int offset
      The offset of the line
    • length

      public int length
      The length of the line
    • delimiter

      public final String delimiter
      The delimiter of this line
  • Constructor Details

    • Line

      public Line(int offset, int end, String delimiter)
      Creates a new Line.
      Parameters:
      offset - the offset of the line
      end - the last including character offset of the line
      delimiter - the line's delimiter
    • Line

      public Line(int offset, int length)
      Creates a new Line.
      Parameters:
      offset - the offset of the line
      length - the length of the line
  • Method Details

    • getOffset

      public int getOffset()
      Specified by:
      getOffset in interface IRegion
    • getLength

      public int getLength()
      Specified by:
      getLength in interface IRegion