Пример #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();
 }