
com.diboot.framework.model.ListWrapper Maven / Gradle / Ivy
The newest version!
package com.diboot.framework.model;
import javax.validation.Valid;
import java.util.Arrays;
import java.util.List;
/**
* Model的List包装类,用于接收List并绑定校验的情况
* @author [email protected]
* @version 2018/11/8
*
*/
public class ListWrapper {
@Valid
private final List modelList;
public ListWrapper(final T... models){
this.modelList = Arrays.asList(models);
}
public ListWrapper(final List modelList){
this.modelList = modelList;
}
public List getModelList(){
return modelList;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy