Stores the size of set A, set B and the intersection of A and B
(|A ∩ B|).
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
| private final int | intersection
The size of the intersection between set A and B. |
| private final int | sizeA
The size of set A. |
| private final int | sizeB
The size of set B. |
| Access | Constructor and Description |
|---|---|
| public | IntersectionResult(final int
the size of set A ( sizeA, final int |A|).the size of set B ( sizeB, final int |B|).the size of the intersection of A and B ( intersection)|A ∩ B|).Constructs the results for an intersection between two sets. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public int | |
| public int | |
| public int | |
| public String |
| intersection | back to summary |
|---|---|
| private final int intersection The size of the intersection between set A and B. | |
| sizeA | back to summary |
|---|---|
| private final int sizeA The size of set A. | |
| sizeB | back to summary |
|---|---|
| private final int sizeB The size of set B. | |
| IntersectionResult | back to summary |
|---|---|
| public IntersectionResult(final int sizeA, final int sizeB, final int intersection) Constructs the results for an intersection between two sets.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getIntersection | back to summary |
|---|---|
| public int getIntersection() Gets the size of the intersection between set A and B.
| |
| getSizeA | back to summary |
|---|---|
| public int getSizeA() Gets the size of set A.
| |
| getSizeB | back to summary |
|---|---|
| public int getSizeB() Gets the size of set B.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |