public class MenTypeList extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static MenTypeList |
instance
The singleton class instance.
|
(package private) String |
MENTYPES_FILE
Name of file with information.
|
(package private) ArrayList<MenType> |
typeList
List of MenTypes.
|
Modifier | Constructor and Description |
---|---|
protected |
MenTypeList()
Constructor (read from dedicated file).
|
Modifier and Type | Method and Description |
---|---|
(package private) MenType |
getCategory(String category)
Get a MenType from string description.
|
static MenTypeList |
getInstance()
Access the singleton class instance.
|
static void |
main(String[] args)
Main test method.
|
String |
toString()
Identify this object as a string.
|
final String MENTYPES_FILE
static MenTypeList instance
protected MenTypeList() throws IOException
IOException
public static MenTypeList getInstance()
public String toString()
public static void main(String[] args)