T - ValueObject类型public class Batch<T> extends Object implements Iterable<T>, Serializable
BindingResultBatch,
序列化表格| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(T element) |
void |
addAll(List<T> elements) |
List<T> |
asList() |
void |
clear() |
int |
getMaxSize() |
boolean |
isEmpty() |
boolean |
isFull() |
boolean |
isNotEmpty() |
boolean |
isNotFull() |
Iterator<T> |
iterator() |
int |
size() |
Stream<T> |
stream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Batch()
Batch()public Batch(int maxSize)
maxSize - 一批最大包含的ValueObject数量,必须大于零public final void add(@Nullable
T element)
public final int size()
public final boolean isEmpty()
public final boolean isNotEmpty()
public final boolean isFull()
public final boolean isNotFull()
public final int getMaxSize()
public final void clear()
Copyright © 2022. All rights reserved.