public class IntPair extends Object
Mapping.iterator()| Constructor and Description |
|---|
IntPair(int source,
int target) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
static IntPair |
of(int left,
int right) |
String |
toString() |
static List<IntPair> |
zip(List<? extends Number> lefts,
List<? extends Number> rights)
Converts two lists into a list of
IntPairs,
whose length is the lesser of the lengths of the
source lists. |
static List<IntPair> |
zip(List<? extends Number> lefts,
List<? extends Number> rights,
boolean strict)
Converts two lists into a list of
IntPairs. |
public static IntPair of(int left, int right)
public static List<IntPair> zip(List<? extends Number> lefts, List<? extends Number> rights)
IntPairs,
whose length is the lesser of the lengths of the
source lists.lefts - Left listrights - Right listpublic static List<IntPair> zip(List<? extends Number> lefts, List<? extends Number> rights, boolean strict)
IntPairs.
The length of the combined list is the lesser of the lengths of the source lists. But typically the source lists will be the same length.
lefts - Left listrights - Right liststrict - Whether to fail if lists have different sizeCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.