|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.token.TokenGenerationParameter<T>
T
- the concrete type of the parameter value.public class TokenGenerationParameter<T>
Parameters for customizing the generation of a token.
Nested Class Summary | |
---|---|
static class |
TokenGenerationParameter.Builder
A builder of a chain of different token generation parameters. |
Constructor Summary | |
---|---|
TokenGenerationParameter(String key,
T value)
Constructs the generation parameter with the specified key (the parameter name) and value. |
Method Summary | ||
---|---|---|
static TokenGenerationParameter.Builder |
builder()
Gets a builder of a chain of generation parameter. |
|
String |
key()
|
|
static
|
params(String key,
T value)
Convenient method to create a generation parameter. |
|
T |
value()
Gets this generation parameter value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TokenGenerationParameter(String key, T value)
key
- the parameter key.value
- the parameter value.Method Detail |
---|
public static TokenGenerationParameter.Builder builder()
public static <T> TokenGenerationParameter<T> params(String key, T value)
T
- the type of the concrete parameter, id est the type of the value.key
- the parameter key.value
- the parameter value.
public String key()
public T value()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |