package com.insightfullogic.java8.examples.chapter1;

import java.util.List;

public final class Artist {
	
	private String name;
	private List<Artist> members;
	private String nationality;
	
}

@@ -70,14 +70,101 @@
 til.
+Array
 List;%0D
+%0Aimport java.util.Collections;%0D%0Aimport java.util.List;%0D%0Aimport java.util.Objects;%0D
 %0A%0D%0Ap
@@ -191,19 +191,18 @@
 tist %7B%0D%0A
-%09
 %0D%0A
+
 %09private
@@ -278,14 +278,409 @@
 ality;%0D%0A
-%09
+%0D%0A%09public Artist(String name, String nationality) %7B%0D%0A%09%09this(name, Collections.emptyList(), nationality);%0D%0A%09%7D%0D%0A%0D%0A%09public Artist(String name, List%3CArtist%3E members, String nationality) %7B%0D%0A%09%09Objects.requireNonNull(name);%0D%0A%09%09Objects.requireNonNull(members);%0D%0A%09%09Objects.requireNonNull(nationality);%0D%0A%09%09this.name = name;%0D%0A%09%09this.members = new ArrayList%3C%3E(members);%0D%0A%09%09this.nationality = nationality;%0D%0A%09%7D
 %0D%0A%7D%0D%0A

add construct for Artist