@Experimental public final class Params extends Object
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.
Modifier and Type | Method and Description |
---|---|
Params |
add(Param<?> p) |
Params |
addAll(Param<?>... ps)
Adds all parameters and returns a new parameter collection.
|
Params |
addAll(Params ps) |
boolean |
containsAll(Param<?>... ps)
Checks whether all the parameters passed in are already present in the
current parameters.
|
static Params |
create() |
static Params |
from(Param<?>... ps) |
static Params |
fromFlagsBitSet(long flagsBitSet) |
<T> Param<T> |
get(int index)
Retrieve a param given its identifier.
|
static Params |
readObject(ObjectInput input) |
long |
toFlagsBitSet()
Bridging method between flags and params, provided for efficient checks.
|
String |
toString() |
static void |
writeObject(ObjectOutput output,
Params params) |
public boolean containsAll(Param<?>... ps)
public Params addAll(Param<?>... ps)
public <T> Param<T> get(int index)
Param
implementations will
only come from Infinispan itself.public long toFlagsBitSet()
public static Params fromFlagsBitSet(long flagsBitSet)
public static Params create()
public static void writeObject(ObjectOutput output, Params params) throws IOException
IOException
public static Params readObject(ObjectInput input) throws IOException
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.