Class StyleSpan<S>

  • Type Parameters:
    S - the style type

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

      Constructors 
      Constructor Description
      StyleSpan​(S style, int length)
      Creates a style span.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)
      Two StyleSpans are considered equal if they have equal length and equal style.
      int getLength()  
      S getStyle()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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​(java.lang.Object other)
        Two StyleSpans are considered equal if they have equal length and equal style.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object