public class DefaultMapping extends Object implements Mapping
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultMapping.Builder
Default mapping builder.
|
| Constructor and Description |
|---|
DefaultMapping(org.onosproject.net.DeviceId deviceId,
MappingKey key,
MappingValue value,
MappingId id)
Creates a mapping specified with several parameters.
|
DefaultMapping(Mapping mapping)
Creates a mapping specified with mapping information.
|
| Modifier and Type | Method and Description |
|---|---|
short |
appId()
Obtains the application identifier of this mapping.
|
static DefaultMapping.Builder |
builder()
Returns a default mapping builder.
|
org.onosproject.net.DeviceId |
deviceId()
Obtains the identity of the device where this mapping applies.
|
boolean |
equals(Object obj) |
int |
hashCode() |
MappingId |
id()
Obtains the identifier of this mapping.
|
MappingKey |
key()
Obtains the mapping key that is used for query the mapping entry.
|
String |
toString() |
MappingValue |
value()
Obtains the mapping value that is queried using the mapping key.
|
public DefaultMapping(Mapping mapping)
mapping - mapping informationpublic DefaultMapping(org.onosproject.net.DeviceId deviceId,
MappingKey key,
MappingValue value,
MappingId id)
deviceId - device identifierkey - mapping keyvalue - mapping valueid - mapping identifierpublic MappingId id()
Mappingpublic short appId()
Mappingpublic org.onosproject.net.DeviceId deviceId()
Mappingpublic MappingKey key()
Mappingpublic MappingValue value()
Mappingpublic boolean equals(Object obj)
MappingEquality for mappings only considers 'match equality'. This means that two mappings with the same match conditions will be equal.
public static DefaultMapping.Builder builder()