(LibraryEntryHeader header)
| 88 | } |
| 89 | |
| 90 | public static EntryStatus getStatus(LibraryEntryHeader header) { |
| 91 | boolean local = LOCAL_DB.getAllHeaders().contains(header); |
| 92 | boolean remote = true; |
| 93 | if (remoteDB != null) { |
| 94 | remote = remoteDB.getAllHeaders().contains(header); |
| 95 | } |
| 96 | if (local) { |
| 97 | if (remote) return EntryStatus.BOTH; |
| 98 | else return EntryStatus.LOCAL; |
| 99 | } else { |
| 100 | if (remote) return EntryStatus.REMOTE; |
| 101 | else return EntryStatus.NEITHER; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | // ILibraryStackHandler quick-read |
| 106 |
no test coverage detected