public static boolean isTodoItem ( final Document todoItemDoc ) { return todoItemDoc . containsKey ( ID_KEY ) && todoItemDoc . containsKey ( TASK_KEY ) && todoItemDoc . containsKey ( CHECKED_KEY ) ; }
Returns if a MongoDB document is a todo item .