public class DetachableContactModel extends LoadableDetachableModel<Contact>
Constructor and Description |
---|
DetachableContactModel(Contact c) |
DetachableContactModel(long id) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
used for dataview with ReuseIfModelsEqualStrategy item reuse strategy
|
protected ContactsDatabase |
getContactsDB() |
int |
hashCode() |
protected Contact |
load()
Loads and returns the (temporary) model object.
|
detach, getObject, isAttached, of, onAttach, onDetach, setObject, toString
public DetachableContactModel(Contact c)
c
- public DetachableContactModel(long id)
id
- protected ContactsDatabase getContactsDB()
public boolean equals(Object obj)
equals
in class Object
ReuseIfModelsEqualStrategy
,
Object.equals(java.lang.Object)
protected Contact load()
LoadableDetachableModel
load
in class LoadableDetachableModel<Contact>
LoadableDetachableModel.load()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.