public class SetAndCount
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
count
The count.
|
private java.util.Set<java.lang.String> |
set
The set.
|
Constructor and Description |
---|
SetAndCount(java.util.Set<java.lang.String> set)
Instantiates a new sets the and count.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Gets the count.
|
java.util.Set<java.lang.String> |
getSet()
Gets the sets the.
|
void |
setCount(int count)
Sets the count.
|
java.lang.String |
toString()
"SetAndCount [count=" + count + ", set=" + set + "]";
|
private int count
private final java.util.Set<java.lang.String> set
public SetAndCount(java.util.Set<java.lang.String> set)
set
- the setpublic int getCount()
public void setCount(int count)
count
- the new countpublic java.util.Set<java.lang.String> getSet()
public java.lang.String toString()
toString
in class java.lang.Object