package com.insightfullogic.java8.examples.chapter1;

import java.util.Arrays;
import java.util.List;

import static java.util.Arrays.asList;

public class SampleData {

	public static final Artist johnColtrane = new Artist("John Coltrane", "US");

	//TheBeatles
	public static final Artist johnLennon = new Artist("John Lennon", "UK");
	public static final Artist paulMcCartney = new Artist("Paul McCartney", "UK");
	public static final Artist georgeHarrison = new Artist("George Harrison", "UK");
	public static final Artist ringoStarr = new Artist("Ringo Starr", "UK");

	public static final List<Artist> membersOfTheBeatles = Arrays.asList(johnLennon, paulMcCartney, georgeHarrison,
			ringoStarr);
	
	public static final Artist theBeatles=new Artist("The Beatles", membersOfTheBeatles,"UK");
	
	public static final Album aLoveSupreme=new Album("A Love Supreme", asList(new Track("Acknowledgement", 467), new Track("Resolution", 442)), asList(johnColtrane));
}

@@ -98,16 +98,49 @@
 l.List;%0D
+%0Aimport java.util.stream.Stream;%0D
 %0A%0D%0Aimpor
@@ -176,16 +176,47 @@
 ist;%0D%0A%0D%0A
+import java.util.ArrayList;%0D%0A%0D%0A
 public c
@@ -320,16 +320,17 @@
 ;%0D%0A%0D%0A%09//
+ 
 TheBeatl
@@ -776,25 +776,24 @@
 ngoStarr);%0D%0A
-%09
 %0D%0A%09public st
@@ -820,17 +820,19 @@
 eBeatles
-=
+ = 
 new Arti
@@ -869,24 +869,25 @@
 Beatles,
+ 
 %22UK%22);%0D%0A
 %09%0D%0A%09publ
@@ -878,17 +878,31 @@
 %22UK%22);%0D%0A
+%0D%0A
 %09
+// %CA%B9asList%CA%A1%D7%AA
 %0D%0A%09publi
@@ -934,17 +934,19 @@
 eSupreme
-=
+ = 
 new Albu
@@ -964,17 +964,21 @@
 upreme%22,
- 
+%0D%0A%09%09%09
 asList(n
@@ -1066,11 +1066,733 @@
 ane));%0D%0A
+%09public static final Album sampleShortAlbum = new Album(%22sample Short Album%22, asList(new Track(%22short track%22, 30)),%0D%0A%09%09%09asList(johnColtrane));%0D%0A%09public static final Album manyTrackAlbum = new Album(%0D%0A%09%09%09%22sample Short Album%22, asList(new Track(%22short track%22, 30), new Track(%22short track 2%22, 30),%0D%0A%09%09%09%09%09new Track(%22short track 3%22, 30), new Track(%22short track 4%22, 30), new Track(%22short track 5%22, 30)),%0D%0A%09%09%09asList(johnColtrane));%0D%0A%0D%0A%09public static Stream%3CAlbum%3E albums = Stream.of(aLoveSupreme);%0D%0A%0D%0A%09public static Stream%3CArtist%3E threeArtists() %7B%0D%0A%09%09return Stream.of(johnColtrane, johnLennon, theBeatles);%0D%0A%09%7D%0D%0A%0D%0A%09public static List%3CArtist%3E getThreeAtrists() %7B%0D%0A%09%09return Arrays.asList(johnColtrane, johnLennon, theBeatles);%0D%0A%09%7D%0D%0A
 %7D%0D%0A

complete the sampleData