public class Origins extends Object implements Serializable, Cloneable
Constructor and Description |
---|
Origins() |
Modifier and Type | Method and Description |
---|---|
Origins |
clone() |
boolean |
equals(Object obj) |
List<Origin> |
getItems()
A complex type that contains origins for this distribution.
|
Integer |
getQuantity()
The number of origins for this distribution.
|
int |
hashCode() |
void |
setItems(Collection<Origin> items)
A complex type that contains origins for this distribution.
|
void |
setQuantity(Integer quantity)
The number of origins for this distribution.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Origins |
withItems(Collection<Origin> items)
A complex type that contains origins for this distribution.
|
Origins |
withItems(Origin... items)
A complex type that contains origins for this distribution.
|
Origins |
withQuantity(Integer quantity)
The number of origins for this distribution.
|
public void setQuantity(Integer quantity)
quantity
- The number of origins for this distribution.public Integer getQuantity()
public Origins withQuantity(Integer quantity)
quantity
- The number of origins for this distribution.public List<Origin> getItems()
public void setItems(Collection<Origin> items)
items
- A complex type that contains origins for this distribution.public Origins withItems(Origin... items)
NOTE: This method appends the values to the existing list (if
any). Use setItems(java.util.Collection)
or
withItems(java.util.Collection)
if you want to override the
existing values.
items
- A complex type that contains origins for this distribution.public Origins withItems(Collection<Origin> items)
items
- A complex type that contains origins for this distribution.public String toString()
toString
in class Object
Object.toString()
Copyright © 2016. All rights reserved.