Record Class DotNetAttributeLocator.Located

java.lang.Object
java.lang.Record
io.jenkins.plugins.configsplice.engine.xml.DotNetAttributeLocator.Located
Record Components:
range - the range strictly between the quotes
quote - the quote character in use, which determines replacement escaping
rawValue - the source text of the value, still escaped; decode before comparing to a literal
Enclosing class:
DotNetAttributeLocator

public static record DotNetAttributeLocator.Located(SourceRange range, char quote, String rawValue) extends Record
A located attribute value.
  • Constructor Details

    • Located

      public Located(SourceRange range, char quote, String rawValue)
      Creates an instance of a Located record class.
      Parameters:
      range - the value for the range record component
      quote - the value for the quote record component
      rawValue - the value for the rawValue record component
  • Method Details

    • decodedValue

      public String decodedValue()
      The current value with entities resolved, for idempotency comparisons.
    • toString

      public String toString()
      Masks rawValue: the value currently in the file may itself be a secret.
      Specified by:
      toString in class Record
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • range

      public SourceRange range()
      Returns the value of the range record component.
      Returns:
      the value of the range record component
    • quote

      public char quote()
      Returns the value of the quote record component.
      Returns:
      the value of the quote record component
    • rawValue

      public String rawValue()
      Returns the value of the rawValue record component.
      Returns:
      the value of the rawValue record component