public class Bids<T extends org.spectrumauctions.sats.core.model.Good> extends Object implements Iterable<org.spectrumauctions.sats.core.bidlang.xor.XORBid<T>>
| Constructor and Description |
|---|
Bids() |
Bids(Collection<org.spectrumauctions.sats.core.bidlang.xor.XORBid<T>> bids)
Creates a new non-empty bids instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBid(org.spectrumauctions.sats.core.bidlang.xor.XORBid<T> bid)
Adds a new
XORBid to this instance |
boolean |
contains(org.spectrumauctions.sats.core.model.Bidder<T> bidder) |
org.spectrumauctions.sats.core.bidlang.xor.XORBid<T> |
getBid(org.spectrumauctions.sats.core.model.Bidder<T> bidder) |
Set<org.spectrumauctions.sats.core.model.Bidder<T>> |
getBidders() |
Map<org.spectrumauctions.sats.core.model.Bidder<T>,org.spectrumauctions.sats.core.bidlang.xor.XORBid<T>> |
getBidMap() |
Collection<org.spectrumauctions.sats.core.bidlang.xor.XORBid<T>> |
getBids() |
Iterator<org.spectrumauctions.sats.core.bidlang.xor.XORBid<T>> |
iterator() |
Bids<T> |
without(org.spectrumauctions.sats.core.model.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<org.spectrumauctions.sats.core.bidlang.xor.XORBid<T>> bids)
bids - the bids to be addedorg.spectrumauctions.sats.core.model.UnequalWorldsException - if not all passed bids are from the same worldpublic Map<org.spectrumauctions.sats.core.model.Bidder<T>,org.spectrumauctions.sats.core.bidlang.xor.XORBid<T>> getBidMap()
XORBid of this, with their XORBid.getBidder() as key.public boolean addBid(org.spectrumauctions.sats.core.bidlang.xor.XORBid<T> bid)
XORBid to this instancebid - The bid to addorg.spectrumauctions.sats.core.model.UnequalWorldsException - if the bid is not from the same world as the previously added onespublic Collection<org.spectrumauctions.sats.core.bidlang.xor.XORBid<T>> getBids()
public Bids<T> without(org.spectrumauctions.sats.core.model.Bidder<T> bidder)
Bidderbidder - The bidder to be excludedpublic org.spectrumauctions.sats.core.bidlang.xor.XORBid<T> getBid(org.spectrumauctions.sats.core.model.Bidder<T> bidder)
public boolean contains(org.spectrumauctions.sats.core.model.Bidder<T> bidder)
Copyright © 2018. All rights reserved.