本文整理汇总了Java中org.greenrobot.greendao.annotation.NotNull类的典型用法代码示例。如果您正苦于以下问题:Java NotNull类的具体用法?Java NotNull怎么用?Java NotNull使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NotNull类属于org.greenrobot.greendao.annotation包,在下文中一共展示了NotNull类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: NotNullThing
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@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;
}
示例2: CustomRules
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@Generated(hash = 1250893848)
public CustomRules(Long id, @NotNull String category, Double val_1_min,
Double val_1_max, Double val_2_min, Double val_2_max,
String constraint_1, String constraint_2, String constraint_3,
Long timeWindow) {
this.id = id;
this.category = category;
this.val_1_min = val_1_min;
this.val_1_max = val_1_max;
this.val_2_min = val_2_min;
this.val_2_max = val_2_max;
this.constraint_1 = constraint_1;
this.constraint_2 = constraint_2;
this.constraint_3 = constraint_3;
this.timeWindow = timeWindow;
}
示例3: UserBean
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@Generated(hash = 1358414156)
public UserBean(Long id, @NotNull String title, @NotNull String first,
@NotNull String last, @NotNull String email, @NotNull String dob,
@NotNull String phone, @NotNull String cell, @NotNull String thumbnailPic,
@NotNull String mediumPic, @NotNull String largePic) {
this.id = id;
this.title = title;
this.first = first;
this.last = last;
this.email = email;
this.dob = dob;
this.phone = phone;
this.cell = cell;
this.thumbnailPic = thumbnailPic;
this.mediumPic = mediumPic;
this.largePic = largePic;
}
示例4: toString
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
private String toString(@NotNull Throwable e) {
final StackTraceElement[] elements = e.getStackTrace();
if (elements == null
|| elements.length == 0) {
return "";
}
final StringBuilder builder = new StringBuilder();
for (StackTraceElement element : elements) {
builder.append(element.toString())
.append("\n");
}
return builder.toString();
}
示例5: Note
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@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;
}
示例6: setCustomer
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
/** 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;
}
}
示例7: ReaderLocation
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@Generated(hash = 1429085647)
public ReaderLocation(Long id, @NotNull String description, double latitude,
double longitude) {
this.id = id;
this.description = description;
this.latitude = latitude;
this.longitude = longitude;
}
示例8: Event
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@Generated(hash = 1595411819)
public Event(Long id, @NotNull String pkg, int type, long date, int result) {
this.id = id;
this.pkg = pkg;
this.type = type;
this.date = date;
this.result = result;
}
示例9: setMovie
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
/** called by internal mechanisms, do not call yourself. */
@Generated(hash = 70566292)
public void setMovie(@NotNull MovieOverviewModel movie) {
if (movie == null) {
throw new DaoException(
"To-one property 'movieId' has not-null constraint; cannot set to-one to null");
}
synchronized (this) {
this.movie = movie;
movieId = movie.getId();
movie__resolvedKey = movieId;
}
}
示例10: insert
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@Override
public boolean insert(@NotNull M m) {
try {
getAbstractDao().insert(m);
} catch (SQLiteException e) {
ViseLog.e(e);
return false;
}
return true;
}
示例11: insertOrReplace
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@Override
public boolean insertOrReplace(@NotNull M m) {
try {
getAbstractDao().insertOrReplace(m);
} catch (SQLiteException e) {
ViseLog.e(e);
return false;
}
return true;
}
示例12: insertInTx
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@Override
public boolean insertInTx(@NotNull List<M> list) {
try {
getAbstractDao().insertInTx(list);
} catch (SQLiteException e) {
ViseLog.e(e);
return false;
}
return true;
}
示例13: insertOrReplaceInTx
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@Override
public boolean insertOrReplaceInTx(@NotNull List<M> list) {
try {
getAbstractDao().insertOrReplaceInTx(list);
} catch (SQLiteException e) {
ViseLog.e(e);
return false;
}
return true;
}
示例14: delete
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@Override
public boolean delete(@NotNull M m) {
try {
getAbstractDao().delete(m);
} catch (SQLiteException e) {
ViseLog.e(e);
return false;
}
return true;
}
示例15: deleteByKey
import org.greenrobot.greendao.annotation.NotNull; //导入依赖的package包/类
@Override
public boolean deleteByKey(@NotNull K key) {
try {
getAbstractDao().deleteByKey(key);
} catch (SQLiteException e) {
ViseLog.e(e);
return false;
}
return true;
}