Package org.infinispan.functional.impl
Class Params
java.lang.Object
org.infinispan.functional.impl.Params
Internal class that encapsulates collection of parameters used to tweak
functional map operations.
Internally, parameters are stored in an array which is indexed by
a parameter's Param.id()
All parameters have default values which are stored in a static
array field in Params class, which are used to as base collection
when adding or overriding parameters.
- Since:
- 8.0
-
Method Summary
Modifier and TypeMethodDescriptionAdds all parameters and returns a new parameter collection.booleancontainsAll(Param<?>... ps) Checks whether all the parameters passed in are already present in the current parameters.static Paramscreate()static Paramsstatic ParamsfromFlagsBitSet(long flagsBitSet) <T> Param<T>get(int index) Retrieve a param given its identifier.static ParamsreadObject(ObjectInput input) longBridging method between flags and params, provided for efficient checks.toString()static voidwriteObject(ObjectOutput output, Params params)
-
Method Details
-
containsAll
Checks whether all the parameters passed in are already present in the current parameters. This method can be used to optimise the decision on whether the parameters collection needs updating at all. -
addAll
Adds all parameters and returns a new parameter collection. -
add
-
addAll
-
get
Retrieve a param given its identifier. Callers are expected to know the exact type of parameter that will be returned. Such assumption is possible because as indicated inParamimplementations will only come from Infinispan itself. -
toString
-
toFlagsBitSet
public long toFlagsBitSet()Bridging method between flags and params, provided for efficient checks. -
fromFlagsBitSet
-
create
-
from
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOException
-