Serializable
public class Alert extends Object implements Serializable
Modifier and Type | Class | Description |
---|---|---|
static class |
Alert.Severity |
Constructor | Description |
---|---|
Alert() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
|
String |
getDescription() |
|
Instant |
getExpires() |
|
List<String> |
getRegions() |
|
Alert.Severity |
getSeverity() |
|
Instant |
getTime() |
|
String |
getTitle() |
|
String |
getUri() |
|
int |
hashCode() |
|
void |
setDescription(String description) |
|
void |
setExpires(Instant expires) |
|
void |
setRegions(List<String> regions) |
|
void |
setSeverity(Alert.Severity severity) |
|
void |
setTime(Instant time) |
|
void |
setTitle(String title) |
|
void |
setUri(String uri) |
public String getTitle()
public void setTitle(String title)
title
- A brief description of the alert.public String getDescription()
public void setDescription(String description)
description
- A detailed description of the alertpublic Instant getTime()
public void setTime(Instant time)
time
- The UNIX time at which the alert was issued.public Instant getExpires()
public void setExpires(Instant expires)
expires
- The UNIX time at which the alert will expire. (Some alerts sources, unfortunately, do not define expiration time, and in these cases this parameter will not
be defined.)public String getUri()
public void setUri(String uri)
uri
- An HTTP(S) URI that one may refer to for detailed information about the alert.public List<String> getRegions()
public void setRegions(List<String> regions)
regions
- A List of strings representing the names of the regions covered by this weather alert.public Alert.Severity getSeverity()
public void setSeverity(Alert.Severity severity)
severity
- The severity of the weather alert.Copyright © 2018. All rights reserved.