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
StyleSpan s 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)
StyleSpan
s are considered equal if they have equal length and
equal style.equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object