Returns a SetType for type. @throws IllegalArgumentException if type is not a Set type
(TypeMirror type)
| 105 | * @throws IllegalArgumentException if {@code type} is not a {@link Set} type |
| 106 | */ |
| 107 | static SetType from(TypeMirror type) { |
| 108 | checkArgument(isSet(type), "%s must be a Set", type); |
| 109 | return new AutoValue_SetType(MoreTypes.equivalence().wrap(MoreTypes.asDeclared(type))); |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * Returns a {@link SetType} for {@code key}'s {@link Key#type() type}. |
no test coverage detected