@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,
URI uri)
Construct a new immutable
CassandraContactPoint instance. |
String |
toString()
Prints the immutable value
CassandraContactPoint... with all non-generated
and non-auxiliary attribute values. |
URI |
uri() |
public String name()
name
attributepublic URI uri()
uri
attributepublic boolean equals(@Nullable Object another)
CassandraContactPoint
that have equal attribute values.public int hashCode()
name
, uri
.public String toString()
CassandraContactPoint...
with all non-generated
and non-auxiliary attribute values.public static CassandraContactPoint of(String name, URI uri)
CassandraContactPoint
instance.name
- The value for the name
attributeuri
- The value for the uri
attribute