| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFioAlert.Builder
Builds instances of type
ImmutableFioAlert. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableFioAlert.Builder |
builder()
Creates a builder for
ImmutableFioAlert. |
static ImmutableFioAlert |
copyOf(FioAlert instance)
Creates an immutable copy of a
FioAlert value. |
String |
description()
A detailed text description of the alert from the appropriate weather service.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFioAlert that have equal attribute values. |
long |
expires()
The UNIX time (that is, seconds since midnight GMT on 1 Jan 1970) at which the
alert will cease to be valid.
|
int |
hashCode()
Computes a hash code from attributes:
title, expires, uri, description. |
String |
title()
A short text summary of the alert.
|
String |
toString()
Prints the immutable value
FioAlert with attribute values. |
String |
uri()
An HTTP(S) URI that contains detailed information about the alert.
|
ImmutableFioAlert |
withDescription(String description)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableFioAlert |
withExpires(long expires)
Copy the current immutable object by setting a value for the
expires attribute. |
ImmutableFioAlert |
withTitle(String title)
Copy the current immutable object by setting a value for the
title attribute. |
ImmutableFioAlert |
withUri(String uri)
Copy the current immutable object by setting a value for the
uri attribute. |
public String title()
public long expires()
public String uri()
public String description()
description in interface FioAlertpublic final ImmutableFioAlert withTitle(String title)
title attribute.
An equals check used to prevent copying of the same value by returning this.title - A new value for titlethis objectpublic final ImmutableFioAlert withExpires(long expires)
expires attribute.
A value equality check is used to prevent copying of the same value by returning this.expires - A new value for expiresthis objectpublic final ImmutableFioAlert withUri(String uri)
uri attribute.
An equals check used to prevent copying of the same value by returning this.uri - A new value for urithis objectpublic final ImmutableFioAlert withDescription(String description)
description attribute.
An equals check used to prevent copying of the same value by returning this.description - A new value for descriptionthis objectpublic boolean equals(Object another)
ImmutableFioAlert that have equal attribute values.public int hashCode()
title, expires, uri, description.public String toString()
FioAlert with attribute values.public static ImmutableFioAlert copyOf(FioAlert instance)
FioAlert 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 ImmutableFioAlert.Builder builder()
ImmutableFioAlert.Copyright © 2016. All rights reserved.