Interface MayHaveSender
-
- All Known Implementing Classes:
Message,MessageDelivery
public interface MayHaveSenderA type which may or may not have specified a sender, either as asender IDor anorganization. Both these methods may returnnull.
-
-
Field Summary
Fields Modifier and Type Field Description static MayHaveSenderNO_SENDER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<SenderId>getSenderId()Optional<SenderOrganization>getSenderOrganization()
-
-
-
Field Detail
-
NO_SENDER
static final MayHaveSender NO_SENDER
-
-
Method Detail
-
getSenderId
Optional<SenderId> getSenderId()
- Returns:
- the sender ID, or
Optional.empty()if it does not exist.
-
getSenderOrganization
Optional<SenderOrganization> getSenderOrganization()
- Returns:
- the sender organization, or
Optional.empty()if it does not exist.
-
-