blob: 228494e659dc64c82c639b6dabbf93332641e24e [file] [log] [blame]
alshabib79e52872015-12-07 16:01:01 -08001package org.onosproject.igmp;
2
3import org.onosproject.net.DeviceId;
4
5import static com.google.common.base.Preconditions.checkNotNull;
6
7/**
8 * Information about an igmp enabled device.
9 */
10public 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}