本文整理了Java中org.greenrobot.greendao.annotation.NotNull
类的一些代码示例,展示了NotNull
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NotNull
类的具体详情如下:
包路径:org.greenrobot.greendao.annotation.NotNull
类名称:NotNull
暂无
代码示例来源:origin: greenrobot/greenDAO
@NotNull
public String getText() {
return text;
}
代码示例来源:origin: greenrobot/greenDAO
@NotNull
public String getText() {
return text;
}
代码示例来源:origin: greenrobot/greenDAO
@NotNull
public String getName() {
return name;
}
代码示例来源:origin: greenrobot/greenDAO
/** Not-null value; ensure this value is available before it is saved to the database. */
public void setName(@NotNull String name) {
this.name = name;
}
代码示例来源:origin: greenrobot/greenDAO
/** Not-null value; ensure this value is available before it is saved to the database. */
public void setText(@NotNull String text) {
this.text = text;
}
代码示例来源:origin: greenrobot/greenDAO
/** Not-null value; ensure this value is available before it is saved to the database. */
public void setText(@NotNull String text) {
this.text = text;
}
代码示例来源:origin: greenrobot/greenDAO
@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;
}
代码示例来源:origin: greenrobot/greenDAO
@Generated(hash = 1686394253)
public Note(Long id, @NotNull String text, String comment, java.util.Date date, NoteType type) {
this.id = id;
this.text = text;
this.comment = comment;
this.date = date;
this.type = type;
}
代码示例来源:origin: greenrobot/greenDAO
@Generated(hash = 969486800)
public Customer(Long id, @NotNull String name) {
this.id = id;
this.name = name;
}
代码示例来源:origin: greenrobot/greenDAO
@Generated(hash = 1686394253)
public Note(Long id, @NotNull String text, String comment, java.util.Date date, NoteType type) {
this.id = id;
this.text = text;
this.comment = comment;
this.date = date;
this.type = type;
}
代码示例来源:origin: greenrobot/greenDAO
Integer nullableWrappedInteger;
@NotNull
boolean notNullBoolean;
@NotNull
int notNullInteger;
@NotNull
Boolean notNullWrappedBoolean;
@NotNull
Integer notNullWrappedInteger;
代码示例来源:origin: greenrobot/greenDAO
/** called by internal mechanisms, do not call yourself. */
@Generated(hash = 625323961)
public void setCustomer(@NotNull Customer customer) {
if (customer == null) {
throw new DaoException(
"To-one property 'customerId' has not-null constraint; cannot set to-one to null");
}
synchronized (this) {
this.customer = customer;
customerId = customer.getId();
customer__resolvedKey = customerId;
}
}
代码示例来源:origin: greenrobot/greenDAO
private Long id;
@NotNull
private String text;
private String comment;
代码示例来源:origin: greenrobot/greenDAO
private Long id;
@NotNull
private String text;
private String comment;
代码示例来源:origin: greenrobot/greenDAO
private Long id;
@NotNull
@Unique
private String name;
代码示例来源:origin: chat-sdk/chat-sdk-android
@Generated(hash = 504306434)
public ContactLink(Long id, Long userId, Long linkOwnerUserDaoId, @NotNull Integer type) {
this.id = id;
this.userId = userId;
this.linkOwnerUserDaoId = linkOwnerUserDaoId;
this.type = type;
}
代码示例来源:origin: CodingBingo/FastReader
public FileListAdapter(Context mContext, @NotNull List<LocalFile> localFileList) {
this.mContext = mContext;
this.localFileList = localFileList;
}
代码示例来源:origin: JingYeoh/SupportFragment
@Generated(hash = 2091331386)
public User(Long id, int userId, @NotNull String password,
@NotNull String phone, @NotNull String nickname, @NotNull String avatar,
@NotNull Date updateTime) {
this.id = id;
this.userId = userId;
this.password = password;
this.phone = phone;
this.nickname = nickname;
this.avatar = avatar;
this.updateTime = updateTime;
}
代码示例来源:origin: iZeroer/Daily
@Generated(hash = 1651640312)
public NewsChannelTable(String newsChannelName, @NotNull String newsChannelId,
@NotNull String newsChannelType, boolean newsChannelSelect,
int newsChannelIndex, Boolean newsChannelFixed) {
this.newsChannelName = newsChannelName;
this.newsChannelId = newsChannelId;
this.newsChannelType = newsChannelType;
this.newsChannelSelect = newsChannelSelect;
this.newsChannelIndex = newsChannelIndex;
this.newsChannelFixed = newsChannelFixed;
}
代码示例来源:origin: WangDaYeeeeee/Mysplash
@DownloadResultRule
private int getDownloadResult(@NotNull Cursor cursor) {
switch (cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_STATUS))) {
case DownloadManager.STATUS_SUCCESSFUL:
return RESULT_SUCCEED;
case DownloadManager.STATUS_FAILED:
case DownloadManager.STATUS_PAUSED:
return RESULT_FAILED;
default:
return RESULT_DOWNLOADING;
}
}
内容来源于网络,如有侵权,请联系作者删除!