public class Checklist
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Checklist.Item
An Item contains a message to appear in a checklist.
|
Constructor and Description |
---|
Checklist()
Create an empty checklist.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Checklist.Item item)
Add a new item to this checklist.
|
java.lang.String[] |
getSectionMessages(java.lang.String sectionName)
Get the messages in a specific section of this checklist.
|
java.lang.String[] |
getSectionNames()
Get the names of the sections for which entries have been
added to the checklist.
|
boolean |
isEmpty()
Determine whether or not any items have been added to the checklist.
|
public java.lang.String[] getSectionNames()
public java.lang.String[] getSectionMessages(java.lang.String sectionName)
sectionName
- the name of the section for which
the iterator should return messagespublic void add(Checklist.Item item)
item
- The Item to be addedpublic boolean isEmpty()
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.