类 CompositeStrategies<T>
java.lang.Object
cn.taketoday.core.CompositeStrategies<T>
- 所有已实现的接口:
ArraySizeTrimmer,Iterable<T>
- 从以下版本开始:
- 4.0
- 作者:
- TODAY 2021/10/2 20:44
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidadd resolvers or resolving-strategiesvoidfinal voidadd resolvers or resolving-strategiesbooleanReturns true if resolvers list contains the specifiedresolverClass.voiditerator()booleanRemoves all the elements of this collection that satisfy the given predicate.voidset or clear resolversvoidTrims the capacity of this instance's (list or array) to its size.
-
构造器详细资料
-
CompositeStrategies
public CompositeStrategies() -
CompositeStrategies
public CompositeStrategies(int size)
-
-
方法详细资料
-
add
-
add
add resolvers or resolving-strategies- 参数:
resolver- resolvers or resolving-strategies
-
add
add resolvers or resolving-strategies- 参数:
resolvers- resolvers or resolving-strategies
-
set
set or clear resolvers- 参数:
resolver- can be null
-
removeIf
Removes all the elements of this collection that satisfy the given predicate. Errors or runtime exceptions thrown during iteration or by the predicate are relayed to the caller.- 参数:
filter- a predicate which returnstruefor elements to be removed- 返回:
trueif any elements were removed- 抛出:
NullPointerException- if the specified filter is nullUnsupportedOperationException- if elements cannot be removed from this collection. Implementations may throw this exception if a matching element cannot be removed or if, in general, removal is not supported.
-
contains
Returns true if resolvers list contains the specifiedresolverClass. More formally, returns true if and only if all resolvers contains at least one element e such that (resolverClass == resolver.getClass()).- 参数:
strategy- element whose presence in this strategies- 返回:
- true if resolvers contains the specified
resolverClass
-
getStrategies
-
trimToSize
public void trimToSize()从接口复制的说明:ArraySizeTrimmerTrims the capacity of this instance's (list or array) to its size. An application can use this operation to minimize the storage of this instance.- 指定者:
trimToSize在接口中ArraySizeTrimmer
-
iterator
-
forEach
-
spliterator
- 指定者:
spliterator在接口中Iterable<T>
-