public class EntryTypeAndID
extends java.lang.Object
implements java.io.Serializable
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
long |
getAuthorized() |
long |
getEdit() |
long |
getExport() |
long |
getId() |
static EntryTypeAndID |
getInstance(int type,
long id) |
static EntryTypeAndID |
getInstance(int type,
long id,
long view,
long authorized,
long edit) |
static EntryTypeAndID |
getInstance(int type,
long id,
long view,
long authorized,
long edit,
long export) |
int |
getType() |
long |
getView() |
int |
hashCode()
对象的hash值
|
void |
setAuthorized(long authorized) |
void |
setEdit(long edit) |
void |
setExport(long export) |
void |
setId(long id) |
void |
setType(int type) |
void |
setView(long view) |
JSONObject |
toJSONObject()
对象转成json对象
|
public static EntryTypeAndID getInstance(int type, long id)
public static EntryTypeAndID getInstance(int type, long id, long view, long authorized, long edit, long export)
public static EntryTypeAndID getInstance(int type, long id, long view, long authorized, long edit)
public int getType()
public void setType(int type)
public long getId()
public void setId(long id)
public int hashCode()
hashCode
在类中 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public JSONObject toJSONObject() throws JSONException
JSONException
- json异常public long getAuthorized()
public void setAuthorized(long authorized)
public long getView()
public void setView(long view)
public long getEdit()
public void setEdit(long edit)
public long getExport()
public void setExport(long export)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException