关于 setValue

源码

1、setValue

  1. public V setValue(V value) {
  2. V oldValue = this.value;
  3. this.value = value;
  4. return oldValue;
  5. }

2、setValue 逐行注释

public V setValue(V value) {
    V oldValue = this.value;
    this.value = value;
    return oldValue;
}