A simple implementation of a product type AxB.
More...
List of all members.
Public Member Functions |
| Product (final A first, final B second) |
| Constructs a product element (a,b) in AxB.
|
final A | getFirst () |
| Returns the first element of a product.
|
final B | getSecond () |
| Returns the second element of a product.
|
final void | setFirst (final A first) |
| Sets the first element of a product.
|
final void | setSecond (final B second) |
| Sets the second element of a product.
|
Private Attributes |
A | a |
| The first entry.
|
B | b |
| The second entry.
|
Detailed Description
A simple implementation of a product type AxB.
- Parameters:
-
<A> | The type of the first entry |
<B> | The type of the second entry |
- Author:
- Ulrike Golas
Constructor & Destructor Documentation
de.zib.gndms.common.stuff.util.Product< A, B >.Product |
( |
final A |
first, |
|
|
final B |
second |
|
) |
| |
Constructs a product element (a,b) in AxB.
- Parameters:
-
first | The first entry. |
second | The second entry. |
Member Function Documentation
final A de.zib.gndms.common.stuff.util.Product< A, B >.getFirst |
( |
| ) |
|
Returns the first element of a product.
- Returns:
- The first entry.
final B de.zib.gndms.common.stuff.util.Product< A, B >.getSecond |
( |
| ) |
|
Returns the second element of a product.
- Returns:
- The second entry.
final void de.zib.gndms.common.stuff.util.Product< A, B >.setFirst |
( |
final A |
first | ) |
|
Sets the first element of a product.
- Parameters:
-
final void de.zib.gndms.common.stuff.util.Product< A, B >.setSecond |
( |
final B |
second | ) |
|
Sets the second element of a product.
- Parameters:
-
The documentation for this class was generated from the following file:
- common/src/de/zib/gndms/common/stuff/util/Product.java