T - The type of Goods in the atomic XORValuespublic static final class XORBid.Builder<T extends Good> extends ArrayList<XORValue<T>>
Builder to create a new set of atomic XORValues, called XORBid
For easy modification of the builder, it extends ArrayList
modCount| Constructor and Description |
|---|
Builder(Bidder<T> bidder) |
Builder(Bidder<T> bidder,
Collection<? extends XORValue<T>> values)
Creates a new Builder instance with initial XORValues
|
| Modifier and Type | Method and Description |
|---|---|
XORBid<T> |
build() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic Builder(Bidder<T> bidder, Collection<? extends XORValue<T>> values)
bidder - the bidder this bid belongs tovalues - initial XORValues to be added to this builder, as specified in ArrayList.ArrayList(Collection)public XORBid<T> build()
UnequalWorldsException - if the bidder and at least on of the licenses
in the XORValues are not from the same worldCopyright © 2017. All rights reserved.