1 | void incExists() throws MailboxInfoInvalidException {↵ | | 1 | void incRecent() throws MailboxInfoInvalidException {↵
|
2 | mailboxInfo.setExists(mailboxInfo.getExists()+1);↵ | | 2 | mailboxInfo.setRecent(mailboxInfo.getRecent()+1);↵
|
3 | sanityCheck();↵ | | 3 | sanityCheck();↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void decExists() throws MailboxInfoInvalidException {↵ | | 5 | public void decRecent() throws MailboxInfoInvalidException {↵
|
6 | mailboxInfo.setExists(mailboxInfo.getExists()-1);↵ | | 6 | mailboxInfo.setRecent(mailboxInfo.getRecent()-1);↵
|
7 | sanityCheck();↵ | | 7 | sanityCheck();↵
|
8 | }↵ | | 8 | }↵
|
|
9 | public void setRecent(int v) {↵ | | 9 | public void setUnseen(int v) {↵
|
10 | mailboxInfo.setRecent(v);↵ | | 10 | mailboxInfo.setUnseen(v);↵
|
11 | }↵ | | 11 | }↵
|
|
12 | public int getRecent() {↵ | | 12 | public int getUnseen() {↵
|
13 | return mailboxInfo.getRecent();↵ | | 13 | return mailboxInfo.getUnseen();↵
|
14 | }↵ | | 14 | }↵
|
|
15 | public void incRecent() throws MailboxInfoInvalidException {↵ | | 15 | public void incUnseen() throws MailboxInfoInvalidException {↵
|
16 | mailboxInfo.setRecent(mailboxInfo.getRecent()+1);↵ | | 16 | mailboxInfo.setUnseen(mailboxInfo.getUnseen()+1);↵
|
17 | sanityCheck();↵ | | 17 | sanityCheck();↵
|
18 | }↵ | | 18 | }↵
|
|
19 | public void decRecent() throws MailboxInfoInvalidException {↵ | | 19 | public void decUnseen() throws MailboxInfoInvalidException {↵
|
20 | mailboxInfo.setRecent(mailboxInfo.getRecent()-1);↵ | | 20 | mailboxInfo.setUnseen(mailboxInfo.getUnseen()-1);↵
|
21 | sanityCheck();↵ | | 21 | sanityCheck();↵
|
22 | | | 22 |
|