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 booleanequals(java.lang.Object other)TwoStyleSpans are considered equal if they have equal length and equal style.intgetLength()SgetStyle()inthashCode()java.lang.StringtoString()
-
-
-
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)
TwoStyleSpans are considered equal if they have equal length and equal style.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-