Removes and returns a message with a certain ID from the incoming messages buffer or null if such message wasn't found. @param id ID of the message @param from The host that sent this message (previous hop) @return The found message or null if such message wasn't found
(String id, DTNHost from)
| 404 | * @return The found message or null if such message wasn't found |
| 405 | */ |
| 406 | protected Message removeFromIncomingBuffer(String id, DTNHost from) { |
| 407 | return this.incomingMessages.remove(id + "_" + from.toString()); |
| 408 | } |
| 409 | |
| 410 | /** |
| 411 | * Returns true if a message with the given ID is one of the |
no test coverage detected