MapBinder that does not permit
duplicates.
| Modifier and Type | Field and Description |
|---|---|
| private final Multimap | |
| private final Key |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | formatDetail(List<ErrorDetail<?>>
list of errors that are mergeable with this error others, Formatter for printing the error message formatter)Implements abstract com. |
| private static <K, V> String | |
| public DuplicateMapKeyError | withSources(List<Object> newSources)
Implements abstract com. ErrorDetail with updated sources.
|
| duplicates | back to summary |
|---|---|
| private final Multimap<K, Binding<V>> duplicates | |
| mapKey | back to summary |
|---|---|
| private final Key<Map<K, V>> mapKey | |
| DuplicateMapKeyError | back to summary |
|---|---|
| pack-priv DuplicateMapKeyError(Key<Map<K, V>> mapKey, Multimap<K, Binding<V>> duplicates, List<Object> sources) | |
| formatDetail | back to summary |
|---|---|
| protected final void formatDetail(List<ErrorDetail<?>> others, Formatter formatter) Implements abstract com. Doc from com. Formats the detail of this error message along with other errors that are mergeable with this
error. This is called from
| |
| getDuplicateKeysMessage | back to summary |
|---|---|
| private static <K, V> String getDuplicateKeysMessage(Key<Map<K, V>> mapKey, Multimap<K, Binding<V>> duplicates) | |
| withSources | back to summary |
|---|---|
| public DuplicateMapKeyError Implements abstract com. Doc from com. Returns a new instance of the same
| |