public static class IntPartitions.Part
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
count
How often the number is contained in the partition.
|
int |
number
Number.
|
Constructor and Description |
---|
Part(int number,
int count)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getCount()
Get how often the
getNumber() is contained in the partition. |
int |
getNumber()
Get the number.
|
int |
hashCode() |
java.lang.String |
toString() |
public final int number
public final int count
Part(int number, int count)
number
- the numbercount
- how often it is containedpublic int getNumber()
public int getCount()
getNumber()
is contained in the partition.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object