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