@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableMember extends Member
Member.
Use the builder to create immutable instances:
ImmutableMember.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMember.Builder
Builds instances of type
ImmutableMember. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableMember.Builder |
builder()
Creates a builder for
ImmutableMember. |
static ImmutableMember |
copyOf(Member instance)
Creates an immutable copy of a
Member value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMember that have equal attribute values. |
String |
getAddress() |
int |
getDelegateCur() |
int |
getDelegateMax() |
int |
getDelegateMin() |
String |
getName() |
int |
getPort() |
int |
getProtocolCur() |
int |
getProtocolMax() |
int |
getProtocolMin() |
int |
getStatus() |
com.google.common.collect.ImmutableMap<String,String> |
getTags() |
int |
hashCode()
Computes a hash code from attributes:
name, address, port, tags, status, protocolMin, protocolMax, protocolCur, delegateMin, delegateMax, delegateCur. |
String |
toString()
Prints the immutable value
Member with attribute values. |
ImmutableMember |
withAddress(String value)
Copy the current immutable object by setting a value for the
address attribute. |
ImmutableMember |
withDelegateCur(int value)
Copy the current immutable object by setting a value for the
delegateCur attribute. |
ImmutableMember |
withDelegateMax(int value)
Copy the current immutable object by setting a value for the
delegateMax attribute. |
ImmutableMember |
withDelegateMin(int value)
Copy the current immutable object by setting a value for the
delegateMin attribute. |
ImmutableMember |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableMember |
withPort(int value)
Copy the current immutable object by setting a value for the
port attribute. |
ImmutableMember |
withProtocolCur(int value)
Copy the current immutable object by setting a value for the
protocolCur attribute. |
ImmutableMember |
withProtocolMax(int value)
Copy the current immutable object by setting a value for the
protocolMax attribute. |
ImmutableMember |
withProtocolMin(int value)
Copy the current immutable object by setting a value for the
protocolMin attribute. |
ImmutableMember |
withStatus(int value)
Copy the current immutable object by setting a value for the
status attribute. |
ImmutableMember |
withTags(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
tags map with the specified map. |
public String getName()
public String getAddress()
getAddress in class Memberaddress attributepublic int getPort()
public int getStatus()
public int getProtocolMin()
getProtocolMin in class MemberprotocolMin attributepublic int getProtocolMax()
getProtocolMax in class MemberprotocolMax attributepublic int getProtocolCur()
getProtocolCur in class MemberprotocolCur attributepublic int getDelegateMin()
getDelegateMin in class MemberdelegateMin attributepublic int getDelegateMax()
getDelegateMax in class MemberdelegateMax attributepublic int getDelegateCur()
getDelegateCur in class MemberdelegateCur attributepublic final ImmutableMember withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableMember withAddress(String value)
address attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for addressthis objectpublic final ImmutableMember withPort(int value)
port attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for portthis objectpublic final ImmutableMember withTags(Map<String,? extends String> entries)
tags map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the tags mapthis objectpublic final ImmutableMember withStatus(int value)
status attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for statusthis objectpublic final ImmutableMember withProtocolMin(int value)
protocolMin attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for protocolMinthis objectpublic final ImmutableMember withProtocolMax(int value)
protocolMax attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for protocolMaxthis objectpublic final ImmutableMember withProtocolCur(int value)
protocolCur attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for protocolCurthis objectpublic final ImmutableMember withDelegateMin(int value)
delegateMin attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for delegateMinthis objectpublic final ImmutableMember withDelegateMax(int value)
delegateMax attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for delegateMaxthis objectpublic final ImmutableMember withDelegateCur(int value)
delegateCur attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for delegateCurthis objectpublic boolean equals(@Nullable Object another)
ImmutableMember that have equal attribute values.public int hashCode()
name, address, port, tags, status, protocolMin, protocolMax, protocolCur, delegateMin, delegateMax, delegateCur.public String toString()
Member with attribute values.public static ImmutableMember copyOf(Member instance)
Member 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 ImmutableMember.Builder builder()
ImmutableMember.
ImmutableMember.builder()
.name(String) // required name
.address(String) // required address
.port(int) // required port
.putTags|putAllTags(String => String) // tags mappings
.status(int) // required status
.protocolMin(int) // required protocolMin
.protocolMax(int) // required protocolMax
.protocolCur(int) // required protocolCur
.delegateMin(int) // required delegateMin
.delegateMax(int) // required delegateMax
.delegateCur(int) // required delegateCur
.build();
Copyright © 2019. All rights reserved.