-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add primitive types with @NotNull annotation.
- Loading branch information
1 parent
ce036bd
commit b160a37
Showing
2 changed files
with
90 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
99 changes: 68 additions & 31 deletions
99
...yAnnotation/src/main/java/org/greenrobot/greendao/test/entityannotation/NotNullThing.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,102 @@ | ||
package org.greenrobot.greendao.test.entityannotation; | ||
|
||
import org.greenrobot.greendao.annotation.Entity; | ||
import org.greenrobot.greendao.annotation.Generated; | ||
import org.greenrobot.greendao.annotation.Id; | ||
import org.greenrobot.greendao.annotation.NotNull; | ||
import org.greenrobot.greendao.annotation.Generated; | ||
|
||
@Entity | ||
public class NotNullThing { | ||
|
||
@Id | ||
private Long id; | ||
|
||
Boolean nullableBoolean; | ||
Integer nullableInteger; | ||
boolean nullableBoolean; | ||
int nullableInteger; | ||
Boolean nullableWrappedBoolean; | ||
Integer nullableWrappedInteger; | ||
|
||
@NotNull | ||
Boolean notNullBoolean; | ||
boolean notNullBoolean; | ||
@NotNull | ||
int notNullInteger; | ||
@NotNull | ||
Integer notNullInteger; | ||
Boolean notNullWrappedBoolean; | ||
@NotNull | ||
Integer notNullWrappedInteger; | ||
|
||
public Integer getNotNullInteger() { | ||
return this.notNullInteger; | ||
} | ||
public void setNotNullInteger(Integer notNullInteger) { | ||
@Generated(hash = 1109392169) | ||
public NotNullThing(Long id, boolean nullableBoolean, int nullableInteger, | ||
Boolean nullableWrappedBoolean, Integer nullableWrappedInteger, | ||
boolean notNullBoolean, int notNullInteger, | ||
@NotNull Boolean notNullWrappedBoolean, | ||
@NotNull Integer notNullWrappedInteger) { | ||
this.id = id; | ||
this.nullableBoolean = nullableBoolean; | ||
this.nullableInteger = nullableInteger; | ||
this.nullableWrappedBoolean = nullableWrappedBoolean; | ||
this.nullableWrappedInteger = nullableWrappedInteger; | ||
this.notNullBoolean = notNullBoolean; | ||
this.notNullInteger = notNullInteger; | ||
this.notNullWrappedBoolean = notNullWrappedBoolean; | ||
this.notNullWrappedInteger = notNullWrappedInteger; | ||
} | ||
public Boolean getNotNullBoolean() { | ||
return this.notNullBoolean; | ||
@Generated(hash = 521031743) | ||
public NotNullThing() { | ||
} | ||
public void setNotNullBoolean(Boolean notNullBoolean) { | ||
this.notNullBoolean = notNullBoolean; | ||
public Long getId() { | ||
return this.id; | ||
} | ||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
public boolean getNullableBoolean() { | ||
return this.nullableBoolean; | ||
} | ||
public Integer getNullableInteger() { | ||
public void setNullableBoolean(boolean nullableBoolean) { | ||
this.nullableBoolean = nullableBoolean; | ||
} | ||
public int getNullableInteger() { | ||
return this.nullableInteger; | ||
} | ||
public void setNullableInteger(Integer nullableInteger) { | ||
public void setNullableInteger(int nullableInteger) { | ||
this.nullableInteger = nullableInteger; | ||
} | ||
public Boolean getNullableBoolean() { | ||
return this.nullableBoolean; | ||
public Boolean getNullableWrappedBoolean() { | ||
return this.nullableWrappedBoolean; | ||
} | ||
public void setNullableBoolean(Boolean nullableBoolean) { | ||
this.nullableBoolean = nullableBoolean; | ||
public void setNullableWrappedBoolean(Boolean nullableWrappedBoolean) { | ||
this.nullableWrappedBoolean = nullableWrappedBoolean; | ||
} | ||
public Long getId() { | ||
return this.id; | ||
public Integer getNullableWrappedInteger() { | ||
return this.nullableWrappedInteger; | ||
} | ||
public void setId(Long id) { | ||
this.id = id; | ||
public void setNullableWrappedInteger(Integer nullableWrappedInteger) { | ||
this.nullableWrappedInteger = nullableWrappedInteger; | ||
} | ||
@Generated(hash = 2048873927) | ||
public NotNullThing(Long id, Boolean nullableBoolean, Integer nullableInteger, | ||
@NotNull Boolean notNullBoolean, @NotNull Integer notNullInteger) { | ||
this.id = id; | ||
this.nullableBoolean = nullableBoolean; | ||
this.nullableInteger = nullableInteger; | ||
public boolean getNotNullBoolean() { | ||
return this.notNullBoolean; | ||
} | ||
public void setNotNullBoolean(boolean notNullBoolean) { | ||
this.notNullBoolean = notNullBoolean; | ||
} | ||
public int getNotNullInteger() { | ||
return this.notNullInteger; | ||
} | ||
public void setNotNullInteger(int notNullInteger) { | ||
this.notNullInteger = notNullInteger; | ||
} | ||
@Generated(hash = 521031743) | ||
public NotNullThing() { | ||
public Boolean getNotNullWrappedBoolean() { | ||
return this.notNullWrappedBoolean; | ||
} | ||
public void setNotNullWrappedBoolean(Boolean notNullWrappedBoolean) { | ||
this.notNullWrappedBoolean = notNullWrappedBoolean; | ||
} | ||
public Integer getNotNullWrappedInteger() { | ||
return this.notNullWrappedInteger; | ||
} | ||
public void setNotNullWrappedInteger(Integer notNullWrappedInteger) { | ||
this.notNullWrappedInteger = notNullWrappedInteger; | ||
} | ||
|
||
} |