alshabib | 79e5287 | 2015-12-07 16:01:01 -0800 | [diff] [blame] | 1 | package org.onosproject.igmp; |
| 2 | |
| 3 | import org.onosproject.net.DeviceId; |
| 4 | |
| 5 | import static com.google.common.base.Preconditions.checkNotNull; |
| 6 | |
| 7 | /** |
| 8 | * Information about an igmp enabled device. |
| 9 | */ |
| 10 | public class IgmpDeviceData { |
| 11 | |
| 12 | private static final String DEVICE_ID_MISSING = "Device ID cannot be null"; |
| 13 | |
| 14 | private final DeviceId deviceId; |
| 15 | |
| 16 | public IgmpDeviceData(DeviceId deviceId) { |
| 17 | this.deviceId = checkNotNull(deviceId, DEVICE_ID_MISSING); |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Retrieves the access device ID. |
| 22 | * |
| 23 | * @return device ID |
| 24 | */ |
| 25 | public DeviceId deviceId() { |
| 26 | return deviceId; |
| 27 | } |
| 28 | } |