Class StyleSpan<S>

  • Type Parameters:
    S - the style type

    public class StyleSpan<S>
    extends Object
    Essentially, a Tuple2 of a given style StyleSpan that spans a given length.
    • Constructor Detail

      • StyleSpan

        public StyleSpan​(S style,
                         int length)
        Creates a style span. Note: length cannot be negative.
    • Method Detail

      • getStyle

        public S getStyle()
      • getLength

        public int getLength()
      • equals

        public boolean equals​(Object other)
        Two StyleSpans are considered equal if they have equal length and equal style.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object