当前位置: 首页>>代码示例>>Java>>正文


Java NotNull类代码示例

本文整理汇总了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;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:17,代码来源:NotNullThing.java

示例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;
}
 
开发者ID:kflauri2312lffds,项目名称:Android_watch_magpie,代码行数:17,代码来源:CustomRules.java

示例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;
}
 
开发者ID:YousufSohail,项目名称:GhostContactBook,代码行数:18,代码来源:UserBean.java

示例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();
}
 
开发者ID:huazhouwang,项目名称:Synapse,代码行数:18,代码来源:ExceptionHelper.java

示例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;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:9,代码来源:Note.java

示例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;
    }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:14,代码来源:Order.java

示例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;
}
 
开发者ID:tjjh89017,项目名称:DoorAccess,代码行数:9,代码来源:ReaderLocation.java

示例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;
}
 
开发者ID:Trumeet,项目名称:MiPushFramework,代码行数:9,代码来源:Event.java

示例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;
    }
}
 
开发者ID:tgbMedia,项目名称:Android-app,代码行数:14,代码来源:KeywordModel.java

示例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;
}
 
开发者ID:xiaoyaoyou1212,项目名称:XSnow,代码行数:11,代码来源:DBManager.java

示例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;
}
 
开发者ID:xiaoyaoyou1212,项目名称:XSnow,代码行数:11,代码来源:DBManager.java

示例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;
}
 
开发者ID:xiaoyaoyou1212,项目名称:XSnow,代码行数:11,代码来源:DBManager.java

示例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;
}
 
开发者ID:xiaoyaoyou1212,项目名称:XSnow,代码行数:11,代码来源:DBManager.java

示例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;
}
 
开发者ID:xiaoyaoyou1212,项目名称:XSnow,代码行数:11,代码来源:DBManager.java

示例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;
}
 
开发者ID:xiaoyaoyou1212,项目名称:XSnow,代码行数:11,代码来源:DBManager.java


注:本文中的org.greenrobot.greendao.annotation.NotNull类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。