T
- The type of the data object.public class IdentifiedData<T extends org.opendaylight.yangtools.yang.binding.DataObject> extends Object
IdentifiedData
describes a data object identified by an instance
identifier.
An instance of this class keeps a pair of instance identifier and a data object.
Constructor and Description |
---|
IdentifiedData(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> id,
T data)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
<D extends org.opendaylight.yangtools.yang.binding.DataObject> |
checkType(Class<D> type)
Check whether the target type of this instance matches the given type
or not.
|
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> |
getIdentifier()
Return the instance identifier configured in this instance.
|
T |
getValue()
Return the data object configured in this instance.
|
void |
unexpected(org.slf4j.Logger logger,
VtnUpdateType type)
Record a warning log message that indicates unexpected data was
notified.
|
public final org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> getIdentifier()
InstanceIdentifier
instance.public final T getValue()
public <D extends org.opendaylight.yangtools.yang.binding.DataObject> IdentifiedData<D> checkType(Class<D> type)
D
- The expected target type.type
- A class which indicates the target type.null
.public void unexpected(org.slf4j.Logger logger, VtnUpdateType type)
logger
- A logger instance.type
- A VtnUpdateType
instance that indicates the type
of event.Copyright © 2018 OpenDaylight. All rights reserved.