public class Bag extends LinkedList<Tile> implements Cloneable
Bag.
 modCount| Constructor and Description | 
|---|
Bag()
No-argument constructor. 
 | 
Bag(String language)  | 
| Modifier and Type | Method and Description | 
|---|---|
Bag | 
clone()  | 
Tile | 
draw()
 | 
Tile | 
draw(char letter)
 | 
SortedMap<Character,Integer> | 
frequencies()
 | 
Locale | 
getLocale()
 | 
SortedMap<Character,Integer> | 
points()
 | 
Tile[] | 
toArray()  | 
add, add, addAll, addAll, addFirst, addLast, clear, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subListparallelStream, removeIf, streampublic Bag()
public SortedMap<Character,Integer> frequencies()
public Tile draw()
Tile.LinkedList.pollFirst()public Tile draw(char letter)
letter - The name of the requested Tile.Tile; null if no matching
          Tile is available.LinkedList.remove(int)public Tile[] toArray()
toArray in interface Collection<Tile>toArray in interface List<Tile>toArray in class LinkedList<Tile>public Bag clone()
clone in class LinkedList<Tile>Copyright © 2015–2020 Allen D. Ball. All rights reserved.