@Generated(value="org.immutables.processor.ProxyProcessor") public final class Cost extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Cost.Builder
Builds instances of type
Cost. |
| Modifier and Type | Method and Description |
|---|---|
static Cost.Builder |
builder()
Creates a builder for
Cost. |
boolean |
equals(Object another)
This instance is equal to all instances of
Cost that have equal attribute values. |
Float |
getAmount()
Pricing amount
|
String |
getCurrency()
Currency code for the pricing amount
|
String |
getUnit()
Display name for type of cost, e.g.
|
int |
hashCode()
Computes a hash code from attributes:
amount, currency, unit. |
String |
toString()
Prints the immutable value
Cost with attribute values. |
public Float getAmount()
public String getCurrency()
public String getUnit()
public boolean equals(Object another)
Cost that have equal attribute values.public int hashCode()
amount, currency, unit.public String toString()
Cost with attribute values.public static Cost.Builder builder()
Cost.
Cost.builder()
.amount(Float) // required amount
.currency(String) // required currency
.unit(String) // required unit
.build();
Copyright © 2020. All rights reserved.