@Generated(value="org.immutables.processor.ProxyProcessor") public final class ServerSentEvent extends Object
_ServerSentEvent.
Use the builder to create immutable instances:
ServerSentEvent.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerSentEvent.Builder
Builds instances of type
ServerSentEvent. |
| Modifier and Type | Method and Description |
|---|---|
static ServerSentEvent.Builder |
builder()
Creates a builder for
ServerSentEvent. |
boolean |
equals(Object another)
This instance is equal to all instances of
ServerSentEvent that have equal attribute values. |
String |
getData() |
List<String> |
getDatas() |
String |
getEventType() |
String |
getId() |
Integer |
getRetry() |
int |
hashCode()
Computes a hash code from attributes:
data, datas, eventType, id, retry. |
String |
toString()
Prints the immutable value
ServerSentEvent with attribute values. |
public String getData()
data attributepublic String getEventType()
eventType attributepublic String getId()
id attributepublic Integer getRetry()
retry attributepublic boolean equals(Object another)
ServerSentEvent that have equal attribute values.public int hashCode()
data, datas, eventType, id, retry.public String toString()
ServerSentEvent with attribute values.public static ServerSentEvent.Builder builder()
ServerSentEvent.
ServerSentEvent.builder()
.datas(List<String> | null) // nullable datas
.eventType(String | null) // nullable eventType
.id(String | null) // nullable id
.retry(Integer | null) // nullable retry
.build();
Copyright © 2019. All rights reserved.