@ParametersAreNonnullByDefault
@Immutable
public final class CassandraContactPoint
extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object another)
This instance is equal to all instances of
CassandraContactPoint that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
name, uri. |
String |
name() |
static CassandraContactPoint |
of(String name,
java.net.URI uri)
Construct a new immutable
CassandraContactPoint instance. |
String |
toString()
Prints the immutable value
CassandraContactPoint... with all non-generated
and non-auxiliary attribute values. |
java.net.URI |
uri() |
public String name()
name attributepublic java.net.URI uri()
uri attributepublic boolean equals(@Nullable
Object another)
CassandraContactPoint that have equal attribute values.equals in class Objecttrue if this is equal to another instancepublic int hashCode()
name, uri.hashCode in class Objectpublic String toString()
CassandraContactPoint... with all non-generated
and non-auxiliary attribute values.toString in class Objectpublic static CassandraContactPoint of(String name, java.net.URI uri)
CassandraContactPoint instance.name - The value for the name attributeuri - The value for the uri attribute