package com.auth.common;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public class BaseEntity {
private Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public static <T extends BaseEntity> Map<Long, T> idEntityMap(Collection<T> list){
Map<Long, T> map=new HashMap();
if(null ==list || 0==list.size()){
return map;
}
for(T entity:list){
map.put(entity.getId(),entity);
}
return map;
}
}
最近下载更多
xiaoaitx LV8
1月2日
lxzlxzl LV1
2024年6月21日
xhqxhq LV1
2024年6月6日
yangxinyullll LV1
2024年4月28日
微信网友_6512020493586432 LV2
2024年4月8日
xiongM LV4
2024年4月4日
wangsheng818 LV4
2024年2月28日
马宇轩 LV1
2023年11月19日
泓鼎168 LV20
2023年10月16日
1257592068 LV6
2023年6月6日

最近浏览