org.greenrobot.greendao.annotation.NotNull.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中org.greenrobot.greendao.annotation.NotNull.<init>()方法的一些代码示例,展示了NotNull.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NotNull.<init>()方法的具体详情如下:
包路径:org.greenrobot.greendao.annotation.NotNull
类名称:NotNull
方法名:<init>

NotNull.<init>介绍

暂无

代码示例

代码示例来源: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: chat-sdk/chat-sdk-android

@NotNull
private Integer type;

代码示例来源:origin: WangDaYeeeeee/Mysplash

private float getMissionProcess(@NotNull Cursor cursor) {
    long soFar = cursor.getInt(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_BYTES_DOWNLOADED_SO_FAR));
    long total = cursor.getInt(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_TOTAL_SIZE_BYTES));
    int result = (int) (100.0 * soFar / total);
    result = Math.max(0, result);
    result = Math.min(100, result);
    return result;
  }
}

代码示例来源:origin: wzmyyj/ZYMK

@Generated(hash = 1761411979)
public SearchHistoryDb(Long id, @NotNull String search_word, long search_time) {
  this.id = id;
  this.search_word = search_word;
  this.search_time = search_time;
}

代码示例来源:origin: wzmyyj/ZYMK

@Generated(hash = 183610541)
public HistoryDb(Long id, @NotNull String title, long history_chapter_id,
    String history_chapter_name, long history_read_time) {
  this.id = id;
  this.title = title;
  this.history_chapter_id = history_chapter_id;
  this.history_chapter_name = history_chapter_name;
  this.history_read_time = history_read_time;
}
@Generated(hash = 1549631443)

相关文章