public final class ChangeUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends org.opendaylight.yangtools.yang.binding.DataObject> |
extract(Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject> changes,
Class<T> klazz) |
static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> |
extractCreated(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes,
Class<T> clazz)
Extract all the instances of
clazz which were created in the given set of modifications. |
static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> |
extractCreatedOrUpdated(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes,
Class<T> clazz)
Extract all the instances of
clazz which were created or updated in the given set of modifications. |
static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> |
extractCreatedOrUpdated(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes,
Class<T> clazz,
Predicate<org.opendaylight.controller.md.sal.binding.api.DataObjectModification<T>> filter)
Extract all the instance of
clazz which were created or updated in the given set of modifications, and
which satisfy the given filter. |
static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> |
extractCreatedOrUpdatedOrRemoved(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes,
Class<T> clazz)
Extract all the instances of
clazz which were created, updated, or removed in the given set of
modifications. |
static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> |
extractOriginal(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes,
Class<T> clazz)
Extract the original instances of class
clazz in the given set of modifications. |
static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> |
extractRemoved(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes,
Class<T> clazz)
Extract the instance identifier of removed instances of
clazz from the given set of modifications. |
static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> |
extractRemovedObjects(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes,
Class<T> clazz)
Extract the removed instances of
clazz from the given set of modifications. |
static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> |
extractUpdated(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes,
Class<T> clazz)
Extract all the instances of
clazz which were updated in the given set of modifications. |
public static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>,T> extractCreated(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes, Class<T> clazz)
clazz
which were created in the given set of modifications.T
- The type of changes we're interested in.U
- The type of changes to process.changes
- The changes to process.clazz
- The class we're interested in.public static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>,T> extractUpdated(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes, Class<T> clazz)
clazz
which were updated in the given set of modifications.T
- The type of changes we're interested in.U
- The type of changes to process.changes
- The changes to process.clazz
- The class we're interested in.public static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>,T> extractCreatedOrUpdated(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes, Class<T> clazz, Predicate<org.opendaylight.controller.md.sal.binding.api.DataObjectModification<T>> filter)
clazz
which were created or updated in the given set of modifications, and
which satisfy the given filter.T
- The type of changes we're interested in.U
- The type of changes to process.changes
- The changes to process.clazz
- The class we're interested in.filter
- The filter the changes must satisfy.public static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>,T> extractCreatedOrUpdated(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes, Class<T> clazz)
clazz
which were created or updated in the given set of modifications.T
- The type of changes we're interested in.U
- The type of changes to process.changes
- The changes to process.clazz
- The class we're interested in.public static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>,T> extractCreatedOrUpdatedOrRemoved(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes, Class<T> clazz)
clazz
which were created, updated, or removed in the given set of
modifications. For instances which were created or updated, the new instances are returned; for instances
which were removed, the old instances are returned.T
- The type of changes we're interested in.U
- The type of changes to process.changes
- The changes to process.clazz
- The class we're interested in.public static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>,T> extractOriginal(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes, Class<T> clazz)
clazz
in the given set of modifications.T
- The type of changes we're interested in.U
- The type of changes to process.changes
- The changes to process.clazz
- The class we're interested in.public static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> Set<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>> extractRemoved(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes, Class<T> clazz)
clazz
from the given set of modifications.T
- The type of changes we're interested in.U
- The type of changes to process.changes
- The changes to process.clazz
- The class we're interested in.public static <T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.DataObject> Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>,T> extractRemovedObjects(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<U>> changes, Class<T> clazz)
clazz
from the given set of modifications.T
- The type of changes we're interested in.U
- The type of changes to process.changes
- The changes to process.clazz
- The class we're interested in.public static <T extends org.opendaylight.yangtools.yang.binding.DataObject> Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>,T> extract(Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject> changes, Class<T> klazz)
Copyright © 2019 OpenDaylight. All rights reserved.