| Package | Description |
|---|---|
| org.apache.sshd.common |
| Modifier and Type | Method and Description |
|---|---|
Collection<AttributeRepository.AttributeKey<?>> |
AttributeRepository.attributeKeys() |
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
AttributeStore.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver)
If the specified key is not already associated with a value (or is mapped to
null), attempts to compute
its value using the given mapping function and enters it into this map unless null. |
<T> T |
AttributeRepository.getAttribute(AttributeRepository.AttributeKey<T> key)
Returns the value of the user-defined attribute.
|
static <A> AttributeRepository |
AttributeRepository.ofKeyValuePair(AttributeRepository.AttributeKey<A> key,
A value) |
<T> T |
AttributeStore.removeAttribute(AttributeRepository.AttributeKey<T> key)
Removes the user-defined attribute
|
default <T> T |
AttributeRepository.resolveAttribute(AttributeRepository.AttributeKey<T> key)
Attempts to resolve the associated value by going up the store's hierarchy (if any)
|
<T> T |
AttributeStore.setAttribute(AttributeRepository.AttributeKey<T> key,
T value)
Sets a user-defined attribute.
|
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
AttributeStore.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver)
If the specified key is not already associated with a value (or is mapped to
null), attempts to compute
its value using the given mapping function and enters it into this map unless null. |
static AttributeRepository |
AttributeRepository.ofAttributesMap(Map<AttributeRepository.AttributeKey<?>,?> attributes) |
Copyright © 2018–2021 The Apache Software Foundation. All rights reserved.