/** * Creates a {@code RecognitionInfo} if the relevant values are set in the instance. * * @return A {@code ConnectionHandleType} instance, or {@code null} if no values are available. */ @Nullable public RecognitionInfo buildRecognitionInfo() { if (cardType != null) { RecognitionInfo rInfo = new RecognitionInfo(); rInfo.setCardType(cardType); rInfo.setCardIdentifier(cardIdentifier); return rInfo; } else { return null; } }
public HandlerBuilder setCardIdentifier(RecognitionInfo info) { if (info != null) { return setCardIdentifier(info.getCardIdentifier()); } else { return this; } }
public HandlerBuilder setCardType(RecognitionInfo info) { if (info != null) { return setCardType(info.getCardType()); } else { return this; } }
public HandlerBuilder setRecognitionInfo(RecognitionInfo info) { if (info != null) { HandlerBuilder b = new HandlerBuilder( contextHandle, ifdName, slotIdx, cardApp, slotHandle, info.getCardType(), info.getCardIdentifier(), protocolEndpoint, sessionId, binding); return b; } else { return this; } }