Package eu.bandm.tools.util.anon
Class Tuple2.ListBuilder<B,C>
java.lang.Object
eu.bandm.tools.util.anon.Tuple2.ListBuilder<B,C>
- Type Parameters:
B- the type of the first component.C- the type of the second component.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ListBuilder
public ListBuilder()Only constructor.
-
-
Method Details
-
add
Add a 2-tuple to the list under construction.- Parameters:
a- the value of the first component.b- the value of the second component.- Returns:
- this instance, for method chaining.
-
close
Return the result, as constructed so far.- Returns:
- the constructed list of 2-tuples.
-