Skip to content

Commit

Permalink
intoMap & intoSet with simple element
Browse files Browse the repository at this point in the history
  • Loading branch information
luozejiaqun committed Jan 22, 2025
1 parent 9f59fff commit c1c005b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ class MapMultibindingElementDefinition<in K : Any, in E : Any> @PublishedApi int
) {
private val isRootScope = scopeQualifier == rootScopeQualifier

fun intoMap(key: K, element: E) {
intoMap(key) { element }
}

/**
* the parameters of [definition] come from MapMultibinding creation
*
Expand Down Expand Up @@ -278,6 +282,10 @@ class SetMultibindingElementDefinition<in E : Any> @PublishedApi internal constr
scopeQualifier
)

fun intoSet(element: E) {
intoSet { element }
}

/**
* the parameters of [definition] come from SetMultibinding creation
*
Expand Down

0 comments on commit c1c005b

Please sign in to comment.