@Generated(value={"Immutables.generator","FioDataBlock"}) public final class ImmutableFioDataBlock extends Object implements FioDataBlock
FioDataBlock.
Use the builder to create immutable instances:
ImmutableFioDataBlock.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFioDataBlock.Builder
Builds instances of type
ImmutableFioDataBlock. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableFioDataBlock.Builder |
builder()
Creates a builder for
ImmutableFioDataBlock. |
static ImmutableFioDataBlock |
copyOf(FioDataBlock instance)
Creates an immutable copy of a
FioDataBlock value. |
List<FioDataPoint> |
data()
A collection of
FioDataPoint instances, ordered by time, which together
describe the weather conditions at the requested location over time. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFioDataBlock that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
summary, icon, data. |
FioIcon |
icon()
A machine-readable text summary of this data block
|
String |
summary()
A human-readable text summary of this data block.
|
String |
toString()
Prints the immutable value
FioDataBlock with attribute values. |
ImmutableFioDataBlock |
withData(FioDataPoint... elements)
Copy the current immutable object with elements that replace the content of
data. |
ImmutableFioDataBlock |
withData(Iterable<? extends FioDataPoint> elements)
Copy the current immutable object with elements that replace the content of
data. |
ImmutableFioDataBlock |
withIcon(FioIcon icon)
Copy the current immutable object by setting a value for the
icon attribute. |
ImmutableFioDataBlock |
withSummary(String summary)
Copy the current immutable object by setting a value for the
summary attribute. |
public String summary()
summary in interface FioDataBlockpublic FioIcon icon()
icon in interface FioDataBlockpublic List<FioDataPoint> data()
FioDataPoint instances, ordered by time, which together
describe the weather conditions at the requested location over time.data in interface FioDataBlockpublic final ImmutableFioDataBlock withSummary(String summary)
summary attribute.
An equals check used to prevent copying of the same value by returning this.summary - A new value for summarythis objectpublic final ImmutableFioDataBlock withIcon(FioIcon icon)
icon attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.icon - A new value for iconthis objectpublic final ImmutableFioDataBlock withData(FioDataPoint... elements)
data.elements - The elements to setthis objectpublic final ImmutableFioDataBlock withData(Iterable<? extends FioDataPoint> elements)
data.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of data elements to setthis objectpublic boolean equals(Object another)
ImmutableFioDataBlock that have equal attribute values.public int hashCode()
summary, icon, data.public String toString()
FioDataBlock with attribute values.public static ImmutableFioDataBlock copyOf(FioDataBlock instance)
FioDataBlock 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 ImmutableFioDataBlock.Builder builder()
ImmutableFioDataBlock.Copyright © 2016. All rights reserved.