mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
三元组ImmutableTriple成员修改为final/6.0.3改为6.0.0
This commit is contained in:
parent
cf4e64a49b
commit
d0b7445fa8
@ -15,9 +15,9 @@ import java.util.Objects;
|
||||
public class ImmutableTriple<L, M, R> implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
protected L left;
|
||||
protected M middle;
|
||||
protected R right;
|
||||
protected final L left;
|
||||
protected final M middle;
|
||||
protected final R right;
|
||||
|
||||
/**
|
||||
* 构建ImmutableTriple对象
|
||||
@ -87,9 +87,9 @@ public class ImmutableTriple<L, M, R> implements Serializable {
|
||||
}
|
||||
if (o instanceof ImmutableTriple) {
|
||||
ImmutableTriple<?, ?, ?> triple = (ImmutableTriple<?, ?, ?>) o;
|
||||
return Objects.equals(getLeft(), triple.getLeft()) &&
|
||||
Objects.equals(getMiddle(), triple.getMiddle()) &&
|
||||
Objects.equals(getRight(), triple.getRight());
|
||||
return Objects.equals(left, triple.getLeft()) &&
|
||||
Objects.equals(middle, triple.getMiddle()) &&
|
||||
Objects.equals(right, triple.getRight());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ import java.util.Objects;
|
||||
* @param <M> 中值类型
|
||||
* @param <R> 右值类型
|
||||
* @author kirno7
|
||||
* @since 6.0.3
|
||||
* @since 6.0.0
|
||||
*/
|
||||
public class MutableTriple<L, M, R> implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@ -114,9 +114,9 @@ public class MutableTriple<L, M, R> implements Serializable {
|
||||
}
|
||||
if (o instanceof MutableTriple) {
|
||||
MutableTriple<?, ?, ?> triple = (MutableTriple<?, ?, ?>) o;
|
||||
return Objects.equals(getLeft(), triple.getLeft()) &&
|
||||
Objects.equals(getMiddle(), triple.getMiddle()) &&
|
||||
Objects.equals(getRight(), triple.getRight());
|
||||
return Objects.equals(left, triple.getLeft()) &&
|
||||
Objects.equals(middle, triple.getMiddle()) &&
|
||||
Objects.equals(right, triple.getRight());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user