setData method

void setData(
  1. T data
)

设置存储的数据 data 要存储的泛型数据

Implementation

void setData(T data) {
  this.data = data;
}