public final class ChangeUtils extends Object
Modifier and Type | Method and Description |
---|---|
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,
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> |
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> |
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> 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.Copyright © 2020 OpenDaylight. All rights reserved.