/** * Creates an alarm identifier from the specified device id and * unique identifier provided representation. * * @param id device id * @param uniqueIdentifier per device unique identifier of the alarm * @return alarm identifier */ public static AlarmId alarmId(DeviceId id, String uniqueIdentifier) { return new AlarmId(id, uniqueIdentifier); }
/** * Creates an alarm identifier from the specified globally unique identifier. * * @param globallyUniqueIdentifier the globally unique identifier of the Alarm, * device Id + local unique identifier on the device * @return alarm identifier */ public static AlarmId alarmId(String globallyUniqueIdentifier) { return new AlarmId(globallyUniqueIdentifier); }