private static class RemoteEntryShortcut.StatusWrapper extends Object
RemoteAddeEntry
with one of the states from
RemoteEntryEditor.AddeStatus
.Modifier and Type | Field and Description |
---|---|
private RemoteAddeEntry |
entry |
private RemoteEntryEditor.AddeStatus |
status
Current "status" of
entry . |
Constructor and Description |
---|
StatusWrapper(RemoteAddeEntry entry)
Builds an entry/status pairing.
|
Modifier and Type | Method and Description |
---|---|
RemoteAddeEntry |
getEntry()
Returns the
RemoteAddeEntry stored in this wrapper. |
RemoteEntryEditor.AddeStatus |
getStatus()
Returns the current "status" of
entry . |
void |
setStatus(RemoteEntryEditor.AddeStatus status)
Set the "status" of this
entry to a given
RemoteEntryEditor.AddeStatus . |
private final RemoteAddeEntry entry
private RemoteEntryEditor.AddeStatus status
entry
.public StatusWrapper(RemoteAddeEntry entry)
entry
- The RemoteAddeEntry
to wrap up.NullPointerException
- if entry
is null
.public void setStatus(RemoteEntryEditor.AddeStatus status)
entry
to a given
RemoteEntryEditor.AddeStatus
.status
- New status of entry
.public RemoteEntryEditor.AddeStatus getStatus()
entry
.RemoteEntryEditor.AddeStatus
.public RemoteAddeEntry getEntry()
RemoteAddeEntry
stored in this wrapper.entry