Class AttributedString.AttributedInterval

java.lang.Object
ro.sync.exml.view.graphics.AttributedString.AttributedInterval
Enclosing class:
AttributedString

public static class AttributedString.AttributedInterval extends Object
A text interval from the string, with a specific attribute.
  • Constructor Details

    • AttributedInterval

      public AttributedInterval(int startOffset, int endOffset, TextAttribute attribute, Object value)
      Constructor.
      Parameters:
      startOffset - The start offset
      endOffset - The end offset
      attribute - The attribute key
      value - The attribute value
  • Method Details

    • getStartOffset

      public int getStartOffset()
      Returns:
      Returns the index of the first character of the range.
    • getEndOffset

      public int getEndOffset()
      Returns:
      Returns the Index of the character following the last character.
    • getAttribute

      public TextAttribute getAttribute()
      Returns:
      Returns the attribute.
    • getValue

      public Object getValue()
      Returns:
      Returns the value.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also: