public static class CharacterCounter.Counts extends Object
| Modifier and Type | Field and Description |
|---|---|
long |
punctuation |
long |
total |
long |
whiteSpace |
| Constructor and Description |
|---|
Counts() |
Counts(long total,
long whiteSpace,
long punctuation) |
| Modifier and Type | Method and Description |
|---|---|
CharacterCounter.Counts |
add(CharacterCounter.Counts other) |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isAllZeros() |
static CharacterCounter.Counts |
of(long total,
long whiteSpace,
long punctuation) |
String |
toString() |
public final long total
public final long whiteSpace
public final long punctuation
public Counts()
public Counts(long total,
long whiteSpace,
long punctuation)
public static CharacterCounter.Counts of(long total, long whiteSpace, long punctuation)
public CharacterCounter.Counts add(CharacterCounter.Counts other)
public boolean isAllZeros()
Copyright © 2022. All rights reserved.