This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| provided 'com.google.auto.value:auto-value:1.2' | |
| annotationProcessor 'com.google.auto.value:auto-value:1.2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class PersonData { | |
| private final long id; | |
| private final String name; | |
| private final int status; | |
| private final String eMail; | |
| private final String profileUrl; | |
| private final String pictureImageUrl; | |
| public PersonData(long id, String name, int status, String eMail, String profileUrl, String pictureImageUrl) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.google.auto.value.AutoValue; | |
| @AutoValue | |
| public abstract class PersonData { | |
| abstract long id(); | |
| abstract String name(); | |
| abstract int status(); | |
| abstract String eMail(); | |
| abstract String profileUrl(); | |
| abstract String pictureImageUrl(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final class AutoValue_PersonData extends PersonData { | |
| private final long id; | |
| private final String name; | |
| private final int status; | |
| private final String eMail; | |
| private final String profileUrl; | |
| private final String pictureImageUrl; | |
| AutoValue_PersonData( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static PersonData create(long id, String name, int status, String eMail,String profileUrl, String pictureImageUrl) { | |
| return new AutoValue_PersonData(id, name, status, eMail, profileUrl, pictureImageUrl); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @AutoValue.Builder | |
| abstract static class Builder { | |
| abstract Builder id(long value); | |
| abstract Builder name(String value); | |
| abstract Builder status(int value); | |
| abstract Builder eMail(String value); | |
| abstract Builder profileUrl(String value); | |
| abstract Builder pictureImageUrl(String value); | |
| abstract PersonData build(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static Builder builder() { | |
| return new AutoValue_PersonData.Builder(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (pictureImageUrl == null) { | |
| throw new NullPointerException("Null pictureImageUrl"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Nullable | |
| abstract String pictureImageUrl(); |