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


Java Ignore类代码示例

本文整理汇总了Java中android.arch.persistence.room.Ignore的典型用法代码示例。如果您正苦于以下问题:Java Ignore类的具体用法?Java Ignore怎么用?Java Ignore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Ignore类属于android.arch.persistence.room包,在下文中一共展示了Ignore类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Location

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
/**
 * params constructor without id
 */
@Ignore
public Location(@Nonnull String location_name, @Nonnull String location_address, double location_lat, double location_lng,
                @Nonnull String location_background, @Nonnull String location_note, boolean location_is_address_updated,
                boolean location_is_latlng_updated) {
    this(Constant.INT_NONE_VALUE, location_name, location_address, location_lat, location_lng, location_background,
            location_note, location_is_address_updated, location_is_latlng_updated);
}
 
开发者ID:nhocga1995s,项目名称:MyCalendar,代码行数:11,代码来源:Location.java

示例2: ClaimItem

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
protected ClaimItem(final Parcel in) {
    id = in.readLong();
    description = in.readString();
    amount = in.readDouble();
    final long time = in.readLong();
    timestamp = time != -1 ? new Date(time) : null;
    final int categoryOrd = in.readInt();
    category = categoryOrd != -1 ? Category.values()[categoryOrd] : null;
    in.readTypedList(attachments, Attachment.CREATOR);
}
 
开发者ID:PacktPublishing,项目名称:Hands-On-Android-UI-Development,代码行数:12,代码来源:ClaimItem.java

示例3: Recipe

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public Recipe(int id, String name,
              ArrayList<Ingredient> ingredients, ArrayList<Step> steps,
              int servings, String image){
    this.id = id;
    this.name = name;
    this.ingredients = ingredients;
    this.steps = steps;
    this.servings = servings;
    this.image = image;
}
 
开发者ID:harrynp,项目名称:BakingApp,代码行数:12,代码来源:Recipe.java

示例4: User

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public User(String userName) {
    // DO NOT USE Integer Random values for primary keys.
    // This is using an Integer to showcase a WRONG implementation that has to be fixed
    // afterwards by updating the schema.
    // The ID is updated to a UUID String in the room3 flavor.
    mId = new Random(Integer.MAX_VALUE).nextInt();
    mUserName = userName;
}
 
开发者ID:googlesamples,项目名称:android-architecture-components,代码行数:10,代码来源:User.java

示例5: User

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public User(String userName) {
    // DO NOT USE Integer Random values for primary keys.
    // This is using an Integer to showcase a WRONG implementation that has to be fixed
    // afterwards by updating the schema.
    // The ID is updated to a UUID String in the room3 flavor.
    mId = new Random(Integer.MAX_VALUE).nextInt();
    mUserName = userName;
    mDate = new Date(System.currentTimeMillis());
}
 
开发者ID:googlesamples,项目名称:android-architecture-components,代码行数:11,代码来源:User.java

示例6: Project

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public Project(String title, String desc, int priority, Date dead_line){
    this.title = title;
    this.desc = desc;
    this.progress = 0;
    this.cost = 0;
    this.priority = priority;
    this.create_time = new Date();
    this.dead_line = dead_line;
}
 
开发者ID:osolarik,项目名称:ProjectProgressTracker,代码行数:11,代码来源:Project.java

示例7: Comment

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public Comment(long photoId, String commentText) {
    this.photoId = photoId;
    this.commentText = commentText;
    this.timestamp = System.currentTimeMillis();
    this.syncPending = true;
}
 
开发者ID:jshvarts,项目名称:OfflineSampleApp,代码行数:8,代码来源:Comment.java

示例8: Message

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public Message(Long userId, Long threadId) {
    this.creDate = new Date();
    this.status = EnumMessageStatus.RECEIVED;
    this.userId = userId;
    this.threadId = threadId;
}
 
开发者ID:davideas,项目名称:AndroidBlueprints,代码行数:8,代码来源:Message.java

示例9: Person

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public Person(long deadline, int goal, int currentFloor) {
    id = 0;
    this.birth = System.currentTimeMillis();
    this.deadline = deadline;
    this.goal = goal;
    setCurrentFloor(currentFloor);
    setCurrentState(State.LOBBY);
    gone = false;
    style = randomStyle();
    dirty = false;
}
 
开发者ID:willowtreeapps,项目名称:elevator-room,代码行数:13,代码来源:Person.java

示例10: FavoriteLocation

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public FavoriteLocation(long uid, NetworkId networkId, WrapLocation l) {
	super(uid, networkId, l);
	this.fromCount = 0;
	this.viaCount = 0;
	this.toCount = 0;
}
 
开发者ID:grote,项目名称:Transportr,代码行数:8,代码来源:FavoriteLocation.java

示例11: Date

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
StoredSearch(@NonNull NetworkId networkId, FavoriteLocation from, @Nullable FavoriteLocation via, FavoriteLocation to) {
	this.networkId = networkId;
	this.fromId = from.getUid();
	if (via != null) this.viaId = via.getUid();
	this.toId = to.getUid();
	this.count = 1;
	this.lastUsed = new Date();
	this.favorite = false;
}
 
开发者ID:grote,项目名称:Transportr,代码行数:11,代码来源:StoredSearch.java

示例12: ChatMessage

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public ChatMessage(int id, String text, ChatMember member, String timestamp, int previous) {
    super();
    this.id = id;
    this.text = text;
    this.member = member;
    this.timestamp = timestamp;
    this.sendingStatus = STATUS_SENT;
    this.previous = previous;
}
 
开发者ID:TCA-Team,项目名称:TumCampusApp,代码行数:11,代码来源:ChatMessage.java

示例13: Moment

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public Moment(long rideId, Date date) {
    this.rideId = rideId;
    this.date = date;
}
 
开发者ID:ponewheel,项目名称:android-ponewheel,代码行数:6,代码来源:Moment.java

示例14: UploadItem

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public UploadItem() {
}
 
开发者ID:rumaan,项目名称:file.io-app,代码行数:4,代码来源:UploadItem.java

示例15: Attachment

import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public Attachment(final File file, final Type type) {
    this.file = file;
    this.type = Type.safe(type);
}
 
开发者ID:PacktPublishing,项目名称:Hands-On-Android-UI-Development,代码行数:6,代码来源:Attachment.java


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