L - 左值类型R - 右值类型public class MutablePair<L,R> extends Pair<L,R> implements Mutable<MutablePair<L,R>>
| Constructor and Description |
|---|
MutablePair(L left,
R right)
构造
|
| Modifier and Type | Method and Description |
|---|---|
MutablePair<L,R> |
get()
获得原始值
|
static <L,R> MutablePair<L,R> |
of(L left,
R right)
构建MutablePair对象
|
void |
set(MutablePair<L,R> value)
设置值
|
void |
setLeft(L left)
设置左值
|
void |
setRight(R right)
设置右值
|
clone, equals, getLeft, getRight, hashCode, toStringpublic static <L,R> MutablePair<L,R> of(L left, R right)
L - 左值类型R - 右值类型left - 左值right - 右值public MutablePair<L,R> get()
Mutableget in interface Mutable<MutablePair<L,R>>public void set(MutablePair<L,R> value)
Mutableset in interface Mutable<MutablePair<L,R>>value - 值public void setLeft(L left)
left - 左值public void setRight(R right)
right - 右值Copyright © 2025. All rights reserved.