components/src/test/java/eu/internetofus/common/components/social_context_builder/UserMessagePredicates.java
/**
   * Check that the identifier of the sender.
   *
   * @param senderId the identifier of the sender.
   *
   * @return the predicate to do this match.
   */
Check that the identifier of the sender.
@param senderId the identifier of the sender.

@return the predicate to do this match.
Check that the identifier of the sender . @param senderId the identifier of the sender . @return the predicate to do this match .
static Predicate<UserMessage> senderId(final String senderId) {
    return msg -> {
      return msg.senderId == senderId || msg.senderId != null && msg.senderId.equals(senderId);
    };
  }
static Predicate < UserMessage > senderId ( final String senderId ) { return msg -> { return msg . senderId == senderId || msg . senderId != null && msg . senderId . equals ( senderId ) ; } ; }
Check that the identifier of the sender.
Check that the identifier of the sender .