代码简化

This commit is contained in:
卢春梦 2024-12-23 17:17:24 +08:00
parent 4f14a5d757
commit 0e697aa297

View File

@ -16,29 +16,23 @@
package org.springblade.core.redis.serializer; package org.springblade.core.redis.serializer;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/** /**
* redis序列化辅助类.单纯的泛型无法定义通用schema原因是无法通过泛型T得到Class * redis序列化辅助类.单纯的泛型无法定义通用schema原因是无法通过泛型T得到Class
* *
* @author L.cm * @author L.cm
*/ */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class BytesWrapper<T> implements Cloneable { public class BytesWrapper<T> implements Cloneable {
private T value; private T value;
public BytesWrapper() {
}
public BytesWrapper(T value) {
this.value = value;
}
public void setValue(T value) {
this.value = value;
}
public T getValue() {
return value;
}
@Override @Override
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BytesWrapper<T> clone() { public BytesWrapper<T> clone() {