| 程序包 | 说明 |
|---|---|
| cn.ponfee.disjob.common.tuple | |
| cn.ponfee.disjob.common.util |
| 限定符和类型 | 方法和说明 |
|---|---|
Tuple2<A,B> |
Tuple2.copy() |
static <A,B> Tuple2<A,B> |
Tuple2.of(A a,
B b) |
Tuple2<B,A> |
Tuple2.swap()
Returns a Tuple2 Object of this instance swapped values.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Tuple2<Integer,Integer>> |
Numbers.partition(int number,
int size)
Partition the number
partition( 0, 2) -> [(0, 0)]
partition( 2, 3) -> [(0, 0), (1, 1)]
partition( 3, 1) -> [(0, 2)]
partition( 9, 3) -> [(0, 2), (3, 5), (6, 8)]
partition(10, 3) -> [(0, 3), (4, 6), (7, 9)]
partition(11, 3) -> [(0, 3), (4, 7), (8, 10)]
partition(12, 3) -> [(0, 3), (4, 7), (8, 11)]
|
Copyright © 2025. All rights reserved.