package com.winterbe.java8.samples.lambda;

/**
* @author Benjamin Winterberg
*/
public class Person {
    public String firstName;
    public String lastName;

    public Person() {}

    public Person(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }
}
@@ -41,16 +41,17 @@
 a;%0A%0A/**%0A
+ 
 * @autho
@@ -72,16 +72,17 @@
 terberg%0A
+ 
 */%0Apubli
@@ -98,20 +98,17 @@
 erson %7B%0A
-    
+%09
 public S
@@ -124,20 +124,17 @@
 stName;%0A
-    
+%09
 public S
@@ -150,20 +150,17 @@
 tName;%0A%0A
-    
+%09
 public P
@@ -172,15 +172,14 @@
 () %7B
+%0A%09
 %7D%0A%0A
-    
+%09
 publ
@@ -225,24 +225,18 @@
 Name) %7B%0A
-        
+%09%09
 this.fir
@@ -259,40 +259,253 @@
 me;%0A
-        this.lastName = 
+%09%09this.lastName = lastName;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09StringBuilder builder = new StringBuilder();%0A%09%09builder.append(%22Person %5BfirstName=%22);%0A%09%09builder.append(firstName);%0A%09%09builder.append(%22, lastName=%22);%0A%09%09builder.append(
 lastName
 ;%0A  
@@ -504,13 +504,64 @@
 Name
+)
 ;%0A
-    %7D
+%09%09builder.append(%22%5D%22);%0A%09%09return builder.toString();%0A%09%7D%0A
 %0A%7D

add tostring