privatestaticListgetAuthors(){//数据初始化Author author =newAuthor(1L,"蒙多",33,"一个从菜刀中明悟哲理的祖安人",null); Author author2 =newAuthor(2L,"亚拉索",15,"狂风也追逐不上他的思考速度",null); Author author3 =newAuthor(3L,"易",14,"是这个世界在限制他的思维",null); Author author4 =newAuthor(3L,"易",14,"是这个世界在限制他的思维",null);//书籍列表List books1 =newArrayList<>(); List books2 =newArrayList<>(); List books3 =newArrayList<>(); books1.add(newBook(1L,"刀的两侧是光明与黑暗","哲学,爱情",88,"用一把刀划分了爱恨")); books1.add(newBook(2L,"一个人不能死在同一把刀下","个人成长,爱情",99,"讲述如何从失败中明悟真理")); books2.add(newBook(3L,"那风吹不到的地方","哲学",85,"带你用思维去领略世界的尽头")); books2.add(newBook(3L,"那风吹不到的地方","哲学",85,"带你用思维去领略世界的尽头")); books2.add(newBook(4L,"吹或不吹","爱情,个人传记",56,"一个哲学家的恋爱观注定很难把他所在的时代理解")); books3.add(newBook(5L,"你的剑就是我的剑","爱情",56,"无法想象一个武者能对他的伴侣这么的宽容")); books3.add(newBook(6L,"风与剑","个人传记",100,"两个哲学家灵魂和肉体的碰撞会激起怎么样的火花呢?")); books3.add(newBook(6L,"风与剑","个人传记",100,"两个哲学家灵魂和肉体的碰撞会激起怎么样的火花呢?")); author.setBooks(books1); author2.setBooks(books2); author3.setBooks(books3); author4.setBooks(books3); List authorList =newArrayList<>(Arrays.asList(author,author2,author3,author4));returnauthorList; }
无标题文章
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...