Commits
md_5 authored 85106731bf9
156 156 | case WRITTEN_BOOK: |
157 157 | case WRITABLE_BOOK: |
158 158 | return true; |
159 159 | default: |
160 160 | return false; |
161 161 | } |
162 162 | } |
163 163 | |
164 164 | |
165 165 | public boolean hasAuthor() { |
166 - | return !Strings.isNullOrEmpty(author); |
166 + | return this.author != null; |
167 167 | } |
168 168 | |
169 169 | |
170 170 | public boolean hasTitle() { |
171 - | return !Strings.isNullOrEmpty(title); |
171 + | return this.title != null; |
172 172 | } |
173 173 | |
174 174 | |
175 175 | public boolean hasPages() { |
176 176 | return !pages.isEmpty(); |
177 177 | } |
178 178 | |
179 179 | |
180 180 | public boolean hasGeneration() { |
181 181 | return generation != null; |