S - the style typepublic class StyleSpan<S>
extends java.lang.Object
Tuple2 of a given style StyleSpan that spans a given length.| Constructor | Description |
|---|---|
StyleSpan(S style,
int length) |
Creates a style span.
|
| 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() |
public StyleSpan(S style, int length)
public S getStyle()
public int getLength()
public boolean equals(java.lang.Object other)
StyleSpans are considered equal if they have equal length and
equal style.equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object