| Constructor and Description |
|---|
Bids() |
Bids(Collection<XORBid<T>> bids)
Creates a new non-empty bids instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBid(XORBid<T> bid)
Adds a new
XORBid to this instance |
boolean |
contains(Bidder<T> bidder) |
XORBid<T> |
getBid(Bidder<T> bidder) |
Set<Bidder<T>> |
getBidders() |
Map<Bidder<T>,XORBid<T>> |
getBidMap() |
Collection<XORBid<T>> |
getBids() |
Iterator<XORBid<T>> |
iterator() |
Bids<T> |
without(Bidder<T> bidder)
Creates a copy of this instance, excluding the bid form a specific
Bidder |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Bids()
public Bids(Collection<XORBid<T>> bids)
bids - the bids to be addedUnequalWorldsException - if not all passed bids are from the same worldpublic Map<Bidder<T>,XORBid<T>> getBidMap()
XORBid of this, with their XORBid.getBidder() as key.public boolean addBid(XORBid<T> bid)
XORBid to this instancebid - The bid to addUnequalWorldsException - if the bid is not from the same world as the previously added onespublic Collection<XORBid<T>> getBids()
public Bids<T> without(Bidder<T> bidder)
Bidderbidder - The bidder to be excludedCopyright © 2018. All rights reserved.