예제 #1
0
 public List<Tag> tags() {
   return (myTags != null) ? Collections.unmodifiableList(myTags) : Collections.<Tag>emptyList();
 }
예제 #2
0
 public BookCollection(BooksDatabase db, List<String> bookDirectories) {
   myDatabase = db;
   BookDirectories = Collections.unmodifiableList(new ArrayList<String>(bookDirectories));
 }
예제 #3
0
 public List<Author> authors() {
   return (myAuthors != null)
       ? Collections.unmodifiableList(myAuthors)
       : Collections.<Author>emptyList();
 }