Guest User

Untitled

a guest
Nov 24th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. compileOnly "com.google.auto.value:auto-value:1.5"
  2. annotationProcessor "com.google.auto.value:auto-value:1.5"
  3.  
  4. import com.google.auto.value.AutoValue;
  5.  
  6. import java.util.Date;
  7.  
  8. @AutoValue
  9. public abstract class Person {
  10.  
  11. public static Person create(String email, String password) {
  12. return new AutoValue_Person(email, password);
  13. }
  14.  
  15. public abstract String email();
  16.  
  17. public abstract String password();
  18.  
  19. public abstract String lastName();
  20.  
  21. public abstract String firstName();
  22.  
  23. public abstract String middleName();
  24.  
  25. public abstract Date birthday();
  26. }
Add Comment
Please, Sign In to add comment