public class Diffs extends LinkedHashMap<String,Diffs>
Each individual difference is a String (map key) and has optional further detail contained in another
Diffs instance (map value, or null for none). Keys must not be null.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Diffs()
Default constructor.
|
Diffs(Diffs other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String description)
Add a difference without any sub-differences.
|
void |
add(String description,
Diffs diffs)
Add a difference with optional sub-differences.
|
String |
toString()
Format this instance as a
String. |
clear, containsValue, get, removeEldestEntryclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCodepublic Diffs()
public Diffs(Diffs other)
other - instance to copypublic void add(String description)
description - description of the differenceIllegalArgumentException - if description is nullpublic void add(String description, Diffs diffs)
description - description of the differencediffs - sub-differences, or null for noneIllegalArgumentException - if description is nullCopyright © 2016. All rights reserved.