Package de.xima.fc.common.graphdot
Class HtmlString
- java.lang.Object
-
- de.xima.fc.common.graphdot.HtmlString
-
- All Implemented Interfaces:
Serializable
,CharSequence
public final class HtmlString extends Object
Represents an HTML string that can be used for graph dot attributes to output HTML, e.g. for label. See e.g.writing node attributes
.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HtmlString(String html)
Wraps an HTML string.
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description default char
charAt(int index)
default IntStream
chars()
default IntStream
codePoints()
boolean
equals(Object obj)
int
hashCode()
default int
length()
default CharSequence
subSequence(int start, int end)
String
toString()
-
-
-
Constructor Detail
-
HtmlString
public HtmlString(String html)
Wraps an HTML string.- Parameters:
html
- HTLM string to wrap.
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toString
in interfaceCharSequence
-
charAt
public default char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
chars
public default IntStream chars()
- Specified by:
chars
in interfaceCharSequence
-
codePoints
public default IntStream codePoints()
- Specified by:
codePoints
in interfaceCharSequence
-
length
public default int length()
- Specified by:
length
in interfaceCharSequence
-
subSequence
public default CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
-