public class FortunesDictionary extends Object implements Dictionary<Fortune>
| Constructor and Description |
|---|
FortunesDictionary() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<Language,List<Fortune>> |
getFortunes() |
Fortune |
pick() |
List<Fortune> |
pick(int count) |
Fortune |
pick(Language randomLanguage) |
List<Fortune> |
pick(Query query) |
int |
size() |
int |
size(Language... languages) |
public Fortune pick(Language randomLanguage)
pick in interface Dictionary<Fortune>public Fortune pick()
pick in interface Dictionary<Fortune>public List<Fortune> pick(int count)
pick in interface Dictionary<Fortune>public int size(Language... languages)
size in interface Dictionary<Fortune>public int size()
size in interface Dictionary<Fortune>Copyright © 2017. All rights reserved.