Changeset 6156 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2013-08-19T15:10:53+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Pair.java
r4272 r6156 4 4 5 5 /** 6 * A pair. 6 * A pair of objects. 7 * @param <A> Type of first item 8 * @param <B> Type of second item 9 * @since 429 7 10 */ 8 11 public final class Pair<A,B> { 12 13 /** 14 * The first item 15 */ 9 16 public A a; 17 18 /** 19 * The second item 20 */ 10 21 public B b; 11 22 23 /** 24 * Constructs a new {@code Pair}. 25 * @param a The first item 26 * @param b The second item 27 */ 12 28 public Pair(A a, B b) { 13 29 this.a = a; … … 48 64 } 49 65 50 /* convenience constructor method */ 66 /** 67 * Convenient constructor method 68 * @param u The first item 69 * @param v The second item 70 * @return The newly created Pair(u,v) 71 */ 51 72 public static <U,V> Pair<U,V> create(U u, V v) { 52 73 return new Pair<U,V>(u,v);
Note:
See TracChangeset
for help on using the changeset viewer.