Class MatchEvent.Builder

    • Method Detail

      • validate

        protected net.sf.eBus.util.Validator validate​(net.sf.eBus.util.Validator problems)
        Checks if this builder is correctly configured before attempting to build the target message instance. A valid MatchEvent requires that both the message groups and user cache be set.
        Overrides:
        validate in class EMessage.Builder<MatchEvent,​MatchEvent.Builder>
        Parameters:
        problems - place invalid fields into this list.
        Returns:
        problems is returned to all method chaining.
      • userCache

        public MatchEvent.Builder userCache​(Map<Object,​Object> userCache)
        Sets the user cache to the given value.
        Parameters:
        userCache - user cache map. May not be null but may be empty.
        Returns:
        this Builder instance.
        Throws:
        NullPointerException - if userCache is null.