Class PostalAddress (2.0.0)

public final class PostalAddress implements Serializable, Comparable<PostalAddress>

A human-readable mailing address. Mailing address formats vary widely so no validation is performed.

Inheritance

java.lang.Object > PostalAddress

Static Fields

serialVersionUID

public static final long serialVersionUID
Field Value
Type Description
long

Constructors

PostalAddress(String address)

public PostalAddress(String address)
Parameter
Name Description
address String

Methods

compareTo(PostalAddress o)

public int compareTo(PostalAddress o)
Parameter
Name Description
o PostalAddress
Returns
Type Description
int

equals(@Nullable Object o)

public boolean equals(@Nullable Object o)
Parameter
Name Description
o @org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Returns
Type Description
boolean
Overrides

getAddress()

public String getAddress()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides