public static interface Mapping.Builder
| Modifier and Type | Method and Description |
|---|---|
Mapping |
build()
Builds a mapping object.
|
Mapping.Builder |
forDevice(org.onosproject.net.DeviceId deviceId)
Sets the deviceId for this mapping.
|
Mapping.Builder |
fromApp(org.onosproject.core.ApplicationId appId)
Assigns the application that built this mapping to this object.
|
Mapping.Builder |
withId(long id)
Assigns an id value to this mapping.
|
Mapping.Builder |
withKey(MappingKey key)
Sets the mapping key for this mapping.
|
Mapping.Builder |
withValue(MappingValue value)
Sets the mapping value for this mapping.
|
Mapping.Builder withId(long id)
id - a long valueMapping.Builder fromApp(org.onosproject.core.ApplicationId appId)
appId - an application identifierMapping.Builder forDevice(org.onosproject.net.DeviceId deviceId)
deviceId - a device identifierMapping.Builder withKey(MappingKey key)
key - mapping keyMapping.Builder withValue(MappingValue value)
value - mapping valueMapping build()