public class TextSegment extends Object
Constructor and Description |
---|
TextSegment(String text,
Metadata metadata) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static TextSegment |
from(String text) |
static TextSegment |
from(String text,
Metadata metadata) |
int |
hashCode() |
Metadata |
metadata() |
String |
text() |
static TextSegment |
textSegment(String text) |
static TextSegment |
textSegment(String text,
Metadata metadata) |
String |
toString() |
public String text()
public Metadata metadata()
public static TextSegment from(String text)
public static TextSegment from(String text, Metadata metadata)
public static TextSegment textSegment(String text)
public static TextSegment textSegment(String text, Metadata metadata)
Copyright © 2023. All rights reserved.