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