Interface EntityMapper<I extends IncomingMessage,E extends LiveScoutEntityBase>
- All Known Implementing Classes:
LiveScoutEntityMapper
public interface EntityMapper<I extends IncomingMessage,E extends LiveScoutEntityBase>
Represents a class used to map protocol layer messages to feed layer entities
-
Method Summary
-
Method Details
-
map
Maps the passedIncomingMessagederived message to feed entity- Parameters:
message- TheIncomingMessagederived message to be mapped to the feed layer entity.- Returns:
- The
LiveScoutEntityBasederived class representing the passed message. - Throws:
IllegalArgumentException- themessageis a null referenceInvalidEntityException- wrong entity provided
-