public static final class ImmutableCloudEvent.ImmutableParticipant extends Object implements CloudEvent.Participant
CloudEvent.Participant.
Use the builder to create immutable instances:
ImmutableCloudEvent.ImmutableParticipant.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudEvent.ImmutableParticipant.Builder
Builds instances of type
ImmutableParticipant. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudEvent.ImmutableParticipant.Builder |
builder()
Creates a builder for
ImmutableParticipant. |
static ImmutableCloudEvent.ImmutableParticipant |
copyOf(CloudEvent.Participant instance)
Creates an immutable copy of a
CloudEvent.Participant value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableParticipant that have equal attribute values. |
UUID |
getGuid() |
String |
getName() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
guid, name, type. |
String |
toString()
Prints the immutable value
Participant with attribute values. |
ImmutableCloudEvent.ImmutableParticipant |
withGuid(UUID value)
Copy the current immutable object by setting a value for the
guid attribute. |
ImmutableCloudEvent.ImmutableParticipant |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableCloudEvent.ImmutableParticipant |
withType(String value)
Copy the current immutable object by setting a value for the
type attribute. |
public UUID getGuid()
getGuid in interface CloudEvent.Participantguid attributepublic String getName()
getName in interface CloudEvent.Participantname attributepublic String getType()
getType in interface CloudEvent.Participanttype attributepublic final ImmutableCloudEvent.ImmutableParticipant withGuid(UUID value)
guid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for guid (can be null)this objectpublic final ImmutableCloudEvent.ImmutableParticipant withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for name (can be null)this objectpublic final ImmutableCloudEvent.ImmutableParticipant withType(String value)
type attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for type (can be null)this objectpublic boolean equals(Object another)
ImmutableParticipant that have equal attribute values.public int hashCode()
guid, name, type.public String toString()
Participant with attribute values.public static ImmutableCloudEvent.ImmutableParticipant copyOf(CloudEvent.Participant instance)
CloudEvent.Participant value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableCloudEvent.ImmutableParticipant.Builder builder()
ImmutableParticipant.
ImmutableCloudEvent.ImmutableParticipant.builder()
.guid(UUID | null) // nullable guid
.name(String | null) // nullable name
.type(String | null) // nullable type
.build();
Copyright © 2020 SAP SE. All rights reserved.