In Listing 5, I've added an id property of type BigInteger to the Race domain object.
在清单5中,我添加一个类型为BigInteger的id属性到race域对象。
By using the underscore (remember the wildcard character in Scala?), you effectively tell the Scala compiler that all of the members inside BigInteger should be brought into scope.
您可以使用下划线(还记得Scala中的通配符吧?)有效地告知scala编译器BigInteger内的所有成员都需要置入作用域。
Next we create the usual JMS artifacts required to send a message, then generate a group identifier by taking a random 24-byte BigInteger and converting it to a hexadecimal string.
接下来,我们创建用于发送消息的常见JMS构件,然后采用 24 字节的BigInteger随机值,并将其转换为十六进制字符串,从而生成组标识符。
Next we create the usual JMS artifacts required to send a message, then generate a group identifier by taking a random 24-byte BigInteger and converting it to a hexadecimal string.
接下来,我们创建用于发送消息的常见JMS构件,然后采用 24 字节的BigInteger随机值,并将其转换为十六进制字符串,从而生成组标识符。
应用推荐