MyTetra Share
Делитесь знаниями!
Crime.java
29.04.2017
15:59
Раздел: Android - books - AndroidProgramming2e - 14 Базы данных SQLite
Crime.java

Crime.java

package com.bignerdranch.android.criminalintent; 
 
import java.util.Date; 
import java.util.UUID; 
 
public class Crime { 
 
    private UUID mId; 
    private String mTitle; 
    private Date mDate; 
    private boolean mSolved; 
 
    public Crime() { 
        this(UUID.randomUUID()); 
    } 
 
    public Crime(UUID id) { 
        mId = id; 
        mDate = new Date(); 
    } 
    public UUID getId() { 
        return mId; 
    } 
 
    public String getTitle() { 
        return mTitle; 
    } 
 
    public void setTitle(String title) { 
        mTitle = title; 
    } 
 
    public Date getDate() { 
        return mDate; 
    } 
 
    public void setDate(Date date) { 
        mDate = date; 
    } 
 
    public boolean isSolved() { 
        return mSolved; 
    } 
 
    public void setSolved(boolean solved) { 
        mSolved = solved; 
    } 
} 

 
MyTetra Share v.0.52
Яндекс индекс цитирования