@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ChallengeEventIF"}) @Immutable public final class ChallengeEvent extends Object implements ChallengeEventIF
ChallengeEventIF.
Use the builder to create immutable instances:
ChallengeEvent.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChallengeEvent.Builder
Builds instances of type
ChallengeEvent. |
| Modifier and Type | Method and Description |
|---|---|
static ChallengeEvent.Builder |
builder()
Creates a builder for
ChallengeEvent. |
static ChallengeEvent |
copyOf(ChallengeEventIF instance)
Creates an immutable copy of a
ChallengeEventIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChallengeEvent that have equal attribute values. |
String |
getChallenge() |
String |
getToken() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
token, challenge, type. |
String |
toString()
Prints the immutable value
ChallengeEvent with attribute values. |
ChallengeEvent |
withChallenge(String challenge)
Copy the current immutable object by setting a value for the
challenge attribute. |
ChallengeEvent |
withToken(String token)
Copy the current immutable object by setting a value for the
token attribute. |
ChallengeEvent |
withType(String type)
Copy the current immutable object by setting a value for the
type attribute. |
public String getToken()
getToken in interface ChallengeEventIFtoken attributepublic String getChallenge()
getChallenge in interface ChallengeEventIFchallenge attributepublic String getType()
getType in interface ChallengeEventIFtype attributepublic final ChallengeEvent withToken(String token)
token attribute.
An equals check used to prevent copying of the same value by returning this.token - A new value for tokenthis objectpublic final ChallengeEvent withChallenge(String challenge)
challenge attribute.
An equals check used to prevent copying of the same value by returning this.challenge - A new value for challengethis objectpublic final ChallengeEvent withType(String type)
type attribute.
An equals check used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic boolean equals(@Nullable Object another)
ChallengeEvent that have equal attribute values.public int hashCode()
token, challenge, type.public String toString()
ChallengeEvent with attribute values.public static ChallengeEvent copyOf(ChallengeEventIF instance)
ChallengeEventIF 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 ChallengeEvent.Builder builder()
ChallengeEvent.Copyright © 2019. All rights reserved.