本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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;
}
示例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());
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例13: Moment
import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public Moment(long rideId, Date date) {
this.rideId = rideId;
this.date = date;
}
示例14: UploadItem
import android.arch.persistence.room.Ignore; //导入依赖的package包/类
@Ignore
public UploadItem() {
}
示例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);
}