public static class ResourcePool.IntResourcePool extends ResourcePool<java.lang.Integer>
ResourcePool.IntResourcePoolqueue| Constructor and Description |
|---|
IntResourcePool(java.util.Collection<java.lang.Integer> resources) |
IntResourcePool(int capacity)
构造方法
起始为0,步长为1 |
IntResourcePool(java.lang.Integer... resources) |
IntResourcePool(int capacity,
int start,
int step) |
apply, applyChecked, close, free, isNestable, newResource, openpublic IntResourcePool(java.util.Collection<java.lang.Integer> resources)
public IntResourcePool(java.lang.Integer... resources)
public IntResourcePool(int capacity)
capacity - #IntResourcePool(int, int, int)public IntResourcePool(int capacity, int start, int step)
capacity - 数组容量start - 起始数字step - 步长java.lang.IllegalArgumentException - capacity,step<=0Copyright © 2019. All rights reserved.