instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public I_M_Attribute getAttribute() { return attribute; } @Override public AttributeCode getAttributeCode() { return AttributeCode.ofString(getAttribute().getValue()); } @Override public IHUAttributePropagationContext getParent() { return parent; } @Override public void setUpdateStorageValue(final ...
if (!currentAttributeStorage.equals(attributeStorage)) { continue; } final AttributeCode currentAttributeCode = currentParentContext.getAttributeCode(); if (!AttributeCode.equals(currentAttributeCode, attributeCode)) { continue; } return currentParentContext.getPropagator(); } return...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\propagation\impl\HUAttributePropagationContext.java
1
请完成以下Java代码
public void setC_Currency_ID (final int C_Currency_ID) { if (C_Currency_ID < 1) set_Value (COLUMNNAME_C_Currency_ID, null); else set_Value (COLUMNNAME_C_Currency_ID, C_Currency_ID); } @Override public int getC_Currency_ID() { return get_ValueAsInt(COLUMNNAME_C_Currency_ID); } @Override public v...
public void setMultiplyRate_Max (final @Nullable BigDecimal MultiplyRate_Max) { set_Value (COLUMNNAME_MultiplyRate_Max, MultiplyRate_Max); } @Override public BigDecimal getMultiplyRate_Max() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_MultiplyRate_Max); return bd != null ? bd : BigDecimal.ZERO...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_ConversionRate_Rule.java
1
请完成以下Java代码
public void setClassname (final @Nullable java.lang.String Classname) { set_Value (COLUMNNAME_Classname, Classname); } @Override public java.lang.String getClassname() { return get_ValueAsString(COLUMNNAME_Classname); } @Override public void setDescription (final @Nullable java.lang.String Description) ...
@Override public void setName (final java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override public void setSeqNo (final int SeqNo) { set_Value (COLUMNNAME_SeqNo, SeqNo); } @Override public ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\invoicecandidate\model\X_C_Invoice_Candidate_Agg.java
1
请完成以下Java代码
public static <E> PeekIterator<E> asPeekIterator(final Iterator<E> iterator) { if (iterator instanceof PeekIterator) { final PeekIterator<E> peekIterator = (PeekIterator<E>)iterator; return peekIterator; } else { return new PeekIteratorWrapper<>(iterator); } } public static <IT, OT> Iterator<OT...
/** * @param iterator * @return the iterator wrapped to stream */ public static <T> Stream<T> stream(final Iterator<T> iterator) { Spliterator<T> spliterator = Spliterators.spliteratorUnknownSize(iterator, Spliterator.ORDERED); final boolean parallel = false; return StreamSupport.stream(spliterator, paral...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\collections\IteratorUtils.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Set<String> getEnabledProtocols() { return this.enabledProtocols; } public void setEnabledProtocols(@Nullable Set<String> enabledProtocols) { this.enabledProtocols = enabledProtocols; } } public static class Key { /** * The password used to access the key in the key store. */ ...
return this.password; } public void setPassword(@Nullable String password) { this.password = password; } public @Nullable String getAlias() { return this.alias; } public void setAlias(@Nullable String alias) { this.alias = alias; } } }
repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\ssl\SslBundleProperties.java
2
请在Spring Boot框架中完成以下Java代码
public void setM_PriceList_ID (final int M_PriceList_ID) { if (M_PriceList_ID < 1) set_Value (COLUMNNAME_M_PriceList_ID, null); else set_Value (COLUMNNAME_M_PriceList_ID, M_PriceList_ID); } @Override public int getM_PriceList_ID() { return get_ValueAsInt(COLUMNNAME_M_PriceList_ID); } @Override ...
@Override public boolean isProcessed() { return get_ValueAsBoolean(COLUMNNAME_Processed); } /** * Status AD_Reference_ID=541890 * Reference name: C_POS_Order_Status */ public static final int STATUS_AD_Reference_ID=541890; /** Drafted = DR */ public static final String STATUS_Drafted = "DR"; /** Wait...
repos\metasfresh-new_dawn_uat\backend\de.metas.pos.base\src\main\java-gen\de\metas\pos\repository\model\X_C_POS_Order.java
2
请完成以下Java代码
public void setPP_Cost_Collector(final org.eevolution.model.I_PP_Cost_Collector PP_Cost_Collector) { set_ValueFromPO(COLUMNNAME_PP_Cost_Collector_ID, org.eevolution.model.I_PP_Cost_Collector.class, PP_Cost_Collector); } @Override public void setPP_Cost_Collector_ID (final int PP_Cost_Collector_ID) { if (PP_Co...
} @Override public int getPP_Order_BOMLine_ID() { return get_ValueAsInt(COLUMNNAME_PP_Order_BOMLine_ID); } @Override public void setQtyToIssue (final BigDecimal QtyToIssue) { set_Value (COLUMNNAME_QtyToIssue, QtyToIssue); } @Override public BigDecimal getQtyToIssue() { final BigDecimal bd = get_Va...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_Picking_Candidate_IssueToOrder.java
1
请完成以下Java代码
public class State { private Board board; private int playerNo; private int visitCount; private double winScore; public State() { board = new Board(); } public State(State state) { this.board = new Board(state.getBoard()); this.playerNo = state.getPlayerNo(); ...
State newState = new State(this.board); newState.setPlayerNo(3 - this.playerNo); newState.getBoard().performMove(newState.getPlayerNo(), p); possibleStates.add(newState); }); return possibleStates; } void incrementVisit() { this.visitCount++; } ...
repos\tutorials-master\algorithms-modules\algorithms-searching\src\main\java\com\baeldung\algorithms\mcts\montecarlo\State.java
1
请完成以下Java代码
public Long getId() { return id; } /** * @param id the id to set */ public void setId(Long id) { this.id = id; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public voi...
public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((maker == null) ? 0 : maker.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime...
repos\tutorials-master\apache-olingo\src\main\java\com\baeldung\examples\olingo2\domain\CarModel.java
1
请完成以下Java代码
public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((age == null) ? 0 : age.hashCode()); result = prime * r...
return false; } else if (!age.equals(other.age)) return false; if (count == null) { if (other.count != null) return false; } else if (!count.equals(other.count)) return false; if (name == null) { if (other.name != null) ...
repos\tutorials-master\spring-web-modules\spring-thymeleaf-attributes\accessing-session-attributes\src\main\java\com\baeldung\accesing_session_attributes\business\entities\NameAgeEntity.java
1
请在Spring Boot框架中完成以下Java代码
public class WebServiceConfig extends WsConfigurerAdapter { @Value("${ws.api.path:/ws/api/v1/*}") private String webserviceApiPath; @Value("${ws.port.type.name:ProductsPort}") private String webservicePortTypeName; @Value("${ws.target.namespace:http://www.baeldung.com/springbootsoap/keycloak}") ...
Map<String, Product> map = new HashMap<>(); Product foldsack= new Product(); foldsack.setId("1"); foldsack.setName("Fjallraven - Foldsack No. 1 Backpack, Fits 15 Laptops"); foldsack.setDescription("Your perfect pack for everyday use and walks in the forest. "); Product shirt= ne...
repos\tutorials-master\spring-boot-modules\spring-boot-keycloak-2\src\main\java\com\baeldung\keycloak\keycloaksoap\WebServiceConfig.java
2
请完成以下Java代码
public boolean isEmpty() { return elements.isEmpty(); } public AcctSchemaElementsMap onlyDisplayedInEditor() { final ImmutableList<AcctSchemaElement> elementsFiltered = elements.stream() .filter(AcctSchemaElement::isDisplayedInEditor) .collect(ImmutableList.toImmutableList()); if (elementsFiltered.s...
public Iterator<AcctSchemaElement> iterator() { return elements.iterator(); } public ChartOfAccountsId getChartOfAccountsId() { final AcctSchemaElement accountSchemaElement = getByElementType(AcctSchemaElementType.Account); if (accountSchemaElement == null) { throw new AdempiereException("No schema elem...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\acct\api\AcctSchemaElementsMap.java
1
请完成以下Java代码
public List<String> shortcutFieldOrder() { return Arrays.asList(BASE_MSG, PRE_LOGGER, POST_LOGGER); } @Override public GatewayFilter apply(Config config) { return new OrderedGatewayFilter((exchange, chain) -> { if (config.isPreLogger()) logger.info("Pre GatewayFi...
} public boolean isPreLogger() { return preLogger; } public boolean isPostLogger() { return postLogger; } public void setBaseMessage(String baseMessage) { this.baseMessage = baseMessage; } public void setPreLogger(boolean pr...
repos\tutorials-master\spring-cloud-modules\spring-cloud-gateway\src\main\java\com\baeldung\springcloudgateway\customfilters\gatewayapp\filters\factories\LoggingGatewayFilterFactory.java
1
请完成以下Java代码
public int getDropShip_Location_Value_ID() { return delegate.getDropShip_Location_Value_ID(); } @Override public void setDropShip_Location_Value_ID(final int DropShip_Location_Value_ID) { delegate.setDropShip_Location_Value_ID(DropShip_Location_Value_ID); } @Override public int getDropShip_User_ID() { ...
IDocumentDeliveryLocationAdapter.super.setRenderedAddress(from); } @Override public Optional<DocumentLocation> toPlainDocumentLocation(final IDocumentLocationBL documentLocationBL) { return documentLocationBL.toPlainDocumentLocation(this); } @Override public ContractDropshipLocationAdapter toOldValues() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\location\adapter\ContractDropshipLocationAdapter.java
1
请完成以下Java代码
private ContextId getContextId(ConfigurableApplicationContext applicationContext) { ApplicationContext parent = applicationContext.getParent(); if (parent != null && parent.containsBean(ContextId.class.getName())) { return parent.getBean(ContextId.class).createChildId(); } return new ContextId(getApplication...
private final AtomicLong children = new AtomicLong(); private final String id; ContextId(String id) { this.id = id; } ContextId createChildId() { return new ContextId(this.id + "-" + this.children.incrementAndGet()); } String getId() { return this.id; } } }
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\ContextIdApplicationContextInitializer.java
1
请在Spring Boot框架中完成以下Java代码
public String getControlTotalQualifier() { return controlTotalQualifier; } /** * Sets the value of the controlTotalQualifier property. * * @param value * allowed object is * {@link String } * */ public void...
public String getControlTotalValue() { return controlTotalValue; } /** * Sets the value of the controlTotalValue property. * * @param value * allowed object is * {@link String } * */ public void setControlT...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\extensions\edifact\DocumentExtensionType.java
2
请完成以下Java代码
public java.math.BigDecimal getPrev_CurrentCostPriceLL () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Prev_CurrentCostPriceLL); if (bd == null) return BigDecimal.ZERO; return bd; } /** Set Previous Current Qty. @param Prev_CurrentQty Previous Current Qty */ @Override public void setPrev_Curr...
} /** Set Menge. @param Qty Menge */ @Override public void setQty (java.math.BigDecimal Qty) { set_ValueNoCheck (COLUMNNAME_Qty, Qty); } /** Get Menge. @return Menge */ @Override public java.math.BigDecimal getQty () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); if (bd == null)...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Cost_Collector_CostDetailAdjust.java
1
请在Spring Boot框架中完成以下Java代码
public class PriceListId implements RepoIdAware { @JsonCreator public static PriceListId ofRepoId(final int repoId) { if (repoId == NONE.repoId) { return NONE; } return new PriceListId(repoId); } @Nullable public static PriceListId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? ofRepoId(rep...
private PriceListId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "repoId"); } public boolean isNone() { return repoId == NONE.repoId; } @Override @JsonValue public int getRepoId() { return repoId; } public static boolean equals(@Nullable PriceListId priceList1, @Nullable Pri...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\pricing\PriceListId.java
2
请完成以下Java代码
public String getChargingTime() { return chargingTime; } public void setChargingTime(String chargingTime) { this.chargingTime = chargingTime; } } public static class FuelVehicle extends Vehicle { String fuelType; String transmissionType; ...
return fuelType; } public void setFuelType(String fuelType) { this.fuelType = fuelType; } public String getTransmissionType() { return transmissionType; } public void setTransmissionType(String transmissionType) { this.transmissionTy...
repos\tutorials-master\jackson-modules\jackson-polymorphic-deserialization\src\main\java\com\baeldung\jackson\polymorphic\deserialization\typeHandlingAnnotations\Vehicle.java
1
请完成以下Java代码
public static void main(String[] args) { Car car = new Car(); car.drive(50); car.stop(); car.fuel(); car.сhangeOil("oil"); CarBattery carBattery = new CarBattery(); car.replaceBattery(carBattery); car.сhangeEngine(new ToyotaEngine()); ...
car.startWithHasText("t"); car.startWithNotContain("132"); List<String> repairPartsCollection = new ArrayList<>(); repairPartsCollection.add("part"); car.repair(repairPartsCollection); Map<String, String> repairPartsMap = new HashMap<>(); repairPartsMap.put("1", "part")...
repos\tutorials-master\spring-5\src\main\java\com\baeldung\assertions\Car.java
1
请完成以下Java代码
public Object get(Object key) { if ((key == null) || !String.class.isAssignableFrom(key.getClass())) { return null; } return beanFactory.getBean((String) key); } @Override public boolean containsKey(Object key) { if ((key == null) || !String.class.isAssignableFro...
} @Override public void putAll(Map<? extends Object, ? extends Object> m) { throw new FlowableException("unsupported operation on configuration beans"); } @Override public Object remove(Object key) { throw new FlowableException("unsupported operation on configuration beans"); }...
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\cfg\SpringBeanFactoryProxyMap.java
1
请完成以下Java代码
public Collection<PlanItemDefinition> getPlanItemDefinitions() { return planItemDefinitionCollection.get(this); } public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Stage.class, CMMN_ELEMENT_STAGE) .namespaceUri(CMMN11_NS) ...
.idAttributeReferenceCollection(Sentry.class, CmmnAttributeElementReferenceCollection.class) .build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); planningTableChild = sequenceBuilder.element(PlanningTable.class) .build(); planItemDefinitionCollection = sequenceBuilder.eleme...
repos\camunda-bpm-platform-master\model-api\cmmn-model\src\main\java\org\camunda\bpm\model\cmmn\impl\instance\StageImpl.java
1
请完成以下Java代码
public void newLU(final HuPackingInstructionsId luPackingInstructionsId) {consolidate_FromTUs_ToNewLU(fromTUs, luPackingInstructionsId);} @Override public void existingLU(final HuId luId, final HUQRCode luQRCode) {consolidate_FromTUs_ToExistingLU(fromTUs, luId);} }); } private void consolidate_FromTUs_ToNew...
if (fromTUs.size() > 1) { final List<I_M_HU> remainingTUs = fromTUs.subList(1, fromTUs.size()); huTransformService.tusToExistingLU(remainingTUs, lu); } final HuId luId = HuId.ofRepoId(lu.getM_HU_ID()); final HUQRCode qrCode = huQRCodesService.getQRCodeByHuId(luId); setCurrentTarget(HUConsolidationTarge...
repos\metasfresh-new_dawn_uat\backend\de.metas.hu_consolidation.mobile\src\main\java\de\metas\hu_consolidation\mobile\job\commands\consolidate\ConsolidateCommand.java
1
请完成以下Java代码
private static LookupDescriptor computeLookupDescriptor(@NonNull final AttributesIncludedTabFieldDescriptor includedTabField, @NonNull final AttributesIncludedTabService attributesIncludedTabService) { if (includedTabField.getAttributeValueType().isList()) { final IAttributeValuesProvider attributeValuesProvide...
public Object getValue(final @NonNull AttributesIncludedTabData data) { return valueReader.readValue(data, attributeId); } public AttributesIncludedTabDataField updateData(final @NonNull AttributesIncludedTabDataField dataField, final IDocumentFieldView documentField) { return valueWriter.writeValue(dataField,...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\attributes_included_tab\AttributesIncludedTabFieldBinding.java
1
请完成以下Java代码
public String getClassname () { return (String)get_Value(COLUMNNAME_Classname); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Description. @return ...
/** Set Sequence. @param SeqNo Method of ordering records; lowest number comes first */ public void setSeqNo (int SeqNo) { set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); } /** Get Sequence. @return Method of ordering records; lowest number comes first */ public int getSeqNo () { Integer ...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java-gen\org\compiere\model\X_C_BankStatementMatcher.java
1
请在Spring Boot框架中完成以下Java代码
public int updateSort(Long id, Integer sort) { SmsHomeRecommendSubject recommendSubject = new SmsHomeRecommendSubject(); recommendSubject.setId(id); recommendSubject.setSort(sort); return smsHomeRecommendSubjectMapper.updateByPrimaryKeySelective(recommendSubject); } @Override ...
return smsHomeRecommendSubjectMapper.updateByExampleSelective(record,example); } @Override public List<SmsHomeRecommendSubject> list(String subjectName, Integer recommendStatus, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); SmsHomeRecommendSubjectExample examp...
repos\mall-master\mall-admin\src\main\java\com\macro\mall\service\impl\SmsHomeRecommendSubjectServiceImpl.java
2
请完成以下Java代码
public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getIp() { return ip; } public void setIp(String ip) { this.ip = ip; } public String getCity() { return...
public String getProvince() { return province; } public void setProvince(String province) { this.province = province; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); ...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsMemberLoginLog.java
1
请完成以下Java代码
public static boolean isEligibleHU(final HURow row) { final IHUContextFactory huContextFactory = Services.get(IHUContextFactory.class); final IHandlingUnitsBL handlingUnitsBL = Services.get(IHandlingUnitsBL.class); final I_M_HU hu = handlingUnitsBL.getById(row.getHuId()); // Multi product HUs are not allowed ...
public static ImmutableList<HURow> getHURowsFromIncludedRows(final PPOrderLinesView view) { return view.streamByIds(DocumentIdsSelection.ALL) .filter(row -> row.getType().isMainProduct() || row.isReceipt()) .flatMap(row -> row.getIncludedRows().stream()) .map(row -> toHURowOrNull(row)) .filter(Object...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pporder\util\WEBUI_PP_Order_ProcessHelper.java
1
请完成以下Java代码
public long getResourceSize(TenantId tenantId, TbResourceId resourceId) { return resourceRepository.getDataSizeById(resourceId.getId()); } @Override public TbResourceDataInfo getResourceDataInfo(TenantId tenantId, TbResourceId resourceId) { return resourceRepository.getDataInfoById(resource...
@Override public PageData<TbResourceId> findIdsByTenantId(UUID tenantId, PageLink pageLink) { return DaoUtil.pageToPageData(resourceRepository.findIdsByTenantId(tenantId, DaoUtil.toPageable(pageLink)) .map(TbResourceId::new)); } @Override public TbResourceId getExternalIdByInter...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\resource\JpaTbResourceDao.java
1
请完成以下Java代码
public ResponseEntity<JsonError> handleException(@NonNull final Exception e) { final ResponseStatus responseStatus = e.getClass().getAnnotation(ResponseStatus.class); if (responseStatus != null) { return logAndCreateError(e, responseStatus.reason(), responseStatus.code()); } return logAndCreateError(e, Ht...
@Nullable final String detail, @NonNull final HttpStatus status) { final String logMessage = coalesceSuppliers( () -> detail, e::getMessage, () -> e.getClass().getSimpleName()); Loggables.withFallbackToLogger(logger, Level.ERROR).addLog(logMessage, e); final String adLanguage = Env.getADLanguageO...
repos\metasfresh-new_dawn_uat\backend\de.metas.util.web\src\main\java\de\metas\util\web\exception\RestResponseEntityExceptionHandler.java
1
请完成以下Java代码
public void setAD_Replication_Run_ID (int AD_Replication_Run_ID) { if (AD_Replication_Run_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Replication_Run_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Replication_Run_ID, Integer.valueOf(AD_Replication_Run_ID)); } /** Get Replication Run. @return Data Replica...
{ set_Value (COLUMNNAME_IsReplicated, Boolean.valueOf(IsReplicated)); } /** Get Replicated. @return The data is successfully replicated */ public boolean isReplicated () { Object oo = get_Value(COLUMNNAME_IsReplicated); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).bool...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Replication_Log.java
1
请完成以下Java代码
public ReferrerAddressType getReferrer() { return referrer; } /** * Sets the value of the referrer property. * * @param value * allowed object is * {@link ReferrerAddressType } * */ public void setReferrer(ReferrerAddressType value) { this.re...
* */ public void setEmployer(EmployerAddressType value) { this.employer = value; } /** * Gets the value of the paymentPeriod property. * * @return * possible object is * {@link Duration } * */ public Duration getPaymentPeriod() { ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\GarantType.java
1
请完成以下Java代码
private void checkInvoiceCandidate(@NonNull final I_C_Flatrate_DataEntry dataEntry) { final InvoiceCandidateId invoiceCandId = InvoiceCandidateId.ofRepoIdOrNull(dataEntry.getC_Invoice_Candidate_ID()); if (invoiceCandId != null) { final I_C_Invoice_Candidate invoiceCandidate = invoiceCandDAO.getById(invoiceCan...
} } invoiceCandDAO.deleteAllReferencingInvoiceCandidates(dataEntry); } private void deleteInvoiceCandidateCorr(@NonNull final I_C_Flatrate_DataEntry dataEntry) { final InvoiceCandidateId invoiceCandId = InvoiceCandidateId.ofRepoIdOrNull(dataEntry.getC_Invoice_Candidate_Corr_ID()); if (invoiceCandId != null)...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\interceptor\C_Flatrate_DataEntry.java
1
请在Spring Boot框架中完成以下Java代码
public void setActivityId(String activityId) { this.activityId = activityId; } public String getExecutionId() { return executionId; } public void setExecutionId(String executionId) { this.executionId = executionId; } public String getInstanceId() { return insta...
public void setTenantId(String tenantId) { this.tenantId = tenantId; } public String getDecisionKey() { return decisionKey; } public void setDecisionKey(String decisionKey) { this.decisionKey = decisionKey; } public String getDecisionName() { return decisionNam...
repos\flowable-engine-main\modules\flowable-dmn-rest\src\main\java\org\flowable\dmn\rest\service\api\history\HistoricDecisionExecutionResponse.java
2
请完成以下Java代码
public class GrpcExceptionServerCall<ReqT, RespT> extends SimpleForwardingServerCall<ReqT, RespT> { private final GrpcExceptionResponseHandler exceptionHandler; /** * Creates a new exception handling grpc server call. * * @param delegate The call to delegate to (Required). * @param excepti...
this.exceptionHandler = exceptionHandler; } @Override public void close(final Status status, final Metadata trailers) { // For error responses sent via StreamObserver#onError if (status.getCode() == Code.UNKNOWN && status.getCause() != null) { final Throwable cause = status.getC...
repos\grpc-spring-master\grpc-server-spring-boot-starter\src\main\java\net\devh\boot\grpc\server\error\GrpcExceptionServerCall.java
1
请完成以下Java代码
public static String fileChose() { JFileChooser fc = new JFileChooser(); int ret = fc.showOpenDialog(null); if (ret == JFileChooser.APPROVE_OPTION) { File file = fc.getSelectedFile(); return file.getAbsolutePath(); } else { return null; } }...
MultiLayerNetwork model = ModelSerializer.restoreMultiLayerNetwork(modelPath); String path = fileChose(); File file = new File(path); INDArray image = new NativeImageLoader(height, width, channels).asMatrix(file); new ImagePreProcessingScaler(0, 1).transform(image); // Pass thr...
repos\tutorials-master\deeplearning4j\src\main\java\com\baeldung\logreg\MnistPrediction.java
1
请完成以下Java代码
protected IHUItemStorage getHUItemStorage(final I_M_HU_Item item, final IAllocationRequest request) { final IHUItemStorage storage = super.getHUItemStorage(item, request); // make sure that the capacity is forced by the user, not the system // If capacityOverride is null it means that we were asked to take the ...
// // We are about to allocate to Virtual HUs linked to given "item" (which shall be of type Material). // In this case we rely on the standard logic. return super.allocateOnIncludedHUItem(item, request); } /** * Does nothing, returns null result. */ @Override protected IAllocationResult allocateRemainin...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\strategy\UpperBoundAllocationStrategy.java
1
请完成以下Java代码
public Element setLang(String lang) { addAttribute("lang",lang); addAttribute("xml:lang",lang); return this; } /** Adds an Element to the element. @param hashcode name of element for hash table @param element Adds an Element to the element. ...
@param hashcode the name of the element to be removed. */ public frameset removeElement(String hashcode) { removeElementFromRegistry(hashcode); return(this); } /** The onload event occurs when the user agent finishes loading a window or all frames within a ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\xhtml\frameset.java
1
请完成以下Java代码
public void setC_Queue_WorkPackage_ID (int C_Queue_WorkPackage_ID) { if (C_Queue_WorkPackage_ID < 1) set_Value (COLUMNNAME_C_Queue_WorkPackage_ID, null); else set_Value (COLUMNNAME_C_Queue_WorkPackage_ID, Integer.valueOf(C_Queue_WorkPackage_ID)); } /** Get WorkPackage Queue. @return WorkPackage Queue ...
@Override public int getC_Queue_WorkPackage_Notified_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Queue_WorkPackage_Notified_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Notified. @param IsNotified Notified */ @Override public void setIsNotified (boolean IsNotified) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java-gen\de\metas\async\model\X_C_Queue_WorkPackage_Notified.java
1
请完成以下Java代码
public static void writeStringToFile(String content, String filePath) { BufferedOutputStream outputStream = null; try { outputStream = new BufferedOutputStream(new FileOutputStream(getFile(filePath))); outputStream.write(content.getBytes()); outputStream.flush(); } catch(Exception e) {...
} /** * Flushes the given object. The same as calling {@link Flushable#flush()}, but * errors while flushing are silently ignored. */ public static void flushSilently(Flushable flushable) { try { if(flushable != null) { flushable.flush(); } } catch(IOException ignore) { ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\util\IoUtil.java
1
请完成以下Java代码
public class IsNumeric { private final Pattern pattern = Pattern.compile("-?\\d+(\\.\\d+)?"); public boolean usingCoreJava(String strNum) { if (strNum == null) { return false; } try { Double.parseDouble(strNum); } catch (NumberFormatException nfe) { ...
public boolean usingNumberUtils_isCreatable(String strNum) { return NumberUtils.isCreatable(strNum); } public boolean usingNumberUtils_isParsable(String strNum) { return NumberUtils.isParsable(strNum); } public boolean usingStringUtils_isNumeric(String strNum) { return StringUt...
repos\tutorials-master\core-java-modules\core-java-string-operations\src\main\java\com\baeldung\isnumeric\IsNumeric.java
1
请完成以下Java代码
private IContextMenuAction getInstance(final IContextMenuActionContext menuCtx, final Class<? extends IContextMenuAction> actionClass) { try { final IContextMenuAction action = actionClass.newInstance(); action.setContext(menuCtx); if (!action.isAvailable()) { return null; } return action; ...
} @Override public IContextMenuActionContext createContext(final VEditor editor) { final VTable vtable = null; final int viewRow = IContextMenuActionContext.ROW_NA; final int viewColumn = IContextMenuActionContext.COLUMN_NA; return createContext(editor, vtable, viewRow, viewColumn); } @Override public I...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\adempiere\ui\impl\ContextMenuProvider.java
1
请完成以下Java代码
default String getPhoneNumber() { return this.getClaimAsString(StandardClaimNames.PHONE_NUMBER); } /** * Returns {@code true} if the user's phone number has been verified * {@code (phone_number_verified)}, otherwise {@code false}. * @return {@code true} if the user's phone number has been verified, otherwise...
*/ default AddressStandardClaim getAddress() { Map<String, Object> addressFields = this.getClaimAsMap(StandardClaimNames.ADDRESS); return (!CollectionUtils.isEmpty(addressFields) ? new DefaultAddressStandardClaim.Builder(addressFields).build() : new DefaultAddressStandardClaim.Builder().build()); } /** * ...
repos\spring-security-main\oauth2\oauth2-core\src\main\java\org\springframework\security\oauth2\core\oidc\StandardClaimAccessor.java
1
请完成以下Java代码
public Message<?> preSend(Message<?> message, MessageChannel channel) { setup(message); return message; } @Override public void afterSendCompletion(Message<?> message, MessageChannel channel, boolean sent, @Nullable Exception ex) { cleanup(); } @Override public Message<?> beforeHandle(Message<?> message, ...
Stack<SecurityContext> contextStack = originalContext.get(); if (contextStack == null || contextStack.isEmpty()) { this.securityContextHolderStrategy.clearContext(); originalContext.remove(); return; } SecurityContext context = contextStack.pop(); try { if (SecurityContextChannelInterceptor.this.emp...
repos\spring-security-main\messaging\src\main\java\org\springframework\security\messaging\context\SecurityContextChannelInterceptor.java
1
请在Spring Boot框架中完成以下Java代码
public Mono<Void> requestPasswordReset(@RequestBody String mail) { return userService .requestPasswordReset(mail) .doOnSuccess(user -> { if (Objects.nonNull(user)) { mailService.sendPasswordResetMail(user); } else { ...
* @throws RuntimeException {@code 500 (Internal Server Error)} if the password could not be reset. */ @PostMapping(path = "/account/reset-password/finish") public Mono<Void> finishPasswordReset(@RequestBody KeyAndPasswordVM keyAndPassword) { if (isPasswordLengthInvalid(keyAndPassword.getNewPassword...
repos\tutorials-master\jhipster-8-modules\jhipster-8-microservice\gateway-app\src\main\java\com\gateway\web\rest\AccountResource.java
2
请完成以下Java代码
public void addExecutionListener(String eventName, ExecutionListener executionListener, int index) { super.addListener(eventName, executionListener, index); } @SuppressWarnings({ "rawtypes", "unchecked" }) @Deprecated public Map<String, List<ExecutionListener>> getExecutionListeners() { return (Map) su...
} public boolean isSubProcessScope() { return isSubProcessScope; } public void setSubProcessScope(boolean isSubProcessScope) { this.isSubProcessScope = isSubProcessScope; } @Override public ProcessDefinitionImpl getProcessDefinition() { return processDefinition; } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\pvm\process\ScopeImpl.java
1
请完成以下Java代码
public void apply(final Document document, final JSONIncludedTabInfo jsonIncludedTabInfo) { if (isReadonly(document)) { jsonIncludedTabInfo.setAllowCreateNew(false, "no document access"); jsonIncludedTabInfo.setAllowDelete(false, "no document access"); } } public void apply(final DocumentPath documentPa...
if (allowDocumentEdit == null) { allowDocumentEdit = DocumentPermissionsHelper.canEdit(document, permissions); } if (!allowDocumentEdit) { it.remove(); continue; } } if (action.isWindowWriteAccessRequired()) { if (allowWindowEdit == null) { final DocumentEntity...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\json\JSONDocumentPermissions.java
1
请完成以下Java代码
static <T> ConfigurationPropertyState search(Iterable<T> source, Predicate<T> predicate) { Assert.notNull(source, "'source' must not be null"); Assert.notNull(predicate, "'predicate' must not be null"); for (T item : source) { if (predicate.test(item)) { return PRESENT; } } return ABSENT; } /** ...
* @param predicate the predicate used to test for presence * @return {@link #PRESENT} if the iterable contains a matching item, otherwise * {@link #ABSENT}. */ static <T> ConfigurationPropertyState search(T[] source, int startInclusive, int endExclusive, Predicate<T> predicate) { Assert.notNull(source, "'so...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\properties\source\ConfigurationPropertyState.java
1
请完成以下Java代码
public void drawString(String text, String artChar, Settings settings) { BufferedImage image = getImageIntegerMode(settings.width, settings.height); Graphics2D graphics2D = getGraphics2D(image.getGraphics(), settings); graphics2D.drawString(text, 6, ((int) (settings.height * 0.67))); f...
private Graphics2D getGraphics2D(Graphics graphics, Settings settings) { graphics.setFont(settings.font); Graphics2D graphics2D = (Graphics2D) graphics; graphics2D.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); return graphics2D; } ...
repos\tutorials-master\core-java-modules\core-java-console\src\main\java\com\baeldung\asciiart\AsciiArt.java
1
请在Spring Boot框架中完成以下Java代码
public BigDecimal getQuantity() { return quantity; } /** * Sets the value of the quantity property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setQuantity(BigDecimal value) { this.quantity = value; } ...
public String getMeasurementUnitCode() { return measurementUnitCode; } /** * Sets the value of the measurementUnitCode property. * * @param value * allowed object is * {@link String } * */ public void setMeasurementUnitCode(String value) { th...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\extensions\edifact\ExtendedQuantityType.java
2
请完成以下Spring Boot application配置
########################################################## ################## 所有profile共有的配置 ################# ########################################################## ################### 自定义配置 ################### common: csvVtoll: /var/csv/ csvCanton: /var/csv/ csvExeOffice: /var/csv/ csvApp: /var/csv/ ...
common: location: 1 csvDir: E:/ logging: level: ROOT: INFO com: xncoding: DEBUG file: /var/logs/batch.log --- ##################################################################### ######################## 测试环境profile ########################## ###############################################...
repos\SpringBootBucket-master\springboot-batch\src\main\resources\application.yml
2
请完成以下Java代码
public void setReverse(boolean reverse) { synchronized (this.httpExchanges) { this.reverse = reverse; } } /** * Set the capacity of the in-memory repository. * @param capacity the capacity */ public void setCapacity(int capacity) { synchronized (this.httpExchanges) { this.capacity = capacity; } ...
@Override public void add(HttpExchange exchange) { synchronized (this.httpExchanges) { while (this.httpExchanges.size() >= this.capacity) { this.httpExchanges.remove(this.reverse ? this.capacity - 1 : 0); } if (this.reverse) { this.httpExchanges.add(0, exchange); } else { this.httpExchange...
repos\spring-boot-4.0.1\module\spring-boot-actuator\src\main\java\org\springframework\boot\actuate\web\exchanges\InMemoryHttpExchangeRepository.java
1
请完成以下Java代码
public void setIdIn(String[] ids) { this.idIn = ids; } @CamundaQueryParam("firstName") public void setFirstName(String userFirstName) { this.firstName = userFirstName; } @CamundaQueryParam("firstNameLike") public void setFirstNameLike(String userFirstNameLike) { this.firstNameLike = userFirstN...
} if (firstName != null) { query.userFirstName(firstName); } if (firstNameLike != null) { query.userFirstNameLike(firstNameLike); } if (lastName != null) { query.userLastName(lastName); } if (lastNameLike != null) { query.userLastNameLike(lastNameLike); } if (...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\identity\UserQueryDto.java
1
请完成以下Java代码
public String toString() { StringBuffer sb = new StringBuffer ("X_A_RegistrationProduct[") .append(get_ID()).append("]"); return sb.toString(); } public I_A_RegistrationAttribute getA_RegistrationAttribute() throws RuntimeException { return (I_A_RegistrationAttribute)MTable.get(getCt...
@return Optional short description of the record */ public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } public I_M_Product getM_Product() throws RuntimeException { return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) .getPO(getM_Product_ID(), get_TrxName...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_RegistrationProduct.java
1
请在Spring Boot框架中完成以下Java代码
public class LoggingGlobalFilterProperties { private boolean enabled; private boolean requestHeaders; private boolean requestBody; private boolean responseHeaders; private boolean responseBody; public boolean isEnabled() { return enabled; } public void setEnabled(boolea...
public boolean isResponseHeaders() { return responseHeaders; } public void setResponseHeaders(boolean responseHeaders) { this.responseHeaders = responseHeaders; } public boolean isResponseBody() { return responseBody; } public void setResponseBody(boolean responseBody) { ...
repos\tutorials-master\spring-cloud-modules\spring-cloud-gateway-2\src\main\java\com\baeldung\springcloudgateway\customfilters\gatewayapp\filters\global\LoggingGlobalFilterProperties.java
2
请完成以下Java代码
class StringToUniqueInt { private static final Map<String, Integer> lookupMap = new HashMap<>(); private static final AtomicInteger counter = new AtomicInteger(Integer.MIN_VALUE); public static int toIntByHashCode(String value) { return value.hashCode(); } public static int toIntByCR32(St...
byte[] hash = digest.digest(value.getBytes()); return ((hash[0] & 0xFF) << 24) | ((hash[1] & 0xFF) << 16) | ((hash[2] & 0xFF) << 8) | (hash[3] & 0xFF); } catch (NoSuchAlgorithmException e) { throw new RuntimeException("MD5 not supported", e); } } public static int toIntB...
repos\tutorials-master\core-java-modules\core-java-string-algorithms-5\src\main\java\com\baeldung\uniqueint\StringToUniqueInt.java
1
请完成以下Java代码
private static <T> T returnNullOnMoreThanOneUniqueValue(@NonNull final List<T> values) { return null; } private static class ValueAggregator<T> { @NonNull private final List<T> values = new ArrayList<>(); public void setValue(@Nullable final T newValue) { values.add(newValue); } @Nullable publ...
{ return null; } final T initialValue = values.get(0); for (final T value : values) { if (!Objects.equals(initialValue, value)) { return onMoreThanOneUniqueValue.apply(values); } } return initialValue; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\api\PPOrderCreateRequestBuilder.java
1
请完成以下Java代码
protected void prepare() { paySelectionUpdater = paySelectionBL.newPaySelectionUpdater(); final PaySelectionId paySelectionId = PaySelectionId.ofRepoId(getRecord_ID()); final I_C_PaySelection paySelection = paySelectionDAO.getById(paySelectionId).orElseThrow(AdempiereException::notFound); paySelectionUpdater....
paySelectionUpdater.setMatchRequirement(matchRequirement); } else if (name.equals(PARAM_PayDate)) { final Timestamp p_PayDate = para.getParameterAsTimestamp(); paySelectionUpdater.setPayDate(p_PayDate); } else if (name.equals(PARAM_PaymentRule)) { final PaymentRule paymentRule = PaymentRul...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\process\C_PaySelection_CreateFrom.java
1
请在Spring Boot框架中完成以下Java代码
public SignatureVerificationType getSignatureVerification() { return signatureVerification; } /** * Sets the value of the signatureVerification property. * * @param value * allowed object is * {@link SignatureVerificationType } * */ public void setSi...
public void setID(String value) { this.id = value; } /** * This segment contains references related to the message. * * @return * possible object is * {@link String } * */ public String getReferences() { return references; } /** ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\messaging\header\ErpelBusinessDocumentHeaderType.java
2
请完成以下Java代码
public static boolean isInVowelsString(char c) { return VOWELS.indexOf(c) != -1; } public static boolean isInVowelsString(String c) { return VOWELS.contains(c); } public static boolean isVowelBySwitch(char c) { switch (c) { case 'a': case 'e': case 'i': ...
case 'A': case 'E': case 'I': case 'O': case 'U': return true; default: return false; } } public static boolean isVowelByRegex(String c) { return VOWELS_PATTERN.matcher(c).matches(); } }
repos\tutorials-master\core-java-modules\core-java-string-operations-4\src\main\java\com\baeldung\checkvowels\CheckVowels.java
1
请完成以下Java代码
public class AudioMedia extends Media { private int bitrate; private String frequency; @Override public void printTitle() { System.out.println("AudioMedia Title"); } public int getBitrate() { return bitrate; } public void setBitrate(int bitrate) { this.bitrat...
public void setFrequency(String frequency) { this.frequency = frequency; } @Override public String toString() { return "AudioMedia{" + "id=" + this.getId() + ", title='" + this.getTitle() + '\'' + ", artist='" + this.getArtist() + '\'' + ...
repos\tutorials-master\core-java-modules\core-java-lang-4\src\main\java\com\baeldung\implementsvsextends\media\model\AudioMedia.java
1
请在Spring Boot框架中完成以下Java代码
public void setUserSearchFilter(String userSearchFilter) { this.userSearchFilter = userSearchFilter; } /** * Search base for user searches. Defaults to "". Only used with * {@link #setUserSearchFilter(String)}. * @param userSearchBase search base for user searches */ public void setUserSearchBase(String u...
} if (this.userDetailsContextMapper != null) { provider.setUserDetailsContextMapper(this.userDetailsContextMapper); } return provider; } private AbstractLdapAuthenticator getAuthenticator() { AbstractLdapAuthenticator authenticator = createDefaultLdapAuthenticator(); if (this.userSearchFilter != null) {...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\ldap\AbstractLdapAuthenticationManagerFactory.java
2
请完成以下Java代码
public void selectById(int id) { selectById(id, true); } public void selectById(int id, boolean fireEvent) { if (idColumnIndex < 0) return; boolean fireSelectionEventOld = fireSelectionEvent; try { fireSelectionEvent = fireEvent; if (id < 0) { this.getSelectionModel().removeSelectionInte...
for (int i = 0; i < this.getRowCount(); i++) { IDColumn key = (IDColumn)this.getModel().getValueAt(i, idColumnIndex); if (key != null && id > 0 && key.getRecord_ID() == id) { this.getSelectionModel().setSelectionInterval(i, i); break; } } } finally { fireSelectionEvent = fireSel...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\adempiere\ui\swing\MiniTable2.java
1
请完成以下Java代码
public class JdbcDemoTest extends BaseTest { @Test public void testJdbcDemo() { String sql = "select `id`, `user_name`, `age`, `address` from person where user_name = ?"; Connection conn = null; PreparedStatement stmt = null; ResultSet resultSet = null; try { ...
} catch (Exception e) { e.printStackTrace(); } finally { // 关闭资源 if (Objects.nonNull(resultSet)) { try { resultSet.close(); } catch (SQLException e) { e.printStackTrace(); } } ...
repos\spring-boot-student-master\spring-boot-student-mybatis\src\main\java\com\xiaolyuh\jdbc\JdbcDemoTest.java
1
请完成以下Java代码
class DTO { private Long customer_id; private Long order_id; private Long product_id; public DTO(Long customer_id, Long order_id, Long product_id) { this.customer_id = customer_id; this.order_id = order_id; this.product_id = product_id; } } @Entity @IdClass(DTO.class) publi...
} public void setCustomerEmail(String customerEmail) { this.customerEmail = customerEmail; } public Long getOrder_id() { return order_id; } public void setOrder_id(Long order_id) { this.order_id = order_id; } public LocalDate getOrderDate() { return orderD...
repos\tutorials-master\persistence-modules\spring-data-jpa-repo-3\src\main\java\com\baeldung\spring\data\jpa\joinquery\DTO\ResultDTO.java
1
请在Spring Boot框架中完成以下Java代码
public class JsonDataImportResponseWrapper { @JsonInclude(JsonInclude.Include.NON_EMPTY) @Nullable List<JsonErrorItem> errors; @JsonInclude(JsonInclude.Include.NON_NULL) @Nullable JsonDataImportResponse response; public static JsonDataImportResponseWrapper ok(final JsonDataImportResponse response) { final L...
{ final JsonDataImportResponse response = null; return new JsonDataImportResponseWrapper(errors, response); } public static JsonDataImportResponseWrapper error(@NonNull final JsonDataImportResponse response) { final List<JsonErrorItem> errors = null; return new JsonDataImportResponseWrapper(errors, response...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\data_import\JsonDataImportResponseWrapper.java
2
请完成以下Java代码
public void setC_CycleStep_ID (int C_CycleStep_ID) { if (C_CycleStep_ID < 1) set_ValueNoCheck (COLUMNNAME_C_CycleStep_ID, null); else set_ValueNoCheck (COLUMNNAME_C_CycleStep_ID, Integer.valueOf(C_CycleStep_ID)); } /** Get Cycle Step. @return The step for this Cycle */ public int getC_CycleStep_ID...
Standard Phase of the Project Type */ public void setC_Phase_ID (int C_Phase_ID) { if (C_Phase_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Phase_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); } /** Get Standard Phase. @return Standard Phase of the Project Type ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_CyclePhase.java
1
请完成以下Java代码
protected void makeChannelDefinitionsConsistentWithPersistedVersions(ParsedDeployment parsedDeployment) { for (ChannelDefinitionEntity channelDefinition : parsedDeployment.getAllChannelDefinitions()) { ChannelDefinitionEntity persistedChannelDefinition = channelDeploymentHelper.getPersistedInstanceO...
this.eventDeploymentHelper = eventDeploymentHelper; } public ChannelDefinitionDeploymentHelper getChannelDeploymentHelper() { return channelDeploymentHelper; } public void setChannelDeploymentHelper(ChannelDefinitionDeploymentHelper channelDeploymentHelper) { this.channelDeployment...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\deployer\EventDefinitionDeployer.java
1
请在Spring Boot框架中完成以下Java代码
public class WSHandler implements WebSocketHandler { private static final Logger LOG = LoggerFactory.getLogger(WSHandler.class); private final Map<String, WebSocketSession> sessions; private final ScheduledExecutorService executorService; public WSHandler() { this.sessions = new ConcurrentHas...
} @Override public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception { LOG.info("WS connection closed: {}", session.getId()); this.sessions.remove(session.getId(), session); } @Override public boolean supportsPartialMessages() { ...
repos\spring-examples-java-17\spring-websockets\src\main\java\itx\examples\springboot\websockets\config\WSHandler.java
2
请在Spring Boot框架中完成以下Java代码
public Builder singleSignOnServiceLocation(String singleSignOnServiceLocation) { return (Builder) super.singleSignOnServiceLocation(singleSignOnServiceLocation); } /** * {@inheritDoc} */ @Override public Builder singleSignOnServiceBinding(Saml2MessageBinding singleSignOnServiceBinding) { return (Bu...
return (Builder) super.singleLogoutServiceBinding(singleLogoutServiceBinding); } /** * Build an * {@link org.springframework.security.saml2.provider.service.registration.OpenSamlAssertingPartyDetails} * @return */ @Override public OpenSamlAssertingPartyDetails build() { return new OpenSamlAssert...
repos\spring-security-main\saml2\saml2-service-provider\src\main\java\org\springframework\security\saml2\provider\service\registration\OpenSamlAssertingPartyDetails.java
2
请完成以下Java代码
public class CalculatedFieldEntity extends BaseVersionedEntity<CalculatedField> implements BaseEntity<CalculatedField> { @Column(name = CALCULATED_FIELD_TENANT_ID_COLUMN) private UUID tenantId; @Column(name = CALCULATED_FIELD_ENTITY_TYPE) private String entityType; @Column(name = CALCULATED_FIELD...
this.configurationVersion = calculatedField.getConfigurationVersion(); this.configuration = JacksonUtil.valueToTree(calculatedField.getConfiguration()); this.version = calculatedField.getVersion(); this.debugSettings = JacksonUtil.toString(calculatedField.getDebugSettings()); } @Overrid...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\model\sql\CalculatedFieldEntity.java
1
请完成以下Java代码
protected String addSqlStatementPiece(String sqlStatement, String line) { if (sqlStatement==null) { return line; } return sqlStatement + " \n" + line; } protected String readNextTrimmedLine(BufferedReader reader) throws IOException { String line = reader.readLine(); if (line!=null) { ...
} } return false; } protected String[] getTableTypes() { // the PostgreSQL JDBC API changed in 42.2.11 and partitioned tables // are not detected unless the corresponding table type flag is added. if (DatabaseUtil.checkDatabaseType(DbSqlSessionFactory.POSTGRES)) { return PG_JDBC_METADATA_...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\db\sql\DbSqlSession.java
1
请完成以下Java代码
public void setInheritBusinessKey(boolean inheritBusinessKey) { this.inheritBusinessKey = inheritBusinessKey; } @Override public List<IOParameter> getInParameters() { return inParameters; } @Override public void addInParameter(IOParameter inParameter) { inParameters.add...
@Override public List<IOParameter> getOutParameters() { return outParameters; } @Override public void addOutParameter(IOParameter outParameter) { outParameters.add(outParameter); } @Override public void setOutParameters(List<IOParameter> outParameters) { this.outPar...
repos\flowable-engine-main\modules\flowable-cmmn-model\src\main\java\org\flowable\cmmn\model\ChildTask.java
1
请完成以下Java代码
public boolean equals(Object obj) { return this.delegate.equals(obj); } @Override public int hashCode() { return this.delegate.hashCode(); } @Override public void print(boolean b) throws IOException { trackContentLength(b); this.delegate.print(b); } @Override public void print(char c) t...
trackContentLengthLn(); this.delegate.println(d); } @Override public void println(float f) throws IOException { trackContentLength(f); trackContentLengthLn(); this.delegate.println(f); } @Override public void println(int i) throws IOException { trackContentLength(i); trackContentLengthLn...
repos\spring-session-main\spring-session-core\src\main\java\org\springframework\session\web\http\OnCommittedResponseWrapper.java
1
请完成以下Java代码
private static String createXoredCsrfToken(SecureRandom secureRandom, String token) { byte[] tokenBytes = Utf8.encode(token); byte[] randomBytes = new byte[tokenBytes.length]; secureRandom.nextBytes(randomBytes); byte[] xoredBytes = xorCsrf(randomBytes, tokenBytes); byte[] combinedBytes = new byte[tokenBytes...
private CachedCsrfTokenSupplier(Supplier<CsrfToken> delegate) { this.delegate = delegate; } @Override public CsrfToken get() { if (this.csrfToken == null) { this.csrfToken = this.delegate.get(); } return this.csrfToken; } } }
repos\spring-security-main\web\src\main\java\org\springframework\security\web\csrf\XorCsrfTokenRequestAttributeHandler.java
1
请完成以下Java代码
protected void onInit(final IModelValidationEngine engine, final I_AD_Client client) { // nothing to do } @Override public void onModelChange(final Object model, final ModelChangeType changeType) throws Exception { final boolean afterNewOrChange = changeType.isNewOrChange() && changeType.isAfter(); ...
final TableRecordIdDescriptor descriptor = TableRecordIdDescriptor.of(modelTableName, ITableRecordReference.COLUMNNAME_Record_ID, recordReference.getTableName()); final PartitionConfig augmentedConfig = partitionerService.augmentPartitionerConfig(config, Collections.singletonList(descriptor)); if (!augmentedConf...
repos\metasfresh-new_dawn_uat\backend\de.metas.dlm\base\src\main\java\de\metas\dlm\model\interceptor\PartitionerInterceptor.java
1
请完成以下Java代码
public void setProcessed (final boolean Processed) { set_Value (COLUMNNAME_Processed, Processed); } @Override public boolean isProcessed() { return get_ValueAsBoolean(COLUMNNAME_Processed); } @Override public void setProcessing (final boolean Processing) { set_Value (COLUMNNAME_Processing, Processing)...
} @Override public int getSAP_GLJournal_ID() { return get_ValueAsInt(COLUMNNAME_SAP_GLJournal_ID); } @Override public void setTotalCr (final BigDecimal TotalCr) { set_ValueNoCheck (COLUMNNAME_TotalCr, TotalCr); } @Override public BigDecimal getTotalCr() { final BigDecimal bd = get_ValueAsBigDecima...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-gen\de\metas\acct\model\X_SAP_GLJournal.java
1
请在Spring Boot框架中完成以下Java代码
public void setSUMUP_Config_ID (final int SUMUP_Config_ID) { if (SUMUP_Config_ID < 1) set_ValueNoCheck (COLUMNNAME_SUMUP_Config_ID, null); else set_ValueNoCheck (COLUMNNAME_SUMUP_Config_ID, SUMUP_Config_ID); } @Override public int getSUMUP_Config_ID() { return get_ValueAsInt(COLUMNNAME_SUMUP_Config...
{ set_Value (COLUMNNAME_SUMUP_LastSync_Timestamp, SUMUP_LastSync_Timestamp); } @Override public java.sql.Timestamp getSUMUP_LastSync_Timestamp() { return get_ValueAsTimestamp(COLUMNNAME_SUMUP_LastSync_Timestamp); } @Override public void setSUMUP_merchant_code (final java.lang.String SUMUP_merchant_code) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sumup\src\main\java-gen\de\metas\payment\sumup\repository\model\X_SUMUP_Transaction.java
2
请完成以下Java代码
public final <IT> List<IHUDocument> createHUDocuments(final Properties ctx, final Class<IT> modelClass, final Iterator<IT> records) { final HUDocumentsCollector documentsCollector = new HUDocumentsCollector(); createHUDocuments(documentsCollector, modelClass, records); return documentsCollector.getHUDocuments();...
Check.assumeNotNull(pi, "process info not null"); final String tableName = pi.getTableNameOrNull(); assumeTableName(tableName); final Iterator<T> models = retrieveModelsFromProcessInfo(pi); createHUDocuments(documentsCollector, modelClass, models); } /** * Method used to retrieve relevant models from giv...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\document\impl\AbstractHUDocumentFactory.java
1
请完成以下Java代码
public List<String> getCandidates() { return this.candidates; } /** * Loads the names of import candidates from the classpath. The names of the import * candidates are stored in files named * {@code META-INF/spring/full-qualified-annotation-name.imports} on the classpath. * Every line contains the full qua...
while ((line = reader.readLine()) != null) { line = stripComment(line); line = line.trim(); if (line.isEmpty()) { continue; } candidates.add(line); } return candidates; } catch (IOException ex) { throw new IllegalArgumentException("Unable to load configurations from location [" + u...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\annotation\ImportCandidates.java
1
请完成以下Java代码
protected ProcessPreconditionsResolution checkPreconditionsApplicable() { if (!getInvoiceRowsSelectedForAllocation().isEmpty()) { return ProcessPreconditionsResolution.rejectWithInternalReason("No invoices shall be selected"); } return creatPlan() .resolve(plan -> ProcessPreconditionsResolution.accept(...
final PaymentRow paymentRow = CollectionUtils.singleElement(paymentRows); final Amount openAmt = paymentRow.getOpenAmt(); if (openAmt.signum() == 0) { return ExplainedOptional.emptyBecause("Zero open amount. Nothing to write-off"); } return ExplainedOptional.of( Plan.builder() .paymentId(payment...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\payment_allocation\process\PaymentsView_PaymentWriteOff.java
1
请完成以下Java代码
public void setValue (Object value) { if (value == null) m_oldText = ""; else m_oldText = value.toString(); if (!m_setting) setText (m_oldText); } // setValue /** * Property Change Listener * @param evt event */ public void propertyChange (PropertyChangeEvent evt) { if (evt.getPropertyNam...
{ fireVetoableChange(m_columnName, m_oldText, newText); } catch (PropertyVetoException pve) {} m_setting = false; } // keyReleased /** * Data Binding to MTable (via GridController) - Enter pressed * @param e event */ public void actionPerformed(ActionEvent e) { String newText = String.valueOf(get...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VPassword.java
1
请完成以下Java代码
public List<I_C_Flatrate_Term> retrieveTerms( @NonNull final BPartnerId bPartnerId, @NonNull final OrgId orgId, @NonNull final TypeConditions typeConditions) { return queryBL.createQueryBuilder(I_C_Flatrate_Term.class) .addOnlyActiveRecordsFilter() .addEqualsFilter(I_C_Flatrate_Term.COLUMNNAME_Bill_...
@Override public boolean bpartnerHasExistingRunningTerms(@NonNull final I_C_Flatrate_Term flatrateTerm) { if (flatrateTerm.getC_Order_Term_ID() <= 0) { return true; // if this term has no C_Order_Term_ID, then it *is* one of those running terms } final Instant instant = TimeUtil.asInstant(flatrateTerm.getC...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\impl\FlatrateDAO.java
1
请完成以下Java代码
protected List<ActivityImpl> findConditionalStartEventActivities(ProcessDefinitionEntity processDefinition) { List<ActivityImpl> activities = new ArrayList<ActivityImpl>(); for (EventSubscriptionDeclaration declaration : ConditionalEventDefinition.getDeclarationsForScope(processDefinition).values()) { if ...
ExecutionEntity temporaryExecution = new ExecutionEntity(); if (conditionSet.getVariables() != null) { temporaryExecution.initializeVariableStore(conditionSet.getVariables()); } temporaryExecution.setProcessDefinition(activity.getProcessDefinition()); ConditionalEventDefinition conditionalEventDe...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\runtime\DefaultConditionHandler.java
1
请完成以下Java代码
public static String getStValidate(String url, String st, String service){ try { url = url+"?service="+service+"&ticket="+st; CloseableHttpClient httpclient = createHttpClientWithNoSsl(); HttpGet httpget = new HttpGet(url); HttpResponse response = httpclient.execute(httpget); String res = readRes...
* @return * @throws Exception */ private static CloseableHttpClient createHttpClientWithNoSsl() throws Exception { // Create a trust manager that does not validate certificate chains TrustManager[] trustAllCerts = new TrustManager[]{ new X509TrustManager() { ...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\cas\util\CasServiceUtil.java
1
请完成以下Java代码
private DynamicTargetsMap retrieveDynamicTargetsMap() { final ImmutableListMultimap<GenericTargetWindowInfo, GenericTargetColumnInfo> map = DB.retrieveRows( "SELECT * FROM dynamic_target_window_v", ImmutableList.of(), this::retrieveRowFrom_Dynamic_Target_Window_V) .stream() .filter(Objects:...
} final GenericTargetColumnInfo targetColumn = extractColumnInfo(rs).withDynamic(true); return new TargetWindowAndColumn(targetWindow, targetColumn); } // // // @Value private static class DynamicTargetsMap { ImmutableListMultimap<GenericTargetWindowInfo, GenericTargetColumnInfo> multimap; public Im...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\document\references\related_documents\generic\GenericRelatedDocumentDescriptorsRepository.java
1
请完成以下Java代码
public class VariableEventListenerExport extends AbstractPlanItemDefinitionExport<VariableEventListener> { @Override protected Class<? extends VariableEventListener> getExportablePlanItemDefinitionClass() { return VariableEventListener.class; } @Override protected String getPlanItemDefinit...
xtw.writeAttribute(FLOWABLE_EXTENSIONS_NAMESPACE, CmmnXmlConstants.ATTRIBUTE_EVENT_LISTENER_VARIABLE_NAME, variableEventListener.getVariableName()); } if (StringUtils.isNotEmpty(variableEventListener.getVariableChangeType())) { xtw.writeAttribute(FLOWABLE_EXTENSIONS_NAMESPACE, CmmnX...
repos\flowable-engine-main\modules\flowable-cmmn-converter\src\main\java\org\flowable\cmmn\converter\export\VariableEventListenerExport.java
1
请完成以下Java代码
public final class DelegatingReactiveAuthorizationManager implements ReactiveAuthorizationManager<ServerWebExchange> { private static final Log logger = LogFactory.getLog(DelegatingReactiveAuthorizationManager.class); private final List<ServerWebExchangeMatcherEntry<ReactiveAuthorizationManager<AuthorizationContext...
public static DelegatingReactiveAuthorizationManager.Builder builder() { return new DelegatingReactiveAuthorizationManager.Builder(); } public static final class Builder { private final List<ServerWebExchangeMatcherEntry<ReactiveAuthorizationManager<AuthorizationContext>>> mappings = new ArrayList<>(); priva...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\server\authorization\DelegatingReactiveAuthorizationManager.java
1
请在Spring Boot框架中完成以下Java代码
public String getResource() { return resource; } @ApiModelProperty(example = "This is a case for testing purposes") public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public void...
return diagramResource; } public void setGraphicalNotationDefined(boolean graphicalNotationDefined) { this.graphicalNotationDefined = graphicalNotationDefined; } @ApiModelProperty(value = "Indicates the case definition contains graphical information (CMMN DI).") public boolean isGraphicalN...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\repository\CaseDefinitionResponse.java
2
请在Spring Boot框架中完成以下Java代码
public class Comment { @Id private Long id; private String text; @ManyToOne private User author; @JsonBackReference @ManyToOne private Post post; public Comment() { } public Long getId() { return this.id; } public String getText() { return this....
} @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Comment comment = (Comment) o; return Objects.equals(id, comment.id); } @Override ...
repos\tutorials-master\persistence-modules\spring-boot-persistence-4\src\main\java\com\baeldung\listvsset\eager\list\fulldomain\Comment.java
2
请完成以下Java代码
public TimerEntity createStartTimerInstance(String deploymentId) { return createTimer(deploymentId); } public TimerEntity createTimer(String deploymentId) { TimerEntity timer = super.createJobInstance((ExecutionEntity) null); timer.setDeploymentId(deploymentId); scheduleTimer(timer); return tim...
return result; } else { return Collections.emptyMap(); } } /** * @return all timeout listeners declared in the given scope */ public static Map<String, Map<String, TimerDeclarationImpl>> getTimeoutListenerDeclarationsForScope(PvmScope scope) { if (scope == null) { return Collect...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\jobexecutor\TimerDeclarationImpl.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable String getPassword() { return this.password; } public void setPassword(@Nullable String password) { this.password = password; } public Embedded getEmbedded() { return this.embedded; } public JmsPoolConnectionFactoryProperties getPool() { return this.pool; } /** * Configuration for...
public void setEnabled(boolean enabled) { this.enabled = enabled; } public boolean isPersistent() { return this.persistent; } public void setPersistent(boolean persistent) { this.persistent = persistent; } public @Nullable String getDataDirectory() { return this.dataDirectory; } public v...
repos\spring-boot-4.0.1\module\spring-boot-artemis\src\main\java\org\springframework\boot\artemis\autoconfigure\ArtemisProperties.java
2
请在Spring Boot框架中完成以下Java代码
public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } @ApiModelProperty(example = "testuser") public String getId() { return id; } public void setId(String id) { this.id = id; } @ApiModelProperty(example = "Fred"...
} public void setDisplayName(String displayName) { this.displayName = displayName; } @JsonInclude(JsonInclude.Include.NON_NULL) public String getPassword() { return passWord; } public void setPassword(String passWord) { this.passWord = passWord; } @JsonInclude...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\identity\UserResponse.java
2
请完成以下Java代码
public ImmutableSet<String> getTableNames() { return tableNames; } public boolean containsTableName(final String tableName) { return tableNames.contains(tableName); } public ImmutableTableNamesGroupsIndex addingToDefaultGroup(@NonNull final String tableName) { return addingToDefaultGroup(ImmutableSet.of(...
if (groupsById.isEmpty()) { return new ImmutableTableNamesGroupsIndex(ImmutableList.of(groupToAdd)); } final ArrayList<TableNamesGroup> newGroups = new ArrayList<>(groupsById.size() + 1); boolean added = false; for (final TableNamesGroup group : groupsById.values()) { if (Objects.equals(group.getGrou...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\cache\ImmutableTableNamesGroupsIndex.java
1
请完成以下Java代码
public void setPP_OrderLine_Candidate_ID (final int PP_OrderLine_Candidate_ID) { if (PP_OrderLine_Candidate_ID < 1) set_Value (COLUMNNAME_PP_OrderLine_Candidate_ID, null); else set_Value (COLUMNNAME_PP_OrderLine_Candidate_ID, PP_OrderLine_Candidate_ID); } @Override public int getPP_OrderLine_Candidate_...
@Override public void setPP_Product_BOMLine(final org.eevolution.model.I_PP_Product_BOMLine PP_Product_BOMLine) { set_ValueFromPO(COLUMNNAME_PP_Product_BOMLine_ID, org.eevolution.model.I_PP_Product_BOMLine.class, PP_Product_BOMLine); } @Override public void setPP_Product_BOMLine_ID (final int PP_Product_BOMLine...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java-gen\de\metas\material\dispo\model\X_MD_Candidate_Prod_Detail.java
1
请完成以下Java代码
public void afterPropertiesSet() { Assert.hasLength(this.secureKeyword, "secureKeyword required"); Assert.notNull(this.entryPoint, "entryPoint required"); } @Override public void decide(FilterInvocation invocation, Collection<ConfigAttribute> config) throws IOException, ServletException { Assert.isTrue((in...
public void setEntryPoint(ChannelEntryPoint entryPoint) { this.entryPoint = entryPoint; } public void setSecureKeyword(String secureKeyword) { this.secureKeyword = secureKeyword; } @Override public boolean supports(ConfigAttribute attribute) { return (attribute != null) && (attribute.getAttribute() != null...
repos\spring-security-main\access\src\main\java\org\springframework\security\web\access\channel\SecureChannelProcessor.java
1
请完成以下Java代码
public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) { return m_view.viewToModel(x, y, a, bias); } /** * Returns the document model underlying the view. * * @return the model */ public Document getDocument() { return m_view.getDocument(); } /** * Returns the starting ...
* @param width the width * @param height the height */ public void setSize(float width, float height) { this.m_width = (int) width; m_view.setSize(width, height); } /** * Fetches the factory to be used for building the * various view fragments that make up the view that * represents the mode...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\layout\HTMLRenderer.java
1
请完成以下Java代码
public Object getParameterDefaultValue(final IProcessDefaultParameter parameter) { return createNewDefaultParametersFiller().getDefaultValue(parameter); } @ProcessParamLookupValuesProvider(// parameterName = WEBUI_M_HU_Pick_ParametersFiller.PARAM_M_ShipmentSchedule_ID, // numericKey = true, // lookupSour...
.pickingSlotFillerBuilder() .shipmentScheduleId(shipmentScheduleId) .build(); return filler.getPickingSlotValues(context); } @Override protected void postProcess(final boolean success) { if (!success) { return; } invalidateView(); } private WEBUI_M_HU_Pick_ParametersFiller createNewDefaul...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pporder\process\WEBUI_PP_Order_Pick_ReceivedHUs.java
1
请完成以下Java代码
public long size() throws IOException { assertNotClosed(); return this.size; } @Override public SeekableByteChannel truncate(long size) throws IOException { throw new NonWritableChannelException(); } private void assertNotClosed() throws ClosedChannelException { if (this.closed) { throw new ClosedChan...
private void releaseAll() { IOException exception = null; try { this.data.close(); } catch (IOException ex) { exception = ex; } try { this.zipContent.close(); } catch (IOException ex) { if (exception != null) { ex.addSuppressed(exception); } exception = ex; } i...
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\nio\file\NestedByteChannel.java
1
请完成以下Java代码
public class LogWithChain { public static void main(String[] args) throws Exception { getLeave(); } private static void getLeave() throws NoLeaveGrantedException { try { howIsTeamLead(); } catch (TeamLeadUpsetException e) { throw new NoLeaveGrantedException(...
} catch (ManagerUpsetException e) { throw new TeamLeadUpsetException("Team lead is not in good mood", e); } } private static void howIsManager() throws ManagerUpsetException { try { howIsGirlFriendOfManager(); } catch (GirlFriendOfManagerUpsetException e) { ...
repos\tutorials-master\core-java-modules\core-java-exceptions-5\src\main\java\com\baeldung\exceptions\chainedexception\LogWithChain.java
1