Class TodoListDTO
- java.lang.Object
-
- info.ejava.examples.jaxrs.todos.dto.TodoListDTO
-
- All Implemented Interfaces:
Serializable
public class TodoListDTO extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private String
name
private static long
serialVersionUID
private List<TodoItemDTO>
todoItems
-
Constructor Summary
Constructors Constructor Description TodoListDTO()
TodoListDTO(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TodoItemDTO
getListItem(String itemName)
String
getName()
List<TodoItemDTO>
getTodoItems()
void
setName(String name)
void
setTodoItems(List<TodoItemDTO> todoItems)
String
toString()
void
withTodoItem(TodoItemDTO todoItem)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
name
private String name
-
todoItems
private List<TodoItemDTO> todoItems
-
-
Constructor Detail
-
TodoListDTO
public TodoListDTO()
-
TodoListDTO
public TodoListDTO(String name)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getTodoItems
public List<TodoItemDTO> getTodoItems()
-
setTodoItems
public void setTodoItems(List<TodoItemDTO> todoItems)
-
withTodoItem
public void withTodoItem(TodoItemDTO todoItem)
-
getListItem
public TodoItemDTO getListItem(String itemName)
-
-