yeg
2026-08-29 0162f3730ca2e9644322a90450728b63243d40d0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.ruoyi.device.model;
 
import java.util.Objects;
 
public record ChannelIdentity(
        String adapterCode,
        int devtype,
        int devid,
        int subdevid,
        int chlid)
{
    public ChannelIdentity
    {
        adapterCode = Objects.requireNonNull(adapterCode, "adapterCode").trim();
        if (adapterCode.isEmpty()) throw new IllegalArgumentException("adapterCode must not be blank");
        if (devtype < 0 || devid < 0 || subdevid < 0 || chlid < 0)
            throw new IllegalArgumentException("BTS channel identity values must be non-negative");
    }
 
    public String vendorKey()
    {
        return devtype + "-" + devid + "-" + subdevid + "-" + chlid;
    }
}