@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ImChannelIF"}) @Immutable public final class ImChannel extends Object implements ImChannelIF
ImChannelIF.
Use the builder to create immutable instances:
ImChannel.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImChannel.Builder
Builds instances of type
ImChannel. |
| Modifier and Type | Method and Description |
|---|---|
static ImChannel.Builder |
builder()
Creates a builder for
ImChannel. |
static ImChannel |
copyOf(ImChannelIF instance)
Creates an immutable copy of a
ImChannelIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImChannel that have equal attribute values. |
int |
getCreated() |
String |
getId() |
boolean |
getIsIm() |
boolean |
getIsOpen() |
boolean |
getIsOrgShared() |
String |
getUser() |
int |
hashCode()
Computes a hash code from attributes:
id, created, isIm, isOrgShared, user, isOpen. |
String |
toString()
Prints the immutable value
ImChannel with attribute values. |
ImChannel |
withCreated(int created)
Copy the current immutable object by setting a value for the
created attribute. |
ImChannel |
withId(String id)
Copy the current immutable object by setting a value for the
id attribute. |
ImChannel |
withIsIm(boolean isIm)
Copy the current immutable object by setting a value for the
isIm attribute. |
ImChannel |
withIsOpen(boolean isOpen)
Copy the current immutable object by setting a value for the
isOpen attribute. |
ImChannel |
withIsOrgShared(boolean isOrgShared)
Copy the current immutable object by setting a value for the
isOrgShared attribute. |
ImChannel |
withUser(String user)
Copy the current immutable object by setting a value for the
user attribute. |
public String getId()
getId in interface ImChannelIFid attributepublic int getCreated()
getCreated in interface ImChannelIFcreated attributepublic boolean getIsIm()
getIsIm in interface ImChannelIFisIm attributepublic boolean getIsOrgShared()
getIsOrgShared in interface ImChannelIFisOrgShared attributepublic String getUser()
getUser in interface ImChannelIFuser attributepublic boolean getIsOpen()
getIsOpen in interface ImChannelIFisOpen attributepublic final ImChannel withId(String id)
id attribute.
An equals check used to prevent copying of the same value by returning this.id - A new value for idthis objectpublic final ImChannel withCreated(int created)
created attribute.
A value equality check is used to prevent copying of the same value by returning this.created - A new value for createdthis objectpublic final ImChannel withIsIm(boolean isIm)
isIm attribute.
A value equality check is used to prevent copying of the same value by returning this.isIm - A new value for isImthis objectpublic final ImChannel withIsOrgShared(boolean isOrgShared)
isOrgShared attribute.
A value equality check is used to prevent copying of the same value by returning this.isOrgShared - A new value for isOrgSharedthis objectpublic final ImChannel withUser(String user)
user attribute.
An equals check used to prevent copying of the same value by returning this.user - A new value for userthis objectpublic final ImChannel withIsOpen(boolean isOpen)
isOpen attribute.
A value equality check is used to prevent copying of the same value by returning this.isOpen - A new value for isOpenthis objectpublic boolean equals(@Nullable Object another)
ImChannel that have equal attribute values.public int hashCode()
id, created, isIm, isOrgShared, user, isOpen.public String toString()
ImChannel with attribute values.public static ImChannel copyOf(ImChannelIF instance)
ImChannelIF 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 ImChannel.Builder builder()
ImChannel.Copyright © 2019. All rights reserved.