Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1479 need to look at value, not key
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
value-fixture/src/org/immutables/fixture/generics/MultimapSafeVarargs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.immutables.fixture.generics; | ||
|
||
import com.google.common.collect.Multimap; | ||
import org.immutables.value.Value; | ||
|
||
@Value.Enclosing | ||
public interface MultimapSafeVarargs { | ||
@Value.Immutable | ||
interface ParamKey { | ||
Multimap<Val<String>, String> vals(); | ||
} | ||
@Value.Immutable | ||
interface ParamVal { | ||
Multimap<String, Val<String>> vals(); | ||
} | ||
@Value.Immutable | ||
interface ParamBoth { | ||
Multimap<Val<String>, Val<String>> vals(); | ||
} | ||
|
||
interface Val<T> {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters