@Override public void set(T[] value) { if (pointers.length != value.length) { throw new IllegalArgumentException("Illegal length: " + value.length); } for (int i = 0; i < pointers.length; i++) { pointers[i].pointTo(copy(value[i])); } } }
protected void set(KeyData330 copy) { rid.pointTo(new HexData330(copy.getRID())); cAPublicKeyIndex.set(copy.getCAPublicKeyIndex()); caPublicKeyAlgorithmIndicator.set(copy.getCAPublicKeyAlgorithmIndicator()); cAPublicKeyExponent.pointTo(new HexData330(copy.getCAPublicKeyExponent())); cAPublicKeyModulus.pointTo(new HexData330(copy.getCAPublicKeyModulus())); cAPublicKeyCheckSum.pointTo(new ByteArray(copy.getCAPublicKeyCheckSum())); }
protected NoteNumberList3(Builder builder) { this(); allocate(); numOfNoteNumbers.set(builder.noteNumbers.length); noteNumber.pointTo(new NoteNumber3Array(builder.noteNumbers)); }
public Denomination3(Builder builder) { this(); allocate(); currencyID.set(builder.currencyID); amount.set(builder.amount); if (builder.values.isPresent()) { count.set(builder.values.get().length); values.pointTo(new XfsUIntArray(builder.values.get())); } cashBox.set(builder.cashBox); }
protected void set(CardData3 copy) { dataSource.set(copy.getDataSource()); status.set(copy.getStatus()); dataLength.set(copy.dataLength); data.pointTo(new ByteArray(copy.getData())); Optional<WriteMethod> writeMethod = Optional.empty(); if (writeMethod.isPresent()) { this.writeMethod.set(writeMethod.get()); } }
private RawData3(Builder builder) { this(); allocate(); inputData.set(builder.inputData); size.set(builder.data.length); data.pointTo(new ByteArray(builder.data)); }
protected void set(P6Info3 copy) { level.set(copy.getLevel()); Optional<NoteNumberList3> noteNumberList = copy.getNoteNumberList(); if (noteNumberList.isPresent()) { this.noteNumberList.pointTo(new NoteNumberList3(copy.getNoteNumberList().get())); } numOfSignatures.set(copy.getNumOfSignatures()); }
protected void set(ChipIo3 copy) { chipProtocol.set(copy.getChipProtocol()); chipDataLength.set(copy.chipDataLength); chipData.pointTo(new ByteArray(copy.getChipData())); }
protected void set(RawData3 copy) { inputData.set(copy.getInputData()); size.set(copy.size); data.pointTo(new ByteArray(copy.getData())); }
protected void set(Denomination3 copy) { currencyID.set(copy.getCurrencyID()); amount.set(copy.getAmount()); count.set(copy.getCount()); Optional<long[]> values = copy.getValues(); if (values.isPresent()) { this.values.pointTo(new XfsUIntArray(values.get())); } cashBox.set(copy.getCashBox()); }
public XfsPointerArray(T[] array) { pointers = new Pointer[array.length]; allocate(); for (int i = 0; i < pointers.length; i++) { pointers[i] = new Pointer(getBuffer().subBuffer(i * Pointer.NULL.getSize(), Pointer.NULL.getSize())); pointers[i].pointTo(array[i]); } }
protected void set(DeviceLockControl320 copy) { deviceAction.set(copy.getDeviceAction()); cashUnitAction.set(copy.getCashUnitAction()); unitLockControl.pointTo(new UnitLockControls(copy.getUnitLockControl())); }
protected void set(ReplenishResult320 copy) { numberOfItemsRemoved.set(copy.getNumberOfItemsRemoved()); numberOfItemsRejected.set(copy.getNumberOfItemsRejected()); replenishTargetResults.pointTo(new ReplenishTargetResults(copy.getReplenishTargetResults())); }
protected void set(P6Signature3 copy) { noteId.set(copy.getNoteId()); length.set(copy.getLength()); orientation.set(copy.getOrientation()); signature.pointTo(new ByteArray(copy.getSignature())); }
protected void set(TellerDetails3 copy) { tellerID.set(copy.getTellerID()); inputPosition.set(copy.getInputPosition()); outputPosition.set(copy.getOutputPosition()); tellerTotals.pointTo(new TellerTotals3(copy.getTellerTotals())); }
protected void set(CashUnitCapabilities320 copy) { number.set(copy.getNumber()); numPhysicalCUs.set(copy.getNumPhysicalCUs()); physical.pointTo(new PhysicalCashUnitCapabilities320Array(copy.getPhysical())); retractNoteCountThresholds.set(copy.isRetractNoteCountThresholds()); extra.set(copy.getExtra()); }
protected void set(CashIn310 copy) { super.set(copy); noteIds.pointTo(new NoteIDs(copy.getNoteIds())); cdmType.set(copy.getCdmType()); cashUnitName.set(copy.getCashUnitName().orElse(null)); initialCount.set(copy.getInitialCount()); dispensedCount.set(copy.getDispensedCount()); presentedCount.set(copy.getPresentedCount()); retractedCount.set(copy.getRetractedCount()); rejectCount.set(copy.getRejectCount()); minimum.set(copy.getMinimum()); }