| Modifier and Type | Class and Description |
|---|---|
| private static class | Statistics.
Statistical data about a particular class. |
| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | dataMap
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public String | |
| public final void | writeAnnotation(AnnotatedOutput
non-null; where to write toWrites the statistics as an annotation. |
| dataMap | back to summary |
|---|---|
| private final HashMap<String, Statistics.
| |
| Statistics | back to summary |
|---|---|
| public Statistics() Constructs an instance. | |
| add | back to summary |
|---|---|
| public void add(Item item) Adds the given item to the statistics.
| |
| addAll | back to summary |
|---|---|
| public void addAll(Section list) Adds the given list of items to the statistics.
| |
| toHuman | back to summary |
|---|---|
| public String toHuman() | |
| writeAnnotation | back to summary |
|---|---|
| public final void writeAnnotation(AnnotatedOutput out) Writes the statistics as an annotation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | count
|
| private int | largestSize
|
| private final String | name
|
| private int | smallestSize
|
| private int | totalSize
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | Returns: string for human consumption.Generates a human-readable string for this data item. |
| public void | writeAnnotation(AnnotatedOutput
non-null; where to write toWrites this instance as an annotation. |
| count | back to summary |
|---|---|
| private int count
| |
| largestSize | back to summary |
|---|---|
| private int largestSize
| |
| name | back to summary |
|---|---|
| private final String name
| |
| smallestSize | back to summary |
|---|---|
| private int smallestSize
| |
| totalSize | back to summary |
|---|---|
| private int totalSize
| |
| Data | back to summary |
|---|---|
| public Data(Item item, String name) Constructs an instance for the given item. | |
| add | back to summary |
|---|---|
| public void add(Item item) Incorporates a new item. This assumes the type name matches.
| |
| toHuman | back to summary |
|---|---|
| public String toHuman() Generates a human-readable string for this data item.
| |
| writeAnnotation | back to summary |
|---|---|
| public void writeAnnotation(AnnotatedOutput out) Writes this instance as an annotation.
| |