A
- Argument type (Void
if statement does not have argument.)D
- Class representing declared version of this statement.@Beta public abstract class AbstractEffectiveStatement<A,D extends DeclaredStatement<A>> extends Object implements EffectiveStatement<A,D>
EffectiveStatementBase
in that it adds requirements for an implementation, but it leaves it up to the final
class to provide object layout.
This finds immense value in catering the common case, for example effective statements which can, but typically do not, contain substatements.
Constructor and Description |
---|
AbstractEffectiveStatement() |
Modifier and Type | Method and Description |
---|---|
<K,V,N extends IdentifierNamespace<K,V>> |
get(Class<N> namespace,
K identifier)
Returns value associated with supplied identifier.
|
<K,V,N extends IdentifierNamespace<K,V>> |
getAll(Class<N> namespace)
Returns all local values from supplied namespace.
|
protected <K,V,N extends IdentifierNamespace<K,V>> |
getNamespaceContents(@NonNull Class<N> namespace)
Return the statement-specific contents of specified namespace, if available.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
effectiveSubstatements, findAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, getDeclared, streamEffectiveSubstatements
argument, getStatementSource, statementDefinition
public final <K,V,N extends IdentifierNamespace<K,V>> V get(Class<N> namespace, K identifier)
EffectiveStatement
get
in interface EffectiveStatement<A,D extends DeclaredStatement<A>>
K
- Identifier typeV
- Value typeN
- Namespace identifier typenamespace
- Namespace typeidentifier
- Identifier of element.public final <K,V,N extends IdentifierNamespace<K,V>> Map<K,V> getAll(Class<N> namespace)
EffectiveStatement
getAll
in interface EffectiveStatement<A,D extends DeclaredStatement<A>>
K
- Identifier typeV
- Value typeN
- Namespace identifier typenamespace
- Namespace typeprotected <K,V,N extends IdentifierNamespace<K,V>> Optional<? extends Map<K,V>> getNamespaceContents(@NonNull Class<N> namespace)
namespace
- Requested namespaceCopyright © 2020 OpenDaylight. All rights reserved.