/** * The constructor that takes a reference to the module and the slot ID. * * @param slot * The reference to the slot. * @preconditions (module <> null) * @postconditions */ protected Token(Slot slot) { this.slot = Util.requireNonNull("slot", slot); this.useUtf8Encoding = slot.isUseUtf8Encoding(); }