instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public void setPO_Help (java.lang.String PO_Help) { set_Value (COLUMNNAME_PO_Help, PO_Help); } /** Get PO Help. @return Help for PO Screens */ @Override public java.lang.String getPO_Help () { return (java.lang.String)get_Value(COLUMNNAME_PO_Help); } /** Set PO Name. @param PO_Name Name on PO S...
/** Get Drucktext. @return The label text to be printed on a document or correspondence. */ @Override public java.lang.String getPrintName () { return (java.lang.String)get_Value(COLUMNNAME_PrintName); } /** Set Browse name. @param WEBUI_NameBrowse Browse name */ @Override public void setWEBUI_NameB...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Element_Trl.java
1
请在Spring Boot框架中完成以下Java代码
public PeerSecurityProperties getPeer() { return this.peer; } public SecurityPostProcessorProperties getPostProcessor() { return this.securityPostProcessorProperties; } public String getPropertiesFile() { return this.propertiesFile; } public void setPropertiesFile(String propertiesFile) { this.properti...
return this.level; } public void setLevel(String level) { this.level = level; } } public static class SecurityManagerProperties { private String className; public String getClassName() { return this.className; } public void setClassName(String className) { this.className = className; } ...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\configuration\support\SecurityProperties.java
2
请完成以下Java代码
public void rehash() { tmpElements = new Object[size]; int count = 0; for ( int x = 0; x < elements.length; x++ ) { if( elements[x] != null ) { tmpElements[count] = elements[x]; count++; } } elements ...
} } public void remove(int location) { elements[location] = null; } public int location(Object o) throws NoSuchObjectException { int loc = -1; for ( int x = 0; x < elements.length; x++ ) { if((elements[x] != null && elements[x] == o )|| ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\storage\Array.java
1
请在Spring Boot框架中完成以下Java代码
public TableRecordReference getReference() { return creditMemoPayableDoc.getReference(); } @Override public Money getAmountToAllocateInitial() { return creditMemoPayableDoc.getAmountsToAllocateInitial().getPayAmt().negate(); } @Override public Money getAmountToAllocate() { return creditMemoPayableDoc.g...
} @Override public PaymentDirection getPaymentDirection() { return PaymentDirection.ofSOTrx(creditMemoPayableDoc.getSoTrx()); } @Override public CurrencyId getCurrencyId() { return creditMemoPayableDoc.getCurrencyId(); } @Override public LocalDate getDate() { return creditMemoPayableDoc.getDate(); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\payment\paymentallocation\service\CreditMemoInvoiceAsPaymentDocumentWrapper.java
2
请完成以下Java代码
public static MReportLine copy (Properties ctx, int AD_Client_ID, int AD_Org_ID, int PA_ReportLineSet_ID, MReportLine source, String trxName) { MReportLine retValue = new MReportLine (ctx, 0, trxName); MReportLine.copyValues(source, retValue, AD_Client_ID, AD_Org_ID); // retValue.setPA_ReportLineSet_ID(PA_R...
return this.get_ValueAsBoolean("IsInclInParentCalc"); } public static void checkIncludedReportLineSetCycles(MReportLine line) { checkIncludedReportLineSetCycles(line, new TreeSet<Integer>(), new StringBuffer()); } private static void checkIncludedReportLineSetCycles(MReportLine line, Collection<Integer> trace, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\report\MReportLine.java
1
请完成以下Java代码
public org.compiere.model.I_C_Country getTo_Country() { return get_ValueAsPO(COLUMNNAME_To_Country_ID, org.compiere.model.I_C_Country.class); } @Override public void setTo_Country(final org.compiere.model.I_C_Country To_Country) { set_ValueFromPO(COLUMNNAME_To_Country_ID, org.compiere.model.I_C_Country.class,...
public static final String TYPEOFDESTCOUNTRY_EU_Foreign = "WITHIN_COUNTRY_AREA"; /** Non-EU country = OUTSIDE_COUNTRY_AREA */ public static final String TYPEOFDESTCOUNTRY_Non_EUCountry = "OUTSIDE_COUNTRY_AREA"; @Override public void setTypeOfDestCountry (final @Nullable java.lang.String TypeOfDestCountry) { set_...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Tax.java
1
请完成以下Java代码
public class TourBL implements ITourBL { /** * Gets Preparation Time for given Day of the Week. * * @param tourVersion * @param dayOfWeek * @return preparation time (hour/minute/sec/millis) or null if there is no preparation time for that day of the week */ private static Timestamp getPreparationTime(fin...
Check.assumeNotNull(deliveryDate, "deliveryDate not null"); // // Get DeliveryDate's Day of the Week final GregorianCalendar deliveryDateCal = new GregorianCalendar(); deliveryDateCal.setTimeInMillis(deliveryDate.getTime()); final int deliveryDayOfWeek = deliveryDateCal.get(Calendar.DAY_OF_WEEK); final Ti...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\tourplanning\api\impl\TourBL.java
1
请完成以下Java代码
private Set<String> retrieveAllowedDocActions(final ClientId adClientId, final DocTypeId docTypeId) { final List<Object> sqlParams = new ArrayList<>(); sqlParams.add(adClientId); sqlParams.add(docTypeId); final String sql = "SELECT rl.Value FROM AD_Document_Action_Access a" + " INNER JOIN AD_Ref_List rl ON...
access = true; } else { access = null; // legacy } if (optionsCtx.getDocTypeId() != null) { rolePermLoggingBL().logDocActionAccess(getRoleId(), optionsCtx.getDocTypeId(), targetDocAction, access); } } optionsCtx.setDocActionToUse(targetDocAction); } /** * Get Role Where Clause. ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\impl\UserRolePermissions.java
1
请完成以下Java代码
public class SysLog implements Serializable{ private static final long serialVersionUID = -6309732882044872298L; private Integer id; private String username; private String operation; private Integer time; private String method; private String params; private String ip; private Date createTime; public Inte...
} public String getMethod() { return method; } public void setMethod(String method) { this.method = method; } public String getParams() { return params; } public void setParams(String params) { this.params = params; } public String getIp() { return ip; } public void setIp(String ip) { this.ip = i...
repos\SpringAll-master\07.Spring-Boot-AOP-Log\src\main\java\com\springboot\domain\SysLog.java
1
请完成以下Java代码
public void setIsAllowPickingAnyHU (final boolean IsAllowPickingAnyHU) { set_Value (COLUMNNAME_IsAllowPickingAnyHU, IsAllowPickingAnyHU); } @Override public boolean isAllowPickingAnyHU() { return get_ValueAsBoolean(COLUMNNAME_IsAllowPickingAnyHU); } @Override public void setIsAllowStartNextJobOnly (final...
} @Override public void setMaxLaunchers (final int MaxLaunchers) { set_Value (COLUMNNAME_MaxLaunchers, MaxLaunchers); } @Override public int getMaxLaunchers() { return get_ValueAsInt(COLUMNNAME_MaxLaunchers); } @Override public void setMaxStartedLaunchers (final int MaxStartedLaunchers) { set_Value...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_MobileUI_UserProfile_DD.java
1
请完成以下Java代码
public class BPMNMessageImpl extends BPMNElementImpl implements BPMNMessage { private MessageEventPayload messagePayload; public BPMNMessageImpl() {} public BPMNMessageImpl(String elementId) { this.setElementId(elementId); } public MessageEventPayload getMessagePayload() { return...
return result; } @Override public String toString() { return ( "BPMNMessageImpl{" + ", elementId='" + getElementId() + '\'' + ", messagePayload='" + (messagePayload != null ? messagePayload.toString() : null) + '\''...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-model-impl\src\main\java\org\activiti\api\runtime\model\impl\BPMNMessageImpl.java
1
请完成以下Java代码
public boolean load(ByteArray byteArray, V[] value) { return false; } @Override public V get(char[] key) { return get(new String(key)); } public V get(String key) { int id = exactMatchSearch(key); if (id == -1) return null; return valueArray[id];...
public V remove(Object key) { throw new UnsupportedOperationException("双数组不支持删除"); } @Override public void putAll(Map<? extends String, ? extends V> m) { throw new UnsupportedOperationException("双数组不支持增量式插入"); } @Override public void clear() { throw new Unsu...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\collection\dartsclone\DartMap.java
1
请完成以下Java代码
public int getMaxPoolPreparedStatementPerConnectionSize() { return maxPoolPreparedStatementPerConnectionSize; } public void setMaxPoolPreparedStatementPerConnectionSize(int maxPoolPreparedStatementPerConnectionSize) { this.maxPoolPreparedStatementPerConnectionSize = maxPoolPreparedStatementPerConnectionSize; } ...
return useGlobalDataSourceStat; } public void setUseGlobalDataSourceStat(boolean useGlobalDataSourceStat) { this.useGlobalDataSourceStat = useGlobalDataSourceStat; } public String getConnectionProperties() { return connectionProperties; } public void setConnectionProperties(String connectionProperties) { ...
repos\spring-boot-student-master\spring-boot-student-mybatis-druid\src\main\java\com\xiaolyuh\druid\DruidDataSourceProperty.java
1
请完成以下Java代码
public void setAD_UI_Column_ID (int AD_UI_Column_ID) { if (AD_UI_Column_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_UI_Column_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_UI_Column_ID, Integer.valueOf(AD_UI_Column_ID)); } /** Get UI Column. @return UI Column */ @Override public int getAD_UI_Column_...
} /** Set Reihenfolge. @param SeqNo Zur Bestimmung der Reihenfolge der Einträge; die kleinste Zahl kommt zuerst */ @Override public void setSeqNo (int SeqNo) { set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); } /** Get Reihenfolge. @return Zur Bestimmung der Reihenfolge der Einträge; die kleins...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_UI_ElementGroup.java
1
请完成以下Java代码
private EDIDesadvQuery buildEDIDesadvQuery(@NonNull final I_M_InOut inOut) { final String poReference = Check.assumeNotNull(inOut.getPOReference(), "In the DESADV-Context, POReference is mandatory; M_InOut_ID={}", inOut.getM_InOut_ID()); final EDIDesadvQuery.EDIDesadvQueryBuilder ed...
private boolean isMatchUsingBPartnerId() { return sysConfigBL.getBooleanValue(SYS_CONFIG_MATCH_USING_BPARTNER_ID, false); } private static void setExternalBPartnerInfo(@NonNull final I_EDI_DesadvLine newDesadvLine, @NonNull final I_C_OrderLine orderLineRecord) { newDesadvLine.setExternalSeqNo(orderLineRecord.g...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java\de\metas\edi\api\impl\DesadvBL.java
1
请完成以下Java代码
public List<InOutId> createCustomerReturnsFromCandidates(@NonNull final List<CustomerReturnLineCandidate> candidates) { return customerReturnsWithoutHUsProducer.create(candidates); } public I_M_InOutLine createCustomerReturnLine(@NonNull final CreateCustomerReturnLineReq request) { return customerReturnsWithou...
public void assignHandlingUnitsToHeaderAndLine( @NonNull final org.compiere.model.I_M_InOutLine customerReturnLine, @NonNull final List<I_M_HU> hus) { if (hus.isEmpty()) { return; } final InOutId customerReturnId = InOutId.ofRepoId(customerReturnLine.getM_InOut_ID()); final I_M_InOut customerReturn...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\inout\returns\ReturnsServiceFacade.java
1
请在Spring Boot框架中完成以下Java代码
public class Packageable { @NonNull OrgId orgId; @NonNull ShipmentScheduleId shipmentScheduleId; @NonNull Quantity qtyOrdered; @NonNull Quantity qtyToDeliver; @NonNull Quantity qtyDelivered; @NonNull Quantity qtyPickedAndDelivered; @NonNull Quantity qtyPickedNotDelivered; /** * quantity picked planned...
OrderId salesOrderId; @Nullable String salesOrderDocumentNo; @Nullable String salesOrderDocSubType; @Nullable String poReference; @Nullable OrderLineId salesOrderLineIdOrNull; @Nullable Money salesOrderLineNetAmt; @Nullable PPOrderId pickFromOrderId; @NonNull @Default HUPIItemProductId packToHUPIItemP...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\picking\api\Packageable.java
2
请完成以下Java代码
public class RegisterParam { @NotEmpty(message="姓名不能为空") private String userName; @NotEmpty(message="密码不能为空") @Length(min=6,message="密码长度不能小于6位") private String password; @Email private String email; public String getUserName() { return userName; } public void setUserNa...
this.password = password; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } }
repos\spring-boot-leaning-master\1.x\第16课:综合实战用户管理系统\user-manage\src\main\java\com\neo\param\RegisterParam.java
1
请在Spring Boot框架中完成以下Java代码
protected <T> T checkNotNull(T reference, String notFoundMessage) throws ThingsboardException { if (reference == null) { throw new ThingsboardException(notFoundMessage, ThingsboardErrorCode.ITEM_NOT_FOUND); } return reference; } protected <T> T checkNotNull(Optional<T> refer...
// We do not support auto-commit for rule engine return Futures.immediateFailedFuture(new RuntimeException("Operation not supported!")); } } protected ListenableFuture<UUID> autoCommit(User user, EntityType entityType, List<UUID> entityIds) { if (vcService != null) { ret...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\entitiy\AbstractTbEntityService.java
2
请完成以下Java代码
public JaasSubjectHolder login(String username, String password) { LOG.debug("Trying to authenticate " + username + " with Kerberos"); JaasSubjectHolder result; try { LoginContext loginContext = new LoginContext("", null, new KerberosClientCallbackHandler(username, password), new LoginConfig(this.debug))...
private String username; private String password; private KerberosClientCallbackHandler(String username, String password) { this.username = username; this.password = password; } @Override public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { for (Callback call...
repos\spring-security-main\kerberos\kerberos-core\src\main\java\org\springframework\security\kerberos\authentication\sun\SunJaasKerberosClient.java
1
请完成以下Java代码
public List<V> get(final Object key) { return map.get(key); } @Override public List<V> put(final K key, final List<V> value) { return map.put(key, value); } /** * Add the given single value to the current list of values for the given key. * * @param key the key * @param value the value to be added...
values.clear(); } values.add(value); } @Override public List<V> remove(final Object key) { return map.remove(key); } @Override public void putAll(Map<? extends K, ? extends List<V>> m) { map.putAll(m); } @Override public void clear() { map.clear(); } @Override public Set<K> keySet() { r...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\collections\MultiValueMap.java
1
请完成以下Java代码
public class InputMessage { String sender; String recipient; LocalDateTime sentAt; String message; public InputMessage() { } public String getSender() { return sender; } public void setSender(String sender) { this.sender = sender; } public String getRecipi...
} @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; InputMessage message1 = (InputMessage) o; return Objects.equal(sender, message1.sender) && Objects.equal(...
repos\tutorials-master\apache-kafka-2\src\main\java\com\baeldung\flink\model\InputMessage.java
1
请完成以下Java代码
LocalDate computeBestBeforeDate() { if (attributesBL.isAutomaticallySetBestBeforeDate()) { final PPOrderLineRow row = getSingleSelectedRow(); final int guaranteeDaysMin = productDAO.getProductGuaranteeDaysMinFallbackProductCategory(row.getProductId()); if (guaranteeDaysMin <= 0) { return null; ...
else if (type == PPOrderLineType.BOMLine_ByCoProduct) { final PPOrderBOMLineId ppOrderBOMLineId = row.getOrderBOMLineId(); return huPPOrderBL.receivingByOrCoProduct(ppOrderBOMLineId); } else { throw new AdempiereException("Receiving is not allowed"); } } @NonNull private Quantity getIndividualCUs...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pporder\process\WEBUI_PP_Order_Receipt.java
1
请完成以下Java代码
public static TableName extractSingleTableName(final ColumnNameFQ... columnNames) { if (columnNames == null || columnNames.length == 0) { throw new AdempiereException("Cannot extract table name from null/empty column names array"); } TableName singleTableName = null; for (final ColumnNameFQ columnNameFQ ...
} else if (!TableName.equals(singleTableName, columnNameFQ.getTableName())) { throw new AdempiereException("More than one table name found in " + Arrays.asList(columnNames)); } } if (singleTableName == null) { throw new AdempiereException("Cannot extract table name from null/empty column names ar...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\table\api\ColumnNameFQ.java
1
请完成以下Java代码
public void reconnect() { eventGroup.schedule(new Runnable() { @Override public void run() { logger.info("[reconnect][开始重连]"); try { start(); } catch (InterruptedException e) { logger.error("[reconnec...
// 优雅关闭一个 EventLoopGroup 对象 eventGroup.shutdownGracefully(); } /** * 发送消息 * * @param invocation 消息体 */ public void send(Invocation invocation) { if (channel == null) { logger.error("[send][连接不存在]"); return; } if (!channel.isActive(...
repos\SpringBoot-Labs-master\lab-67\lab-67-netty-demo\lab-67-netty-demo-client\src\main\java\cn\iocoder\springboot\lab67\nettyclientdemo\client\NettyClient.java
1
请完成以下Java代码
public int getLineNo() { return configLineNo; } @Override public String getMessage() { final StringBuilder sb = new StringBuilder(); sb.append("Parse error: "); final String message = super.getMessage(); if (message != null && !message.isEmpty()) { sb.append(message); } else { sb.append("...
} if (configFile != null) { sb.append("\nConfig file: ").append(configFile); } if (configLineNo > 0) { sb.append("\nLine: ").append(configLineNo); } return sb.toString(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.migration\de.metas.migration.base\src\main\java\de\metas\migration\sql\postgresql\PgPassParseException.java
1
请完成以下Java代码
public static LockOwner newOwner() { final String ownerNamePrefix = null; return newOwner(ownerNamePrefix); } /** * Creates a new owner whose name consists of the given <code>ownerNamePrefix</code> and a unique suffix. * */ public static LockOwner newOwner(final String ownerNamePrefix) { final Object ...
* * @param ownerName the name of the new owner. Other than with the <code>newOwner(...)</code> methods, nothing will be added to it. * @return */ public static final LockOwner forOwnerName(final String ownerName) { Check.assumeNotEmpty(ownerName, "ownerName not empty"); return new LockOwner(ownerName, Owner...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\lock\api\LockOwner.java
1
请完成以下Java代码
public BigDecimal getRate() { return rate; } /** * Sets the value of the rate property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setRate(BigDecimal value) { this.rate = value; } /** * Gets the ...
this.agt = value; } /** * Gets the value of the tax property. * * @return * possible object is * {@link TaxCharges2 } * */ public TaxCharges2 getTax() { return tax; } /** * Sets the value of the tax property. * * @param value...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_04\ChargesRecord2.java
1
请在Spring Boot框架中完成以下Java代码
public Optional<GolfTournament> getGolfTournament() { return Optional.ofNullable(this.golfTournament); } @Override @PreDestroy public void close() { this.golfTournament = null; } public boolean isFinished(@Nullable GolfTournament golfTournament) { return golfTournament == null || golfTournament.isFinished(...
if (golfCourse.isValidHoleNumber(hole)) { occupiedHoles.add(hole); pairing.setHole(hole); updateScore(this::calculateRunningScore, pairing.getPlayerOne()); updateScore(this::calculateRunningScore, pairing.getPlayerTwo()); } } } } private Golfer updateScore(@NonNull Function<Integer, Inte...
repos\spring-boot-data-geode-main\spring-geode-samples\caching\inline-async\src\main\java\example\app\caching\inline\async\client\service\PgaTourService.java
2
请完成以下Java代码
public class TbMsgProfilerInfo { private final UUID msgId; private AtomicLong totalProcessingTime = new AtomicLong(); private Lock stateLock = new ReentrantLock(); private RuleNodeId currentRuleNodeId; private long stateChangeTime; public TbMsgProfilerInfo(UUID msgId) { this.msgId = msg...
currentRuleNodeId = null; return processingTime; } else { log.trace("[{}] Invalid sequence of rule node processing detected. Expected [{}] but was [{}]", msgId, currentRuleNodeId, ruleNodeId); return 0; } } finally { stateLock.u...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\queue\TbMsgProfilerInfo.java
1
请完成以下Java代码
public ProcessPreconditionsResolution withCaptionMapper(@Nullable final ProcessCaptionMapper captionMapper) { return toBuilder().captionMapper(captionMapper).build(); } /** * Override default SortNo used with ordering related processes */ public ProcessPreconditionsResolution withSortNo(final int sortNo) { ...
public ProcessPreconditionsResolution and(final Supplier<ProcessPreconditionsResolution> resolutionSupplier) { if (isRejected()) { return this; } return resolutionSupplier.get(); } public void throwExceptionIfRejected() { if (isRejected()) { throw new AdempiereException(getRejectReason()); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\process\ProcessPreconditionsResolution.java
1
请在Spring Boot框架中完成以下Java代码
public static class Token { /** * Time-to-live for an authorization code. */ private Duration authorizationCodeTimeToLive = Duration.ofMinutes(5); /** * Time-to-live for an access token. */ private Duration accessTokenTimeToLive = Duration.ofMinutes(5); /** * Token format for an access token...
} public void setDeviceCodeTimeToLive(Duration deviceCodeTimeToLive) { this.deviceCodeTimeToLive = deviceCodeTimeToLive; } public boolean isReuseRefreshTokens() { return this.reuseRefreshTokens; } public void setReuseRefreshTokens(boolean reuseRefreshTokens) { this.reuseRefreshTokens = reuseRefres...
repos\spring-boot-4.0.1\module\spring-boot-security-oauth2-authorization-server\src\main\java\org\springframework\boot\security\oauth2\server\authorization\autoconfigure\servlet\OAuth2AuthorizationServerProperties.java
2
请在Spring Boot框架中完成以下Java代码
public User get(Long id) { UserSocialMedia user = (UserSocialMedia) userDaoImpl.read(id); List<Tweet> tweets = tweetDaoImpl.fetchTweets(user.getEmail()); user.setTweets(tweets); return user; } @Override public void add(User user) { userDaoImpl.c...
return tweetDaoImpl.fetchTweets(user.getEmail()); } @Override public User findByUserName(String userName) { return null; } @Override public User findByEmail(String email) { return null; } }
repos\tutorials-master\patterns-modules\design-patterns-architectural\src\main\java\com\baeldung\repositoryvsdaopattern\UserRepositoryImpl.java
2
请完成以下Java代码
public String getText() { return m_text; } // getText /** * Import Text from File */ private void importText() { JFileChooser jc = new JFileChooser(); jc.setDialogTitle(msgBL.getMsg(Env.getCtx(), "ImportText")); jc.setDialogType(JFileChooser.OPEN_DIALOG); jc.setFileSelectionMode(JFileChooser.FILES_O...
/** * ChangeListener for TabbedPane * @param e event */ @Override public void stateChanged(ChangeEvent e) { if (tabbedPane.getSelectedIndex() == 1) // switch to HTML textPane.setText(textArea.getText()); } // stateChanged @Override public void keyTyped (KeyEvent e) { } @Override public void key...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\Editor.java
1
请完成以下Java代码
public void setUI_Trace_ID (final int UI_Trace_ID) { if (UI_Trace_ID < 1) set_ValueNoCheck (COLUMNNAME_UI_Trace_ID, null); else set_ValueNoCheck (COLUMNNAME_UI_Trace_ID, UI_Trace_ID); } @Override public int getUI_Trace_ID() { return get_ValueAsInt(COLUMNNAME_UI_Trace_ID); } @Override public voi...
@Override public java.lang.String getUserAgent() { return get_ValueAsString(COLUMNNAME_UserAgent); } @Override public void setUserName (final @Nullable java.lang.String UserName) { set_Value (COLUMNNAME_UserName, UserName); } @Override public java.lang.String getUserName() { return get_ValueAsString...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_UI_Trace.java
1
请完成以下Java代码
public class Orders extends DateAudit { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String email; private String additionalPhone; @NotBlank private String address; private String name; @Lob private String comment; private Float deli...
private OrderStatus status; private Long taxiOrderId; /** * Buy from Online shop; * Покупатель (Customer) * */ // @ManyToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL) // @JoinColumn(name = "User", nullable = false) @ManyToOne(cascade = CascadeType.ALL) private User u...
repos\SpringBoot-Projects-FullStack-master\Part-9.SpringBoot-React-Projects\Project-2.SpringBoot-React-ShoppingMall\fullstack\backend\src\main\java\com\urunov\model\Orders.java
1
请完成以下Java代码
public static abstract class Vehicle { private String make; private String model; protected Vehicle() { } protected Vehicle(String make, String model) { this.make = make; this.model = model; } public String getMake() { return...
} public double getTopSpeed() { return topSpeed; } public void setTopSpeed(double topSpeed) { this.topSpeed = topSpeed; } } public static class Sedan extends Car { public Sedan() { } public Sedan(String make, String model, int s...
repos\tutorials-master\jackson-modules\jackson-core\src\main\java\com\baeldung\jackson\inheritance\IgnoranceMixinOrIntrospection.java
1
请完成以下Java代码
public class SentinelVersion { private int majorVersion; private int minorVersion; private int fixVersion; private String postfix; public SentinelVersion() { this(0, 0, 0); } public SentinelVersion(int major, int minor, int fix) { this(major, minor, fix, null); ...
this.postfix = postfix; return this; } public boolean greaterThan(SentinelVersion version) { if (version == null) { return true; } return getFullVersion() > version.getFullVersion(); } public boolean greaterOrEqual(SentinelVersion version) { if (vers...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\datasource\entity\SentinelVersion.java
1
请在Spring Boot框架中完成以下Java代码
public Optional<User> getUserWithAuthoritiesByLogin(String login) { return userRepository.findOneWithAuthoritiesByLogin(login); } @Transactional(readOnly = true) public Optional<User> getUserWithAuthorities(Long id) { return userRepository.findOneWithAuthoritiesById(id); } @Transac...
*/ @Scheduled(cron = "0 0 1 * * ?") public void removeNotActivatedUsers() { userRepository .findAllByActivatedIsFalseAndCreatedDateBefore(Instant.now().minus(3, ChronoUnit.DAYS)) .forEach(user -> { log.debug("Deleting not activated user {}", user.getLogin()); ...
repos\tutorials-master\jhipster-6\bookstore-monolith\src\main\java\com\baeldung\jhipster6\service\UserService.java
2
请完成以下Java代码
public void setEditable (boolean value) { super.setReadWrite(value); } // setEditable /** * IsEditable * @return true if editable */ public boolean isEditable() { return super.isReadWrite(); } // isEditable /** * Set Editor to value * @param value */ @Override public void setValue (Object v...
{ } // setBackground /** * Action Listener - data binding * @param e */ @Override public void actionPerformed(ActionEvent e) { try { fireVetoableChange(m_columnName, null, getValue()); } catch (PropertyVetoException pve) { } } // actionPerformed /** * Set Field/WindowNo for ValuePrefer...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VCheckBox.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setC_BP_BankAccount_ID (final int C_BP_BankAccount_ID) { if (C_BP_BankAccount_ID < 1) set_ValueNoCheck (COLUMNNAME_C_BP_BankAccount_ID, null); else set_V...
set_ValueNoCheck (COLUMNNAME_C_BP_BankAccount_InvoiceAutoAllocateRule_ID, C_BP_BankAccount_InvoiceAutoAllocateRule_ID); } @Override public int getC_BP_BankAccount_InvoiceAutoAllocateRule_ID() { return get_ValueAsInt(COLUMNNAME_C_BP_BankAccount_InvoiceAutoAllocateRule_ID); } @Override public void setC_DocTyp...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_BankAccount_InvoiceAutoAllocateRule.java
1
请完成以下Java代码
final class GroupByClassifierSpliterator<E> implements Spliterator<List<E>> { private final Spliterator<E> source; private final Function<E, ?> classifier; private E nextValue; private boolean hasNextValue; public GroupByClassifierSpliterator( @NonNull final Spliterator<E> source, @NonNull final Function<E...
public Spliterator<List<E>> trySplit() { return null; } @Override public long estimateSize() { return Long.MAX_VALUE; } @Override public int characteristics() { return source.characteristics(); } private static final class GroupCollector<E> { private final Object classifierValue; private final ...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\GroupByClassifierSpliterator.java
1
请完成以下Java代码
public static void setMaxBodyLength(int length) { maxBodyLength = length; } public byte[] getBody() { return this.body; //NOSONAR } public MessageProperties getMessageProperties() { return this.messageProperties; } @Override public String toString() { StringBuilder buffer = new StringBuilder(); buff...
} @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(this.body); result = prime * result + ((this.messageProperties == null) ? 0 : this.messageProperties.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this...
repos\spring-amqp-main\spring-amqp\src\main\java\org\springframework\amqp\core\Message.java
1
请完成以下Java代码
public void setR_RequestType_ID (int R_RequestType_ID) { if (R_RequestType_ID < 1) set_Value (COLUMNNAME_R_RequestType_ID, null); else set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); } /** Get Request Type. @return Type of request (e.g. Inquiry, Complaint, ..) */ @Overr...
/** Set Nutzer-ID/Login. @param UserName Nutzer-ID/Login */ @Override public void setUserName (java.lang.String UserName) { set_Value (COLUMNNAME_UserName, UserName); } /** Get Nutzer-ID/Login. @return Nutzer-ID/Login */ @Override public java.lang.String getUserName () { return (java.lang.String)g...
repos\metasfresh-new_dawn_uat\backend\de.metas.inbound.mail\src\main\java-gen\de\metas\inbound\mail\model\X_C_InboundMailConfig.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setAD_Table_ID (final int AD_Table_ID) { if (AD_Table_ID < 1) set_Value (COLUMNNAME_AD_Table_ID, null); else set_Value (COLUMNNAME_AD_Table_ID, AD_Table_...
@Override public void setRecord_ID (final int Record_ID) { if (Record_ID < 0) set_Value (COLUMNNAME_Record_ID, null); else set_Value (COLUMNNAME_Record_ID, Record_ID); } @Override public int getRecord_ID() { return get_ValueAsInt(COLUMNNAME_Record_ID); } @Override public void setStatus (final ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\inoutcandidate\model\X_M_IolCandHandler_Log.java
1
请在Spring Boot框架中完成以下Java代码
public void changeById( @NonNull final ServiceRepairProjectTaskId taskId, @NonNull final UnaryOperator<ServiceRepairProjectTask> mapper) { final I_C_Project_Repair_Task record = getRecordById(taskId); final ServiceRepairProjectTask task = fromRecord(record); final ServiceRepairProjectTask changedTask = ma...
return taskIds.stream() .filter(taskId -> eligibleRepoIds.contains(taskId.getRepoId())) .collect(ImmutableSet.toImmutableSet()); } public Optional<ServiceRepairProjectTask> getTaskByRepairOrderId( @NonNull final ProjectId projectId, @NonNull final PPOrderId repairOrderId) { return getTaskIdByRepairO...
repos\metasfresh-new_dawn_uat\backend\de.metas.servicerepair.base\src\main\java\de\metas\servicerepair\project\repository\ServiceRepairProjectTaskRepository.java
2
请完成以下Java代码
public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", orderId=").append(orderId); sb.append(", companyAddressI...
sb.append(", productBrand=").append(productBrand); sb.append(", productAttr=").append(productAttr); sb.append(", productCount=").append(productCount); sb.append(", productPrice=").append(productPrice); sb.append(", productRealPrice=").append(productRealPrice); sb.append(", reason...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\OmsOrderReturnApply.java
1
请完成以下Java代码
public class MybatisHistoricIdentityLinkDataManager extends AbstractDataManager<HistoricIdentityLinkEntity> implements HistoricIdentityLinkDataManager { protected CachedEntityMatcher<HistoricIdentityLinkEntity> historicIdentityLinksByProcInstMatcher = new HistoricIdentityLinksByProcInstMatcher(); ...
@Override @SuppressWarnings("unchecked") public List<HistoricIdentityLinkEntity> findHistoricIdentityLinksByTaskId(String taskId) { return getDbSqlSession().selectList("selectHistoricIdentityLinksByTask", taskId); } @Override public List<HistoricIdentityLinkEntity> findHistoricIdentityLinks...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\data\impl\MybatisHistoricIdentityLinkDataManager.java
1
请完成以下Java代码
public String getCaseDefinitionId() { return caseDefinitionId; } public boolean hasNewCaseDefinitionId() { return StringUtils.isNotBlank(newCaseDefinitionId); } public String getNewCaseDefinitionId() { return newCaseDefinitionId; } public String getTenantId() { ...
@Override public void migrateToLatestCaseDefinition() { checkValidInformation(); cmmnRuntimeService.migrateCaseInstanceStartEventSubscriptionsToCaseDefinitionVersion(this); } @Override public void migrateToCaseDefinition(String caseDefinitionId) { this.newCaseDefinitionId = case...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\CaseInstanceStartEventSubscriptionModificationBuilderImpl.java
1
请完成以下Java代码
public boolean containsValue(Object value) { throw new UnsupportedOperationException(getClass().getName()+".containsValue() is not supported."); } @Override public Object remove(Object key) { throw new UnsupportedOperationException(getClass().getName()+".remove is unsupported. Use " + getClass().getName(...
@Override public Collection<Object> values() { throw new UnsupportedOperationException(getClass().getName()+".values() is not supported."); } @Override public Set<java.util.Map.Entry<String, Object>> entrySet() { throw new UnsupportedOperationException(getClass().getName()+".entrySet() is not supported...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\impl\AbstractVariableMap.java
1
请完成以下Java代码
public int getXmlRowNumber() { return xmlRowNumber; } public void setXmlRowNumber(int xmlRowNumber) { this.xmlRowNumber = xmlRowNumber; } public int getXmlColumnNumber() { return xmlColumnNumber; } public void setXmlColumnNumber(int xmlColumnNumber) { this.xmlC...
return false; } // check for zero value in case we are comparing model value to BPMN DI value // model values do not have xml location information if (0 != this.getXmlColumnNumber() && 0 != ginfo.getXmlColumnNumber() && this.getXmlColumnNumber() != ginfo.getXmlColumnNumber()) { ...
repos\flowable-engine-main\modules\flowable-dmn-model\src\main\java\org\flowable\dmn\model\GraphicInfo.java
1
请完成以下Java代码
public String toString() { return MoreObjects.toStringHelper(this) .addValue(tabCallouts) .toString(); } @Override public void onIgnore(final ICalloutRecord calloutRecord) { for (final ITabCallout tabCallout : tabCallouts) { tabCallout.onIgnore(calloutRecord); } } @Override public void onNe...
{ for (final ITabCallout tabCallout : tabCallouts) { tabCallout.onRefreshAll(calloutRecord); } } @Override public void onAfterQuery(final ICalloutRecord calloutRecord) { for (final ITabCallout tabCallout : tabCallouts) { tabCallout.onAfterQuery(calloutRecord); } } public static final class Bui...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\ui\spi\impl\CompositeTabCallout.java
1
请在Spring Boot框架中完成以下Java代码
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) { AnnotationAttributes annotationAttributes = AnnotationAttributes .fromMap(metadata.getAnnotationAttributes(ConditionalOnEnabledMetricsExport.class.getName())); Assert.state(annotationAttributes != null, "'annotati...
.because(enabledProperty + " is " + match)); } return null; } /** * Return the default outcome that should be used if property is not set. By default * this method will use the {@link #DEFAULT_PROPERTY_NAME} property, matching if it is * {@code true} or if it is not configured. * @param context the condi...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\OnMetricsExportEnabledCondition.java
2
请完成以下Java代码
public void setProcessed (final boolean Processed) { set_ValueNoCheck (COLUMNNAME_Processed, Processed); } @Override public boolean isProcessed() { return get_ValueAsBoolean(COLUMNNAME_Processed); } @Override public void setRemote_Addr (final @Nullable java.lang.String Remote_Addr) { set_ValueNoCheck ...
public void setRemote_Host (final @Nullable java.lang.String Remote_Host) { set_ValueNoCheck (COLUMNNAME_Remote_Host, Remote_Host); } @Override public java.lang.String getRemote_Host() { return get_ValueAsString(COLUMNNAME_Remote_Host); } @Override public void setWebSession (final @Nullable java.lang.Str...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Session.java
1
请完成以下Java代码
private void dbUpdateInvoices(@NonNull final ImportRecordsSelection selection) { StringBuilder sql = new StringBuilder("UPDATE I_Datev_Payment i ") .append("SET C_Invoice_ID = (SELECT C_Invoice_ID FROM C_Invoice inv ") .append("WHERE i.InvoiceDocumentNo = inv.DocumentNo ") .append("AND round((i.PayAmt+i....
sql = new StringBuilder("UPDATE I_Datev_Payment ") .append("SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||'ERR=No BPartner, ' ") .append("WHERE C_BPartner_ID IS NULL ") .append("AND I_IsImported<>'Y' ") .append(selection.toSqlWhereClause()); no = DB.executeUpdateAndSaveErrorOnFail(sql.toString(), ITrx....
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\payment\impexp\CPaymentImportTableSqlUpdater.java
1
请完成以下Java代码
public static InvoiceVerificationRunId ofRepoId(@NonNull final InvoiceVerificationSetId invoiceVerificationSetId, final int invoiceVerificationRunId) { return new InvoiceVerificationRunId(invoiceVerificationSetId, invoiceVerificationRunId); } public static InvoiceVerificationRunId ofRepoId(final int invoiceVerifi...
public static int toRepoId(final InvoiceVerificationRunId invoiceVerificationRunId) { return toRepoIdOr(invoiceVerificationRunId, -1); } public static int toRepoIdOr(final InvoiceVerificationRunId bpLocationId, final int defaultValue) { return bpLocationId != null ? bpLocationId.getRepoId() : defaultValue; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\invoice\InvoiceVerificationRunId.java
1
请完成以下Java代码
public class CalloutInitException extends CalloutException { public static CalloutInitException wrapIfNeeded(final Throwable throwable) { Check.assumeNotNull(throwable, "throwable not null"); if (throwable instanceof CalloutInitException) { return (CalloutInitException)throwable; } final Throwable ca...
/** * */ private static final long serialVersionUID = -5929639632737615796L; public CalloutInitException(final String message) { super(message); } public CalloutInitException(final String message, final Throwable cause) { super(message, cause); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\callout\exceptions\CalloutInitException.java
1
请完成以下Java代码
public class CalloutEXP_Format extends CalloutEngine { public String onAD_Table_ID(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) { I_EXP_Format format = InterfaceWrapperHelper.create(mTab, I_EXP_Format.class); if (format.getAD_Table_ID() > 0) { String tableName = Services.get(IA...
{ I_EXP_Format format = line.getEXP_EmbeddedFormat(); line.setValue(format.getValue()); line.setName(format.getName()); } else if (line.getAD_Column_ID() > 0) { MColumn column = MColumn.get(ctx, line.getAD_Column_ID()); String columnName = column.getColumnName(); line.setValue(columnName); li...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\model\CalloutEXP_Format.java
1
请在Spring Boot框架中完成以下Java代码
public InetAddress getRemoteAddress() { return this.remoteAddress; } public void setRemoteAddress(InetAddress remoteAddress) { this.remoteAddress = remoteAddress; } public Security getSecurity() { return this.security; } // @fold:off public static class Security { @NotEmpty
private String username; // @fold:on // getters/setters... public String getUsername() { return this.username; } public void setUsername(String username) { this.username = username; } // @fold:off } }
repos\spring-boot-4.0.1\documentation\spring-boot-docs\src\main\java\org\springframework\boot\docs\features\externalconfig\typesafeconfigurationproperties\validation\nested\MyProperties.java
2
请完成以下Java代码
public final class IncludedDocumentToInvalidate { @Getter private final String tableName; private boolean invalidateAll; private final HashSet<Integer> recordIds = new HashSet<>(); IncludedDocumentToInvalidate(@NonNull final String tableName) { this.tableName = tableName; } public void invalidateAll() { ...
? DocumentIdsSelection.ALL : DocumentIdsSelection.ofIntSet(recordIds); } IncludedDocumentToInvalidate combine(@NonNull final IncludedDocumentToInvalidate other) { Check.assumeEquals(tableName, other.tableName, "tableName"); this.invalidateAll = this.invalidateAll || other.invalidateAll; if(invalidateAll)...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\invalidation\IncludedDocumentToInvalidate.java
1
请完成以下Java代码
private IOException releaseZipContent(IOException exceptionChain) { ZipContent zipContent = this.zipContent; if (zipContent != null) { try { zipContent.close(); } catch (IOException ex) { exceptionChain = addToExceptionChain(exceptionChain, ex); } finally { this.zipContent = null; } ...
exceptionChain = addToExceptionChain(exceptionChain, ex); } finally { this.zipContentForManifest = null; } } return exceptionChain; } private IOException addToExceptionChain(IOException exceptionChain, IOException ex) { if (exceptionChain != null) { exceptionChain.addSuppressed(ex); return e...
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\jar\NestedJarFileResources.java
1
请完成以下Java代码
public Boolean getBoolValue() { return dataType == DataType.BOOLEAN ? boolValue : null; } public void setBoolValue(Boolean boolValue) { this.dataType = DataType.BOOLEAN; this.boolValue = boolValue; } public String getStrValue() { return dataType == DataType.STRING ? str...
} static EntityKeyValue fromBool(boolean b) { EntityKeyValue result = new EntityKeyValue(); result.setBoolValue(b); return result; } static EntityKeyValue fromLong(long l) { EntityKeyValue result = new EntityKeyValue(); result.setLngValue(l); return result; ...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\profile\EntityKeyValue.java
1
请完成以下Java代码
private final Set<HuId> getHUIdsAndClear() { final Set<HuId> modelIds = new HashSet<>(_huIds); _huIds.clear(); return modelIds; } private final boolean hasModelsToSnapshot() { return !_huIds.isEmpty(); } @Override public ISnapshotRestorer<I_M_HU> addModelId(final int huId) {
_huIds.add(HuId.ofRepoId(huId)); return this; } @Override public ISnapshotRestorer<I_M_HU> addModelIds(@NonNull final Collection<Integer> huRepoIds) { final ImmutableSet<HuId> huIds = huRepoIds .stream() .map(HuId::ofRepoId) .collect(ImmutableSet.toImmutableSet()); _huIds.addAll(huIds); return ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\snapshot\impl\M_HU_Snapshot_ProducerAndRestorer.java
1
请完成以下Java代码
public DDOrderMoveSchedule pickFromHU(@NonNull final DDOrderPickFromRequest request) { return DDOrderPickFromCommand.builder() .ddOrderLowLevelDAO(ddOrderLowLevelDAO) .ddOrderMoveScheduleRepository(ddOrderMoveScheduleRepository) .handlingUnitsBL(handlingUnitsBL) .request(request) .build() .ex...
public Set<DDOrderId> retrieveDDOrderIdsInTransit(@NonNull final LocatorId inTransitLocatorId) { return ddOrderMoveScheduleRepository.retrieveDDOrderIdsInTransit(inTransitLocatorId); } public boolean hasInTransitSchedules(@NonNull final LocatorId inTransitLocatorId) { return ddOrderMoveScheduleRepository.query...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\movement\schedule\DDOrderMoveScheduleService.java
1
请完成以下Java代码
public @Nullable URL findResource(String name) { final ClassLoaderFile file = this.updatedFiles.getFile(name); if (file == null) { return super.findResource(name); } if (file.getKind() == Kind.DELETED) { return null; } return createFileUrl(name, file); } @Override public Class<?> loadClass(String ...
public ClassLoader getOriginalClassLoader() { return getParent(); } private URL createFileUrl(String name, ClassLoaderFile file) { try { return new URL("reloaded", null, -1, "/" + name, new ClassLoaderFileURLStreamHandler(file)); } catch (MalformedURLException ex) { throw new IllegalStateException(ex);...
repos\spring-boot-4.0.1\module\spring-boot-devtools\src\main\java\org\springframework\boot\devtools\restart\classloader\RestartClassLoader.java
1
请完成以下Java代码
default Map<String, Object> getConfigurationProperties() { throw new UnsupportedOperationException("'getConfigurationProperties()' is not supported"); } /** * Return the configured key deserializer (if provided as an object instead * of a class name in the properties). * @return the deserializer. */ @Null...
* Get the current list of listeners. * @return the listeners. */ default List<Listener<K, V>> getListeners() { return Collections.emptyList(); } /** * Listener for share consumer lifecycle events. * * @param <K> the key type. * @param <V> the value type. */ interface Listener<K, V> { /** * A ...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\core\ShareConsumerFactory.java
1
请完成以下Java代码
public List<TimerJobEntity> findTimerStartEvents() { return getDbSqlSession().selectList("selectTimerStartEvents"); } @Override @SuppressWarnings("unchecked") public List<TimerJobEntity> findJobsByTypeAndProcessDefinitionId( String jobHandlerType, String processDefinitionId ...
String jobHandlerType, String processDefinitionKey, String tenantId ) { Map<String, String> params = new HashMap<String, String>(3); params.put("handlerType", jobHandlerType); params.put("processDefinitionKey", processDefinitionKey); params.put("tenantId", tenantId); ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\data\impl\MybatisTimerJobDataManager.java
1
请完成以下Java代码
public RESTApiTableInfo getByTableNameOrNull(final String tableName) { return getMap().getByTableNameOrNull(tableName); } private RESTApiTableInfoMap getMap() { return cache.getOrLoad(0, this::retrieveMap); } private RESTApiTableInfoMap retrieveMap() { final String sql = "SELECT " + " t." + I_AD_Tabl...
@EqualsAndHashCode @ToString private static class RESTApiTableInfoMap { private final ImmutableMap<String, RESTApiTableInfo> byTableName; private RESTApiTableInfoMap(final List<RESTApiTableInfo> list) { this.byTableName = Maps.uniqueIndex(list, RESTApiTableInfo::getTableName); } public static Collecto...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\persistence\custom_columns\CustomColumnRepository.java
1
请完成以下Java代码
public float predict(int[] observation, int[] state) { final int time = observation.length; // 序列长度 final int max_s = start_probability.length; // 状态种数 float[] score = new float[max_s]; // link[t][s] := 第t个时刻在当前状态是s时,前1个状态是什么 int[][] link = new int[time][max_s]; // ...
int best_s = 0; for (int s = 0; s < max_s; s++) { if (score[s] > max_score) { max_score = score[s]; best_s = s; } } for (int t = link.length - 1; t >= 0; --t) { state[t] = best_s; best_s ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\hmm\FirstOrderHiddenMarkovModel.java
1
请完成以下Java代码
public void setBytes(byte[] bytes) {} @Override public Object getCachedValue() { return null; } @Override public void setCachedValue(Object cachedValue) {} @Override public String getId() { return null; } @Override public void setId(String id) {} @Overrid...
} @Override public void setValue(Object value) { variableValue = value; } @Override public String getTypeName() { return TYPE_TRANSIENT; } @Override public void setTypeName(String typeName) {} @Override public String getProcessInstanceId() { return nul...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\TransientVariableInstance.java
1
请完成以下Java代码
public void setQtyTU_Override (final @Nullable BigDecimal QtyTU_Override) { set_Value (COLUMNNAME_QtyTU_Override, QtyTU_Override); } @Override public BigDecimal getQtyTU_Override() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyTU_Override); return bd != null ? bd : BigDecimal.ZERO; } @Over...
return get_ValueAsString(COLUMNNAME_ShipmentAllocation_BestBefore_Policy); } @Override public void setSinglePriceTag_ID (final @Nullable java.lang.String SinglePriceTag_ID) { set_ValueNoCheck (COLUMNNAME_SinglePriceTag_ID, SinglePriceTag_ID); } @Override public java.lang.String getSinglePriceTag_ID() { r...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\inoutcandidate\model\X_M_ShipmentSchedule.java
1
请完成以下Java代码
public I_C_Payment getC_Payment() throws RuntimeException { return (I_C_Payment)MTable.get(getCtx(), I_C_Payment.Table_Name) .getPO(getC_Payment_ID(), get_TrxName()); } /** Set Payment. @param C_Payment_ID Payment identifier */ public void setC_Payment_ID (int C_Payment_ID) { if (C_Payment_ID < 1...
@param NonCommittedAmt Amount not committed yet */ public void setNonCommittedAmt (BigDecimal NonCommittedAmt) { set_Value (COLUMNNAME_NonCommittedAmt, NonCommittedAmt); } /** Get Not Committed Aount. @return Amount not committed yet */ public BigDecimal getNonCommittedAmt () { BigDecimal bd = (B...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_B_SellerFunds.java
1
请完成以下Java代码
public FilterSql getSql( final DocumentFilter filter, final SqlOptions sqlOpts, final SqlDocumentFilterConverterContext context) { final DocumentFilterParam filterParameter = filter.getParameterOrNull(PARAMETERNAME_SearchText); if (filterParameter == null) { return null; } final String searchText...
.replaceAll("\\s+", "%") .replaceAll("%+", "%"); if (!sql.startsWith("%")) { sql = "%" + sql; } if (!sql.endsWith("%")) { sql = sql + "%"; } return sql; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\bpartner\filter\BPartnerSimpleFuzzySearchFilterProvider.java
1
请完成以下Java代码
protected Void execute(CommandContext commandContext, TaskEntity task) { if (userId != null) { task.setClaimTime(commandContext.getProcessEngineConfiguration().getClock().getCurrentTime()); if (task.getAssignee() != null) { if (!task.getAssignee().equals(userId)) { ...
// Task should be assigned to no one commandContext.getTaskEntityManager().changeTaskAssignee(task, null); } // Add claim time to historic task instance commandContext.getHistoryManager().recordTaskClaim(task); return null; } @Override protected String getSuspe...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\cmd\ClaimTaskCmd.java
1
请在Spring Boot框架中完成以下Java代码
public String getPropertiesFile() { return this.propertiesFile; } public void setPropertiesFile(String propertiesFile) { this.propertiesFile = propertiesFile; } public ApacheShiroProperties getShiro() { return this.apacheShiroProperties; } public SslProperties getSsl() { return this.ssl; } public St...
} public void setLevel(String level) { this.level = level; } } public static class SecurityManagerProperties { private String className; public String getClassName() { return this.className; } public void setClassName(String className) { this.className = className; } } public static cla...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\configuration\support\SecurityProperties.java
2
请完成以下Java代码
public String getClientSoftwareKennung() { return clientSoftwareKennung; } /** * Sets the value of the clientSoftwareKennung property. * * @param value * allowed object is * {@link String } * */ public void setClientSoftwareKennung(String value) { ...
* Gets the value of the manuelleAbfrage property. * */ public boolean isManuelleAbfrage() { return manuelleAbfrage; } /** * Sets the value of the manuelleAbfrage property. * */ public void setManuelleAbfrage(boolean value) { this.manuelleAbfrage = value; }...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.schema.v2\src\main\java-xjc\de\metas\vertical\pharma\vendor\gateway\msv3\schema\v2\VertragsdatenAbfragen.java
1
请完成以下Java代码
public class PhoneNumber { private String type; private String number; public PhoneNumber(String type, String number) { this.type = type; this.number = number; } public String getType() { return type; } public String getNumber() { return number; } ...
return "PhoneNumber{" + "type='" + type + '\'' + ", number='" + number + '\'' + '}'; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; PhoneNumber that = (PhoneNumber) o; ...
repos\tutorials-master\core-java-modules\core-java-lang-6\src\main\java\com\baeldung\compareobjects\PhoneNumber.java
1
请完成以下Java代码
public Void execute(CommandContext commandContext) { if (executeDecisionContext == null) { throw new FlowableIllegalArgumentException("ExecuteDecisionContext is null"); } DmnEngineConfiguration engineConfiguration = CommandContextUtil.getDmnEngineConfiguration(); if (engin...
decisionExecutionEntity.setFailed(failed.booleanValue()); } ObjectMapper objectMapper = engineConfiguration.getObjectMapper(); if (objectMapper == null) { objectMapper = JsonMapper.shared(); } try { decisionExecutionEntity.set...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\cmd\PersistHistoricDecisionExecutionCmd.java
1
请完成以下Java代码
public class MovementLineHUPackingMaterialCollectorSource implements IHUPackingMaterialCollectorSource { public static final MovementLineHUPackingMaterialCollectorSource of(final I_M_MovementLine movementLine) { return builder() .movementLine(movementLine) .collectHUPipToSource(true) .build(); } priv...
return productId; } @Override public int getRecord_ID() { return recordId; } @Override public boolean isCollectHUPipToSource() { return collectHUPipToSource; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\movement\spi\impl\MovementLineHUPackingMaterialCollectorSource.java
1
请完成以下Java代码
public void setMessageSource(@NonNull MessageSource messageSource) { this.messages = new MessageSourceAccessor(messageSource); } /** * Sets the {@link GrantedAuthoritiesMapper} used for converting the authorities * loaded from storage to a new set of authorities which will be associated to the * {@link Usern...
* simple <tt>LdapUserDetailsMapper</tt>. */ public void setUserDetailsContextMapper(UserDetailsContextMapper userDetailsContextMapper) { Assert.notNull(userDetailsContextMapper, "UserDetailsContextMapper must not be null"); this.userDetailsContextMapper = userDetailsContextMapper; } /** * Provides access to...
repos\spring-security-main\ldap\src\main\java\org\springframework\security\ldap\authentication\AbstractLdapAuthenticationProvider.java
1
请完成以下Java代码
public Set<ProductId> getOnlyProductIds() { return onlyProductIds != null && !onlyProductIds.isEmpty() ? onlyProductIds : null; } @Override public void setOnlyProductIds(final Collection<ProductId> productIds) { this.onlyProductIds = productIds != null ? ImmutableSet.copyOf(productIds) : null; } @O...
public boolean isAllowDifferentCapacities() { return allowDifferentCapacities; } @Override public void setAllowDifferentCapacities(final boolean allowDifferentCapacities) { this.allowDifferentCapacities = allowDifferentCapacities; } @Override public boolean isAllowInfiniteCapacity() { return allowInfin...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\impl\HUPIItemProductQuery.java
1
请完成以下Java代码
public class MoveDeadLetterJobToExecutableJobCmd implements Command<JobEntity>, Serializable { private static final long serialVersionUID = 1L; private static Logger log = LoggerFactory.getLogger(MoveDeadLetterJobToExecutableJobCmd.class); protected String jobId; protected int retries; public Mo...
DeadLetterJobEntity job = commandContext.getDeadLetterJobEntityManager().findById(jobId); if (job == null) { throw new JobNotFoundException(jobId); } if (log.isDebugEnabled()) { log.debug("Moving deadletter job to executable job table {}", job.getId()); } ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\cmd\MoveDeadLetterJobToExecutableJobCmd.java
1
请在Spring Boot框架中完成以下Java代码
public class AD_Scheduler_Controller extends JavaProcess implements IProcessPrecondition { final SchedulerEventBusService schedulerEventBusService = SpringContextHolder.instance.getBean(SchedulerEventBusService.class); @Param(parameterName = "Action", mandatory = true) private String p_Action; @Param(parameterNam...
case DISABLE: final ManageSchedulerRequest.SupervisorAction supervisorAction = deactivateSupervisor ? ManageSchedulerRequest.SupervisorAction.DISABLE : null; sendManageSchedulerRequest(adSchedulerId, SchedulerAction.DISABLE, supervisorAction); break; case RUN_ONCE: sendManageSchedulerRequest(adSchedu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\scheduler\process\AD_Scheduler_Controller.java
2
请在Spring Boot框架中完成以下Java代码
public class Notification { protected int channel; @XmlElement(required = true) protected String value; protected String language; /** * Gets the value of the channel property. * */ public int getChannel() { return channel; } /** * Sets the value of the ch...
this.value = value; } /** * Gets the value of the language property. * * @return * possible object is * {@link String } * */ public String getLanguage() { return language; } /** * Sets the value of the language property. * * ...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dpd\src\main\java-xjc\com\dpd\common\service\types\shipmentservice\_3\Notification.java
2
请完成以下Java代码
public Long getId() { return id; } @Override public void setId(Long id) { this.id = id; } @Override public String getApp() { return app; } public AbstractRuleEntity<T> setApp(String app) { this.app = app; return this; } @Override pu...
public T getRule() { return rule; } public AbstractRuleEntity<T> setRule(T rule) { this.rule = rule; return this; } @Override public Date getGmtCreate() { return gmtCreate; } public AbstractRuleEntity<T> setGmtCreate(Date gmtCreate) { this.gmtCreate...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\datasource\entity\rule\AbstractRuleEntity.java
1
请完成以下Java代码
public static String getSummary(String document, int max_length, String sentence_separator) { List<String> sentenceList = splitSentence(document, sentence_separator); int sentence_count = sentenceList.size(); int document_length = document.length(); int sentence_length_avg = documen...
} private static List<String> pick_sentences(List<String> resultList, int max_length) { List<String> summary = new ArrayList<String>(); int count = 0; for (String result : resultList) { if (count + result.length() <= max_length) { summary.add(result); ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\summary\TextRankSentence.java
1
请在Spring Boot框架中完成以下Java代码
public class CityRestController { @Autowired private CityService cityService; @RequestMapping(value = "/api/city/{id}", method = RequestMethod.GET) public City findOneCity(@PathVariable("id") Long id) { return cityService.findCityById(id); } @RequestMapping(value = "/api/city", method...
@RequestMapping(value = "/api/city", method = RequestMethod.POST) public void createCity(@RequestBody City city) { cityService.saveCity(city); } @RequestMapping(value = "/api/city", method = RequestMethod.PUT) public void modifyCity(@RequestBody City city) { cityService.updateCity(city)...
repos\springboot-learning-example-master\springboot-restful\src\main\java\org\spring\springboot\controller\CityRestController.java
2
请完成以下Java代码
public class ParallelGatewayJsonConverter extends BaseBpmnJsonConverter { public static void fillTypes( Map<String, Class<? extends BaseBpmnJsonConverter>> convertersToBpmnMap, Map<Class<? extends BaseElement>, Class<? extends BaseBpmnJsonConverter>> convertersToJsonMap ) { fillJsonType...
protected String getStencilId(BaseElement baseElement) { return STENCIL_GATEWAY_PARALLEL; } protected void convertElementToJson(ObjectNode propertiesNode, BaseElement baseElement) {} protected FlowElement convertJsonToElement( JsonNode elementNode, JsonNode modelNode, Map<S...
repos\Activiti-develop\activiti-core\activiti-json-converter\src\main\java\org\activiti\editor\language\json\converter\ParallelGatewayJsonConverter.java
1
请在Spring Boot框架中完成以下Java代码
public String getServerGroup() { return this.serverGroup; } public void setServerGroup(String serverGroup) { this.serverGroup = serverGroup; } public String[] getServers() { return this.servers; } public void setServers(String[] servers) { this.servers = servers; } public int getSocketBufferSize() {...
return this.subscriptionEnabled; } public void setSubscriptionEnabled(boolean subscriptionEnabled) { this.subscriptionEnabled = subscriptionEnabled; } public int getSubscriptionMessageTrackingTimeout() { return this.subscriptionMessageTrackingTimeout; } public void setSubscriptionMessageTrackingTimeout(int...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\configuration\support\PoolProperties.java
2
请在Spring Boot框架中完成以下Java代码
public class Application implements ApplicationRunner { @Autowired ApplicationContext applicationContext; public static void main(String[] args) { SpringApplication.run(Application.class, args); } @Override public void run(ApplicationArguments args) throws Exception { DataSou...
.build(); // 执行生成 new DocumentationExecute(config).execute(); } /** * 配置想要生成的表+ 配置想要忽略的表 * * @return 生成表配置 */ public static ProcessConfig getProcessConfig() { // 忽略表名 List<String> ignoreTableName = Arrays.asList(""); return ProcessConfig.builder(...
repos\springboot-demo-master\Screw\src\main\java\com\et\screw\Application.java
2
请完成以下Java代码
private AdIssueId createADIssue(@Nullable final JsonError error) { if (error == null || error.getErrors().isEmpty()) { return null; } final JsonErrorItem errorItem = error.getErrors().get(0); return errorManager.createIssue(IssueCreateRequest.builder() .summary(errorItem.getMessage() + "; " + errorIt...
products.stream() .filter(product -> product.getCommodityNumberId() != null) .forEach(product -> { final I_M_CommodityNumber commodityNumber = commodityNumberById.get(product.getCommodityNumberId().getRepoId()); if (commodityNumber != null) { commodityNumberByProductId.put(product.getI...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v1\shipping\ReceiptCandidateAPIService.java
1
请完成以下Java代码
int getDifference() { return Capacity - Load; } void setSummary(int summary) { Summary = summary; } int getSummary() { return Summary; } void setFrom(String from) { From = from; } String getFrom()
{ return From; } void setTo(String to) { To = to; } String getTo() { return To; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\process\CRPSummary.java
1
请完成以下Java代码
public ImmutableSet<ProductId> getProductIds() { return streamLines() .map(PickingJobLine::getProductId) .collect(ImmutableSet.toImmutableSet()); } @NonNull public ITranslatableString getSingleProductNameOrEmpty() { ProductId productId = null; ITranslatableString productName = TranslatableStrings.em...
final Quantity lineQtyToPick = extractQtyToPick.apply(line); if (qtyToPick == null) { qtyToPick = lineQtyToPick; } else if (UomId.equals(qtyToPick.getUomId(), lineQtyToPick.getUomId())) { qtyToPick = qtyToPick.add(lineQtyToPick); } else { // found different UOMs return null; }...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\model\PickingJob.java
1
请完成以下Java代码
public void setDeleteImportDataProcessClass(@NonNull final Class<?> deleteImportDataProcessClass) { relatedProcessesRegistry.setDeleteImportDataProcessClass(deleteImportDataProcessClass); } @Override public <ImportRecordType> IImportProcess<ImportRecordType> newImportProcess(@NonNull final Class<ImportRecordType...
private <ImportRecordType> IImportProcess<ImportRecordType> newImportProcessForTableNameOrNull(@NonNull final String importTableName) { final Class<?> importProcessClass = importProcessDescriptorsMap.getImportProcessClassByImportTableNameOrNull(importTableName); if (importProcessClass == null) { return null; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\processing\impl\ImportProcessFactory.java
1
请完成以下Spring Boot application配置
spring: mail: # 配置发送告警的邮箱 host: smtp.126.com username: wwbmlhh@126.com password: '******' default-encoding: UTF-8 boot: admin: notify: mail:
from: ${spring.mail.username} # 告警发件人 to: 7685413@qq.com # 告警收件人
repos\SpringBoot-Labs-master\lab-35\lab-35-admin-04-adminserver\src\main\resources\application.yaml
2
请完成以下Java代码
public class BestellungPosition { @XmlElement(name = "Pzn") protected long pzn; @XmlElement(name = "Menge") protected int menge; @XmlElement(name = "Liefervorgabe", required = true) @XmlSchemaType(name = "string") protected Liefervorgabe liefervorgabe; /** * Gets the value of the ...
* * @return * possible object is * {@link Liefervorgabe } * */ public Liefervorgabe getLiefervorgabe() { return liefervorgabe; } /** * Sets the value of the liefervorgabe property. * * @param value * allowed object is * {@link...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.schema.v1\src\main\java-xjc\de\metas\vertical\pharma\vendor\gateway\msv3\schema\v1\BestellungPosition.java
1
请完成以下Java代码
public class DecisionRequirementsDefinitionCache extends ResourceDefinitionCache<DecisionRequirementsDefinitionEntity> { public DecisionRequirementsDefinitionCache(CacheFactory factory, int cacheCapacity, CacheDeployer cacheDeployer) { super(factory, cacheCapacity, cacheDeployer); } @Override protected Ab...
@Override protected void checkInvalidDefinitionByKeyAndTenantId(String definitionKey, String tenantId, DecisionRequirementsDefinitionEntity definition) { // not needed } @Override protected void checkInvalidDefinitionByKeyVersionAndTenantId(String definitionKey, Integer definitionVersion, String tenantId, ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\deploy\cache\DecisionRequirementsDefinitionCache.java
1
请完成以下Java代码
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; NameAgeEntity other = (NameAgeEntity) obj; if (age == null) { if (other.age != null) ...
} else if (!count.equals(other.count)) return false; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; return true; } @Override public String toString() { return "N...
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
请完成以下Java代码
public void setDocNoSequence(org.compiere.model.I_AD_Sequence DocNoSequence) { set_ValueFromPO(COLUMNNAME_DocNoSequence_ID, org.compiere.model.I_AD_Sequence.class, DocNoSequence); } /** Set Nummernfolgen für Belege. @param DocNoSequence_ID Document sequence determines the numbering of documents */ @Overr...
set_Value (COLUMNNAME_DocNoSequence_ID, Integer.valueOf(DocNoSequence_ID)); } /** Get Nummernfolgen für Belege. @return Document sequence determines the numbering of documents */ @Override public int getDocNoSequence_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_DocNoSequence_ID); if (ii == null) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_DocType_Sequence.java
1
请完成以下Java代码
public static ServerWebExchangeMatcher pathMatchers(@Nullable HttpMethod method, String... patterns) { List<ServerWebExchangeMatcher> matchers = new ArrayList<>(patterns.length); for (String pattern : patterns) { matchers.add(new PathPatternParserServerWebExchangeMatcher(pattern, method)); } return new OrSer...
public static ServerWebExchangeMatcher matchers(ServerWebExchangeMatcher... matchers) { return new OrServerWebExchangeMatcher(matchers); } /** * Matches any exchange * @return the matcher to use */ @SuppressWarnings("Convert2Lambda") public static ServerWebExchangeMatcher anyExchange() { // we don't use ...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\server\util\matcher\ServerWebExchangeMatchers.java
1