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, toArray
iterator
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
parallelStream, removeIf, stream
public Bag()
public Bag clone()
clone
in class LinkedList<Tile>
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 SortedMap<Character,Integer> frequencies()
Copyright © 2015–2020. All rights reserved.