Package org.fxmisc.richtext.model
Class StyleSpan<S>
- java.lang.Object
-
- org.fxmisc.richtext.model.StyleSpan<S>
-
- Type Parameters:
S
- the style type
public class StyleSpan<S> extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
TwoStyleSpan
s are considered equal if they have equal length and equal style.int
getLength()
S
getStyle()
int
hashCode()
java.lang.String
toString()
-
-
-
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)
TwoStyleSpan
s are considered equal if they have equal length and equal style.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-