Interface Mqtt5UserPropertiesBuilderBase<B extends Mqtt5UserPropertiesBuilderBase<B>>
- Type Parameters:
B- the type of the builder.
- All Known Subinterfaces:
Mqtt5UserPropertiesBuilder,Mqtt5UserPropertiesBuilder.Nested<P>
@DoNotImplement
public interface Mqtt5UserPropertiesBuilderBase<B extends Mqtt5UserPropertiesBuilderBase<B>>
Builder base for
Mqtt5UserProperties.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionadd(@NotNull MqttUtf8String name, @NotNull MqttUtf8String value) Adds aUser Property.add(@NotNull Mqtt5UserProperty userProperty) Adds aUser Property.Adds aUser Property.addAll(@NotNull Mqtt5UserProperty @NotNull ... userProperties) AddsUser Properties.addAll(@NotNull Collection<@NotNull ? extends Mqtt5UserProperty> userProperties) Adds a collection ofUser Properties.addAll(@NotNull Stream<@NotNull ? extends Mqtt5UserProperty> userProperties) Adds a stream ofUser Properties.
-
Method Details
-
add
Adds aUser Property.- Parameters:
name- the name of the User Property.value- the value of the User Property.- Returns:
- the builder.
-
add
@CheckReturnValue @NotNull B add(@NotNull @NotNull MqttUtf8String name, @NotNull @NotNull MqttUtf8String value) Adds aUser Property.- Parameters:
name- the name of the User Property.value- the value of the User Property.- Returns:
- the builder.
-
add
Adds aUser Property.- Parameters:
userProperty- the User Property.- Returns:
- the builder.
-
addAll
@CheckReturnValue @NotNull B addAll(@NotNull @NotNull Mqtt5UserProperty @NotNull ... userProperties) AddsUser Properties.- Parameters:
userProperties- the User Properties.- Returns:
- the builder.
- Since:
- 1.2
-
addAll
@CheckReturnValue @NotNull B addAll(@NotNull @NotNull Collection<@NotNull ? extends Mqtt5UserProperty> userProperties) Adds a collection ofUser Properties.- Parameters:
userProperties- the collection of User Properties.- Returns:
- the builder.
- Since:
- 1.2
-
addAll
@CheckReturnValue @NotNull B addAll(@NotNull @NotNull Stream<@NotNull ? extends Mqtt5UserProperty> userProperties) Adds a stream ofUser Properties.- Parameters:
userProperties- the stream of User Properties.- Returns:
- the builder.
- Since:
- 1.2
-