blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
410
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
51
| license_type
stringclasses 2
values | repo_name
stringlengths 5
132
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringlengths 4
80
| visit_date
timestamp[us] | revision_date
timestamp[us] | committer_date
timestamp[us] | github_id
int64 5.85k
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 22
values | gha_event_created_at
timestamp[us] | gha_created_at
timestamp[us] | gha_language
stringclasses 131
values | src_encoding
stringclasses 34
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 3
9.45M
| extension
stringclasses 32
values | content
stringlengths 3
9.45M
| authors
listlengths 1
1
| author_id
stringlengths 0
313
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7b44cbeddec81baa9436c8df617cdbf7e0e77996
|
a4a27397ea9c453300e9fd929304fc9900a01aad
|
/sitewhere-java-model/src/main/java/com/sitewhere/spi/device/command/RegistrationSuccessReason.java
|
b2f574709d7d0dcd955c41560bc3a34c52179ef0
|
[
"Apache-2.0"
] |
permissive
|
suyambuganesh82/sitewhere-java-api
|
2c2962d501e05e518707aa7f20f956a9a90f71c8
|
e6545f48ad0359dc0ba86344587cbdf367bb6b12
|
refs/heads/master
| 2023-04-25T10:59:07.777397
| 2021-03-07T15:41:57
| 2021-03-07T15:41:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 915
|
java
|
/**
* Copyright © 2014-2021 The SiteWhere Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.sitewhere.spi.device.command;
/**
* Enumerates reasons registration was successful.
*/
public enum RegistrationSuccessReason {
/** Indicates a new device registration */
NewRegistration,
/** Indicates device was already registered in the system */
AlreadyRegistered;
}
|
[
"derek.adams@sitewhere.com"
] |
derek.adams@sitewhere.com
|
0949d4b6e2004950f18bba474ffbd766b8cfed47
|
76e54871dd5467f78b60b50d4ecf5350cb9451a1
|
/src/main/java/com/guanqing/commontools/CommontoolsApplication.java
|
c070cc7a82549e5bfbaa5df320263166f6f33228
|
[] |
no_license
|
guanqing123/commontools
|
0a7df67ef563aa7eaedb45135d2f7a8d579b48e9
|
f5f230bf307d8b690e577e4df14134258efb775a
|
refs/heads/master
| 2023-07-15T13:31:52.377447
| 2021-09-05T11:41:54
| 2021-09-05T11:41:54
| 403,293,022
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 339
|
java
|
package com.guanqing.commontools;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CommontoolsApplication {
public static void main(String[] args) {
SpringApplication.run(CommontoolsApplication.class, args);
}
}
|
[
"guanqinghz@163.com"
] |
guanqinghz@163.com
|
7f48ee329181656789d45f7cf28daab5f25c0fbb
|
f7d96590abad8310bda45ea5c31408fd51fd19a8
|
/src/test/java/S2/Sprint1/CreateNewOpportunity.java
|
7ecfa6ceea2d52522ac62da170256fbce9d9660a
|
[] |
no_license
|
villuvicky/TestLeafBootCamp
|
9f0397891cd741a24377f6e84a70bb14dd30f3b0
|
9a841d99447c8a3590f977167437aa5cf4365d7c
|
refs/heads/main
| 2023-07-16T04:06:58.947266
| 2021-08-22T12:48:53
| 2021-08-22T12:48:53
| 398,143,815
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,020
|
java
|
package S2.Sprint1;
import java.text.SimpleDateFormat;
import java.time.Duration;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.Assert;
import io.github.bonigarcia.wdm.WebDriverManager;
public class CreateNewOpportunity {
static String OpportunityName = "Salesforce Automation by Vignesh Kannan";
static String SuccessMessage = "Opportunity \"Salesforce Automation by Vignesh Kannan\" was created.";
static WebDriverWait wait;
public static void waitClickMethod(ChromeDriver driver, WebElement locator) {
wait = new WebDriverWait(driver, Duration.ofSeconds(20));
wait.until(ExpectedConditions.elementToBeClickable(locator));
}
public static void waitVisibleMethod(ChromeDriver driver, WebElement locator) {
wait = new WebDriverWait(driver, Duration.ofSeconds(20));
wait.until(ExpectedConditions.visibilityOf(locator));
}
public static void main(String[] args) throws InterruptedException {
// TODO Auto-generated method stub
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-notifications");
WebDriverManager.chromedriver().setup();
ChromeDriver driver = new ChromeDriver(options);
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
driver.manage().window().maximize();
driver.get("https://login.salesforce.com");
WebElement userName = driver.findElement(By.id("username"));
userName.sendKeys("makaia@testleaf.com");
WebElement password = driver.findElement(By.id("password"));
password.sendKeys("SelBootcamp$123");
driver.findElement(By.id("Login")).submit();
WebElement toggle = driver
.findElement(By.xpath("//button[contains(@class,'slds-button slds-icon-waffle_container')]"));
toggle.click();
WebElement viewAll = driver.findElement(By.xpath("//button[text()='View All']"));
viewAll.click();
WebElement sales = driver.findElement(By.xpath("//p[text()='Sales']"));
sales.click();
WebElement opportunities = driver.findElement(By.xpath("//a[@title='Opportunities']"));
JavascriptExecutor executor = (JavascriptExecutor) driver;
executor.executeScript("arguments[0].click();", opportunities);
WebElement newOpportunities = driver.findElement(By.xpath("//a[@title='New']"));
newOpportunities.click();
WebElement newOpportunitiesName = driver.findElement(By.xpath("//input[@name='Name']"));
newOpportunitiesName.sendKeys(OpportunityName);
System.out.println(newOpportunitiesName.getAttribute("value"));
WebElement dates = driver.findElement(By.xpath("//input[@name='CloseDate']"));
dates.click();
Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("M/d/y");
WebElement chooseDate = driver.findElement(By.xpath("//input[@name='CloseDate']"));
chooseDate.sendKeys(sdf.format(date));
WebElement stage = driver
.findElement(By.xpath("(//input[@class='slds-input slds-combobox__input'])[3]//parent::div"));
executor.executeScript("arguments[0].scrollIntoView();", stage);
stage.click();
WebElement selectStage = driver.findElement(By.xpath("(//span[@title='Needs Analysis'])"));
selectStage.click();
WebElement saveChanges = driver.findElement(By.xpath("//button[@name='SaveEdit']"));
saveChanges.click();
//Thread.sleep(2000);
WebElement messageElement=driver
.findElement(By.xpath("(//div[@data-aura-class='forceToastMessage']//div)[1]/div"));
waitVisibleMethod(driver, messageElement);
String actualSuccessMessage = messageElement.getText();
// toastMessage slds-text-heading--small forceActionsText
System.out.println("Message is " + actualSuccessMessage);
Assert.assertEquals(actualSuccessMessage, SuccessMessage);
driver.close();
}
}
|
[
"villuvicky15@gmail.com"
] |
villuvicky15@gmail.com
|
ecdf1896a095e3fa6d757044057b570d73362c1c
|
f941d3782bbec7aa33b56f0a34521f46afecd5a4
|
/p2021_06_24/StaticTest01.java
|
69cb6cca3599b340516b24ca36dbb457e56ee791
|
[] |
no_license
|
holioud/academy_java
|
3b6b827b95d6523934dc5db401f4686572539566
|
8d5471d8a9253a8a8281b420e5e6c7ebdb4ede2f
|
refs/heads/main
| 2023-06-30T02:21:16.841458
| 2021-07-29T09:26:43
| 2021-07-29T09:26:43
| 387,628,641
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 740
|
java
|
package p2021_06_24;
class StaticTest{
static int a=10; // 정적 필드
int b=20; // 인스턴스 멤버변수
}
class StaticTest01 {
public static void main(String[] args){
System.out.println("StaticTest.a->" + StaticTest.a);
StaticTest s1 = new StaticTest();
StaticTest s2 = new StaticTest();
System.out.println("s1.a->" + s1.a + "\t s2.a->" + s2.a);
System.out.println("s1.b->" + s1.b + "\t s2.b->" + s2.b);
s1.a=100;
System.out.print("s1.a->" + s1.a );
System.out.println("\t s2.a->" + s2.a+" ");
System.out.println(StaticTest.a);
s1.b=200;
System.out.print("s1.b->" + s1.b);
System.out.println("\t s2.b->" + s2.b);
}
}
|
[
"noreply@github.com"
] |
holioud.noreply@github.com
|
ae098f9f730645133b6f67312158000ee41213ab
|
cc209c2a1844bce4d2055aedecbf9544670b3a01
|
/CustomView/app/src/androidTest/java/me/li2/customview/ApplicationTest.java
|
793b9c04372510ba03d13e1991712c3ee5eede22
|
[] |
no_license
|
rtk4616/learning-android-open-source
|
a4c1fc83a84582534aea864e5ec6e9d3523876e0
|
41acf150e8135bbf8f11f9297450c21539682867
|
refs/heads/master
| 2020-03-24T17:44:49.820408
| 2017-01-16T07:10:53
| 2017-01-16T07:10:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 348
|
java
|
package me.li2.customview;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
|
[
"weiyi.just2@gmail.com"
] |
weiyi.just2@gmail.com
|
8936ea6fb927a9e4de69100b584d2aed4113afc9
|
afeeefba152b8d6bd4291a22c2eff6efb46fa22d
|
/w4-quest5-part1/src/edu/neit/jonathandoolittle/Chihuahua.java
|
fac79bfd043ddf3e28bce28715b55c9db8189f1f
|
[] |
no_license
|
jdoolittle126/se402-master
|
09102b50e2d84c4d2fdbde2091c3a88cd1bc6474
|
b534ae9b7538854b7b7d982e25871122b1f91824
|
refs/heads/main
| 2023-08-12T15:36:28.860233
| 2021-09-27T20:23:41
| 2021-09-27T20:23:41
| 388,947,510
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 519
|
java
|
package edu.neit.jonathandoolittle;
/**
* The Chihuahua is one of the smallest
* breeds of dog, and is named after the
* Mexican state of Chihuahua.
*
* @author Jonathan Doolittle
* @version 0.1 - Aug 10, 2021
* @see Dog
*/
public class Chihuahua extends Dog {
// ******************************
// Constructors
// ******************************
/**
* Creates a new Chihuahua instance
*/
public Chihuahua() {
breed = "Chihuahua";
bark = "yip yip yip";
size = "small";
color = "tan";
}
}
|
[
"jdoolittle126@gmail.com"
] |
jdoolittle126@gmail.com
|
e7cfcf16c5039ae68de809ac09a61274a44bac89
|
126c3877fc380a6d30c0e2241fcea3e3831c383a
|
/src/main/java/org/fundacionjala/app/quizz/console/QuestionUIMenu.java
|
72f5d3a0e3c3ed3062216e50404809534084f841
|
[] |
no_license
|
VladeCV/VladeCV-QUIZJAVA
|
2fef90465092a1ed5bd5ccccf7e5c6a2d07db05b
|
ba4d93db4e05713e3890ca8b7b0a3643d3061aef
|
refs/heads/master
| 2023-02-27T07:38:46.832346
| 2021-01-27T03:30:39
| 2021-01-27T03:30:39
| 333,245,826
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,389
|
java
|
package org.fundacionjala.app.quizz.console;
import java.util.ArrayList;
import java.util.List;
import org.fundacionjala.app.quizz.model.Question;
import org.fundacionjala.app.quizz.model.QuestionType;
import org.fundacionjala.app.quizz.model.validator.ValidatorType;
import org.fundacionjala.app.quizz.model.Question.QuestionBuilder;
public class QuestionUIMenu {
public static Question handleCreateQuestion() {
QuestionUIMenu menu = new QuestionUIMenu();
String title = menu.askQuestionTitle();
QuestionType questionType = menu.askQuestionType();
if (questionType == null) {
return null;
}
QuestionBuilder builder = new QuestionBuilder(title, questionType);
if (questionType.hasAdditionalData()) {
builder.setAdditionalData(menu.askAdditionalData());
}
while (true) {
ValidatorType validator = menu.askValidation(questionType, builder.getValidations());
if (validator == null || builder.addValidation(validator)) {
break;
}
}
return builder.build();
}
private ValidatorType askValidation(QuestionType questionType, List<ValidatorType> validations) {
System.out.println("Select a validation to add");
for (ValidatorType validation : questionType.getValidations()) {
if (validations.contains(validation)) {
continue;
}
System.out.printf("%d. %s" + System.lineSeparator(), validation.getCode(), validation.getName());
}
System.out.println("0. To exit");
char option = readOption();
if (option == '0') {
return null;
}
return ValidatorType.getByCode(Character.getNumericValue(option));
}
private List<String> askAdditionalData() {
List<String> additionalData = new ArrayList<>();
boolean shouldExit = false;
do {
System.out.println("Select an action:");
System.out.println("1. Add question option");
System.out.println("0. Exit");
char option = readOption();
switch (option) {
case '1':
System.out.println("Option value");
System.out.print("> ");
additionalData.add(System.console().readLine());
break;
case '0':
shouldExit = true;
break;
default:
System.out.println("Invalid option");
break;
}
} while (!shouldExit);
return additionalData;
}
private QuestionType askQuestionType() {
System.out.println("Select a question to add");
for (QuestionType type : QuestionType.values()) {
System.out.printf("%d. %s" + System.lineSeparator(), type.getCode(), type.getName());
}
char option = readOption();
return QuestionType.getByCode(Character.getNumericValue(option));
}
private String askQuestionTitle() {
System.out.println("Type the question title");
System.out.print("> ");
return System.console().readLine();
}
private char readOption() {
System.out.print("> ");
return System.console().readLine().trim().charAt(0);
}
}
|
[
"vladimircabrecabri@gmail.com"
] |
vladimircabrecabri@gmail.com
|
5c90db524180fd5c370255ea77719b4f2c14360d
|
6121bbb9a78eccca5b4607ab344afb38043b2023
|
/JPR18.java
|
e0a31f2f35d5d1c5484972d6c396623ba61adfbb
|
[] |
no_license
|
vaibhaviDixit/13Vaibhavi
|
26424a5bf241d912e6b8d5d2acd6b0833e0141fb
|
6e3619ed3a445ee905a958c9e3e29823f4517202
|
refs/heads/master
| 2023-08-30T22:53:26.452595
| 2021-09-27T06:00:48
| 2021-09-27T06:00:48
| 394,138,563
| 2
| 2
| null | 2021-08-11T04:15:26
| 2021-08-09T03:42:17
|
Java
|
UTF-8
|
Java
| false
| false
| 1,257
|
java
|
package com.google;
public class JPR18 {
public static void main(String[] args) {
int y1 =5;
int y2=3;
int amount=161258;
float EMI;
//calculating emi for principal = 161258 , years=5 years, rate=5% per month:
// EMI = P × r × (1 + r)^n / ((1 + r)^n - 1)
// where P= Loan amount, r= interest rate, n=tenure in number of months.
//n= 5 years*12=60 months
float r=(5.0f/100);
float rpl1=1+r;
float numerator= (float) (amount*r*Math.pow(rpl1,60));
float denom= (float) (Math.pow(rpl1,60)-1);
EMI=numerator/denom;
System.out.println("EMI for amount "+amount+" of "+y1+" Years is: "+EMI);
//calculating emi for principal = 161258 , years=3 years, rate=5% per month:
// EMI = P × r × (1 + r)^n / ((1 + r)^n - 1)
// where P= Loan amount, r= interest rate, n=tenure in number of months.
//n= 3 years*12=36 months
r=(5.0f/100);
rpl1=1+r;
numerator= (float) (amount*r*Math.pow(rpl1,36));
denom= (float) (Math.pow(rpl1,36)-1);
EMI=numerator/denom;
System.out.println("EMI for amount "+amount+" of "+y1+" Years is: "+EMI);
}
}
|
[
"vaibhavidixit511@gmail.com"
] |
vaibhavidixit511@gmail.com
|
31deed58369864a0dd42bbcfde8351db4a485a5a
|
163a9c11093f982532ec0eebfe0b7a7d88f22557
|
/custom/ncip/ncipstorefront/web/src/com/ncip/storefront/controllers/cms/ProductFeatureComponentController.java
|
3fcbf26fa79662abbbe26c858617f4f49abfae3b
|
[] |
no_license
|
green-jin/green
|
9fa5809af26e4da0af6a979379544964f9fdd45e
|
f9ccc1cc2ca97c4bc8e55d7477c798ea598f5059
|
refs/heads/master
| 2020-08-08T10:26:16.816508
| 2019-08-22T09:11:21
| 2019-08-22T09:11:21
| 213,811,708
| 0
| 0
| null | 2020-04-30T12:28:24
| 2019-10-09T03:24:59
|
Java
|
UTF-8
|
Java
| false
| false
| 2,031
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package com.ncip.storefront.controllers.cms;
import de.hybris.platform.acceleratorcms.model.components.ProductFeatureComponentModel;
import de.hybris.platform.commercefacades.product.ProductFacade;
import de.hybris.platform.commercefacades.product.ProductOption;
import de.hybris.platform.commercefacades.product.data.ProductData;
import de.hybris.platform.core.model.product.ProductModel;
import com.ncip.storefront.controllers.ControllerConstants;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Controller for CMS ProductFeatureComponent
*/
@Controller("ProductFeatureComponentController")
@RequestMapping(value = ControllerConstants.Actions.Cms.ProductFeatureComponent)
public class ProductFeatureComponentController extends AbstractAcceleratorCMSComponentController<ProductFeatureComponentModel>
{
protected static final List<ProductOption> PRODUCT_OPTIONS = Arrays.asList(ProductOption.BASIC, ProductOption.PRICE,
ProductOption.SUMMARY);
@Resource(name = "productVariantFacade")
private ProductFacade productFacade;
@Override
protected void fillModel(final HttpServletRequest request, final Model model, final ProductFeatureComponentModel component)
{
final ProductModel product = component.getProduct();
if (product != null)
{
final ProductData productData = productFacade.getProductForOptions(product, PRODUCT_OPTIONS);
model.addAttribute("product", productData);
}
}
}
|
[
"cinygho@gmail.comtw"
] |
cinygho@gmail.comtw
|
2757cebfb1804a5522625d782445f8af7af79fef
|
1565429dceb4cc81f030391504d9f40ce0a2e363
|
/src/main/java/pl/perlaexport/filmmap/user/login/service/LoginService.java
|
0105838c3d4aa6525592a57cdecbb8fb3b1b5eb7
|
[] |
no_license
|
perlaExport/filmMap-server
|
89d31736ac56164adba63812899d69911c52b906
|
de3d37940e04f634fe815e65b069b6033b203df7
|
refs/heads/master
| 2023-02-18T11:24:04.246859
| 2021-01-19T11:37:11
| 2021-01-19T11:37:11
| 305,450,061
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 251
|
java
|
package pl.perlaexport.filmmap.user.login.service;
import pl.perlaexport.filmmap.user.login.dto.LoginDto;
import pl.perlaexport.filmmap.user.login.response.ResponseLogin;
public interface LoginService {
ResponseLogin login(LoginDto loginDto);
}
|
[
"reclawjerzy@gmail.com"
] |
reclawjerzy@gmail.com
|
bc24a23f355f317ed875abd2c24edd8e03f7df96
|
57a3238a6400e11aedcdae684b6b8919ffc273a6
|
/src/main/java/com/zhiku/view/ColParagraphView.java
|
0157ad9ecace1d0afef87c0494cbef9fa73f49b6
|
[] |
no_license
|
zhikuengineeringdepartment/Elearning
|
c8617d645810a79bafcc3a58bc96db756d4b78e3
|
e5a963f8d11f2b8bd5e88bdd2c7310f87390b18e
|
refs/heads/master
| 2022-11-17T22:20:01.268209
| 2019-06-25T07:38:09
| 2019-06-25T07:38:09
| 176,854,227
| 5
| 4
| null | 2022-11-16T10:33:38
| 2019-03-21T02:27:22
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 2,035
|
java
|
package com.zhiku.view;
import com.zhiku.entity.ColParagraph;
public class ColParagraphView extends ColParagraph {
private Integer paragraphSeq;
private Integer paragraphKnowledge;
private String paragraphType;
private String paragraphNewline;
private String paragraphContent;
private Integer cid;
private String courseName;
private String courseDesc;
private String courseIcon;
public void setParagraphSeq(Integer paragraphSeq) {
this.paragraphSeq = paragraphSeq;
}
public void setParagraphKnowledge(Integer paragraphKnowledge) {
this.paragraphKnowledge = paragraphKnowledge;
}
public void setParagraphType(String paragraphType) {
this.paragraphType = paragraphType;
}
public void setParagraphNewline(String paragraphNewline) {
this.paragraphNewline = paragraphNewline;
}
public void setParagraphContent(String paragraphContent) {
this.paragraphContent = paragraphContent;
}
public void setCid(Integer cid) {
this.cid = cid;
}
public void setCourseName(String courseName) {
this.courseName = courseName;
}
public void setCourseDesc(String courseDesc) {
this.courseDesc = courseDesc;
}
public void setCourseIcon(String courseIcon) {
this.courseIcon = courseIcon;
}
public Integer getParagraphSeq() {
return paragraphSeq;
}
public Integer getParagraphKnowledge() {
return paragraphKnowledge;
}
public String getParagraphType() {
return paragraphType;
}
public String getParagraphNewline() {
return paragraphNewline;
}
public String getParagraphContent() {
return paragraphContent;
}
public Integer getCid() {
return cid;
}
public String getCourseName() {
return courseName;
}
public String getCourseDesc() {
return courseDesc;
}
public String getCourseIcon() {
return courseIcon;
}
}
|
[
"530379451@qq.com"
] |
530379451@qq.com
|
c5f11df1edbeff10d9b8e90b14e8f14404e89500
|
1304d36adcb15015c17a8fee1fb2ab5a42365265
|
/src/main/java/frc/robot/Robots/Subsystems.java
|
b8bd3a1a16777de67d6f3d113d70dbf6f5b02189
|
[] |
no_license
|
FRC4130/Damien-2019
|
a503188dacd1f68f916280799cffa2895caa2a9a
|
163a941833cab2d6b093e5fe5cb703eee0f5c868
|
refs/heads/master
| 2020-06-26T05:26:52.238584
| 2019-08-15T01:24:27
| 2019-08-15T01:24:27
| 199,547,214
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 941
|
java
|
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc.robot.Robots;
import frc.robot.Subsystems.DriveTrain;
import frc.robot.Subsystems.Elevator;
import frc.robot.Subsystems.Intake;
public class Subsystems {
public static DriveTrain driveTrain;
public static Elevator elevator;
public static Intake intake;
public static void Init() {
driveTrain = new DriveTrain();
elevator = new Elevator();
intake = new Intake();
}
}
|
[
"34586069+crochon@users.noreply.github.com"
] |
34586069+crochon@users.noreply.github.com
|
d0dd05571d4ebd8e08e008ea22b401c13a77f5c7
|
67bb9dd965a5e4e1bdabe73a24b5435391c35776
|
/SNMP + Sockets + Chat Java application/src/projet_semes_test/son.java
|
d2c29fa4d6b371e4249108076d6876b7da840482
|
[] |
no_license
|
WissemAchour/Programming-Projects
|
9dcdb6149134d623c02ddf836138579542daa2ec
|
87a51b63a0796807b69065fe27329486f5c57eec
|
refs/heads/master
| 2016-09-07T05:59:17.267544
| 2013-12-16T16:02:23
| 2013-12-16T16:02:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 891
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package projet_semes_test;
import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import sun.audio.*;
/**
*
* @author Wissem
*/
public class son {
String name;
InputStream in;
AudioStream au;
public son(String name) throws FileNotFoundException, IOException {
this.name="./src/sound/"+name;
in = new FileInputStream(this.name);
au = new AudioStream(in);
}
public void start() throws FileNotFoundException, IOException{
AudioPlayer.player.start(au);
}
public void stop() throws FileNotFoundException, IOException{
AudioPlayer.player.stop(au);
}
public static void main(String args[]) throws FileNotFoundException, IOException {
son s = new son("nudge.wav");
s.start();
}
}
|
[
"achourwissem@hotmail.fr"
] |
achourwissem@hotmail.fr
|
3a85d26dad479d30b037ae9a6ea9188196175685
|
f3efbb32297ff0d444ac34932a84eebd363ac465
|
/src/Princess.java
|
41bc5fc1123328d0eb7addb1760ad5e46d10e433
|
[] |
no_license
|
NamSeonw/java
|
5dfdd110ad9de22a55cbc3f3df838c7cd3c9a96d
|
c353c6dce716158d377dba92826fc8add28309eb
|
refs/heads/master
| 2020-08-03T13:31:47.605033
| 2019-09-30T03:01:34
| 2019-09-30T03:01:34
| 211,768,529
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 504
|
java
|
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
public class Princess {
private int x;
private int y;
Image img;
public Princess() {
x = 45;
y = 580;
Toolkit tk = Toolkit.getDefaultToolkit();
img = tk.getImage("res/princess.png");
}
public void wakeUp() {
}
public void move() {
x += 50;
}
public void draw(Graphics g, GameCanvas gamecanvas) {
g.drawImage(img, x , y, x+215, y+270, 50, 10, 686, 389, gamecanvas);
}
}
|
[
"skatjsdn44@naver.com"
] |
skatjsdn44@naver.com
|
b2dc4d81f22fbbcdfa3e0b48d65a4e34df02c382
|
dbeb20d3fcb55948bd20da9dc04bf0466d0b270b
|
/src/de/SebastianMikolai/PlanetFx/ServerSystem/SSMaster/NPC/GameAktualisierenScheduler.java
|
b8fb2fee8adb2573027ee0ca51b95334c22b8f1b
|
[] |
no_license
|
PlanetFxMedia/SSMaster
|
6e6ff67375cceb752c539e640a1d10fbf95fb4ed
|
434d3950f58980ac8228f7760105e4fb17dae405
|
refs/heads/master
| 2020-04-06T07:02:33.760519
| 2016-09-15T14:55:02
| 2016-09-15T14:55:02
| 65,642,413
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,543
|
java
|
package de.SebastianMikolai.PlanetFx.ServerSystem.SSMaster.NPC;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import de.SebastianMikolai.PlanetFx.ServerSystem.SSMaster.MinecraftServer.MinecraftServer;
import de.SebastianMikolai.PlanetFx.ServerSystem.SSMaster.MinecraftServer.MinecraftServerManager;
import de.SebastianMikolai.PlanetFx.ServerSystem.SSMaster.MinecraftServer.MinecraftServerStatus;
import de.SebastianMikolai.PlanetFx.ServerSystem.SSMaster.Utils.ItemStacks;
public class GameAktualisierenScheduler implements Runnable {
private final Player p;
private String name;
private String gamename;
private String modi;
private int TaskID;
public GameAktualisierenScheduler(Player _p, String _name, String _gamename, String _modi) {
p = _p;
name = _name;
gamename = _gamename;
modi = _modi;
}
@Override
public void run() {
Inventory inv = Bukkit.createInventory(null, 27, "Game: " + name);
int i = 0;
for (MinecraftServer mcs : MinecraftServerManager.getInstance().getMinecraftServers().values()) {
if (mcs.getBungeeCordServername().contains(gamename) && mcs.getModi().equalsIgnoreCase(modi) && mcs.getStatus() != MinecraftServerStatus.Running && i < 7) {
inv.setItem(10 + i, ItemStacks.getMinecraftServer(mcs));
i++;
}
}
TaskID = NPCInventory.TaskIDGameAktualisierenScheduler.get(p);
NPCInventory.TaskIDGameAktualisierenScheduler.remove(p);
p.openInventory(inv);
NPCInventory.TaskIDGameAktualisierenScheduler.put(p, TaskID);
}
}
|
[
"sebastian.mikolai@gmail.com"
] |
sebastian.mikolai@gmail.com
|
15548b003c60b1a14599a8e1aadc57ee7f2b244a
|
2fd5fba92dad912f46fb8fdb13b27f907f7c98d9
|
/src/main/java/Main.java
|
60b1bbe6cd1fd7de728c498c4c97a8aa4daafe73
|
[] |
no_license
|
Shinjice/AccuWeatherApi
|
d26abc8dc562a0ed6d3ee7f230c0ebc2de1ff8a6
|
35fc76917edb253affcc43313dad44b5e644fe23
|
refs/heads/master
| 2023-06-07T23:47:12.395530
| 2023-06-02T13:42:28
| 2023-06-02T13:42:28
| 297,361,409
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 102
|
java
|
public class Main {
public static void main(String[] args) {
Weather.doHttpGet();
}
}
|
[
"Tdna84@gmail.com"
] |
Tdna84@gmail.com
|
6580cf0cf666c8b7fda944f45f96f76144740b65
|
4dcb56032dded81baf5bc29cd48264d9804c8182
|
/src/cn/guangtong/test/TestDemo2.java
|
8554d4b04fd6f38cd5ebcc9d76b0439ca45f693c
|
[] |
no_license
|
jammyluo/CAS_Guangtong
|
78ce690dd9bcd590627c8154b99c53135e3688bb
|
4ce259791bcd4c0ff7cbcb0c2ad1d955d31f8420
|
refs/heads/master
| 2020-03-29T08:45:36.778321
| 2017-08-18T10:14:05
| 2017-08-18T10:14:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,167
|
java
|
package cn.guangtong.test;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Date;
public class TestDemo2 implements ActionListener{
private int id;
private String name;
private Date time;
public float num;
public char cc;
public boolean bl;
public void testA(){
System.out.println("AAA");
}
public String testS(){
System.out.println("SSS");
return name+"ssss";
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getTime() {
return time;
}
public void setTime(Date time) {
this.time = time;
}
public float getNum() {
return num;
}
public void setNum(float num) {
this.num = num;
}
public char getCc() {
return cc;
}
public void setCc(char cc) {
this.cc = cc;
}
public boolean isBl() {
return bl;
}
public void setBl(boolean bl) {
this.bl = bl;
}
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}
}
|
[
"2398300521@qq.com"
] |
2398300521@qq.com
|
e09d8020265d08f8a63a6a97b0f2b3620b67db91
|
85f6abfcb888a1576410324bc30cde05c8630365
|
/app/src/main/java/ali_class/assignment6_newsapp/MainActivity.java
|
53c0a9f5260e4b2e41eca97d1d058761a5fedcdc
|
[] |
no_license
|
MAIMAI728/Assignment6_newsApp
|
b7459d3cea288d3d411743265066feafb4ed61e2
|
5f11119eb001507667792ef5da1ccd09cac9a7ca
|
refs/heads/master
| 2021-07-09T08:17:16.080240
| 2017-10-10T05:20:52
| 2017-10-10T05:20:52
| 106,370,302
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 342
|
java
|
package ali_class.assignment6_newsapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
|
[
"m7a2i8@gmail.com"
] |
m7a2i8@gmail.com
|
494467e0a33b56c556f8169b00a5a31c88ff8f9b
|
5f236be85b10df0b634efb6bc38b9cfb117b8c71
|
/src/seniorproject/hearts/HeartsScores.java
|
38219392d6bd194d09d0331e9c14541222176962
|
[] |
no_license
|
andrewchimento/Senior-Project
|
14bbe36bc4d147702e98779c92c19cbc0cb2a7bb
|
2238016deaf0cc647083affeab6526bda98416b5
|
refs/heads/master
| 2021-01-22T04:10:02.085553
| 2017-07-10T17:31:10
| 2017-07-10T17:31:10
| 92,435,223
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,726
|
java
|
package seniorproject.hearts;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.Box;
import javax.swing.JLabel;
import javax.swing.JPanel;
/**
* This class keeps track of the display of the scores for all players of Hearts
*
* It breaks down the scores based on the round
* It is displayed after each round and at the end of the game
*
* @author Andrew
*/
public class HeartsScores extends JPanel{
private static final long serialVersionUID = 1L;
// names row gui objects
private JLabel handLabel;
private JLabel humanLabel;
private JLabel leftLabel;
private JLabel acrossLabel;
private JLabel rightLabel;
private final String HAND_TEXT = "Hand | ";
private final String HUMAN_TEXT = "You | ";
private final String LEFT_TEXT = "Left | ";
private final String ACROSS_TEXT = "Across | ";
private final String RIGHT_TEXT = "Right";
// total scores gui objects
private JLabel totalScoreLabel;
private JLabel humanTotalLabel;
private JLabel leftTotalLabel;
private JLabel acrossTotalLabel;
private JLabel rightTotalLabel;
private final String TOTAL_TEXT = "Total";
/**
* The default constructor for a HeartsScores object
*
* @return a default HeartsScores object
*/
public HeartsScores(){
setLayout(new GridBagLayout());
// init gui objects
handLabel = new JLabel();
humanLabel = new JLabel();
leftLabel = new JLabel();
acrossLabel = new JLabel();
rightLabel = new JLabel();
totalScoreLabel = new JLabel();
humanTotalLabel = new JLabel();
leftTotalLabel = new JLabel();
acrossTotalLabel = new JLabel();
rightTotalLabel = new JLabel();
// set up label texts
handLabel.setText(HAND_TEXT);
humanLabel.setText(HUMAN_TEXT);
leftLabel.setText(LEFT_TEXT);
acrossLabel.setText(ACROSS_TEXT);
rightLabel.setText(RIGHT_TEXT);
totalScoreLabel.setText(TOTAL_TEXT);
// setup names row
addToRow(0, handLabel, humanLabel, leftLabel, acrossLabel, rightLabel);
// setup total scores row
// set to ridiculously high number to ensure it's always at the bottom
addToRow(1000, totalScoreLabel, humanTotalLabel, leftTotalLabel, acrossTotalLabel, rightTotalLabel);
}
/**
* Adds a group of 5 elements to a single row
*
* The number of the row is given to position the elements of the row from the top
*
* @param rowNum the number of the row, ascending from top to bottom
* @param elemOne the element in the first column
* @param elemTwo the element in the second column
* @param elemThree the element in the third column
* @param elemFour the element in the fourth column
* @param elemFive the element in the fifth column
*/
private void addToRow(int rowNum, JLabel elemOne, JLabel elemTwo, JLabel elemThree, JLabel elemFour, JLabel elemFive){
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridy = rowNum;
JLabel[] elements = {elemOne, elemTwo, elemThree, elemFour, elemFive};
for(int i = 0; i < 5; i++){
gbc.gridx = i;
add(elements[i], gbc);
if(i != 4){
gbc.gridx = i + 1;
add(Box.createRigidArea(new Dimension(10, 1)), gbc);
}
}
}
/**
* Updates all of the scores from the players of the game of Hears
*
* @param heartsModel the Hearts model which the scores are based on
*/
public void updateScores(HeartsModel heartsModel) {
JLabel handNumberLabel = new JLabel();
// at this point, the new game is set up, so we're on the round after this one
int roundNumber = heartsModel.getRoundNumber() - 1;
handNumberLabel.setText(Integer.toString(roundNumber));
// setup player round scores
JLabel humanScoreLabel = new JLabel();
humanScoreLabel.setText(Integer.toString(heartsModel.getHumanPlayer().getRoundPoints(roundNumber)));
JLabel leftScoreLabel = new JLabel();
leftScoreLabel.setText(Integer.toString(heartsModel.getLeftPlayer().getRoundPoints(roundNumber)));
JLabel acrossScoreLabel = new JLabel();
acrossScoreLabel.setText(Integer.toString(heartsModel.getAcrossPlayer().getRoundPoints(roundNumber)));
JLabel rightScoreLabel = new JLabel();
rightScoreLabel.setText(Integer.toString(heartsModel.getRightPlayer().getRoundPoints(roundNumber)));
// add hand row
addToRow(roundNumber, handNumberLabel, humanScoreLabel, leftScoreLabel, acrossScoreLabel, rightScoreLabel);
// update total scores
humanTotalLabel.setText(Integer.toString(heartsModel.getHumanPlayer().getScore()));
leftTotalLabel.setText(Integer.toString(heartsModel.getLeftPlayer().getScore()));
acrossTotalLabel.setText(Integer.toString(heartsModel.getAcrossPlayer().getScore()));
rightTotalLabel.setText(Integer.toString(heartsModel.getRightPlayer().getScore()));
}
}
|
[
"andrewchimento@gmail.com"
] |
andrewchimento@gmail.com
|
080a5f3a3b077f66c6b38139c185d7df1af5cb4a
|
5df38fdd2541c5d11f6884d5e6d675ac1517ba13
|
/考试系统/taoshuxuan/TaoShuXuan/src/com/bookshop/entity/Catagory.java
|
922cd1e854ffd3118d05ed42929e6e2b90f2e636
|
[] |
no_license
|
liubag/test0325
|
999b38040adf413987bba5c37764baebce43ccf0
|
a53bdf74f617ece5a40837f0d6a2ee5e853317ec
|
refs/heads/master
| 2020-06-06T09:41:15.362177
| 2014-03-25T09:14:17
| 2014-03-25T09:17:02
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,424
|
java
|
package com.bookshop.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
* 图书分类
*/
@SuppressWarnings("serial")
@Entity
@Table(name="tb_catagory")
public class Catagory implements Serializable {
/**
* 编号
*/
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private Integer catagory_id;
/**
* 分类名称
*/
@Column(nullable=false)
private String catagory_name;
/**
* 分类级别
* 1:父类
* 2:子类
*/
@Column(nullable=false)
private String catagory_level;
/**
* 创建时间
*/
@Column(nullable=false)
private Date create_date;
/**
* 父类
*/
@ManyToOne(optional=true,targetEntity=Catagory.class,fetch=FetchType.EAGER)
@JoinColumn(name="catagory_parent",nullable=true)
private Catagory catagory_parent;
/**
* 图书分类的折扣
* 0到1之间的小数
* 初始值为1
*/
@Column(nullable=false)
private float discount;
/**
* 图书分类折扣设置的时间
*/
@Column(nullable=false)
private Date discount_date;
public Integer getCatagory_id() {
return catagory_id;
}
public void setCatagory_id(Integer catagory_id) {
this.catagory_id = catagory_id;
}
public String getCatagory_name() {
return catagory_name;
}
public void setCatagory_name(String catagory_name) {
this.catagory_name = catagory_name;
}
public String getCatagory_level() {
return catagory_level;
}
public void setCatagory_level(String catagory_level) {
this.catagory_level = catagory_level;
}
public Date getCreate_date() {
return create_date;
}
public void setCreate_date(Date create_date) {
this.create_date = create_date;
}
public Catagory getCatagory_parent() {
return catagory_parent;
}
public void setCatagory_parent(Catagory catagory_parent) {
this.catagory_parent = catagory_parent;
}
public void setDiscount(float discount) {
this.discount = discount;
}
public float getDiscount() {
return discount;
}
public void setDiscount_date(Date discount_date) {
this.discount_date = discount_date;
}
public Date getDiscount_date() {
return discount_date;
}
}
|
[
"58588710@qq.com"
] |
58588710@qq.com
|
6d12ae2b5fdc7d779104437f6d1f9d0496de6636
|
fc878bc6827ae7b5fb3c2444aee1a1e5562c7c27
|
/framework/src/test/java/com/suredy/unit/test/MyTest.java
|
5106b4f2cb1de17b9da7b687090f8850d863dfc2
|
[
"MIT"
] |
permissive
|
ynbz/framework
|
1c18902214277fee6f649c27f1fb7ffe8ac87ca2
|
65effc284952e9f8ab99bfffb627d7e0d10cd79f
|
refs/heads/master
| 2020-04-26T16:48:18.417488
| 2019-03-04T07:15:00
| 2019-03-04T07:15:00
| 173,690,470
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 760
|
java
|
package com.suredy.unit.test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import com.suredy.security.entity.OrgEntity;
import com.suredy.security.service.OrgSrv;
@ContextConfiguration(locations = {"file:src/main/webapp/WEB-INF/springMVC-servlet.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
public class MyTest {
@Autowired
private OrgSrv orgSrv;
@Test
public void test() {
OrgEntity e = orgSrv.readSingleByEntity(null);
this.orgSrv.update(e);
}
}
|
[
"g.x.p@hotmail.com"
] |
g.x.p@hotmail.com
|
efb48104231da36032928768b539430697cf7eba
|
d19b871d8e832e011960483f3fa3eb55d4aec41f
|
/app/src/main/java/com/example/android/tic_tac_toe/StartscreenActivity.java
|
5bbbfaef91fd215838e8296047e07226e8c3c547
|
[] |
no_license
|
katherine95/tictactoe
|
7b39aed2ac9b6f59b9f253ad776dafdde6236f70
|
888740de2135af292b6989d10d9c9902e31f71bf
|
refs/heads/master
| 2020-03-11T15:49:16.647731
| 2018-04-18T20:41:13
| 2018-04-18T20:41:13
| 130,097,132
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,186
|
java
|
package com.example.android.tic_tac_toe;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
public class StartscreenActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.startscreen);
Button three = (Button) findViewById(R.id.by3_board);
three.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent three = new Intent(StartscreenActivity.this, MainActivity.class);
startActivity(three);
}
});
Button five = (Button) findViewById(R.id.by5_board);
five.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent five = new Intent(StartscreenActivity.this, Main2Activity.class);
startActivity(five);
}
});
}
}
|
[
"kathiekim95@gmail.com"
] |
kathiekim95@gmail.com
|
ce821885ae350e91718d5ecaaf73064269e969b9
|
bec75f898bfa72d9ddea3ce78d4c12e6df4c059a
|
/core/src/main/java/name/pehl/totoe/xml/client/HasChildren.java
|
523ca759f99cd611942649583d758693b5d23f8f
|
[
"Apache-2.0"
] |
permissive
|
hpehl/totoe
|
ac609a5da804060cb87cd4a4eea20e5ce2a161a0
|
24dfdcb259fe6b355144c325d89806a8c549c2da
|
refs/heads/develop
| 2023-06-01T03:17:52.660572
| 2017-11-29T14:42:06
| 2017-11-29T14:42:06
| 6,405,648
| 3
| 1
| null | 2013-07-19T08:01:35
| 2012-10-26T15:05:04
|
Java
|
UTF-8
|
Java
| false
| false
| 2,485
|
java
|
package name.pehl.totoe.xml.client;
import java.util.List;
/**
* @userAgent There are differences between browsers when reading child nodes
* regarding white-spaces and new lines. See <a
* href="http://www.w3schools.com/dom/dom_mozilla_vs_ie.asp"
* >www.w3schools.com</a> for more information.
* @author $Author$
* @version $Date$ $Revision: 43
* $
*/
public interface HasChildren
{
/**
* Returns all nodes which are direct children of the implementing node.
* Returns an empty list if the node has no children.
*
* @return all nodes which are direct children of the implementing node or
* an empty list, if the node has no children.
*/
List<Node> getChildren();
/**
* Returns all nodes which are direct children of the implementing node and
* which are of the specified type. Returns an empty list if the node has no
* children.
*
* @param <T>
* the instance type to filter for
* @param type
* the node type to filter for
* @return all nodes which are direct children of the implementing node and
* which are of the specified type or an empty list, if the node has
* no children.
*/
<T extends Node> List<T> getChildren(NodeType type);
/**
* Returns <code>true</code> if the implementing node has children,
* <code>false</code> otherwise.
*
* @return <code>true</code> if the implementing node has children,
* <code>false</code> otherwise.
*/
boolean hasChildren();
/**
* Returns <code>true</code> if the implementing node has children of the
* specified type, <code>false</code> otherwise.
*
* @return <code>true</code> if the implementing node has children of the
* specified type, <code>false</code> otherwise.
*/
boolean hasChildren(NodeType type);
/**
* Returns the first child of the implementing node.
*
* @return the first child of this node or <code>null</code> if the node has
* no children.
*/
Node getFirstChild();
/**
* Returns the last child of the implementing node.
*
* @return the last child of the implementing node or <code>null</code> if
* the node has no children.
*/
Node getLastChild();
}
|
[
"harald.pehl@gmail.com"
] |
harald.pehl@gmail.com
|
78844fdd76700e9d5586171c0a3395e3e8b4372f
|
15d7b6825bfdac89bc1b928014f8ba0a55bc8672
|
/springevidence/src/main/java/com/example/springevidence/Controller/HomeController.java
|
aa74f8bd0d2627e044f08db881b3a2718a1fa5b4
|
[] |
no_license
|
mortozafsti/Hibernate_Spring_Jsf
|
e6c012230f9e59504202c08678d52a1eceacbd98
|
07bd207872c4e62b1de422d10b740f04b6f9c79e
|
refs/heads/master
| 2020-04-12T14:17:22.111024
| 2019-07-11T13:27:36
| 2019-07-11T13:27:36
| 162,547,756
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,744
|
java
|
package com.example.springevidence.Controller;
import com.example.springevidence.Entity.Student;
import com.example.springevidence.Entity.imageOptimizer;
import com.example.springevidence.Repo.Rolerepo;
import com.example.springevidence.Repo.StudentRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import javax.validation.Valid;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Date;
@Controller
public class HomeController {
private static String UPLOAD_FOLDER = "src/main/resources/static/image/";
@Autowired
private imageOptimizer optimizer;
@Autowired
private StudentRepo studentRepo;
@Autowired
private Rolerepo rolerepo;
@GetMapping(value = "/add")
public String add(Student student,Model model){
// System.out.println(this.rolerepo.findAll().size());
model.addAttribute("rolelists", this.rolerepo.findAll());
return "add";
}
@GetMapping(value = "/")
public String index(Model model){
model.addAttribute("lists", this.studentRepo.findAll());
return "index";
}
@PostMapping(value = "/add")
public String save(@Valid Student student, BindingResult bindingResult, Model model, @RequestParam("file") MultipartFile file){
if (bindingResult.hasErrors()){
return "add";
}
try {
byte[] bytes = file.getBytes();
Path path = Paths.get(UPLOAD_FOLDER + file.getOriginalFilename());
Files.write(path, bytes);
student.setFileName("new-" + file.getOriginalFilename());
student.setFileSize(file.getSize());
student.setFilePath("image/" + "new-" + file.getOriginalFilename());
student.setFileExtention(file.getContentType());
student.setRegiDate(new Date());
this.studentRepo.save(student);
model.addAttribute("student", new Student());
optimizer.optimizeImage(UPLOAD_FOLDER, file,0.3f,90,90);
model.addAttribute("rolelists", this.rolerepo.findAll());
}catch (Exception e){
e.printStackTrace();
}
return "add";
}
@PostMapping(value = "/edit/{id}")
public String edit(@Valid Student student, BindingResult bindingResult, Model model, @PathVariable("id") Long id,MultipartFile file){
Student student1 = this.studentRepo.getOne(id);
if (bindingResult.hasErrors()){
return "edit";
}
student.setRegiDate(student1.getRegiDate());
try {
if (file.getOriginalFilename().length() > 0) {
byte[] bytes = file.getBytes();
Path path = Paths.get(UPLOAD_FOLDER + file.getOriginalFilename());
Files.write(path, bytes);
student.setFileName("new-" + file.getOriginalFilename());
student.setFileSize(file.getSize());
student.setFilePath("image/" + "new-" + file.getOriginalFilename());
student.setFileExtention(file.getContentType());
}else{
student.setFileName(student1.getFileName());
student.setFilePath(student1.getFilePath());
student.setFileSize(student1.getFileSize());
student.setFileExtention(student1.getFileExtention());
}
this.studentRepo.save(student);
model.addAttribute("student", new Student());
if (file.getOriginalFilename().length() > 0){
optimizer.optimizeImage(UPLOAD_FOLDER, file,0.3f,90,90);
}
model.addAttribute("rolelists", this.rolerepo.findAll());
}catch (Exception e){
e.printStackTrace();
}
return "redirect:/";
}
@GetMapping(value = "/edit/{id}")
public String editView(Model model, @PathVariable("id") Long id){
model.addAttribute("rolelists", this.rolerepo.findAll());
model.addAttribute("student",this.studentRepo.getOne(id));
return "edit";
}
@GetMapping(value = "/del/{id}")
public String delete(Model model, @PathVariable("id") Long id){
if (id != null){
this.studentRepo.deleteById(id);
}
return "redirect:/";
}
}
|
[
"mortozafsti@gmail.com"
] |
mortozafsti@gmail.com
|
f73f4d63531c57d64d11e3dc66034026cfb7bd2d
|
c254fe5078333ea81f6997d8947daf79a395f968
|
/src/main/java/com/gene/plugin/ioc/Service.java
|
0ea21a87b12d79a8f314689bad26af2d81782cc0
|
[] |
no_license
|
zhanfei790915/jfinal
|
22ba01543a4cfaafc222f908eaf97ca98c06fd75
|
abad58657bacf926d47aa6e5eaadfa900b4529b2
|
refs/heads/master
| 2020-09-06T12:26:48.839099
| 2017-06-16T03:13:06
| 2017-06-16T03:13:06
| 94,418,634
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 465
|
java
|
package com.gene.plugin.ioc;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* 加上此注解并在ioc添加了包路径即可注入
* @author songyang
*
*/
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface Service {
public String value() default "";
}
|
[
"zfd1@163.com"
] |
zfd1@163.com
|
54be875ab5271fc8b6f775ebab2bdd2e0f76ae5f
|
4156e8df9ab22d79cfd3e60b9637fa8dbe2fe23c
|
/Programming/Nevo/app/src/main/java/com/medcorp/network/validic/model/ForgetPasswordModel.java
|
5853677bea5c6a26f19ee22f2dd2bddbebe01983
|
[] |
no_license
|
gaillysu/nevo-android
|
4e4e0470c13597696003027c2007757b26717780
|
0a770be69b3aa5b7245508fffd2fbec4d8f95b48
|
refs/heads/master
| 2021-01-23T14:21:14.505718
| 2017-05-31T03:19:48
| 2017-05-31T03:19:48
| 102,681,949
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,072
|
java
|
package com.medcorp.network.validic.model;
/**
* Created by Jason on 2016/10/12.
*/
public class ForgetPasswordModel {
private int id;
private String email;
private String password_token;
private String password;
public ForgetPasswordModel(int id, String email, String password_token, String password) {
this.id = id;
this.email = email;
this.password_token = password_token;
this.password = password;
}
public void setId(int id){
this.id = id;
}
public void setEmail(String email){
this.email = email;
}
public void setPassword_token(String password_token){
this.password_token = password_token;
}
public void setPassword(String password){
this.password = password;
}
public int getId(){
return this.id;
}
public String getEmail(){
return this.email;
}
public String getPassword_token(){
return this.password_token;
}
public String getPassword(){
return this.password;
}
}
|
[
"xiongcai@med-corp.net"
] |
xiongcai@med-corp.net
|
11727d6a8c2122f80c2ad2fc68fb63cd85dd86ab
|
4192d19e5870c22042de946f211a11c932c325ec
|
/j-hi-20110823/src/org/hi/base/menu/dao/MenuDAO.java
|
3e83de8c984c85d95de3ac7a85cc01f52e9a2081
|
[] |
no_license
|
arthurxiaohz/ic-card
|
1f635d459d60a66ebda272a09ba65e616d2e8b9e
|
5c062faf976ebcffd7d0206ad650f493797373a4
|
refs/heads/master
| 2021-01-19T08:15:42.625340
| 2013-02-01T06:57:41
| 2013-02-01T06:57:41
| 39,082,049
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 113
|
java
|
package org.hi.base.menu.dao;
import org.hi.framework.dao.DAO;
public interface MenuDAO extends DAO{
}
|
[
"Angi.Wang.AFE@gmail.com"
] |
Angi.Wang.AFE@gmail.com
|
40b8b0d5f5c6d8611483b625124d2f68faa9b94f
|
8ccd1c071b19388f1f2e92c5e5dbedc78fead327
|
/src/main/java/ohos/global/resource/BaseFileDescriptor.java
|
0d4fcd32fbc138bd4a9efc7b95575a6d93cec1a7
|
[] |
no_license
|
yearsyan/Harmony-OS-Java-class-library
|
d6c135b6a672c4c9eebf9d3857016995edeb38c9
|
902adac4d7dca6fd82bb133c75c64f331b58b390
|
refs/heads/main
| 2023-06-11T21:41:32.097483
| 2021-06-24T05:35:32
| 2021-06-24T05:35:32
| 379,816,304
| 6
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 310
|
java
|
package ohos.global.resource;
import java.io.Closeable;
import java.io.FileDescriptor;
public abstract class BaseFileDescriptor implements Closeable {
public abstract FileDescriptor getFileDescriptor();
public abstract long getFileSize();
public abstract long getStartPosition();
}
|
[
"yearsyan@gmail.com"
] |
yearsyan@gmail.com
|
bbe521c8c3c2c3a1af1e61876bd56908256cba60
|
9204c0f2964a11eae39ce86e8762e0a3ee7dd91e
|
/serverudpecho/UDPEcho.java
|
7da41400709d286db98507d4d5e06fdeab0f761e
|
[] |
no_license
|
Fabio-Ferro-Peano-5A/chatUDP
|
0bc93f8e819c0d82c72270539708b93e88bea1bd
|
0693031b83888f54d44405cf91cb57fdb42a07bf
|
refs/heads/master
| 2020-08-27T06:57:37.356348
| 2019-11-21T11:44:36
| 2019-11-21T11:44:36
| 217,277,054
| 0
| 0
| null | 2019-10-24T10:55:05
| 2019-10-24T10:55:05
| null |
UTF-8
|
Java
| false
| false
| 4,565
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package serverudpecho;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author ferro.fabio
*/
//utilizzo la classe Clients per memorizzare indirizzo e porta dei clients che si collegano al server
//questo poi mi servira' per poter inviare i messaggi ricevuti da un client a tutti i client connessi
class Clients {
InetAddress addr;
int port;
public Clients(InetAddress addr, int port) {
this.addr = addr;
this.port = port;
}
}
//modifico la classe UDPecho usata dal server echo per uso con la chat
public class UDPEcho implements Runnable {
private DatagramSocket socket;
Clients client = new Clients(InetAddress.getByName("0.0.0.0"), 0);
public UDPEcho(int port) throws SocketException, UnknownHostException {
//avvio il socket per ricevere pacchetti inviati dai vari client
socket = new DatagramSocket(port);
}
public void run() {
ArrayList<String> diecimex = new ArrayList<String>();
DatagramPacket answer; //datagram usato per creare il pacchetto di risposta
byte[] buffer = new byte[8192]; //buffer per contenere il messaggio ricevuto o da inviare
// creo un un datagramma UDP usando il buffer come contenitore per i messaggi
DatagramPacket request = new DatagramPacket(buffer, buffer.length);
//uso hashmap per memorizzare i vari client connessi al server
HashMap<String, Clients> clients = new HashMap<String, Clients>();
//creo un clientID formato da indirizzo e porta IP trasformati in stringa
String clientID;
//la stringa con il messaggio ricevuto
String message;
while (!Thread.interrupted()){
try {
socket.receive(request); //mi metto in attesa di ricevere pacchetto da un clinet
client.addr = request.getAddress(); //e memorizzo indirizzo
client.port = request.getPort(); //e porta
//genero quindi il clientID del client cha ha inviato il pacchetto appena ricevuto
clientID = client.addr.getHostAddress() + client.port;
System.out.println(clientID);
//verifico se il client e' gia' conosciuto o se e' la prima volta che invia un pacchetto
if(clients.get(clientID) == null) {
//nel caso sia la prima volta lo inserisco nella lista
clients.put(clientID, new Clients(client.addr, client.port));
for(int i=0; i<diecimex.size();i++) {
answer = new DatagramPacket(diecimex.get(i).getBytes(), diecimex.get(i).getBytes().length, client.addr, client.port);
socket.send(answer);
}
}
System.out.println(clients);
message = new String(request.getData(), 0, request.getLength(), "ISO-8859-1");
if(message == "quit") {
//client si e' rimosso da chat, lo rimuovo da lista dei client connessi
clients.remove(clientID);
}
if(diecimex.size()<10)
diecimex.add(message);
else {
diecimex.remove(message);
diecimex.add(message);
}
//invio il messaggio ricevuto a tutti i client connessi al server
for(Clients clnt: clients.values()) {
// costruisco il datagram di risposta usando il messaggio appena ricevuto e inviandolo a ogni client connesso
answer = new DatagramPacket(request.getData(), request.getLength(), clnt.addr, clnt.port);
socket.send(answer);
}
} catch (IOException ex) {
Logger.getLogger(UDPEcho.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
}
|
[
"noreply@github.com"
] |
Fabio-Ferro-Peano-5A.noreply@github.com
|
5a5cc91592bf7a2024063ce856946e3208ff5d14
|
13ebce8593e25c191e256315c2494c3b9cb298df
|
/app/src/androidTest/java/com/lookingdynamic/lookingbusy/gameplay/LevelTest.java
|
ef03192ba408dbbfb7cdf06636ea54732b71bc6f
|
[] |
no_license
|
swu06/lookingbusy
|
d7459d49368c57abfa539e970a0820ec24e31cb6
|
b413098bef8b28773cbb18af41795aa0a4a5c4f2
|
refs/heads/master
| 2021-01-19T05:53:56.556474
| 2017-01-19T16:45:52
| 2017-01-19T16:45:52
| 41,980,842
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,692
|
java
|
package com.lookingdynamic.lookingbusy.gameplay;
import android.test.ActivityTestCase;
import com.lookingdynamic.lookingbusy.R;
/**
* Unit tests complete as of 10/11/2015
* Created by swu on 9/14/2015.
*/
public class LevelTest extends ActivityTestCase{
public void testCreateLevelObjectOnlySomeValues() {
Level lvl = new Level(getInstrumentation().getTargetContext().getResources().getXml(R.xml.level1));
assertNotNull("Test Failure: Should create a non-null Level", lvl);
assertEquals("Test Failure: Level 1 Value has changed", "Level 1", lvl.getName());
assertEquals("Test Failure: Level 1 Value has changed", 250, lvl.getPointsToNextLevel());
assertEquals("Test Failure: Level 1 Value has changed", 4, lvl.getPercentChanceOfCreation());
assertEquals("Test Failure: Level 1 Value has changed", 90, lvl.getBalloonPercentCreated());
assertEquals("Test Failure: Level 1 Value has changed", 10, lvl.getBalloonPercentSlow());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBalloonPercentMedium());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBalloonPercentFast());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBalloonPercentSuperFast());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBallPercentCreated());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBallPercentSlow());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBallPercentMedium());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBallPercentFast());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBallPercentSuperFast());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getDropletPercentCreated());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getDropletPercentSlow());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getDropletPercentMedium());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getDropletPercentFast());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getDropletPercentSuperFast());
assertEquals("Test Failure: Level 1 Value has changed", 10, lvl.getRandomBotPercentCreated());
assertEquals("Test Failure: Level 1 Value has changed", 50, lvl.getRandomBotPercentSlow());
assertEquals("Test Failure: Level 1 Value has changed", 50, lvl.getRandomBotPercentMedium());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getRandomBotPercentFast());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getRandomBotPercentSuperFast());
}
public void testCreateLevelObjectMoreValues() {
Level lvl = new Level(getInstrumentation().getTargetContext().getResources().getXml(R.xml.level7));
assertNotNull("Test Failure: Should create a non-null Level", lvl);
assertEquals("Test Failure: Level 7 Value has changed", "Level 7", lvl.getName());
assertEquals("Test Failure: Level 7 Value has changed", 2000, lvl.getPointsToNextLevel());
assertEquals("Test Failure: Level 7 Value has changed", 7, lvl.getPercentChanceOfCreation());
assertEquals("Test Failure: Level 7 Value has changed", 45, lvl.getBalloonPercentCreated());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBalloonPercentSlow());
assertEquals("Test Failure: Level 7 Value has changed", 100, lvl.getBalloonPercentMedium());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBalloonPercentFast());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBalloonPercentSuperFast());
assertEquals("Test Failure: Level 7 Value has changed", 15, lvl.getDropletPercentCreated());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getDropletPercentSlow());
assertEquals("Test Failure: Level 7 Value has changed", 50, lvl.getDropletPercentMedium());
assertEquals("Test Failure: Level 7 Value has changed", 50, lvl.getDropletPercentFast());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getDropletPercentSuperFast());
assertEquals("Test Failure: Level 7 Value has changed", 25, lvl.getBallPercentCreated());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBallPercentSlow());
assertEquals("Test Failure: Level 7 Value has changed", 50, lvl.getBallPercentMedium());
assertEquals("Test Failure: Level 7 Value has changed", 50, lvl.getBallPercentFast());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getBallPercentSuperFast());
assertEquals("Test Failure: Level 7 Value has changed", 10, lvl.getRandomBotPercentCreated());
assertEquals("Test Failure: No value was specified, but one was found", 25, lvl.getRandomBotPercentSlow());
assertEquals("Test Failure: Level 7 Value has changed", 50, lvl.getRandomBotPercentMedium());
assertEquals("Test Failure: Level 7 Value has changed", 25, lvl.getRandomBotPercentFast());
assertEquals("Test Failure: No value was specified, but one was found", 0, lvl.getRandomBotPercentSuperFast());
}
}
|
[
"sarahjanewu@gmail.com"
] |
sarahjanewu@gmail.com
|
d519722c0843e149080618d03237fe9f86e6d449
|
5e6ebfbad837fa296f4ab7f03e41dafbb3636822
|
/app/vo/appSalesMan/AppSalesManHomePageVO.java
|
a7aa76cc07d58e4f65ef895fd61d9f48107181cd
|
[
"Apache-2.0"
] |
permissive
|
luobotao/higouAPI
|
b48c7a55112ab71aed7aa0eae4c12ace740dadf8
|
f2042a453f9ac03f73f250ef6440bd4f946b965a
|
refs/heads/master
| 2021-01-10T07:38:36.179295
| 2016-01-06T12:28:00
| 2016-01-06T12:28:00
| 49,125,100
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 808
|
java
|
package vo.appSalesMan;
import java.util.List;
/**
* @author luobotao
* @Date 2015年9月22日
*/
public class AppSalesManHomePageVO {
// 状态 0:失败 1:成功
private String status;
private List<dataInfo> data;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public List<dataInfo> getData() {
return data;
}
public void setData(List<dataInfo> data) {
this.data = data;
}
public static class dataInfo{
public String leftmoduleTitle="";
public String leftmoduleBackImage="";
public String leftmoduleLink="";
public String leftmoduleSubNum="";
public String rightmoduleTitle="";
public String rightmoduleBackImage="";
public String rightmoduleLink="";
public String rightmoduleSubNum="";
}
}
|
[
"botaoluo@gmail.com"
] |
botaoluo@gmail.com
|
103a036fd0641a23081e8d7be6a5fb2ebf109f15
|
518bc0c963f76de7f517b52a22f53d97e16ae350
|
/src/main/java/com/example/tracktrigger/models/ToDoItem.java
|
be4720b4e118e92353620017955fa8ca13db97ed
|
[] |
no_license
|
saandra02/tracktrigger
|
32fdd209449cbacdb61a66108a3ce0e4b11b5ebb
|
402c4c13ceac759e805d7a94341206593d8972aa
|
refs/heads/master
| 2023-06-18T21:04:56.057777
| 2021-07-05T09:43:34
| 2021-07-05T09:43:34
| 310,934,787
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,107
|
java
|
package com.example.tracktrigger.models;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class ToDoItem {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private long id;
private long user_id;
private String task_name;
private boolean task_status;
private String task_priority;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public long getUserId() {
return user_id;
}
public void setUserId(Long user_id) {
this.user_id = user_id;
}
public String getTaskName() {
return task_name;
}
public void setTaskName(String task_name) {
this.task_name = task_name;
}
public boolean getTaskStatus() {
return task_status;
}
public void setTaskStatus(boolean task_status) {
this.task_status = task_status;
}
public String getTaskPriority() {
return task_priority;
}
public void setTaskPriority(String task_priority) {
this.task_priority = task_priority;
}
}
|
[
"saandra02@gmail.com"
] |
saandra02@gmail.com
|
ea5a92d8af70a09e0ea8f0fb081097c02fdd5e8a
|
5901c4fbbd7e9351e65d0b00305cbaca4bd49e10
|
/src/main/java/com/wang/seckill/mapper/OrderMapper.java
|
096c9fbf265ef8caa9dc83fc8ad54d6e14b740fd
|
[] |
no_license
|
ChengLone/seckill-demo
|
30fb827a2ba3c13c9d94470a326a9bb80e4b6bb1
|
079bfc8ba3970d2fa5aa848b66bd9422520953f0
|
refs/heads/master
| 2023-08-20T01:41:11.420884
| 2021-10-15T13:01:44
| 2021-10-15T13:01:44
| 415,560,984
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 325
|
java
|
package com.wang.seckill.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wang.seckill.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author ChengLone
* @since 2021-10-14
*/
@Mapper
public interface OrderMapper extends BaseMapper<Order> {
}
|
[
"2541403556@qq.com"
] |
2541403556@qq.com
|
71bfb26fe5d3689052ca516b1073526f342c9387
|
07da064963bb60479953ade1243e344314998879
|
/src/CDSMapping/Vertex.java
|
268a2d4d4eeac081d583028a79d4e67e889b058f
|
[] |
no_license
|
skreddy6673/ContentDeliverySystem
|
3b9468d620b54a61994b3c01b7d70ec1523f0620
|
8ea272252c0b4df8d7098ffb4e4da8d3cef9a4d6
|
refs/heads/master
| 2020-03-12T02:22:15.840007
| 2018-04-20T19:46:12
| 2018-04-20T19:46:12
| 130,400,760
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,249
|
java
|
package CDSMapping;
import java.util.ArrayList;
/**
* This class models a vertex in a graph. For ease of
* the reader, a label for this vertex is required.
* Note that the Graph object only accepts one Vertex per label,
* so uniqueness of labels is important. This vertex's neighborhood
* is described by the Edges incident to it.
*
* @author Michael Levet
* @date June 09, 2015
*/
public class Vertex {
private ArrayList<Edge> neighborhood;
private String label;
/**
*
* @param label The unique label associated with this Vertex
*/
public Vertex(String label){
this.label = label;
this.neighborhood = new ArrayList<Edge>();
}
/**
* This method adds an Edge to the incidence neighborhood of this graph iff
* the edge is not already present.
*
* @param edge The edge to add
*/
public void addNeighbor(Edge edge){
if(this.neighborhood.contains(edge)){
return;
}
this.neighborhood.add(edge);
}
/**
*
* @param other The edge for which to search
* @return true iff other is contained in this.neighborhood
*/
public boolean containsNeighbor(Edge other){
return this.neighborhood.contains(other);
}
/**
*
* @param index The index of the Edge to retrieve
* @return Edge The Edge at the specified index in this.neighborhood
*/
public Edge getNeighbor(int index){
return this.neighborhood.get(index);
}
/**
*
* @param index The index of the edge to remove from this.neighborhood
* @return Edge The removed Edge
*/
Edge removeNeighbor(int index){
return this.neighborhood.remove(index);
}
/**
*
* @param e The Edge to remove from this.neighborhood
*/
public void removeNeighbor(Edge e){
this.neighborhood.remove(e);
}
/**
*
* @return int The number of neighbors of this Vertex
*/
public int getNeighborCount(){
return this.neighborhood.size();
}
/**
*
* @return String The label of this Vertex
*/
public String getLabel(){
return this.label;
}
/**
*
* @return String A String representation of this Vertex
*/
public String toString(){
return label;
}
/**
*
* @return The hash code of this Vertex's label
*/
public int hashCode(){
return this.label.hashCode();
}
/**
*
* @param other The object to compare
* @return true iff other instanceof Vertex and the two Vertex objects have the same label
*/
public boolean equals(Object other){
if(!(other instanceof Vertex)){
return false;
}
Vertex v = (Vertex)other;
return this.label.equals(v.label);
}
/**
*
* @return ArrayList<Edge> A copy of this.neighborhood. Modifying the returned
* ArrayList will not affect the neighborhood of this Vertex
*/
public ArrayList<Edge> getNeighbors(){
return new ArrayList<Edge>(this.neighborhood);
}
}
|
[
"desktop@gmail.com"
] |
desktop@gmail.com
|
00c8b91020b6ddf51d6aa39ccf9fce95883f30de
|
e44759c6e645b4d024e652ab050e7ed7df74eba3
|
/src/org/ace/insurance/medicalpolicytermination/service/MedicalPolicyTerminateService.java
|
86127bf46077118b4aafb6ababfb7b6b1560bd03
|
[] |
no_license
|
LifeTeam-TAT/MI-Core
|
5f779870b1328c23b192668308ee25c532ab6280
|
8c5c4466da13c7a8bc61df12a804f840417e2513
|
refs/heads/master
| 2023-04-04T13:36:11.616392
| 2021-04-02T14:43:34
| 2021-04-02T14:43:34
| 354,033,545
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,816
|
java
|
package org.ace.insurance.medicalpolicytermination.service;
import javax.annotation.Resource;
import org.ace.insurance.common.PolicyStatus;
import org.ace.insurance.medical.policy.MedicalPolicy;
import org.ace.insurance.medical.policy.persistence.interfaces.IMedicalPolicyDAO;
import org.ace.insurance.medicalpolicytermination.persistance.interfaces.IMedicalPolicyTerminateDAO;
import org.ace.insurance.medicalpolicytermination.service.interfaces.IMedicalPolicyTerminateService;
import org.ace.java.component.SystemException;
import org.ace.java.component.persistence.exception.DAOException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@Service(value = "MedicalPolicyTerminateService")
public class MedicalPolicyTerminateService implements IMedicalPolicyTerminateService {
@Resource(name = "MedicalPolicyTerminateDAO")
private IMedicalPolicyTerminateDAO policyTerminationdao;
@Resource(name = "MedicalPolicyDAO")
private IMedicalPolicyDAO medicalPolicyDAO;
// @Override
// @Transactional(propagation = Propagation.REQUIRED)
// public void addNewPolicyTermination(MedicalPolicyTerminate
// policyTermination) {
// try {
// policyTerminationdao.insert(policyTermination);
// } catch (DAOException e) {
// throw new SystemException(e.getErrorCode(), "Faield to insert
// policyTermination", e);
// }
//
// }
@Override
@Transactional(propagation = Propagation.REQUIRED)
public void terminatePolicy(MedicalPolicy lifePolicy) {
try {
lifePolicy.setPolicyStatus(PolicyStatus.TERMINATE);
medicalPolicyDAO.update(lifePolicy);
} catch (DAOException e) {
throw new SystemException(e.getErrorCode(), "Faield to insert MedicalPolicyTerminate", e);
}
}
}
|
[
"lifeteam.tat@gmail.com"
] |
lifeteam.tat@gmail.com
|
e31b773b80ca9cb006d10497c7a0a9bbb116db13
|
f617e0b23049d0e23d8a83d85f0a36ece5f0c44c
|
/src/main/java/com/kentarsivi/dto/user/UserUpdateDto.java
|
ce418a61150c6c87ee7b02ebfe7e8b11fd2b17b5
|
[] |
no_license
|
kitaptozu/RestApiWithSpringBootKentArsiv
|
1ae9ef83bbe8836dc984d0774387eee2ec9ca6b2
|
5f1e975c233f6480c18763385e0cb52dc2a224b2
|
refs/heads/main
| 2023-06-24T02:38:41.883159
| 2021-07-31T15:52:03
| 2021-07-31T15:52:03
| 350,979,346
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 589
|
java
|
package com.kentarsivi.dto.user;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class UserUpdateDto {
@NotNull(message = "{constraints.NotEmpty.message}")
@NotBlank
@Size(max = 60)
private String firstName;
@NotNull(message = "{constraints.NotEmpty.message}")
@NotBlank
@Size(max = 60)
private String lastName;
@NotNull(message = "{constraints.NotEmpty.message}")
@NotBlank
@Size(max = 30)
private String username;
}
|
[
"mustafaalp@Mustafa-MacBook-Pro.local"
] |
mustafaalp@Mustafa-MacBook-Pro.local
|
c30b4318badb8b746f1f6ad9631ac66286662b60
|
6e0a9ccc03062476e2e3a3196595d446f46e7722
|
/MWGApi/src/com/mwg/api/utils/httpclient/TextResponseHandler.java
|
d3bbac26f61697b0df6ca4fc17564cea05b19134
|
[] |
no_license
|
thanhle99990/API_task
|
959f5f027d0c897f03d96a02e7e763a3cd7d3859
|
6d10df086bfca7114c40ab965f3657f65d459fdd
|
refs/heads/master
| 2023-07-14T02:44:40.288554
| 2021-08-26T14:16:23
| 2021-08-26T14:16:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 629
|
java
|
package com.mwg.api.utils.httpclient;
import java.io.IOException;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.ResponseHandler;
import org.apache.http.util.EntityUtils;
public class TextResponseHandler implements ResponseHandler<String> {
@Override
public String handleResponse(HttpResponse response) throws ClientProtocolException, IOException {
AHttpClient.processStatusLine(response);
HttpEntity entity = response.getEntity();
return entity == null ? null : EntityUtils.toString(entity);
}
}
|
[
"62461896+thanhle99990@users.noreply.github.com"
] |
62461896+thanhle99990@users.noreply.github.com
|
9f5cdabf73d229c9cea3cb76c804a54d2b3cc17f
|
446c5ce882f8c522efe01438f83a40bbae03f115
|
/src/main/java/pl/sda/learnjava/LearnJava/service/BookService.java
|
41535666659e7af0532107ec071f6b63e04a5ddb
|
[] |
no_license
|
RafalKnapik/learn-java
|
9f6f864fd47ae5701834158f34c73855136cc8d8
|
e8ffaf3f29aeb0652349524790fb18e5b7b02e7c
|
refs/heads/master
| 2021-06-23T18:22:15.236921
| 2019-08-17T13:19:28
| 2019-08-17T13:19:28
| 212,638,211
| 0
| 0
| null | 2021-03-31T21:37:44
| 2019-10-03T17:26:57
|
Java
|
UTF-8
|
Java
| false
| false
| 1,357
|
java
|
package pl.sda.learnjava.LearnJava.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pl.sda.learnjava.LearnJava.dto.BookDTO;
import pl.sda.learnjava.LearnJava.model.Book;
import pl.sda.learnjava.LearnJava.repository.BookRepository;
import java.util.ArrayList;
import java.util.List;
@Service
public class BookService {
private BookRepository bookRepository;
@Autowired
public BookService(BookRepository bookRepository) {
this.bookRepository = bookRepository;
}
public List<Book> getAllBooks(){
return bookRepository.findAll();
}
public void addBook(Book book) {
bookRepository.save(book);
}
public boolean existByTitle(String title){
return bookRepository.existsByTitle(title);
}
public List<BookDTO> getAllBooksAsDTO(){
List<Book> all = bookRepository.findAll();
List<BookDTO> bookDTOS= new ArrayList<>();
for (Book b: all) {
BookDTO bookDTO = new BookDTO();
bookDTO.setTitle(b.getTitle());
bookDTO.setAuthorName(b.getAuthorName());
bookDTO.setCharacterization(b.getCharacterization());
bookDTOS.add(bookDTO);
}
return bookDTOS;
}
public String getName(){
return "Czcibor";
}
}
|
[
"czyzczcibor@gmail.com"
] |
czyzczcibor@gmail.com
|
5535faa01717a96242214b1428c8cbe2685a6f71
|
1467f8847ba0093822c3c72c8987e2ddc1c90c89
|
/app/controllers/Products.java
|
a28419009f9ce5aa4a5a90696adb948eebb4ee30
|
[] |
no_license
|
riz007/play-productList
|
616a135bba0e132cde92520d8707e7b1246a223c
|
fc380c485ade0b6cee2874b9b483c8ac5a057296
|
refs/heads/master
| 2021-07-09T02:37:58.880026
| 2017-10-05T11:08:05
| 2017-10-05T11:08:05
| 105,879,732
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,920
|
java
|
package controllers;
import models.Product;
import play.data.Form;
import play.mvc.Controller;
import play.mvc.Result;
import views.html.products.details;
import views.html.products.list;
import java.util.List;
public class Products extends Controller {
//list all products
public static Result list(){
List<Product> products = Product.findAll();
return ok(list.render(products));
}
//save a product
public static Result index() {
return TODO;
}
//show a product edit form
public static Result details(String ean) {
final Product product = Product.findByEan(ean);
if(product == null) {
return notFound(String.format("Product %s does not exist.", ean));
}
Form<Product> filledForm = productForm.fill(product);
return ok(details.render(filledForm));
}
//save a product
public static Result save() {
Form<Product> boundForm = productForm.bindFromRequest();
if(boundForm.hasErrors()) {
flash("error", "Please correct the form below.");
return badRequest(details.render(boundForm));
}
Product product = boundForm.get();
product.save();
flash("success",
String.format("Successfully added product %s", product));
return redirect(routes.Products.list());
}
//delete a product
public static Result delete(String ean) {
final Product product = Product.findByEan(ean);
if(product == null) {
return notFound(String.format("Product %s does not exist.", ean));
}
Product.remove(product);
return redirect(routes.Products.list());
}
//show a blank product form
public static Result newProduct() {
return ok(details.render(productForm));
}
private static final Form<Product> productForm = Form.form(Product.class);
}
|
[
"Rizwanul@xyzprinting.com"
] |
Rizwanul@xyzprinting.com
|
33b9a2ca1f81cba2262fc7b538d2dce83eee9654
|
4c73d20a5d8f8c77d5b5048f4aaa805a639ab7c1
|
/Pattern Programme/src/Pattern_Prog/DecreasingPattern.java
|
30b90ef3307e363ec74905ee73f52d40c8f4a1c6
|
[] |
no_license
|
AbhikPatra97/JAVA-PATTERNS-Programme
|
0c1335d9ea263fb39f48b3284c54d4f4da764230
|
cf69f743d6d756178c467805700cffd233bf667d
|
refs/heads/master
| 2023-05-31T13:40:18.273191
| 2021-07-01T16:26:23
| 2021-07-01T16:26:23
| 381,765,057
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 278
|
java
|
package Pattern_Prog;
public class DecreasingPattern {
public static void main(String[] args) {
// TODO Auto-generated method stub
for(int i=1;i<=5;i++) {
for(int j=i;j<=5;j++) {
System.out.print("*");
}
System.out.println(" ");
}
}
}
|
[
"abhik.patra2018@gmail.com"
] |
abhik.patra2018@gmail.com
|
9c7b8a2a9477329a26d4b120f58629508d82439d
|
f5d947b262480f55caa2f71c1b967e2e7fde9fb9
|
/snapshot-version-gradle/micro-weather-report/src/test/java/com/phantom/spring/cloud/weather/ApplicationTests.java
|
f8f05c5e92cd0a991f8587f3e227d6cad3e0dffb
|
[] |
no_license
|
pffeng/Study_WeatherApplication
|
825f002699ddeb47b2f3c2d9a5fe367e3f900fd2
|
6c4f92c35898754cc269733ce8ad498502917483
|
refs/heads/master
| 2020-03-30T04:51:23.928515
| 2018-09-28T16:53:32
| 2018-09-28T16:53:32
| 150,765,749
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,138
|
java
|
package com.phantom.spring.cloud.weather;
import static org.hamcrest.Matchers.equalTo;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.http.MediaType;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
@RunWith(SpringRunner.class)
@SpringBootTest
@AutoConfigureMockMvc
public class ApplicationTests {
@Autowired
private MockMvc mockMvc;
@Test
public void testHello() throws Exception {
mockMvc.perform(MockMvcRequestBuilders.get("/hello").accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk()).andExpect(content().string(equalTo("hello world!")));
}
}
|
[
"isfengpf@icloud.com"
] |
isfengpf@icloud.com
|
39daf863e8e637ccadb74450a1927bb6798711f5
|
3ff825e888fad110bb9d3bac78a7c6397c3262ad
|
/beautiful-mall01/src/main/java/com/beautiful/mall01/mbg/model/PmsProductAttributeCategory.java
|
dff0476dabbdc006eacb4c695c5ad2327d45b64e
|
[
"Apache-2.0"
] |
permissive
|
Dang-dang/BeautifulMall
|
585da601514abbdbc9137aa3220d39bcc9189e9c
|
fd0e14891430096f9633c9e5826e76faa833d44c
|
refs/heads/master
| 2023-09-04T23:29:17.749054
| 2020-09-08T12:10:52
| 2020-09-08T12:10:52
| 280,384,276
| 0
| 0
|
Apache-2.0
| 2021-11-23T17:54:07
| 2020-07-17T09:31:22
|
Java
|
UTF-8
|
Java
| false
| false
| 1,596
|
java
|
package com.beautiful.mall01.mbg.model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
public class PmsProductAttributeCategory implements Serializable {
private Long id;
private String name;
@ApiModelProperty(value = "属性数量")
private Integer attributeCount;
@ApiModelProperty(value = "参数数量")
private Integer paramCount;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getAttributeCount() {
return attributeCount;
}
public void setAttributeCount(Integer attributeCount) {
this.attributeCount = attributeCount;
}
public Integer getParamCount() {
return paramCount;
}
public void setParamCount(Integer paramCount) {
this.paramCount = paramCount;
}
@Override
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(", name=").append(name);
sb.append(", attributeCount=").append(attributeCount);
sb.append(", paramCount=").append(paramCount);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
|
[
"yongjiu.dang@foxmail.com"
] |
yongjiu.dang@foxmail.com
|
0d601849eb44277420e2fc55cd595826ec1ffbcd
|
0bdb4723f5511cfa741fa8ea459785dcb7042025
|
/site/src/main/java/org/broadleafcommerce/vendor/cybersource/service/api/RequestMessage.java
|
ee456e73c281846f7caaa2999eb5f1812a5a0c26
|
[] |
no_license
|
gkopevski/webshop
|
31614ea46b5bb23f8e165ec81bf3b59c6477ae69
|
35e1ea1978af524c8cfbd7b3a51f0bc88c9c3555
|
refs/heads/master
| 2021-01-18T11:04:53.006489
| 2014-08-19T14:45:06
| 2014-08-19T14:45:06
| 12,617,709
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 158,630
|
java
|
/**
* RequestMessage.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package org.broadleafcommerce.vendor.cybersource.service.api;
public class RequestMessage implements java.io.Serializable {
private java.lang.String merchantID;
private java.lang.String merchantReferenceCode;
private java.lang.String debtIndicator;
private java.lang.String clientLibrary;
private java.lang.String clientLibraryVersion;
private java.lang.String clientEnvironment;
private java.lang.String clientSecurityLibraryVersion;
private java.lang.String clientApplication;
private java.lang.String clientApplicationVersion;
private java.lang.String clientApplicationUser;
private java.lang.String routingCode;
private java.lang.String comments;
private java.lang.String returnURL;
private org.broadleafcommerce.vendor.cybersource.service.api.InvoiceHeader invoiceHeader;
private org.broadleafcommerce.vendor.cybersource.service.api.BillTo billTo;
private org.broadleafcommerce.vendor.cybersource.service.api.ShipTo shipTo;
private org.broadleafcommerce.vendor.cybersource.service.api.ShipFrom shipFrom;
private org.broadleafcommerce.vendor.cybersource.service.api.Item[] item;
private org.broadleafcommerce.vendor.cybersource.service.api.PurchaseTotals purchaseTotals;
private org.broadleafcommerce.vendor.cybersource.service.api.FundingTotals fundingTotals;
private org.broadleafcommerce.vendor.cybersource.service.api.DCC dcc;
private org.broadleafcommerce.vendor.cybersource.service.api.Pos pos;
private org.broadleafcommerce.vendor.cybersource.service.api.Installment installment;
private org.broadleafcommerce.vendor.cybersource.service.api.Card card;
private org.broadleafcommerce.vendor.cybersource.service.api.Check check;
private org.broadleafcommerce.vendor.cybersource.service.api.BML bml;
private org.broadleafcommerce.vendor.cybersource.service.api.GECC gecc;
private org.broadleafcommerce.vendor.cybersource.service.api.UCAF ucaf;
private org.broadleafcommerce.vendor.cybersource.service.api.FundTransfer fundTransfer;
private org.broadleafcommerce.vendor.cybersource.service.api.BankInfo bankInfo;
private org.broadleafcommerce.vendor.cybersource.service.api.Subscription subscription;
private org.broadleafcommerce.vendor.cybersource.service.api.RecurringSubscriptionInfo recurringSubscriptionInfo;
private org.broadleafcommerce.vendor.cybersource.service.api.DecisionManager decisionManager;
private org.broadleafcommerce.vendor.cybersource.service.api.OtherTax otherTax;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPal paypal;
private org.broadleafcommerce.vendor.cybersource.service.api.MerchantDefinedData merchantDefinedData;
private org.broadleafcommerce.vendor.cybersource.service.api.MerchantSecureData merchantSecureData;
private org.broadleafcommerce.vendor.cybersource.service.api.JPO jpo;
private java.lang.String orderRequestToken;
private org.broadleafcommerce.vendor.cybersource.service.api.CCAuthService ccAuthService;
private org.broadleafcommerce.vendor.cybersource.service.api.CCCaptureService ccCaptureService;
private org.broadleafcommerce.vendor.cybersource.service.api.CCCreditService ccCreditService;
private org.broadleafcommerce.vendor.cybersource.service.api.CCAuthReversalService ccAuthReversalService;
private org.broadleafcommerce.vendor.cybersource.service.api.CCAutoAuthReversalService ccAutoAuthReversalService;
private org.broadleafcommerce.vendor.cybersource.service.api.CCDCCService ccDCCService;
private org.broadleafcommerce.vendor.cybersource.service.api.ECDebitService ecDebitService;
private org.broadleafcommerce.vendor.cybersource.service.api.ECCreditService ecCreditService;
private org.broadleafcommerce.vendor.cybersource.service.api.ECAuthenticateService ecAuthenticateService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayerAuthEnrollService payerAuthEnrollService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayerAuthValidateService payerAuthValidateService;
private org.broadleafcommerce.vendor.cybersource.service.api.TaxService taxService;
private org.broadleafcommerce.vendor.cybersource.service.api.AFSService afsService;
private org.broadleafcommerce.vendor.cybersource.service.api.DAVService davService;
private org.broadleafcommerce.vendor.cybersource.service.api.ExportService exportService;
private org.broadleafcommerce.vendor.cybersource.service.api.FXRatesService fxRatesService;
private org.broadleafcommerce.vendor.cybersource.service.api.BankTransferService bankTransferService;
private org.broadleafcommerce.vendor.cybersource.service.api.BankTransferRefundService bankTransferRefundService;
private org.broadleafcommerce.vendor.cybersource.service.api.BankTransferRealTimeService bankTransferRealTimeService;
private org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitMandateService directDebitMandateService;
private org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitService directDebitService;
private org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitRefundService directDebitRefundService;
private org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitValidateService directDebitValidateService;
private org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionCreateService paySubscriptionCreateService;
private org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionUpdateService paySubscriptionUpdateService;
private org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionEventUpdateService paySubscriptionEventUpdateService;
private org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionRetrieveService paySubscriptionRetrieveService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalPaymentService payPalPaymentService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalCreditService payPalCreditService;
private org.broadleafcommerce.vendor.cybersource.service.api.VoidService voidService;
private org.broadleafcommerce.vendor.cybersource.service.api.BusinessRules businessRules;
private org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitService pinlessDebitService;
private org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitValidateService pinlessDebitValidateService;
private org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitReversalService pinlessDebitReversalService;
private org.broadleafcommerce.vendor.cybersource.service.api.Batch batch;
private org.broadleafcommerce.vendor.cybersource.service.api.AirlineData airlineData;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalButtonCreateService payPalButtonCreateService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalPreapprovedPaymentService payPalPreapprovedPaymentService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalPreapprovedUpdateService payPalPreapprovedUpdateService;
private org.broadleafcommerce.vendor.cybersource.service.api.RiskUpdateService riskUpdateService;
private org.broadleafcommerce.vendor.cybersource.service.api.RequestReserved[] reserved;
private java.lang.String deviceFingerprintID;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalRefundService payPalRefundService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalAuthReversalService payPalAuthReversalService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalDoCaptureService payPalDoCaptureService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcDoPaymentService payPalEcDoPaymentService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcGetDetailsService payPalEcGetDetailsService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcSetService payPalEcSetService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcOrderSetupService payPalEcOrderSetupService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalAuthorizationService payPalAuthorizationService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalUpdateAgreementService payPalUpdateAgreementService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalCreateAgreementService payPalCreateAgreementService;
private org.broadleafcommerce.vendor.cybersource.service.api.PayPalDoRefTransactionService payPalDoRefTransactionService;
private org.broadleafcommerce.vendor.cybersource.service.api.ChinaPaymentService chinaPaymentService;
private org.broadleafcommerce.vendor.cybersource.service.api.ChinaRefundService chinaRefundService;
private org.broadleafcommerce.vendor.cybersource.service.api.BoletoPaymentService boletoPaymentService;
public RequestMessage() {
}
public RequestMessage(
java.lang.String merchantID,
java.lang.String merchantReferenceCode,
java.lang.String debtIndicator,
java.lang.String clientLibrary,
java.lang.String clientLibraryVersion,
java.lang.String clientEnvironment,
java.lang.String clientSecurityLibraryVersion,
java.lang.String clientApplication,
java.lang.String clientApplicationVersion,
java.lang.String clientApplicationUser,
java.lang.String routingCode,
java.lang.String comments,
java.lang.String returnURL,
org.broadleafcommerce.vendor.cybersource.service.api.InvoiceHeader invoiceHeader,
org.broadleafcommerce.vendor.cybersource.service.api.BillTo billTo,
org.broadleafcommerce.vendor.cybersource.service.api.ShipTo shipTo,
org.broadleafcommerce.vendor.cybersource.service.api.ShipFrom shipFrom,
org.broadleafcommerce.vendor.cybersource.service.api.Item[] item,
org.broadleafcommerce.vendor.cybersource.service.api.PurchaseTotals purchaseTotals,
org.broadleafcommerce.vendor.cybersource.service.api.FundingTotals fundingTotals,
org.broadleafcommerce.vendor.cybersource.service.api.DCC dcc,
org.broadleafcommerce.vendor.cybersource.service.api.Pos pos,
org.broadleafcommerce.vendor.cybersource.service.api.Installment installment,
org.broadleafcommerce.vendor.cybersource.service.api.Card card,
org.broadleafcommerce.vendor.cybersource.service.api.Check check,
org.broadleafcommerce.vendor.cybersource.service.api.BML bml,
org.broadleafcommerce.vendor.cybersource.service.api.GECC gecc,
org.broadleafcommerce.vendor.cybersource.service.api.UCAF ucaf,
org.broadleafcommerce.vendor.cybersource.service.api.FundTransfer fundTransfer,
org.broadleafcommerce.vendor.cybersource.service.api.BankInfo bankInfo,
org.broadleafcommerce.vendor.cybersource.service.api.Subscription subscription,
org.broadleafcommerce.vendor.cybersource.service.api.RecurringSubscriptionInfo recurringSubscriptionInfo,
org.broadleafcommerce.vendor.cybersource.service.api.DecisionManager decisionManager,
org.broadleafcommerce.vendor.cybersource.service.api.OtherTax otherTax,
org.broadleafcommerce.vendor.cybersource.service.api.PayPal paypal,
org.broadleafcommerce.vendor.cybersource.service.api.MerchantDefinedData merchantDefinedData,
org.broadleafcommerce.vendor.cybersource.service.api.MerchantSecureData merchantSecureData,
org.broadleafcommerce.vendor.cybersource.service.api.JPO jpo,
java.lang.String orderRequestToken,
org.broadleafcommerce.vendor.cybersource.service.api.CCAuthService ccAuthService,
org.broadleafcommerce.vendor.cybersource.service.api.CCCaptureService ccCaptureService,
org.broadleafcommerce.vendor.cybersource.service.api.CCCreditService ccCreditService,
org.broadleafcommerce.vendor.cybersource.service.api.CCAuthReversalService ccAuthReversalService,
org.broadleafcommerce.vendor.cybersource.service.api.CCAutoAuthReversalService ccAutoAuthReversalService,
org.broadleafcommerce.vendor.cybersource.service.api.CCDCCService ccDCCService,
org.broadleafcommerce.vendor.cybersource.service.api.ECDebitService ecDebitService,
org.broadleafcommerce.vendor.cybersource.service.api.ECCreditService ecCreditService,
org.broadleafcommerce.vendor.cybersource.service.api.ECAuthenticateService ecAuthenticateService,
org.broadleafcommerce.vendor.cybersource.service.api.PayerAuthEnrollService payerAuthEnrollService,
org.broadleafcommerce.vendor.cybersource.service.api.PayerAuthValidateService payerAuthValidateService,
org.broadleafcommerce.vendor.cybersource.service.api.TaxService taxService,
org.broadleafcommerce.vendor.cybersource.service.api.AFSService afsService,
org.broadleafcommerce.vendor.cybersource.service.api.DAVService davService,
org.broadleafcommerce.vendor.cybersource.service.api.ExportService exportService,
org.broadleafcommerce.vendor.cybersource.service.api.FXRatesService fxRatesService,
org.broadleafcommerce.vendor.cybersource.service.api.BankTransferService bankTransferService,
org.broadleafcommerce.vendor.cybersource.service.api.BankTransferRefundService bankTransferRefundService,
org.broadleafcommerce.vendor.cybersource.service.api.BankTransferRealTimeService bankTransferRealTimeService,
org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitMandateService directDebitMandateService,
org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitService directDebitService,
org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitRefundService directDebitRefundService,
org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitValidateService directDebitValidateService,
org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionCreateService paySubscriptionCreateService,
org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionUpdateService paySubscriptionUpdateService,
org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionEventUpdateService paySubscriptionEventUpdateService,
org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionRetrieveService paySubscriptionRetrieveService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalPaymentService payPalPaymentService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalCreditService payPalCreditService,
org.broadleafcommerce.vendor.cybersource.service.api.VoidService voidService,
org.broadleafcommerce.vendor.cybersource.service.api.BusinessRules businessRules,
org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitService pinlessDebitService,
org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitValidateService pinlessDebitValidateService,
org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitReversalService pinlessDebitReversalService,
org.broadleafcommerce.vendor.cybersource.service.api.Batch batch,
org.broadleafcommerce.vendor.cybersource.service.api.AirlineData airlineData,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalButtonCreateService payPalButtonCreateService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalPreapprovedPaymentService payPalPreapprovedPaymentService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalPreapprovedUpdateService payPalPreapprovedUpdateService,
org.broadleafcommerce.vendor.cybersource.service.api.RiskUpdateService riskUpdateService,
org.broadleafcommerce.vendor.cybersource.service.api.RequestReserved[] reserved,
java.lang.String deviceFingerprintID,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalRefundService payPalRefundService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalAuthReversalService payPalAuthReversalService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalDoCaptureService payPalDoCaptureService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcDoPaymentService payPalEcDoPaymentService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcGetDetailsService payPalEcGetDetailsService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcSetService payPalEcSetService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcOrderSetupService payPalEcOrderSetupService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalAuthorizationService payPalAuthorizationService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalUpdateAgreementService payPalUpdateAgreementService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalCreateAgreementService payPalCreateAgreementService,
org.broadleafcommerce.vendor.cybersource.service.api.PayPalDoRefTransactionService payPalDoRefTransactionService,
org.broadleafcommerce.vendor.cybersource.service.api.ChinaPaymentService chinaPaymentService,
org.broadleafcommerce.vendor.cybersource.service.api.ChinaRefundService chinaRefundService,
org.broadleafcommerce.vendor.cybersource.service.api.BoletoPaymentService boletoPaymentService) {
this.merchantID = merchantID;
this.merchantReferenceCode = merchantReferenceCode;
this.debtIndicator = debtIndicator;
this.clientLibrary = clientLibrary;
this.clientLibraryVersion = clientLibraryVersion;
this.clientEnvironment = clientEnvironment;
this.clientSecurityLibraryVersion = clientSecurityLibraryVersion;
this.clientApplication = clientApplication;
this.clientApplicationVersion = clientApplicationVersion;
this.clientApplicationUser = clientApplicationUser;
this.routingCode = routingCode;
this.comments = comments;
this.returnURL = returnURL;
this.invoiceHeader = invoiceHeader;
this.billTo = billTo;
this.shipTo = shipTo;
this.shipFrom = shipFrom;
this.item = item;
this.purchaseTotals = purchaseTotals;
this.fundingTotals = fundingTotals;
this.dcc = dcc;
this.pos = pos;
this.installment = installment;
this.card = card;
this.check = check;
this.bml = bml;
this.gecc = gecc;
this.ucaf = ucaf;
this.fundTransfer = fundTransfer;
this.bankInfo = bankInfo;
this.subscription = subscription;
this.recurringSubscriptionInfo = recurringSubscriptionInfo;
this.decisionManager = decisionManager;
this.otherTax = otherTax;
this.paypal = paypal;
this.merchantDefinedData = merchantDefinedData;
this.merchantSecureData = merchantSecureData;
this.jpo = jpo;
this.orderRequestToken = orderRequestToken;
this.ccAuthService = ccAuthService;
this.ccCaptureService = ccCaptureService;
this.ccCreditService = ccCreditService;
this.ccAuthReversalService = ccAuthReversalService;
this.ccAutoAuthReversalService = ccAutoAuthReversalService;
this.ccDCCService = ccDCCService;
this.ecDebitService = ecDebitService;
this.ecCreditService = ecCreditService;
this.ecAuthenticateService = ecAuthenticateService;
this.payerAuthEnrollService = payerAuthEnrollService;
this.payerAuthValidateService = payerAuthValidateService;
this.taxService = taxService;
this.afsService = afsService;
this.davService = davService;
this.exportService = exportService;
this.fxRatesService = fxRatesService;
this.bankTransferService = bankTransferService;
this.bankTransferRefundService = bankTransferRefundService;
this.bankTransferRealTimeService = bankTransferRealTimeService;
this.directDebitMandateService = directDebitMandateService;
this.directDebitService = directDebitService;
this.directDebitRefundService = directDebitRefundService;
this.directDebitValidateService = directDebitValidateService;
this.paySubscriptionCreateService = paySubscriptionCreateService;
this.paySubscriptionUpdateService = paySubscriptionUpdateService;
this.paySubscriptionEventUpdateService = paySubscriptionEventUpdateService;
this.paySubscriptionRetrieveService = paySubscriptionRetrieveService;
this.payPalPaymentService = payPalPaymentService;
this.payPalCreditService = payPalCreditService;
this.voidService = voidService;
this.businessRules = businessRules;
this.pinlessDebitService = pinlessDebitService;
this.pinlessDebitValidateService = pinlessDebitValidateService;
this.pinlessDebitReversalService = pinlessDebitReversalService;
this.batch = batch;
this.airlineData = airlineData;
this.payPalButtonCreateService = payPalButtonCreateService;
this.payPalPreapprovedPaymentService = payPalPreapprovedPaymentService;
this.payPalPreapprovedUpdateService = payPalPreapprovedUpdateService;
this.riskUpdateService = riskUpdateService;
this.reserved = reserved;
this.deviceFingerprintID = deviceFingerprintID;
this.payPalRefundService = payPalRefundService;
this.payPalAuthReversalService = payPalAuthReversalService;
this.payPalDoCaptureService = payPalDoCaptureService;
this.payPalEcDoPaymentService = payPalEcDoPaymentService;
this.payPalEcGetDetailsService = payPalEcGetDetailsService;
this.payPalEcSetService = payPalEcSetService;
this.payPalEcOrderSetupService = payPalEcOrderSetupService;
this.payPalAuthorizationService = payPalAuthorizationService;
this.payPalUpdateAgreementService = payPalUpdateAgreementService;
this.payPalCreateAgreementService = payPalCreateAgreementService;
this.payPalDoRefTransactionService = payPalDoRefTransactionService;
this.chinaPaymentService = chinaPaymentService;
this.chinaRefundService = chinaRefundService;
this.boletoPaymentService = boletoPaymentService;
}
/**
* Gets the merchantID value for this RequestMessage.
*
* @return merchantID
*/
public java.lang.String getMerchantID() {
return merchantID;
}
/**
* Sets the merchantID value for this RequestMessage.
*
* @param merchantID
*/
public void setMerchantID(java.lang.String merchantID) {
this.merchantID = merchantID;
}
/**
* Gets the merchantReferenceCode value for this RequestMessage.
*
* @return merchantReferenceCode
*/
public java.lang.String getMerchantReferenceCode() {
return merchantReferenceCode;
}
/**
* Sets the merchantReferenceCode value for this RequestMessage.
*
* @param merchantReferenceCode
*/
public void setMerchantReferenceCode(java.lang.String merchantReferenceCode) {
this.merchantReferenceCode = merchantReferenceCode;
}
/**
* Gets the debtIndicator value for this RequestMessage.
*
* @return debtIndicator
*/
public java.lang.String getDebtIndicator() {
return debtIndicator;
}
/**
* Sets the debtIndicator value for this RequestMessage.
*
* @param debtIndicator
*/
public void setDebtIndicator(java.lang.String debtIndicator) {
this.debtIndicator = debtIndicator;
}
/**
* Gets the clientLibrary value for this RequestMessage.
*
* @return clientLibrary
*/
public java.lang.String getClientLibrary() {
return clientLibrary;
}
/**
* Sets the clientLibrary value for this RequestMessage.
*
* @param clientLibrary
*/
public void setClientLibrary(java.lang.String clientLibrary) {
this.clientLibrary = clientLibrary;
}
/**
* Gets the clientLibraryVersion value for this RequestMessage.
*
* @return clientLibraryVersion
*/
public java.lang.String getClientLibraryVersion() {
return clientLibraryVersion;
}
/**
* Sets the clientLibraryVersion value for this RequestMessage.
*
* @param clientLibraryVersion
*/
public void setClientLibraryVersion(java.lang.String clientLibraryVersion) {
this.clientLibraryVersion = clientLibraryVersion;
}
/**
* Gets the clientEnvironment value for this RequestMessage.
*
* @return clientEnvironment
*/
public java.lang.String getClientEnvironment() {
return clientEnvironment;
}
/**
* Sets the clientEnvironment value for this RequestMessage.
*
* @param clientEnvironment
*/
public void setClientEnvironment(java.lang.String clientEnvironment) {
this.clientEnvironment = clientEnvironment;
}
/**
* Gets the clientSecurityLibraryVersion value for this RequestMessage.
*
* @return clientSecurityLibraryVersion
*/
public java.lang.String getClientSecurityLibraryVersion() {
return clientSecurityLibraryVersion;
}
/**
* Sets the clientSecurityLibraryVersion value for this RequestMessage.
*
* @param clientSecurityLibraryVersion
*/
public void setClientSecurityLibraryVersion(java.lang.String clientSecurityLibraryVersion) {
this.clientSecurityLibraryVersion = clientSecurityLibraryVersion;
}
/**
* Gets the clientApplication value for this RequestMessage.
*
* @return clientApplication
*/
public java.lang.String getClientApplication() {
return clientApplication;
}
/**
* Sets the clientApplication value for this RequestMessage.
*
* @param clientApplication
*/
public void setClientApplication(java.lang.String clientApplication) {
this.clientApplication = clientApplication;
}
/**
* Gets the clientApplicationVersion value for this RequestMessage.
*
* @return clientApplicationVersion
*/
public java.lang.String getClientApplicationVersion() {
return clientApplicationVersion;
}
/**
* Sets the clientApplicationVersion value for this RequestMessage.
*
* @param clientApplicationVersion
*/
public void setClientApplicationVersion(java.lang.String clientApplicationVersion) {
this.clientApplicationVersion = clientApplicationVersion;
}
/**
* Gets the clientApplicationUser value for this RequestMessage.
*
* @return clientApplicationUser
*/
public java.lang.String getClientApplicationUser() {
return clientApplicationUser;
}
/**
* Sets the clientApplicationUser value for this RequestMessage.
*
* @param clientApplicationUser
*/
public void setClientApplicationUser(java.lang.String clientApplicationUser) {
this.clientApplicationUser = clientApplicationUser;
}
/**
* Gets the routingCode value for this RequestMessage.
*
* @return routingCode
*/
public java.lang.String getRoutingCode() {
return routingCode;
}
/**
* Sets the routingCode value for this RequestMessage.
*
* @param routingCode
*/
public void setRoutingCode(java.lang.String routingCode) {
this.routingCode = routingCode;
}
/**
* Gets the comments value for this RequestMessage.
*
* @return comments
*/
public java.lang.String getComments() {
return comments;
}
/**
* Sets the comments value for this RequestMessage.
*
* @param comments
*/
public void setComments(java.lang.String comments) {
this.comments = comments;
}
/**
* Gets the returnURL value for this RequestMessage.
*
* @return returnURL
*/
public java.lang.String getReturnURL() {
return returnURL;
}
/**
* Sets the returnURL value for this RequestMessage.
*
* @param returnURL
*/
public void setReturnURL(java.lang.String returnURL) {
this.returnURL = returnURL;
}
/**
* Gets the invoiceHeader value for this RequestMessage.
*
* @return invoiceHeader
*/
public org.broadleafcommerce.vendor.cybersource.service.api.InvoiceHeader getInvoiceHeader() {
return invoiceHeader;
}
/**
* Sets the invoiceHeader value for this RequestMessage.
*
* @param invoiceHeader
*/
public void setInvoiceHeader(org.broadleafcommerce.vendor.cybersource.service.api.InvoiceHeader invoiceHeader) {
this.invoiceHeader = invoiceHeader;
}
/**
* Gets the billTo value for this RequestMessage.
*
* @return billTo
*/
public org.broadleafcommerce.vendor.cybersource.service.api.BillTo getBillTo() {
return billTo;
}
/**
* Sets the billTo value for this RequestMessage.
*
* @param billTo
*/
public void setBillTo(org.broadleafcommerce.vendor.cybersource.service.api.BillTo billTo) {
this.billTo = billTo;
}
/**
* Gets the shipTo value for this RequestMessage.
*
* @return shipTo
*/
public org.broadleafcommerce.vendor.cybersource.service.api.ShipTo getShipTo() {
return shipTo;
}
/**
* Sets the shipTo value for this RequestMessage.
*
* @param shipTo
*/
public void setShipTo(org.broadleafcommerce.vendor.cybersource.service.api.ShipTo shipTo) {
this.shipTo = shipTo;
}
/**
* Gets the shipFrom value for this RequestMessage.
*
* @return shipFrom
*/
public org.broadleafcommerce.vendor.cybersource.service.api.ShipFrom getShipFrom() {
return shipFrom;
}
/**
* Sets the shipFrom value for this RequestMessage.
*
* @param shipFrom
*/
public void setShipFrom(org.broadleafcommerce.vendor.cybersource.service.api.ShipFrom shipFrom) {
this.shipFrom = shipFrom;
}
/**
* Gets the item value for this RequestMessage.
*
* @return item
*/
public org.broadleafcommerce.vendor.cybersource.service.api.Item[] getItem() {
return item;
}
/**
* Sets the item value for this RequestMessage.
*
* @param item
*/
public void setItem(org.broadleafcommerce.vendor.cybersource.service.api.Item[] item) {
this.item = item;
}
public org.broadleafcommerce.vendor.cybersource.service.api.Item getItem(int i) {
return this.item[i];
}
public void setItem(int i, org.broadleafcommerce.vendor.cybersource.service.api.Item _value) {
this.item[i] = _value;
}
/**
* Gets the purchaseTotals value for this RequestMessage.
*
* @return purchaseTotals
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PurchaseTotals getPurchaseTotals() {
return purchaseTotals;
}
/**
* Sets the purchaseTotals value for this RequestMessage.
*
* @param purchaseTotals
*/
public void setPurchaseTotals(org.broadleafcommerce.vendor.cybersource.service.api.PurchaseTotals purchaseTotals) {
this.purchaseTotals = purchaseTotals;
}
/**
* Gets the fundingTotals value for this RequestMessage.
*
* @return fundingTotals
*/
public org.broadleafcommerce.vendor.cybersource.service.api.FundingTotals getFundingTotals() {
return fundingTotals;
}
/**
* Sets the fundingTotals value for this RequestMessage.
*
* @param fundingTotals
*/
public void setFundingTotals(org.broadleafcommerce.vendor.cybersource.service.api.FundingTotals fundingTotals) {
this.fundingTotals = fundingTotals;
}
/**
* Gets the dcc value for this RequestMessage.
*
* @return dcc
*/
public org.broadleafcommerce.vendor.cybersource.service.api.DCC getDcc() {
return dcc;
}
/**
* Sets the dcc value for this RequestMessage.
*
* @param dcc
*/
public void setDcc(org.broadleafcommerce.vendor.cybersource.service.api.DCC dcc) {
this.dcc = dcc;
}
/**
* Gets the pos value for this RequestMessage.
*
* @return pos
*/
public org.broadleafcommerce.vendor.cybersource.service.api.Pos getPos() {
return pos;
}
/**
* Sets the pos value for this RequestMessage.
*
* @param pos
*/
public void setPos(org.broadleafcommerce.vendor.cybersource.service.api.Pos pos) {
this.pos = pos;
}
/**
* Gets the installment value for this RequestMessage.
*
* @return installment
*/
public org.broadleafcommerce.vendor.cybersource.service.api.Installment getInstallment() {
return installment;
}
/**
* Sets the installment value for this RequestMessage.
*
* @param installment
*/
public void setInstallment(org.broadleafcommerce.vendor.cybersource.service.api.Installment installment) {
this.installment = installment;
}
/**
* Gets the card value for this RequestMessage.
*
* @return card
*/
public org.broadleafcommerce.vendor.cybersource.service.api.Card getCard() {
return card;
}
/**
* Sets the card value for this RequestMessage.
*
* @param card
*/
public void setCard(org.broadleafcommerce.vendor.cybersource.service.api.Card card) {
this.card = card;
}
/**
* Gets the check value for this RequestMessage.
*
* @return check
*/
public org.broadleafcommerce.vendor.cybersource.service.api.Check getCheck() {
return check;
}
/**
* Sets the check value for this RequestMessage.
*
* @param check
*/
public void setCheck(org.broadleafcommerce.vendor.cybersource.service.api.Check check) {
this.check = check;
}
/**
* Gets the bml value for this RequestMessage.
*
* @return bml
*/
public org.broadleafcommerce.vendor.cybersource.service.api.BML getBml() {
return bml;
}
/**
* Sets the bml value for this RequestMessage.
*
* @param bml
*/
public void setBml(org.broadleafcommerce.vendor.cybersource.service.api.BML bml) {
this.bml = bml;
}
/**
* Gets the gecc value for this RequestMessage.
*
* @return gecc
*/
public org.broadleafcommerce.vendor.cybersource.service.api.GECC getGecc() {
return gecc;
}
/**
* Sets the gecc value for this RequestMessage.
*
* @param gecc
*/
public void setGecc(org.broadleafcommerce.vendor.cybersource.service.api.GECC gecc) {
this.gecc = gecc;
}
/**
* Gets the ucaf value for this RequestMessage.
*
* @return ucaf
*/
public org.broadleafcommerce.vendor.cybersource.service.api.UCAF getUcaf() {
return ucaf;
}
/**
* Sets the ucaf value for this RequestMessage.
*
* @param ucaf
*/
public void setUcaf(org.broadleafcommerce.vendor.cybersource.service.api.UCAF ucaf) {
this.ucaf = ucaf;
}
/**
* Gets the fundTransfer value for this RequestMessage.
*
* @return fundTransfer
*/
public org.broadleafcommerce.vendor.cybersource.service.api.FundTransfer getFundTransfer() {
return fundTransfer;
}
/**
* Sets the fundTransfer value for this RequestMessage.
*
* @param fundTransfer
*/
public void setFundTransfer(org.broadleafcommerce.vendor.cybersource.service.api.FundTransfer fundTransfer) {
this.fundTransfer = fundTransfer;
}
/**
* Gets the bankInfo value for this RequestMessage.
*
* @return bankInfo
*/
public org.broadleafcommerce.vendor.cybersource.service.api.BankInfo getBankInfo() {
return bankInfo;
}
/**
* Sets the bankInfo value for this RequestMessage.
*
* @param bankInfo
*/
public void setBankInfo(org.broadleafcommerce.vendor.cybersource.service.api.BankInfo bankInfo) {
this.bankInfo = bankInfo;
}
/**
* Gets the subscription value for this RequestMessage.
*
* @return subscription
*/
public org.broadleafcommerce.vendor.cybersource.service.api.Subscription getSubscription() {
return subscription;
}
/**
* Sets the subscription value for this RequestMessage.
*
* @param subscription
*/
public void setSubscription(org.broadleafcommerce.vendor.cybersource.service.api.Subscription subscription) {
this.subscription = subscription;
}
/**
* Gets the recurringSubscriptionInfo value for this RequestMessage.
*
* @return recurringSubscriptionInfo
*/
public org.broadleafcommerce.vendor.cybersource.service.api.RecurringSubscriptionInfo getRecurringSubscriptionInfo() {
return recurringSubscriptionInfo;
}
/**
* Sets the recurringSubscriptionInfo value for this RequestMessage.
*
* @param recurringSubscriptionInfo
*/
public void setRecurringSubscriptionInfo(org.broadleafcommerce.vendor.cybersource.service.api.RecurringSubscriptionInfo recurringSubscriptionInfo) {
this.recurringSubscriptionInfo = recurringSubscriptionInfo;
}
/**
* Gets the decisionManager value for this RequestMessage.
*
* @return decisionManager
*/
public org.broadleafcommerce.vendor.cybersource.service.api.DecisionManager getDecisionManager() {
return decisionManager;
}
/**
* Sets the decisionManager value for this RequestMessage.
*
* @param decisionManager
*/
public void setDecisionManager(org.broadleafcommerce.vendor.cybersource.service.api.DecisionManager decisionManager) {
this.decisionManager = decisionManager;
}
/**
* Gets the otherTax value for this RequestMessage.
*
* @return otherTax
*/
public org.broadleafcommerce.vendor.cybersource.service.api.OtherTax getOtherTax() {
return otherTax;
}
/**
* Sets the otherTax value for this RequestMessage.
*
* @param otherTax
*/
public void setOtherTax(org.broadleafcommerce.vendor.cybersource.service.api.OtherTax otherTax) {
this.otherTax = otherTax;
}
/**
* Gets the paypal value for this RequestMessage.
*
* @return paypal
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPal getPaypal() {
return paypal;
}
/**
* Sets the paypal value for this RequestMessage.
*
* @param paypal
*/
public void setPaypal(org.broadleafcommerce.vendor.cybersource.service.api.PayPal paypal) {
this.paypal = paypal;
}
/**
* Gets the merchantDefinedData value for this RequestMessage.
*
* @return merchantDefinedData
*/
public org.broadleafcommerce.vendor.cybersource.service.api.MerchantDefinedData getMerchantDefinedData() {
return merchantDefinedData;
}
/**
* Sets the merchantDefinedData value for this RequestMessage.
*
* @param merchantDefinedData
*/
public void setMerchantDefinedData(org.broadleafcommerce.vendor.cybersource.service.api.MerchantDefinedData merchantDefinedData) {
this.merchantDefinedData = merchantDefinedData;
}
/**
* Gets the merchantSecureData value for this RequestMessage.
*
* @return merchantSecureData
*/
public org.broadleafcommerce.vendor.cybersource.service.api.MerchantSecureData getMerchantSecureData() {
return merchantSecureData;
}
/**
* Sets the merchantSecureData value for this RequestMessage.
*
* @param merchantSecureData
*/
public void setMerchantSecureData(org.broadleafcommerce.vendor.cybersource.service.api.MerchantSecureData merchantSecureData) {
this.merchantSecureData = merchantSecureData;
}
/**
* Gets the jpo value for this RequestMessage.
*
* @return jpo
*/
public org.broadleafcommerce.vendor.cybersource.service.api.JPO getJpo() {
return jpo;
}
/**
* Sets the jpo value for this RequestMessage.
*
* @param jpo
*/
public void setJpo(org.broadleafcommerce.vendor.cybersource.service.api.JPO jpo) {
this.jpo = jpo;
}
/**
* Gets the orderRequestToken value for this RequestMessage.
*
* @return orderRequestToken
*/
public java.lang.String getOrderRequestToken() {
return orderRequestToken;
}
/**
* Sets the orderRequestToken value for this RequestMessage.
*
* @param orderRequestToken
*/
public void setOrderRequestToken(java.lang.String orderRequestToken) {
this.orderRequestToken = orderRequestToken;
}
/**
* Gets the ccAuthService value for this RequestMessage.
*
* @return ccAuthService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.CCAuthService getCcAuthService() {
return ccAuthService;
}
/**
* Sets the ccAuthService value for this RequestMessage.
*
* @param ccAuthService
*/
public void setCcAuthService(org.broadleafcommerce.vendor.cybersource.service.api.CCAuthService ccAuthService) {
this.ccAuthService = ccAuthService;
}
/**
* Gets the ccCaptureService value for this RequestMessage.
*
* @return ccCaptureService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.CCCaptureService getCcCaptureService() {
return ccCaptureService;
}
/**
* Sets the ccCaptureService value for this RequestMessage.
*
* @param ccCaptureService
*/
public void setCcCaptureService(org.broadleafcommerce.vendor.cybersource.service.api.CCCaptureService ccCaptureService) {
this.ccCaptureService = ccCaptureService;
}
/**
* Gets the ccCreditService value for this RequestMessage.
*
* @return ccCreditService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.CCCreditService getCcCreditService() {
return ccCreditService;
}
/**
* Sets the ccCreditService value for this RequestMessage.
*
* @param ccCreditService
*/
public void setCcCreditService(org.broadleafcommerce.vendor.cybersource.service.api.CCCreditService ccCreditService) {
this.ccCreditService = ccCreditService;
}
/**
* Gets the ccAuthReversalService value for this RequestMessage.
*
* @return ccAuthReversalService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.CCAuthReversalService getCcAuthReversalService() {
return ccAuthReversalService;
}
/**
* Sets the ccAuthReversalService value for this RequestMessage.
*
* @param ccAuthReversalService
*/
public void setCcAuthReversalService(org.broadleafcommerce.vendor.cybersource.service.api.CCAuthReversalService ccAuthReversalService) {
this.ccAuthReversalService = ccAuthReversalService;
}
/**
* Gets the ccAutoAuthReversalService value for this RequestMessage.
*
* @return ccAutoAuthReversalService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.CCAutoAuthReversalService getCcAutoAuthReversalService() {
return ccAutoAuthReversalService;
}
/**
* Sets the ccAutoAuthReversalService value for this RequestMessage.
*
* @param ccAutoAuthReversalService
*/
public void setCcAutoAuthReversalService(org.broadleafcommerce.vendor.cybersource.service.api.CCAutoAuthReversalService ccAutoAuthReversalService) {
this.ccAutoAuthReversalService = ccAutoAuthReversalService;
}
/**
* Gets the ccDCCService value for this RequestMessage.
*
* @return ccDCCService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.CCDCCService getCcDCCService() {
return ccDCCService;
}
/**
* Sets the ccDCCService value for this RequestMessage.
*
* @param ccDCCService
*/
public void setCcDCCService(org.broadleafcommerce.vendor.cybersource.service.api.CCDCCService ccDCCService) {
this.ccDCCService = ccDCCService;
}
/**
* Gets the ecDebitService value for this RequestMessage.
*
* @return ecDebitService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.ECDebitService getEcDebitService() {
return ecDebitService;
}
/**
* Sets the ecDebitService value for this RequestMessage.
*
* @param ecDebitService
*/
public void setEcDebitService(org.broadleafcommerce.vendor.cybersource.service.api.ECDebitService ecDebitService) {
this.ecDebitService = ecDebitService;
}
/**
* Gets the ecCreditService value for this RequestMessage.
*
* @return ecCreditService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.ECCreditService getEcCreditService() {
return ecCreditService;
}
/**
* Sets the ecCreditService value for this RequestMessage.
*
* @param ecCreditService
*/
public void setEcCreditService(org.broadleafcommerce.vendor.cybersource.service.api.ECCreditService ecCreditService) {
this.ecCreditService = ecCreditService;
}
/**
* Gets the ecAuthenticateService value for this RequestMessage.
*
* @return ecAuthenticateService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.ECAuthenticateService getEcAuthenticateService() {
return ecAuthenticateService;
}
/**
* Sets the ecAuthenticateService value for this RequestMessage.
*
* @param ecAuthenticateService
*/
public void setEcAuthenticateService(org.broadleafcommerce.vendor.cybersource.service.api.ECAuthenticateService ecAuthenticateService) {
this.ecAuthenticateService = ecAuthenticateService;
}
/**
* Gets the payerAuthEnrollService value for this RequestMessage.
*
* @return payerAuthEnrollService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayerAuthEnrollService getPayerAuthEnrollService() {
return payerAuthEnrollService;
}
/**
* Sets the payerAuthEnrollService value for this RequestMessage.
*
* @param payerAuthEnrollService
*/
public void setPayerAuthEnrollService(org.broadleafcommerce.vendor.cybersource.service.api.PayerAuthEnrollService payerAuthEnrollService) {
this.payerAuthEnrollService = payerAuthEnrollService;
}
/**
* Gets the payerAuthValidateService value for this RequestMessage.
*
* @return payerAuthValidateService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayerAuthValidateService getPayerAuthValidateService() {
return payerAuthValidateService;
}
/**
* Sets the payerAuthValidateService value for this RequestMessage.
*
* @param payerAuthValidateService
*/
public void setPayerAuthValidateService(org.broadleafcommerce.vendor.cybersource.service.api.PayerAuthValidateService payerAuthValidateService) {
this.payerAuthValidateService = payerAuthValidateService;
}
/**
* Gets the taxService value for this RequestMessage.
*
* @return taxService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.TaxService getTaxService() {
return taxService;
}
/**
* Sets the taxService value for this RequestMessage.
*
* @param taxService
*/
public void setTaxService(org.broadleafcommerce.vendor.cybersource.service.api.TaxService taxService) {
this.taxService = taxService;
}
/**
* Gets the afsService value for this RequestMessage.
*
* @return afsService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.AFSService getAfsService() {
return afsService;
}
/**
* Sets the afsService value for this RequestMessage.
*
* @param afsService
*/
public void setAfsService(org.broadleafcommerce.vendor.cybersource.service.api.AFSService afsService) {
this.afsService = afsService;
}
/**
* Gets the davService value for this RequestMessage.
*
* @return davService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.DAVService getDavService() {
return davService;
}
/**
* Sets the davService value for this RequestMessage.
*
* @param davService
*/
public void setDavService(org.broadleafcommerce.vendor.cybersource.service.api.DAVService davService) {
this.davService = davService;
}
/**
* Gets the exportService value for this RequestMessage.
*
* @return exportService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.ExportService getExportService() {
return exportService;
}
/**
* Sets the exportService value for this RequestMessage.
*
* @param exportService
*/
public void setExportService(org.broadleafcommerce.vendor.cybersource.service.api.ExportService exportService) {
this.exportService = exportService;
}
/**
* Gets the fxRatesService value for this RequestMessage.
*
* @return fxRatesService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.FXRatesService getFxRatesService() {
return fxRatesService;
}
/**
* Sets the fxRatesService value for this RequestMessage.
*
* @param fxRatesService
*/
public void setFxRatesService(org.broadleafcommerce.vendor.cybersource.service.api.FXRatesService fxRatesService) {
this.fxRatesService = fxRatesService;
}
/**
* Gets the bankTransferService value for this RequestMessage.
*
* @return bankTransferService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.BankTransferService getBankTransferService() {
return bankTransferService;
}
/**
* Sets the bankTransferService value for this RequestMessage.
*
* @param bankTransferService
*/
public void setBankTransferService(org.broadleafcommerce.vendor.cybersource.service.api.BankTransferService bankTransferService) {
this.bankTransferService = bankTransferService;
}
/**
* Gets the bankTransferRefundService value for this RequestMessage.
*
* @return bankTransferRefundService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.BankTransferRefundService getBankTransferRefundService() {
return bankTransferRefundService;
}
/**
* Sets the bankTransferRefundService value for this RequestMessage.
*
* @param bankTransferRefundService
*/
public void setBankTransferRefundService(org.broadleafcommerce.vendor.cybersource.service.api.BankTransferRefundService bankTransferRefundService) {
this.bankTransferRefundService = bankTransferRefundService;
}
/**
* Gets the bankTransferRealTimeService value for this RequestMessage.
*
* @return bankTransferRealTimeService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.BankTransferRealTimeService getBankTransferRealTimeService() {
return bankTransferRealTimeService;
}
/**
* Sets the bankTransferRealTimeService value for this RequestMessage.
*
* @param bankTransferRealTimeService
*/
public void setBankTransferRealTimeService(org.broadleafcommerce.vendor.cybersource.service.api.BankTransferRealTimeService bankTransferRealTimeService) {
this.bankTransferRealTimeService = bankTransferRealTimeService;
}
/**
* Gets the directDebitMandateService value for this RequestMessage.
*
* @return directDebitMandateService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitMandateService getDirectDebitMandateService() {
return directDebitMandateService;
}
/**
* Sets the directDebitMandateService value for this RequestMessage.
*
* @param directDebitMandateService
*/
public void setDirectDebitMandateService(org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitMandateService directDebitMandateService) {
this.directDebitMandateService = directDebitMandateService;
}
/**
* Gets the directDebitService value for this RequestMessage.
*
* @return directDebitService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitService getDirectDebitService() {
return directDebitService;
}
/**
* Sets the directDebitService value for this RequestMessage.
*
* @param directDebitService
*/
public void setDirectDebitService(org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitService directDebitService) {
this.directDebitService = directDebitService;
}
/**
* Gets the directDebitRefundService value for this RequestMessage.
*
* @return directDebitRefundService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitRefundService getDirectDebitRefundService() {
return directDebitRefundService;
}
/**
* Sets the directDebitRefundService value for this RequestMessage.
*
* @param directDebitRefundService
*/
public void setDirectDebitRefundService(org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitRefundService directDebitRefundService) {
this.directDebitRefundService = directDebitRefundService;
}
/**
* Gets the directDebitValidateService value for this RequestMessage.
*
* @return directDebitValidateService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitValidateService getDirectDebitValidateService() {
return directDebitValidateService;
}
/**
* Sets the directDebitValidateService value for this RequestMessage.
*
* @param directDebitValidateService
*/
public void setDirectDebitValidateService(org.broadleafcommerce.vendor.cybersource.service.api.DirectDebitValidateService directDebitValidateService) {
this.directDebitValidateService = directDebitValidateService;
}
/**
* Gets the paySubscriptionCreateService value for this RequestMessage.
*
* @return paySubscriptionCreateService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionCreateService getPaySubscriptionCreateService() {
return paySubscriptionCreateService;
}
/**
* Sets the paySubscriptionCreateService value for this RequestMessage.
*
* @param paySubscriptionCreateService
*/
public void setPaySubscriptionCreateService(org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionCreateService paySubscriptionCreateService) {
this.paySubscriptionCreateService = paySubscriptionCreateService;
}
/**
* Gets the paySubscriptionUpdateService value for this RequestMessage.
*
* @return paySubscriptionUpdateService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionUpdateService getPaySubscriptionUpdateService() {
return paySubscriptionUpdateService;
}
/**
* Sets the paySubscriptionUpdateService value for this RequestMessage.
*
* @param paySubscriptionUpdateService
*/
public void setPaySubscriptionUpdateService(org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionUpdateService paySubscriptionUpdateService) {
this.paySubscriptionUpdateService = paySubscriptionUpdateService;
}
/**
* Gets the paySubscriptionEventUpdateService value for this RequestMessage.
*
* @return paySubscriptionEventUpdateService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionEventUpdateService getPaySubscriptionEventUpdateService() {
return paySubscriptionEventUpdateService;
}
/**
* Sets the paySubscriptionEventUpdateService value for this RequestMessage.
*
* @param paySubscriptionEventUpdateService
*/
public void setPaySubscriptionEventUpdateService(org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionEventUpdateService paySubscriptionEventUpdateService) {
this.paySubscriptionEventUpdateService = paySubscriptionEventUpdateService;
}
/**
* Gets the paySubscriptionRetrieveService value for this RequestMessage.
*
* @return paySubscriptionRetrieveService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionRetrieveService getPaySubscriptionRetrieveService() {
return paySubscriptionRetrieveService;
}
/**
* Sets the paySubscriptionRetrieveService value for this RequestMessage.
*
* @param paySubscriptionRetrieveService
*/
public void setPaySubscriptionRetrieveService(org.broadleafcommerce.vendor.cybersource.service.api.PaySubscriptionRetrieveService paySubscriptionRetrieveService) {
this.paySubscriptionRetrieveService = paySubscriptionRetrieveService;
}
/**
* Gets the payPalPaymentService value for this RequestMessage.
*
* @return payPalPaymentService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalPaymentService getPayPalPaymentService() {
return payPalPaymentService;
}
/**
* Sets the payPalPaymentService value for this RequestMessage.
*
* @param payPalPaymentService
*/
public void setPayPalPaymentService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalPaymentService payPalPaymentService) {
this.payPalPaymentService = payPalPaymentService;
}
/**
* Gets the payPalCreditService value for this RequestMessage.
*
* @return payPalCreditService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalCreditService getPayPalCreditService() {
return payPalCreditService;
}
/**
* Sets the payPalCreditService value for this RequestMessage.
*
* @param payPalCreditService
*/
public void setPayPalCreditService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalCreditService payPalCreditService) {
this.payPalCreditService = payPalCreditService;
}
/**
* Gets the voidService value for this RequestMessage.
*
* @return voidService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.VoidService getVoidService() {
return voidService;
}
/**
* Sets the voidService value for this RequestMessage.
*
* @param voidService
*/
public void setVoidService(org.broadleafcommerce.vendor.cybersource.service.api.VoidService voidService) {
this.voidService = voidService;
}
/**
* Gets the businessRules value for this RequestMessage.
*
* @return businessRules
*/
public org.broadleafcommerce.vendor.cybersource.service.api.BusinessRules getBusinessRules() {
return businessRules;
}
/**
* Sets the businessRules value for this RequestMessage.
*
* @param businessRules
*/
public void setBusinessRules(org.broadleafcommerce.vendor.cybersource.service.api.BusinessRules businessRules) {
this.businessRules = businessRules;
}
/**
* Gets the pinlessDebitService value for this RequestMessage.
*
* @return pinlessDebitService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitService getPinlessDebitService() {
return pinlessDebitService;
}
/**
* Sets the pinlessDebitService value for this RequestMessage.
*
* @param pinlessDebitService
*/
public void setPinlessDebitService(org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitService pinlessDebitService) {
this.pinlessDebitService = pinlessDebitService;
}
/**
* Gets the pinlessDebitValidateService value for this RequestMessage.
*
* @return pinlessDebitValidateService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitValidateService getPinlessDebitValidateService() {
return pinlessDebitValidateService;
}
/**
* Sets the pinlessDebitValidateService value for this RequestMessage.
*
* @param pinlessDebitValidateService
*/
public void setPinlessDebitValidateService(org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitValidateService pinlessDebitValidateService) {
this.pinlessDebitValidateService = pinlessDebitValidateService;
}
/**
* Gets the pinlessDebitReversalService value for this RequestMessage.
*
* @return pinlessDebitReversalService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitReversalService getPinlessDebitReversalService() {
return pinlessDebitReversalService;
}
/**
* Sets the pinlessDebitReversalService value for this RequestMessage.
*
* @param pinlessDebitReversalService
*/
public void setPinlessDebitReversalService(org.broadleafcommerce.vendor.cybersource.service.api.PinlessDebitReversalService pinlessDebitReversalService) {
this.pinlessDebitReversalService = pinlessDebitReversalService;
}
/**
* Gets the batch value for this RequestMessage.
*
* @return batch
*/
public org.broadleafcommerce.vendor.cybersource.service.api.Batch getBatch() {
return batch;
}
/**
* Sets the batch value for this RequestMessage.
*
* @param batch
*/
public void setBatch(org.broadleafcommerce.vendor.cybersource.service.api.Batch batch) {
this.batch = batch;
}
/**
* Gets the airlineData value for this RequestMessage.
*
* @return airlineData
*/
public org.broadleafcommerce.vendor.cybersource.service.api.AirlineData getAirlineData() {
return airlineData;
}
/**
* Sets the airlineData value for this RequestMessage.
*
* @param airlineData
*/
public void setAirlineData(org.broadleafcommerce.vendor.cybersource.service.api.AirlineData airlineData) {
this.airlineData = airlineData;
}
/**
* Gets the payPalButtonCreateService value for this RequestMessage.
*
* @return payPalButtonCreateService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalButtonCreateService getPayPalButtonCreateService() {
return payPalButtonCreateService;
}
/**
* Sets the payPalButtonCreateService value for this RequestMessage.
*
* @param payPalButtonCreateService
*/
public void setPayPalButtonCreateService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalButtonCreateService payPalButtonCreateService) {
this.payPalButtonCreateService = payPalButtonCreateService;
}
/**
* Gets the payPalPreapprovedPaymentService value for this RequestMessage.
*
* @return payPalPreapprovedPaymentService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalPreapprovedPaymentService getPayPalPreapprovedPaymentService() {
return payPalPreapprovedPaymentService;
}
/**
* Sets the payPalPreapprovedPaymentService value for this RequestMessage.
*
* @param payPalPreapprovedPaymentService
*/
public void setPayPalPreapprovedPaymentService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalPreapprovedPaymentService payPalPreapprovedPaymentService) {
this.payPalPreapprovedPaymentService = payPalPreapprovedPaymentService;
}
/**
* Gets the payPalPreapprovedUpdateService value for this RequestMessage.
*
* @return payPalPreapprovedUpdateService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalPreapprovedUpdateService getPayPalPreapprovedUpdateService() {
return payPalPreapprovedUpdateService;
}
/**
* Sets the payPalPreapprovedUpdateService value for this RequestMessage.
*
* @param payPalPreapprovedUpdateService
*/
public void setPayPalPreapprovedUpdateService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalPreapprovedUpdateService payPalPreapprovedUpdateService) {
this.payPalPreapprovedUpdateService = payPalPreapprovedUpdateService;
}
/**
* Gets the riskUpdateService value for this RequestMessage.
*
* @return riskUpdateService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.RiskUpdateService getRiskUpdateService() {
return riskUpdateService;
}
/**
* Sets the riskUpdateService value for this RequestMessage.
*
* @param riskUpdateService
*/
public void setRiskUpdateService(org.broadleafcommerce.vendor.cybersource.service.api.RiskUpdateService riskUpdateService) {
this.riskUpdateService = riskUpdateService;
}
/**
* Gets the reserved value for this RequestMessage.
*
* @return reserved
*/
public org.broadleafcommerce.vendor.cybersource.service.api.RequestReserved[] getReserved() {
return reserved;
}
/**
* Sets the reserved value for this RequestMessage.
*
* @param reserved
*/
public void setReserved(org.broadleafcommerce.vendor.cybersource.service.api.RequestReserved[] reserved) {
this.reserved = reserved;
}
public org.broadleafcommerce.vendor.cybersource.service.api.RequestReserved getReserved(int i) {
return this.reserved[i];
}
public void setReserved(int i, org.broadleafcommerce.vendor.cybersource.service.api.RequestReserved _value) {
this.reserved[i] = _value;
}
/**
* Gets the deviceFingerprintID value for this RequestMessage.
*
* @return deviceFingerprintID
*/
public java.lang.String getDeviceFingerprintID() {
return deviceFingerprintID;
}
/**
* Sets the deviceFingerprintID value for this RequestMessage.
*
* @param deviceFingerprintID
*/
public void setDeviceFingerprintID(java.lang.String deviceFingerprintID) {
this.deviceFingerprintID = deviceFingerprintID;
}
/**
* Gets the payPalRefundService value for this RequestMessage.
*
* @return payPalRefundService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalRefundService getPayPalRefundService() {
return payPalRefundService;
}
/**
* Sets the payPalRefundService value for this RequestMessage.
*
* @param payPalRefundService
*/
public void setPayPalRefundService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalRefundService payPalRefundService) {
this.payPalRefundService = payPalRefundService;
}
/**
* Gets the payPalAuthReversalService value for this RequestMessage.
*
* @return payPalAuthReversalService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalAuthReversalService getPayPalAuthReversalService() {
return payPalAuthReversalService;
}
/**
* Sets the payPalAuthReversalService value for this RequestMessage.
*
* @param payPalAuthReversalService
*/
public void setPayPalAuthReversalService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalAuthReversalService payPalAuthReversalService) {
this.payPalAuthReversalService = payPalAuthReversalService;
}
/**
* Gets the payPalDoCaptureService value for this RequestMessage.
*
* @return payPalDoCaptureService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalDoCaptureService getPayPalDoCaptureService() {
return payPalDoCaptureService;
}
/**
* Sets the payPalDoCaptureService value for this RequestMessage.
*
* @param payPalDoCaptureService
*/
public void setPayPalDoCaptureService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalDoCaptureService payPalDoCaptureService) {
this.payPalDoCaptureService = payPalDoCaptureService;
}
/**
* Gets the payPalEcDoPaymentService value for this RequestMessage.
*
* @return payPalEcDoPaymentService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcDoPaymentService getPayPalEcDoPaymentService() {
return payPalEcDoPaymentService;
}
/**
* Sets the payPalEcDoPaymentService value for this RequestMessage.
*
* @param payPalEcDoPaymentService
*/
public void setPayPalEcDoPaymentService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcDoPaymentService payPalEcDoPaymentService) {
this.payPalEcDoPaymentService = payPalEcDoPaymentService;
}
/**
* Gets the payPalEcGetDetailsService value for this RequestMessage.
*
* @return payPalEcGetDetailsService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcGetDetailsService getPayPalEcGetDetailsService() {
return payPalEcGetDetailsService;
}
/**
* Sets the payPalEcGetDetailsService value for this RequestMessage.
*
* @param payPalEcGetDetailsService
*/
public void setPayPalEcGetDetailsService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcGetDetailsService payPalEcGetDetailsService) {
this.payPalEcGetDetailsService = payPalEcGetDetailsService;
}
/**
* Gets the payPalEcSetService value for this RequestMessage.
*
* @return payPalEcSetService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcSetService getPayPalEcSetService() {
return payPalEcSetService;
}
/**
* Sets the payPalEcSetService value for this RequestMessage.
*
* @param payPalEcSetService
*/
public void setPayPalEcSetService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcSetService payPalEcSetService) {
this.payPalEcSetService = payPalEcSetService;
}
/**
* Gets the payPalEcOrderSetupService value for this RequestMessage.
*
* @return payPalEcOrderSetupService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcOrderSetupService getPayPalEcOrderSetupService() {
return payPalEcOrderSetupService;
}
/**
* Sets the payPalEcOrderSetupService value for this RequestMessage.
*
* @param payPalEcOrderSetupService
*/
public void setPayPalEcOrderSetupService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalEcOrderSetupService payPalEcOrderSetupService) {
this.payPalEcOrderSetupService = payPalEcOrderSetupService;
}
/**
* Gets the payPalAuthorizationService value for this RequestMessage.
*
* @return payPalAuthorizationService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalAuthorizationService getPayPalAuthorizationService() {
return payPalAuthorizationService;
}
/**
* Sets the payPalAuthorizationService value for this RequestMessage.
*
* @param payPalAuthorizationService
*/
public void setPayPalAuthorizationService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalAuthorizationService payPalAuthorizationService) {
this.payPalAuthorizationService = payPalAuthorizationService;
}
/**
* Gets the payPalUpdateAgreementService value for this RequestMessage.
*
* @return payPalUpdateAgreementService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalUpdateAgreementService getPayPalUpdateAgreementService() {
return payPalUpdateAgreementService;
}
/**
* Sets the payPalUpdateAgreementService value for this RequestMessage.
*
* @param payPalUpdateAgreementService
*/
public void setPayPalUpdateAgreementService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalUpdateAgreementService payPalUpdateAgreementService) {
this.payPalUpdateAgreementService = payPalUpdateAgreementService;
}
/**
* Gets the payPalCreateAgreementService value for this RequestMessage.
*
* @return payPalCreateAgreementService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalCreateAgreementService getPayPalCreateAgreementService() {
return payPalCreateAgreementService;
}
/**
* Sets the payPalCreateAgreementService value for this RequestMessage.
*
* @param payPalCreateAgreementService
*/
public void setPayPalCreateAgreementService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalCreateAgreementService payPalCreateAgreementService) {
this.payPalCreateAgreementService = payPalCreateAgreementService;
}
/**
* Gets the payPalDoRefTransactionService value for this RequestMessage.
*
* @return payPalDoRefTransactionService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.PayPalDoRefTransactionService getPayPalDoRefTransactionService() {
return payPalDoRefTransactionService;
}
/**
* Sets the payPalDoRefTransactionService value for this RequestMessage.
*
* @param payPalDoRefTransactionService
*/
public void setPayPalDoRefTransactionService(org.broadleafcommerce.vendor.cybersource.service.api.PayPalDoRefTransactionService payPalDoRefTransactionService) {
this.payPalDoRefTransactionService = payPalDoRefTransactionService;
}
/**
* Gets the chinaPaymentService value for this RequestMessage.
*
* @return chinaPaymentService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.ChinaPaymentService getChinaPaymentService() {
return chinaPaymentService;
}
/**
* Sets the chinaPaymentService value for this RequestMessage.
*
* @param chinaPaymentService
*/
public void setChinaPaymentService(org.broadleafcommerce.vendor.cybersource.service.api.ChinaPaymentService chinaPaymentService) {
this.chinaPaymentService = chinaPaymentService;
}
/**
* Gets the chinaRefundService value for this RequestMessage.
*
* @return chinaRefundService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.ChinaRefundService getChinaRefundService() {
return chinaRefundService;
}
/**
* Sets the chinaRefundService value for this RequestMessage.
*
* @param chinaRefundService
*/
public void setChinaRefundService(org.broadleafcommerce.vendor.cybersource.service.api.ChinaRefundService chinaRefundService) {
this.chinaRefundService = chinaRefundService;
}
/**
* Gets the boletoPaymentService value for this RequestMessage.
*
* @return boletoPaymentService
*/
public org.broadleafcommerce.vendor.cybersource.service.api.BoletoPaymentService getBoletoPaymentService() {
return boletoPaymentService;
}
/**
* Sets the boletoPaymentService value for this RequestMessage.
*
* @param boletoPaymentService
*/
public void setBoletoPaymentService(org.broadleafcommerce.vendor.cybersource.service.api.BoletoPaymentService boletoPaymentService) {
this.boletoPaymentService = boletoPaymentService;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof RequestMessage)) return false;
RequestMessage other = (RequestMessage) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.merchantID==null && other.getMerchantID()==null) ||
(this.merchantID!=null &&
this.merchantID.equals(other.getMerchantID()))) &&
((this.merchantReferenceCode==null && other.getMerchantReferenceCode()==null) ||
(this.merchantReferenceCode!=null &&
this.merchantReferenceCode.equals(other.getMerchantReferenceCode()))) &&
((this.debtIndicator==null && other.getDebtIndicator()==null) ||
(this.debtIndicator!=null &&
this.debtIndicator.equals(other.getDebtIndicator()))) &&
((this.clientLibrary==null && other.getClientLibrary()==null) ||
(this.clientLibrary!=null &&
this.clientLibrary.equals(other.getClientLibrary()))) &&
((this.clientLibraryVersion==null && other.getClientLibraryVersion()==null) ||
(this.clientLibraryVersion!=null &&
this.clientLibraryVersion.equals(other.getClientLibraryVersion()))) &&
((this.clientEnvironment==null && other.getClientEnvironment()==null) ||
(this.clientEnvironment!=null &&
this.clientEnvironment.equals(other.getClientEnvironment()))) &&
((this.clientSecurityLibraryVersion==null && other.getClientSecurityLibraryVersion()==null) ||
(this.clientSecurityLibraryVersion!=null &&
this.clientSecurityLibraryVersion.equals(other.getClientSecurityLibraryVersion()))) &&
((this.clientApplication==null && other.getClientApplication()==null) ||
(this.clientApplication!=null &&
this.clientApplication.equals(other.getClientApplication()))) &&
((this.clientApplicationVersion==null && other.getClientApplicationVersion()==null) ||
(this.clientApplicationVersion!=null &&
this.clientApplicationVersion.equals(other.getClientApplicationVersion()))) &&
((this.clientApplicationUser==null && other.getClientApplicationUser()==null) ||
(this.clientApplicationUser!=null &&
this.clientApplicationUser.equals(other.getClientApplicationUser()))) &&
((this.routingCode==null && other.getRoutingCode()==null) ||
(this.routingCode!=null &&
this.routingCode.equals(other.getRoutingCode()))) &&
((this.comments==null && other.getComments()==null) ||
(this.comments!=null &&
this.comments.equals(other.getComments()))) &&
((this.returnURL==null && other.getReturnURL()==null) ||
(this.returnURL!=null &&
this.returnURL.equals(other.getReturnURL()))) &&
((this.invoiceHeader==null && other.getInvoiceHeader()==null) ||
(this.invoiceHeader!=null &&
this.invoiceHeader.equals(other.getInvoiceHeader()))) &&
((this.billTo==null && other.getBillTo()==null) ||
(this.billTo!=null &&
this.billTo.equals(other.getBillTo()))) &&
((this.shipTo==null && other.getShipTo()==null) ||
(this.shipTo!=null &&
this.shipTo.equals(other.getShipTo()))) &&
((this.shipFrom==null && other.getShipFrom()==null) ||
(this.shipFrom!=null &&
this.shipFrom.equals(other.getShipFrom()))) &&
((this.item==null && other.getItem()==null) ||
(this.item!=null &&
java.util.Arrays.equals(this.item, other.getItem()))) &&
((this.purchaseTotals==null && other.getPurchaseTotals()==null) ||
(this.purchaseTotals!=null &&
this.purchaseTotals.equals(other.getPurchaseTotals()))) &&
((this.fundingTotals==null && other.getFundingTotals()==null) ||
(this.fundingTotals!=null &&
this.fundingTotals.equals(other.getFundingTotals()))) &&
((this.dcc==null && other.getDcc()==null) ||
(this.dcc!=null &&
this.dcc.equals(other.getDcc()))) &&
((this.pos==null && other.getPos()==null) ||
(this.pos!=null &&
this.pos.equals(other.getPos()))) &&
((this.installment==null && other.getInstallment()==null) ||
(this.installment!=null &&
this.installment.equals(other.getInstallment()))) &&
((this.card==null && other.getCard()==null) ||
(this.card!=null &&
this.card.equals(other.getCard()))) &&
((this.check==null && other.getCheck()==null) ||
(this.check!=null &&
this.check.equals(other.getCheck()))) &&
((this.bml==null && other.getBml()==null) ||
(this.bml!=null &&
this.bml.equals(other.getBml()))) &&
((this.gecc==null && other.getGecc()==null) ||
(this.gecc!=null &&
this.gecc.equals(other.getGecc()))) &&
((this.ucaf==null && other.getUcaf()==null) ||
(this.ucaf!=null &&
this.ucaf.equals(other.getUcaf()))) &&
((this.fundTransfer==null && other.getFundTransfer()==null) ||
(this.fundTransfer!=null &&
this.fundTransfer.equals(other.getFundTransfer()))) &&
((this.bankInfo==null && other.getBankInfo()==null) ||
(this.bankInfo!=null &&
this.bankInfo.equals(other.getBankInfo()))) &&
((this.subscription==null && other.getSubscription()==null) ||
(this.subscription!=null &&
this.subscription.equals(other.getSubscription()))) &&
((this.recurringSubscriptionInfo==null && other.getRecurringSubscriptionInfo()==null) ||
(this.recurringSubscriptionInfo!=null &&
this.recurringSubscriptionInfo.equals(other.getRecurringSubscriptionInfo()))) &&
((this.decisionManager==null && other.getDecisionManager()==null) ||
(this.decisionManager!=null &&
this.decisionManager.equals(other.getDecisionManager()))) &&
((this.otherTax==null && other.getOtherTax()==null) ||
(this.otherTax!=null &&
this.otherTax.equals(other.getOtherTax()))) &&
((this.paypal==null && other.getPaypal()==null) ||
(this.paypal!=null &&
this.paypal.equals(other.getPaypal()))) &&
((this.merchantDefinedData==null && other.getMerchantDefinedData()==null) ||
(this.merchantDefinedData!=null &&
this.merchantDefinedData.equals(other.getMerchantDefinedData()))) &&
((this.merchantSecureData==null && other.getMerchantSecureData()==null) ||
(this.merchantSecureData!=null &&
this.merchantSecureData.equals(other.getMerchantSecureData()))) &&
((this.jpo==null && other.getJpo()==null) ||
(this.jpo!=null &&
this.jpo.equals(other.getJpo()))) &&
((this.orderRequestToken==null && other.getOrderRequestToken()==null) ||
(this.orderRequestToken!=null &&
this.orderRequestToken.equals(other.getOrderRequestToken()))) &&
((this.ccAuthService==null && other.getCcAuthService()==null) ||
(this.ccAuthService!=null &&
this.ccAuthService.equals(other.getCcAuthService()))) &&
((this.ccCaptureService==null && other.getCcCaptureService()==null) ||
(this.ccCaptureService!=null &&
this.ccCaptureService.equals(other.getCcCaptureService()))) &&
((this.ccCreditService==null && other.getCcCreditService()==null) ||
(this.ccCreditService!=null &&
this.ccCreditService.equals(other.getCcCreditService()))) &&
((this.ccAuthReversalService==null && other.getCcAuthReversalService()==null) ||
(this.ccAuthReversalService!=null &&
this.ccAuthReversalService.equals(other.getCcAuthReversalService()))) &&
((this.ccAutoAuthReversalService==null && other.getCcAutoAuthReversalService()==null) ||
(this.ccAutoAuthReversalService!=null &&
this.ccAutoAuthReversalService.equals(other.getCcAutoAuthReversalService()))) &&
((this.ccDCCService==null && other.getCcDCCService()==null) ||
(this.ccDCCService!=null &&
this.ccDCCService.equals(other.getCcDCCService()))) &&
((this.ecDebitService==null && other.getEcDebitService()==null) ||
(this.ecDebitService!=null &&
this.ecDebitService.equals(other.getEcDebitService()))) &&
((this.ecCreditService==null && other.getEcCreditService()==null) ||
(this.ecCreditService!=null &&
this.ecCreditService.equals(other.getEcCreditService()))) &&
((this.ecAuthenticateService==null && other.getEcAuthenticateService()==null) ||
(this.ecAuthenticateService!=null &&
this.ecAuthenticateService.equals(other.getEcAuthenticateService()))) &&
((this.payerAuthEnrollService==null && other.getPayerAuthEnrollService()==null) ||
(this.payerAuthEnrollService!=null &&
this.payerAuthEnrollService.equals(other.getPayerAuthEnrollService()))) &&
((this.payerAuthValidateService==null && other.getPayerAuthValidateService()==null) ||
(this.payerAuthValidateService!=null &&
this.payerAuthValidateService.equals(other.getPayerAuthValidateService()))) &&
((this.taxService==null && other.getTaxService()==null) ||
(this.taxService!=null &&
this.taxService.equals(other.getTaxService()))) &&
((this.afsService==null && other.getAfsService()==null) ||
(this.afsService!=null &&
this.afsService.equals(other.getAfsService()))) &&
((this.davService==null && other.getDavService()==null) ||
(this.davService!=null &&
this.davService.equals(other.getDavService()))) &&
((this.exportService==null && other.getExportService()==null) ||
(this.exportService!=null &&
this.exportService.equals(other.getExportService()))) &&
((this.fxRatesService==null && other.getFxRatesService()==null) ||
(this.fxRatesService!=null &&
this.fxRatesService.equals(other.getFxRatesService()))) &&
((this.bankTransferService==null && other.getBankTransferService()==null) ||
(this.bankTransferService!=null &&
this.bankTransferService.equals(other.getBankTransferService()))) &&
((this.bankTransferRefundService==null && other.getBankTransferRefundService()==null) ||
(this.bankTransferRefundService!=null &&
this.bankTransferRefundService.equals(other.getBankTransferRefundService()))) &&
((this.bankTransferRealTimeService==null && other.getBankTransferRealTimeService()==null) ||
(this.bankTransferRealTimeService!=null &&
this.bankTransferRealTimeService.equals(other.getBankTransferRealTimeService()))) &&
((this.directDebitMandateService==null && other.getDirectDebitMandateService()==null) ||
(this.directDebitMandateService!=null &&
this.directDebitMandateService.equals(other.getDirectDebitMandateService()))) &&
((this.directDebitService==null && other.getDirectDebitService()==null) ||
(this.directDebitService!=null &&
this.directDebitService.equals(other.getDirectDebitService()))) &&
((this.directDebitRefundService==null && other.getDirectDebitRefundService()==null) ||
(this.directDebitRefundService!=null &&
this.directDebitRefundService.equals(other.getDirectDebitRefundService()))) &&
((this.directDebitValidateService==null && other.getDirectDebitValidateService()==null) ||
(this.directDebitValidateService!=null &&
this.directDebitValidateService.equals(other.getDirectDebitValidateService()))) &&
((this.paySubscriptionCreateService==null && other.getPaySubscriptionCreateService()==null) ||
(this.paySubscriptionCreateService!=null &&
this.paySubscriptionCreateService.equals(other.getPaySubscriptionCreateService()))) &&
((this.paySubscriptionUpdateService==null && other.getPaySubscriptionUpdateService()==null) ||
(this.paySubscriptionUpdateService!=null &&
this.paySubscriptionUpdateService.equals(other.getPaySubscriptionUpdateService()))) &&
((this.paySubscriptionEventUpdateService==null && other.getPaySubscriptionEventUpdateService()==null) ||
(this.paySubscriptionEventUpdateService!=null &&
this.paySubscriptionEventUpdateService.equals(other.getPaySubscriptionEventUpdateService()))) &&
((this.paySubscriptionRetrieveService==null && other.getPaySubscriptionRetrieveService()==null) ||
(this.paySubscriptionRetrieveService!=null &&
this.paySubscriptionRetrieveService.equals(other.getPaySubscriptionRetrieveService()))) &&
((this.payPalPaymentService==null && other.getPayPalPaymentService()==null) ||
(this.payPalPaymentService!=null &&
this.payPalPaymentService.equals(other.getPayPalPaymentService()))) &&
((this.payPalCreditService==null && other.getPayPalCreditService()==null) ||
(this.payPalCreditService!=null &&
this.payPalCreditService.equals(other.getPayPalCreditService()))) &&
((this.voidService==null && other.getVoidService()==null) ||
(this.voidService!=null &&
this.voidService.equals(other.getVoidService()))) &&
((this.businessRules==null && other.getBusinessRules()==null) ||
(this.businessRules!=null &&
this.businessRules.equals(other.getBusinessRules()))) &&
((this.pinlessDebitService==null && other.getPinlessDebitService()==null) ||
(this.pinlessDebitService!=null &&
this.pinlessDebitService.equals(other.getPinlessDebitService()))) &&
((this.pinlessDebitValidateService==null && other.getPinlessDebitValidateService()==null) ||
(this.pinlessDebitValidateService!=null &&
this.pinlessDebitValidateService.equals(other.getPinlessDebitValidateService()))) &&
((this.pinlessDebitReversalService==null && other.getPinlessDebitReversalService()==null) ||
(this.pinlessDebitReversalService!=null &&
this.pinlessDebitReversalService.equals(other.getPinlessDebitReversalService()))) &&
((this.batch==null && other.getBatch()==null) ||
(this.batch!=null &&
this.batch.equals(other.getBatch()))) &&
((this.airlineData==null && other.getAirlineData()==null) ||
(this.airlineData!=null &&
this.airlineData.equals(other.getAirlineData()))) &&
((this.payPalButtonCreateService==null && other.getPayPalButtonCreateService()==null) ||
(this.payPalButtonCreateService!=null &&
this.payPalButtonCreateService.equals(other.getPayPalButtonCreateService()))) &&
((this.payPalPreapprovedPaymentService==null && other.getPayPalPreapprovedPaymentService()==null) ||
(this.payPalPreapprovedPaymentService!=null &&
this.payPalPreapprovedPaymentService.equals(other.getPayPalPreapprovedPaymentService()))) &&
((this.payPalPreapprovedUpdateService==null && other.getPayPalPreapprovedUpdateService()==null) ||
(this.payPalPreapprovedUpdateService!=null &&
this.payPalPreapprovedUpdateService.equals(other.getPayPalPreapprovedUpdateService()))) &&
((this.riskUpdateService==null && other.getRiskUpdateService()==null) ||
(this.riskUpdateService!=null &&
this.riskUpdateService.equals(other.getRiskUpdateService()))) &&
((this.reserved==null && other.getReserved()==null) ||
(this.reserved!=null &&
java.util.Arrays.equals(this.reserved, other.getReserved()))) &&
((this.deviceFingerprintID==null && other.getDeviceFingerprintID()==null) ||
(this.deviceFingerprintID!=null &&
this.deviceFingerprintID.equals(other.getDeviceFingerprintID()))) &&
((this.payPalRefundService==null && other.getPayPalRefundService()==null) ||
(this.payPalRefundService!=null &&
this.payPalRefundService.equals(other.getPayPalRefundService()))) &&
((this.payPalAuthReversalService==null && other.getPayPalAuthReversalService()==null) ||
(this.payPalAuthReversalService!=null &&
this.payPalAuthReversalService.equals(other.getPayPalAuthReversalService()))) &&
((this.payPalDoCaptureService==null && other.getPayPalDoCaptureService()==null) ||
(this.payPalDoCaptureService!=null &&
this.payPalDoCaptureService.equals(other.getPayPalDoCaptureService()))) &&
((this.payPalEcDoPaymentService==null && other.getPayPalEcDoPaymentService()==null) ||
(this.payPalEcDoPaymentService!=null &&
this.payPalEcDoPaymentService.equals(other.getPayPalEcDoPaymentService()))) &&
((this.payPalEcGetDetailsService==null && other.getPayPalEcGetDetailsService()==null) ||
(this.payPalEcGetDetailsService!=null &&
this.payPalEcGetDetailsService.equals(other.getPayPalEcGetDetailsService()))) &&
((this.payPalEcSetService==null && other.getPayPalEcSetService()==null) ||
(this.payPalEcSetService!=null &&
this.payPalEcSetService.equals(other.getPayPalEcSetService()))) &&
((this.payPalEcOrderSetupService==null && other.getPayPalEcOrderSetupService()==null) ||
(this.payPalEcOrderSetupService!=null &&
this.payPalEcOrderSetupService.equals(other.getPayPalEcOrderSetupService()))) &&
((this.payPalAuthorizationService==null && other.getPayPalAuthorizationService()==null) ||
(this.payPalAuthorizationService!=null &&
this.payPalAuthorizationService.equals(other.getPayPalAuthorizationService()))) &&
((this.payPalUpdateAgreementService==null && other.getPayPalUpdateAgreementService()==null) ||
(this.payPalUpdateAgreementService!=null &&
this.payPalUpdateAgreementService.equals(other.getPayPalUpdateAgreementService()))) &&
((this.payPalCreateAgreementService==null && other.getPayPalCreateAgreementService()==null) ||
(this.payPalCreateAgreementService!=null &&
this.payPalCreateAgreementService.equals(other.getPayPalCreateAgreementService()))) &&
((this.payPalDoRefTransactionService==null && other.getPayPalDoRefTransactionService()==null) ||
(this.payPalDoRefTransactionService!=null &&
this.payPalDoRefTransactionService.equals(other.getPayPalDoRefTransactionService()))) &&
((this.chinaPaymentService==null && other.getChinaPaymentService()==null) ||
(this.chinaPaymentService!=null &&
this.chinaPaymentService.equals(other.getChinaPaymentService()))) &&
((this.chinaRefundService==null && other.getChinaRefundService()==null) ||
(this.chinaRefundService!=null &&
this.chinaRefundService.equals(other.getChinaRefundService()))) &&
((this.boletoPaymentService==null && other.getBoletoPaymentService()==null) ||
(this.boletoPaymentService!=null &&
this.boletoPaymentService.equals(other.getBoletoPaymentService())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getMerchantID() != null) {
_hashCode += getMerchantID().hashCode();
}
if (getMerchantReferenceCode() != null) {
_hashCode += getMerchantReferenceCode().hashCode();
}
if (getDebtIndicator() != null) {
_hashCode += getDebtIndicator().hashCode();
}
if (getClientLibrary() != null) {
_hashCode += getClientLibrary().hashCode();
}
if (getClientLibraryVersion() != null) {
_hashCode += getClientLibraryVersion().hashCode();
}
if (getClientEnvironment() != null) {
_hashCode += getClientEnvironment().hashCode();
}
if (getClientSecurityLibraryVersion() != null) {
_hashCode += getClientSecurityLibraryVersion().hashCode();
}
if (getClientApplication() != null) {
_hashCode += getClientApplication().hashCode();
}
if (getClientApplicationVersion() != null) {
_hashCode += getClientApplicationVersion().hashCode();
}
if (getClientApplicationUser() != null) {
_hashCode += getClientApplicationUser().hashCode();
}
if (getRoutingCode() != null) {
_hashCode += getRoutingCode().hashCode();
}
if (getComments() != null) {
_hashCode += getComments().hashCode();
}
if (getReturnURL() != null) {
_hashCode += getReturnURL().hashCode();
}
if (getInvoiceHeader() != null) {
_hashCode += getInvoiceHeader().hashCode();
}
if (getBillTo() != null) {
_hashCode += getBillTo().hashCode();
}
if (getShipTo() != null) {
_hashCode += getShipTo().hashCode();
}
if (getShipFrom() != null) {
_hashCode += getShipFrom().hashCode();
}
if (getItem() != null) {
for (int i=0;
i<java.lang.reflect.Array.getLength(getItem());
i++) {
java.lang.Object obj = java.lang.reflect.Array.get(getItem(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
if (getPurchaseTotals() != null) {
_hashCode += getPurchaseTotals().hashCode();
}
if (getFundingTotals() != null) {
_hashCode += getFundingTotals().hashCode();
}
if (getDcc() != null) {
_hashCode += getDcc().hashCode();
}
if (getPos() != null) {
_hashCode += getPos().hashCode();
}
if (getInstallment() != null) {
_hashCode += getInstallment().hashCode();
}
if (getCard() != null) {
_hashCode += getCard().hashCode();
}
if (getCheck() != null) {
_hashCode += getCheck().hashCode();
}
if (getBml() != null) {
_hashCode += getBml().hashCode();
}
if (getGecc() != null) {
_hashCode += getGecc().hashCode();
}
if (getUcaf() != null) {
_hashCode += getUcaf().hashCode();
}
if (getFundTransfer() != null) {
_hashCode += getFundTransfer().hashCode();
}
if (getBankInfo() != null) {
_hashCode += getBankInfo().hashCode();
}
if (getSubscription() != null) {
_hashCode += getSubscription().hashCode();
}
if (getRecurringSubscriptionInfo() != null) {
_hashCode += getRecurringSubscriptionInfo().hashCode();
}
if (getDecisionManager() != null) {
_hashCode += getDecisionManager().hashCode();
}
if (getOtherTax() != null) {
_hashCode += getOtherTax().hashCode();
}
if (getPaypal() != null) {
_hashCode += getPaypal().hashCode();
}
if (getMerchantDefinedData() != null) {
_hashCode += getMerchantDefinedData().hashCode();
}
if (getMerchantSecureData() != null) {
_hashCode += getMerchantSecureData().hashCode();
}
if (getJpo() != null) {
_hashCode += getJpo().hashCode();
}
if (getOrderRequestToken() != null) {
_hashCode += getOrderRequestToken().hashCode();
}
if (getCcAuthService() != null) {
_hashCode += getCcAuthService().hashCode();
}
if (getCcCaptureService() != null) {
_hashCode += getCcCaptureService().hashCode();
}
if (getCcCreditService() != null) {
_hashCode += getCcCreditService().hashCode();
}
if (getCcAuthReversalService() != null) {
_hashCode += getCcAuthReversalService().hashCode();
}
if (getCcAutoAuthReversalService() != null) {
_hashCode += getCcAutoAuthReversalService().hashCode();
}
if (getCcDCCService() != null) {
_hashCode += getCcDCCService().hashCode();
}
if (getEcDebitService() != null) {
_hashCode += getEcDebitService().hashCode();
}
if (getEcCreditService() != null) {
_hashCode += getEcCreditService().hashCode();
}
if (getEcAuthenticateService() != null) {
_hashCode += getEcAuthenticateService().hashCode();
}
if (getPayerAuthEnrollService() != null) {
_hashCode += getPayerAuthEnrollService().hashCode();
}
if (getPayerAuthValidateService() != null) {
_hashCode += getPayerAuthValidateService().hashCode();
}
if (getTaxService() != null) {
_hashCode += getTaxService().hashCode();
}
if (getAfsService() != null) {
_hashCode += getAfsService().hashCode();
}
if (getDavService() != null) {
_hashCode += getDavService().hashCode();
}
if (getExportService() != null) {
_hashCode += getExportService().hashCode();
}
if (getFxRatesService() != null) {
_hashCode += getFxRatesService().hashCode();
}
if (getBankTransferService() != null) {
_hashCode += getBankTransferService().hashCode();
}
if (getBankTransferRefundService() != null) {
_hashCode += getBankTransferRefundService().hashCode();
}
if (getBankTransferRealTimeService() != null) {
_hashCode += getBankTransferRealTimeService().hashCode();
}
if (getDirectDebitMandateService() != null) {
_hashCode += getDirectDebitMandateService().hashCode();
}
if (getDirectDebitService() != null) {
_hashCode += getDirectDebitService().hashCode();
}
if (getDirectDebitRefundService() != null) {
_hashCode += getDirectDebitRefundService().hashCode();
}
if (getDirectDebitValidateService() != null) {
_hashCode += getDirectDebitValidateService().hashCode();
}
if (getPaySubscriptionCreateService() != null) {
_hashCode += getPaySubscriptionCreateService().hashCode();
}
if (getPaySubscriptionUpdateService() != null) {
_hashCode += getPaySubscriptionUpdateService().hashCode();
}
if (getPaySubscriptionEventUpdateService() != null) {
_hashCode += getPaySubscriptionEventUpdateService().hashCode();
}
if (getPaySubscriptionRetrieveService() != null) {
_hashCode += getPaySubscriptionRetrieveService().hashCode();
}
if (getPayPalPaymentService() != null) {
_hashCode += getPayPalPaymentService().hashCode();
}
if (getPayPalCreditService() != null) {
_hashCode += getPayPalCreditService().hashCode();
}
if (getVoidService() != null) {
_hashCode += getVoidService().hashCode();
}
if (getBusinessRules() != null) {
_hashCode += getBusinessRules().hashCode();
}
if (getPinlessDebitService() != null) {
_hashCode += getPinlessDebitService().hashCode();
}
if (getPinlessDebitValidateService() != null) {
_hashCode += getPinlessDebitValidateService().hashCode();
}
if (getPinlessDebitReversalService() != null) {
_hashCode += getPinlessDebitReversalService().hashCode();
}
if (getBatch() != null) {
_hashCode += getBatch().hashCode();
}
if (getAirlineData() != null) {
_hashCode += getAirlineData().hashCode();
}
if (getPayPalButtonCreateService() != null) {
_hashCode += getPayPalButtonCreateService().hashCode();
}
if (getPayPalPreapprovedPaymentService() != null) {
_hashCode += getPayPalPreapprovedPaymentService().hashCode();
}
if (getPayPalPreapprovedUpdateService() != null) {
_hashCode += getPayPalPreapprovedUpdateService().hashCode();
}
if (getRiskUpdateService() != null) {
_hashCode += getRiskUpdateService().hashCode();
}
if (getReserved() != null) {
for (int i=0;
i<java.lang.reflect.Array.getLength(getReserved());
i++) {
java.lang.Object obj = java.lang.reflect.Array.get(getReserved(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
if (getDeviceFingerprintID() != null) {
_hashCode += getDeviceFingerprintID().hashCode();
}
if (getPayPalRefundService() != null) {
_hashCode += getPayPalRefundService().hashCode();
}
if (getPayPalAuthReversalService() != null) {
_hashCode += getPayPalAuthReversalService().hashCode();
}
if (getPayPalDoCaptureService() != null) {
_hashCode += getPayPalDoCaptureService().hashCode();
}
if (getPayPalEcDoPaymentService() != null) {
_hashCode += getPayPalEcDoPaymentService().hashCode();
}
if (getPayPalEcGetDetailsService() != null) {
_hashCode += getPayPalEcGetDetailsService().hashCode();
}
if (getPayPalEcSetService() != null) {
_hashCode += getPayPalEcSetService().hashCode();
}
if (getPayPalEcOrderSetupService() != null) {
_hashCode += getPayPalEcOrderSetupService().hashCode();
}
if (getPayPalAuthorizationService() != null) {
_hashCode += getPayPalAuthorizationService().hashCode();
}
if (getPayPalUpdateAgreementService() != null) {
_hashCode += getPayPalUpdateAgreementService().hashCode();
}
if (getPayPalCreateAgreementService() != null) {
_hashCode += getPayPalCreateAgreementService().hashCode();
}
if (getPayPalDoRefTransactionService() != null) {
_hashCode += getPayPalDoRefTransactionService().hashCode();
}
if (getChinaPaymentService() != null) {
_hashCode += getChinaPaymentService().hashCode();
}
if (getChinaRefundService() != null) {
_hashCode += getChinaRefundService().hashCode();
}
if (getBoletoPaymentService() != null) {
_hashCode += getBoletoPaymentService().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RequestMessage.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "RequestMessage"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("merchantID");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "merchantID"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("merchantReferenceCode");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "merchantReferenceCode"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("debtIndicator");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "debtIndicator"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("clientLibrary");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "clientLibrary"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("clientLibraryVersion");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "clientLibraryVersion"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("clientEnvironment");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "clientEnvironment"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("clientSecurityLibraryVersion");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "clientSecurityLibraryVersion"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("clientApplication");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "clientApplication"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("clientApplicationVersion");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "clientApplicationVersion"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("clientApplicationUser");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "clientApplicationUser"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("routingCode");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "routingCode"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("comments");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "comments"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("returnURL");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "returnURL"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("invoiceHeader");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "invoiceHeader"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "InvoiceHeader"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("billTo");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "billTo"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "BillTo"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("shipTo");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "shipTo"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ShipTo"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("shipFrom");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "shipFrom"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ShipFrom"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("item");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "item"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "Item"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
elemField.setMaxOccursUnbounded(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("purchaseTotals");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "purchaseTotals"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PurchaseTotals"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("fundingTotals");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "fundingTotals"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "FundingTotals"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("dcc");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "dcc"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "DCC"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("pos");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "pos"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "Pos"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("installment");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "installment"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "Installment"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("card");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "card"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "Card"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("check");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "check"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "Check"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("bml");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "bml"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "BML"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("gecc");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "gecc"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "GECC"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("ucaf");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ucaf"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "UCAF"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("fundTransfer");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "fundTransfer"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "FundTransfer"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("bankInfo");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "bankInfo"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "BankInfo"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("subscription");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "subscription"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "Subscription"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("recurringSubscriptionInfo");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "recurringSubscriptionInfo"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "RecurringSubscriptionInfo"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("decisionManager");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "decisionManager"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "DecisionManager"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("otherTax");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "otherTax"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "OtherTax"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("paypal");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "paypal"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPal"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("merchantDefinedData");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "merchantDefinedData"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "MerchantDefinedData"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("merchantSecureData");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "merchantSecureData"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "MerchantSecureData"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("jpo");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "jpo"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "JPO"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("orderRequestToken");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "orderRequestToken"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("ccAuthService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ccAuthService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "CCAuthService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("ccCaptureService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ccCaptureService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "CCCaptureService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("ccCreditService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ccCreditService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "CCCreditService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("ccAuthReversalService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ccAuthReversalService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "CCAuthReversalService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("ccAutoAuthReversalService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ccAutoAuthReversalService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "CCAutoAuthReversalService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("ccDCCService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ccDCCService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "CCDCCService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("ecDebitService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ecDebitService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ECDebitService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("ecCreditService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ecCreditService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ECCreditService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("ecAuthenticateService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ecAuthenticateService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ECAuthenticateService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payerAuthEnrollService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payerAuthEnrollService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayerAuthEnrollService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payerAuthValidateService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payerAuthValidateService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayerAuthValidateService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("taxService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "taxService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "TaxService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("afsService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "afsService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "AFSService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("davService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "davService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "DAVService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("exportService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "exportService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ExportService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("fxRatesService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "fxRatesService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "FXRatesService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("bankTransferService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "bankTransferService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "BankTransferService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("bankTransferRefundService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "bankTransferRefundService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "BankTransferRefundService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("bankTransferRealTimeService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "bankTransferRealTimeService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "BankTransferRealTimeService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("directDebitMandateService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "directDebitMandateService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "DirectDebitMandateService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("directDebitService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "directDebitService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "DirectDebitService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("directDebitRefundService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "directDebitRefundService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "DirectDebitRefundService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("directDebitValidateService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "directDebitValidateService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "DirectDebitValidateService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("paySubscriptionCreateService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "paySubscriptionCreateService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PaySubscriptionCreateService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("paySubscriptionUpdateService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "paySubscriptionUpdateService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PaySubscriptionUpdateService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("paySubscriptionEventUpdateService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "paySubscriptionEventUpdateService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PaySubscriptionEventUpdateService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("paySubscriptionRetrieveService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "paySubscriptionRetrieveService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PaySubscriptionRetrieveService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalPaymentService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalPaymentService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalPaymentService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalCreditService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalCreditService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalCreditService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("voidService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "voidService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "VoidService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("businessRules");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "businessRules"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "BusinessRules"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("pinlessDebitService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "pinlessDebitService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PinlessDebitService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("pinlessDebitValidateService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "pinlessDebitValidateService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PinlessDebitValidateService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("pinlessDebitReversalService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "pinlessDebitReversalService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PinlessDebitReversalService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("batch");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "batch"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "Batch"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("airlineData");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "airlineData"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "AirlineData"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalButtonCreateService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalButtonCreateService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalButtonCreateService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalPreapprovedPaymentService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalPreapprovedPaymentService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalPreapprovedPaymentService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalPreapprovedUpdateService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalPreapprovedUpdateService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalPreapprovedUpdateService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("riskUpdateService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "riskUpdateService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "RiskUpdateService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("reserved");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "reserved"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "RequestReserved"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
elemField.setMaxOccursUnbounded(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("deviceFingerprintID");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "deviceFingerprintID"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalRefundService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalRefundService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalRefundService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalAuthReversalService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalAuthReversalService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalAuthReversalService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalDoCaptureService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalDoCaptureService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalDoCaptureService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalEcDoPaymentService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalEcDoPaymentService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalEcDoPaymentService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalEcGetDetailsService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalEcGetDetailsService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalEcGetDetailsService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalEcSetService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalEcSetService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalEcSetService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalEcOrderSetupService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalEcOrderSetupService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalEcOrderSetupService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalAuthorizationService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalAuthorizationService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalAuthorizationService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalUpdateAgreementService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalUpdateAgreementService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalUpdateAgreementService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalCreateAgreementService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalCreateAgreementService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalCreateAgreementService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("payPalDoRefTransactionService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "payPalDoRefTransactionService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "PayPalDoRefTransactionService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("chinaPaymentService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "chinaPaymentService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ChinaPaymentService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("chinaRefundService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "chinaRefundService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "ChinaRefundService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("boletoPaymentService");
elemField.setXmlName(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "boletoPaymentService"));
elemField.setXmlType(new javax.xml.namespace.QName("urn:schemas-cybersource-com:transaction-data-1.49", "BoletoPaymentService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
[
"vojdan_@192.168.1.136"
] |
vojdan_@192.168.1.136
|
beb04a37b2b86f53660074e1d09f35971ea8f0b4
|
ebd3218483d59038e8481063d5f164ba40686a3f
|
/app/src/main/java/com/gaurishankarprashad/gsstore/Adapters/trendingAdapter.java
|
8033873e9c8c684c286db9b3640499661e345221
|
[] |
no_license
|
aditya204/G-s-store
|
881cbc006142df5808aa5c5f18dd6df13dc192c4
|
b5f024f2d51e90c65cae42990f7dfeb5b90d6f52
|
refs/heads/master
| 2023-06-29T20:47:54.991020
| 2021-07-26T06:34:55
| 2021-07-26T06:34:55
| 389,527,533
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,750
|
java
|
package com.gaurishankarprashad.gsstore.Adapters;
import android.content.Intent;
import android.graphics.Color;
import android.os.Build;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.RequiresApi;
import com.bumptech.glide.Glide;
import com.gaurishankarprashad.gsstore.GroceryProductDetails;
import com.gaurishankarprashad.gsstore.Models.dealsofthedayModel;
import com.gaurishankarprashad.gsstore.R;
import java.util.List;
public class trendingAdapter extends BaseAdapter {
List<dealsofthedayModel> gridmodelList;
public trendingAdapter(List<dealsofthedayModel> gridmodelList) {
this.gridmodelList = gridmodelList;
}
@Override
public int getCount() {
return 4;
}
@Override
public Object getItem(int i) {
return null;
}
@Override
public long getItemId(int i) {
return 0;
}
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@Override
public View getView(final int i, View convertView, ViewGroup viewGroup) {
View view;
if (convertView == null) {
view = LayoutInflater.from( viewGroup.getContext( ) ).inflate( R.layout.dealsoftheday_recycler_item, null );
view.setElevation( 2 );
view.setBackgroundColor( Color.parseColor( "#ffffff" ) );
ImageView imageView = view.findViewById( R.id.dealsofthedayitemimage );
TextView title = view.findViewById( R.id.dealsofthedayitemname );
TextView descriptonwe = view.findViewById( R.id.dealsofthedayitedescription );
TextView price = view.findViewById( R.id.dealsofthedayitemprice );
final String id = gridmodelList.get( i ).getId( );
Glide.with( view.getContext( ) ).load( gridmodelList.get( i ).getImage( ) ).into( imageView );
title.setText( gridmodelList.get( i ).getTitle( ) );
imageView.setOnClickListener( new View.OnClickListener( ) {
@Override
public void onClick(View view) {
Intent intent=new Intent( view.getContext(), GroceryProductDetails.class );
intent.putExtra("product_id", id );
intent.putExtra("tag_string", gridmodelList.get( i ).getTag( ) );
view.getContext().startActivity( intent );
}
} );
descriptonwe.setText( gridmodelList.get( i ).getDescription( ) );
price.setText( gridmodelList.get( i ).getPrice( ));
} else {
view = convertView;
}
return view;
}
}
|
[
"adityaraz.6020@gmail.com"
] |
adityaraz.6020@gmail.com
|
0594c15d56c6984951efee367fc7275303b2eb52
|
ce4c49d557d1e3c6768d7270fe302924d4ee615e
|
/HttpModuleClientImplLiteHttp/src/main/java/com/kzl/lib/http/client/utils/AsyncHttpUtil.java
|
bc234b425e507ccc15cf4dbfec30709c8454e84d
|
[] |
no_license
|
zmsoft/kzl-sModuleLibs
|
f53c979f562345d89d52a7920bcbab3f7777d994
|
b03620fc7623e0ba4033802034b6bf557221bc41
|
refs/heads/master
| 2021-01-17T05:20:59.197972
| 2014-08-12T10:11:41
| 2014-08-12T10:11:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,663
|
java
|
package com.kzl.lib.http.client.utils;
import android.os.AsyncTask;
import com.kzl.lib.http.client.callback.HttpExecute;
import com.kzl.lib.http.client.interfaces.callback.HttpResponseFilter;
import com.kzl.lib.http.client.interfaces.callback.HttpResponseHandler;
import com.kzl.lib.http.client.interfaces.model.EmptyHttpResponse;
import com.litesuits.http.response.Response;
/**
* http 异步请求执行工具
* Project:LuLuModuleLibs<br/>
* Module:HttpModuleClientImplLiteHttp<br/>
* Email: <A href="kezhenlu@qq.com">kezhenlu@qq.com</A><br/>
* User: kenny.ke<br/>
* Date: 2014/4/21<br/>
* Time: 17:32<br/>
* To change this template use File | Settings | File Templates.
*/
public class AsyncHttpUtil {
/**
* 通过同步的http 请求,自己实现异步,具体请求子类实现
*
* @param classOfT
* @param handler
* @param httpExecute
* @param <T>
*/
public static <T extends EmptyHttpResponse> void execute(final Class<T> classOfT,
final HttpResponseHandler<T> handler, final HttpExecute httpExecute, final HttpResponseFilter filter) {
new AsyncTask<Void, Void, Response>() {
@Override
protected Response doInBackground(Void... params) {
return httpExecute.execute();
}
@Override
protected void onPostExecute(Response response) {
super.onPostExecute(response);
HttpCommonUtil.onFinish(HttpCommonUtil.getResponseString(response), classOfT, handler, filter);
}
}.execute();
}
}
|
[
"13622922233.sdo"
] |
13622922233.sdo
|
1de10b48371226aae727f5950f7ae6cfdd9f0166
|
45fbecce99c8c940f2d6370e9b47641bf33c80b2
|
/src/test/java/com/example/cursojava/ExampleUnitTest.java
|
855ef69f881d123d05d505437f9933ebca12d16e
|
[
"MIT"
] |
permissive
|
Gabrieroo/Calculadora-basica
|
8846114a33dc077b3d4483471f1e5a6349ccccc1
|
812f740455664227fcd63f9767707ed70645083b
|
refs/heads/master
| 2021-05-20T01:38:46.511079
| 2020-04-01T09:37:45
| 2020-04-01T09:37:45
| 252,131,402
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 398
|
java
|
package com.example.cursojava;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
|
[
"noreply@github.com"
] |
Gabrieroo.noreply@github.com
|
092b94542f3b5ca985e46b06ed82a7c2abae4a60
|
54c1dcb9a6fb9e257c6ebe7745d5008d29b0d6b6
|
/app/src/main/java/org/bouncycastle/jce/provider/ExtCRLException.java
|
8bc7f5eca64c5eda98c77476f061090abe336c89
|
[] |
no_license
|
rcoolboy/guilvN
|
3817397da465c34fcee82c0ca8c39f7292bcc7e1
|
c779a8e2e5fd458d62503dc1344aa2185101f0f0
|
refs/heads/master
| 2023-05-31T10:04:41.992499
| 2021-07-07T09:58:05
| 2021-07-07T09:58:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 338
|
java
|
package org.bouncycastle.jce.provider;
import java.security.cert.CRLException;
public class ExtCRLException extends CRLException {
public Throwable cause;
public ExtCRLException(String str, Throwable th) {
super(str);
this.cause = th;
}
public Throwable getCause() {
return this.cause;
}
}
|
[
"593746220@qq.com"
] |
593746220@qq.com
|
32c25da8d2a9efe488fba14560e2625d708aae5f
|
ebea5491ad8faffb2c8e02f93fbcfbf7c8e5cd76
|
/src/LC_387_First_Unique_Chara_String.java
|
18fced5a514c02cdde082f60c2d9102ccbc7244c
|
[] |
no_license
|
arnabs542/leetcode-13
|
695e592eca325a84a03f573c80254ecfcdb8af0a
|
87e57434c1a03d5c606c5c81b7a58c94321bd7c2
|
refs/heads/master
| 2022-09-16T07:45:11.732596
| 2020-05-31T03:50:13
| 2020-05-31T03:50:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 695
|
java
|
/*
* Copyright (c) 2020 maoyan.com
* All rights reserved.
*
*/
import java.util.HashMap;
/**
* 在这里编写类的功能描述
*
* @author guozhaoliang
* @created 20/4/11
*/
public class LC_387_First_Unique_Chara_String {
public int firstUniqChar(String s) {
HashMap<Character,Integer> count = new HashMap<Character,Integer>();
int n = s.length();
for( int i = 0 ;i<n;i++){
char c = s.charAt(i);
count.put(c,count.getOrDefault(c,0)+1);
}
for( int i=0;i<n;i++){
if(count.get(s.charAt(i)) == 1){
return i;
}
}
return -1;
}
}
|
[
"guozhaoliang@meituan.com"
] |
guozhaoliang@meituan.com
|
107e9ceada7dc8f045917b9a59f05b42472e8978
|
07c50bcd9624db500553ae5889dbeb893e13a817
|
/src/com/qcast/tower/view/adapter/MessageAdapter.java
|
c7261ad390f12a77a37172bbca6eb894fbe47a85
|
[] |
no_license
|
sovranliu/tower-android
|
33f2d4e17755c064c5f91643e5ad78b8814ab5ee
|
05f54cbdead7b8c26574bbd85db2d29a3428e1e0
|
refs/heads/master
| 2020-12-25T16:58:38.945649
| 2016-04-12T02:50:51
| 2016-04-12T02:50:51
| 41,633,487
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,943
|
java
|
package com.qcast.tower.view.adapter;
import java.util.ArrayList;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.qcast.tower.R;
import com.qcast.tower.business.structure.ChatMessage;
/**
* 列表适配器
*/
public class MessageAdapter extends BaseAdapter {
/**
* 对话元素试图
*/
public static class ChatItemView {
/**
* 对话昵称
*/
public TextView nickName;
/**
* 消息内容
*/
public TextView text;
/**
* 消息图片
*/
public ImageView image;
/**
* 是否是自己投递
*/
public boolean isSelf = true;
}
/**
* 消息列表
*/
private ArrayList<ChatMessage> messages;
/**
* 渲染器
*/
private LayoutInflater inflater;
/**
* 构造函数
*
* @param context 上下文
* @param messages 消息列表
*/
public MessageAdapter(Context context, ArrayList<ChatMessage> messages) {
this.messages = messages;
inflater = LayoutInflater.from(context);
}
public int getCount() {
return messages.size();
}
public Object getItem(int position) {
return messages.get(position);
}
public long getItemId(int position) {
return position;
}
public int getViewTypeCount() {
return 2;
}
public View getView(int position, View convertView, ViewGroup parent) {
ChatMessage entity = messages.get(position);
ChatItemView chatItemView = new ChatItemView();
if(entity.isSelf()) {
convertView = inflater.inflate(R.layout.div_message_left, null);
chatItemView.nickName = (TextView) convertView.findViewById(R.id.message_left_label_nickname);
chatItemView.text = (TextView) convertView.findViewById(R.id.message_left_label_message);
chatItemView.image = (ImageView) convertView.findViewById(R.id.message_left_image_message);
}
else {
convertView = inflater.inflate(R.layout.div_message_right, null);
chatItemView.nickName = (TextView) convertView.findViewById(R.id.message_right_label_nickname);
chatItemView.text = (TextView) convertView.findViewById(R.id.message_right_label_message);
chatItemView.image = (ImageView) convertView.findViewById(R.id.message_right_image_message);
}
chatItemView.nickName.setText(entity.getNickName());
if(null == entity.getMessage()) {
chatItemView.text.setText("");
}
else {
chatItemView.text.setText(entity.getMessage());
chatItemView.text.setVisibility(View.VISIBLE);
}
if(null == entity.getImage()) {
chatItemView.image.setVisibility(View.GONE);
}
else {
chatItemView.image.setImageBitmap(entity.getImage());
chatItemView.image.setVisibility(View.VISIBLE);
chatItemView.text.setVisibility(View.GONE);
}
return convertView;
}
}
|
[
"sovranliu@aliyun.com"
] |
sovranliu@aliyun.com
|
31325f182518cac26af42d0887a8dd29ec33a3e9
|
1f3eddf6ab85a7a7fc09587ea6b81e68be93eb5e
|
/network_part/GameClient/app/src/main/java/com/example/sahilsachdeva/gameclient/MainActivity.java
|
601b4f4c403d438aa2c571a208156bd50314ea1e
|
[] |
no_license
|
stunpayne/rush-fight
|
29a0d7147f65271b8100dd2adf9012f81fc3db15
|
92caf3e810f102c1dcb37c5481a7356c6bfd187a
|
refs/heads/master
| 2020-04-06T07:08:26.035361
| 2015-10-23T10:51:15
| 2015-10-23T10:51:15
| 41,620,093
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,120
|
java
|
package com.example.sahilsachdeva.gameclient;
import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Handler;
public class MainActivity extends Activity {
Socket clientSocket;
BufferedReader in;
PrintWriter pw;
EditText edt;
Activity activity;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
activity = getParent();
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSS");
Date date = new Date();
Log.e("Current Time Value1",date+"");
String stringDate = df.format(date)+"";//will be sent through the pipeline
//Log.e("Current Time Value2",stringDate);
//Log.e("Current Time Value3",date.getTime()+"");
try {
DateFormat df2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSS");
Date date2 = df2.parse(stringDate);
Log.e("Current Time Value6",date2+"");
//date2.setDate();
Log.e("Current Time Value4",df2.format(date2)+"");
Log.e("Current Time Value5",date2.getTime()+"");
Date date3 = new Date();
Log.e("Current Time Value8",df2.format(date3));
Log.e("Current Time Value7",date3.getTime()+"");
} catch (ParseException e) {
e.printStackTrace();
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
public void pollServer(View view){
edt = (EditText) findViewById(R.id.editText);
String serverIP = String.valueOf(edt.getText());
//edt.setText("");
PingServer pingServer = new PingServer();
Toast.makeText(getApplicationContext(),"Polling",Toast.LENGTH_SHORT).show();
pingServer.execute(new String[]{"1",serverIP});
}
public void joinServer(View view){
edt = (EditText) findViewById(R.id.editText);
String serverIP = String.valueOf(edt.getText());
Toast.makeText(getApplicationContext(),"Joining",Toast.LENGTH_SHORT).show();
PingServer pingServer = new PingServer();
pingServer.execute(new String[]{"2", serverIP});
}
public void displayToast(String toastString){
Toast.makeText(this.getApplicationContext(),toastString,Toast.LENGTH_SHORT).show();
}
private class PingServer extends AsyncTask <String,Void,Integer>{
@Override
protected Integer doInBackground(String[] params) {
String toastString="";
int createNewIntent=0;
System.out.println(params[0].toString());
switch(params[0].toString()){
case "1": try {
clientSocket = new Socket(params[1].toString(),1234);
pw = new PrintWriter(clientSocket.getOutputStream(),true);
in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
pw.println(1);
String receivedMessage = in.readLine();
if(receivedMessage.equals("Open")){
//Toast.makeText(getApplicationContext(),clientSocket.getInetAddress()+" is Open",Toast.LENGTH_SHORT).show();
toastString = clientSocket.getInetAddress()+" is Open";
System.out.println(toastString);
}
else {
//Toast.makeText(getApplicationContext(),clientSocket.getInetAddress()+" is Closed",Toast.LENGTH_SHORT).show();
toastString = clientSocket.getInetAddress()+" is Closed";
System.out.println(toastString);
}
}catch(Exception ex){
ex.printStackTrace();
}
break;
case "2": try {
clientSocket = new Socket(params[1].toString(),1234);
pw = new PrintWriter(clientSocket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
pw.println(2);
String receivedMessage = in.readLine();
System.out.println("In join Function");
if(receivedMessage.equals("Open")){
createNewIntent=1;
System.out.println("Open Server");
//Toast.makeText(getApplicationContext(),"Connecting to "+clientSocket.getInetAddress(),Toast.LENGTH_SHORT).show();
SocketSingleton.setSocket(clientSocket);
SocketSingleton.setBufferedReader(in);
SocketSingleton.setPrintWriter(pw);
}
else {
toastString=clientSocket.getInetAddress()+" is Closed";
//Toast.makeText(getApplicationContext(),clientSocket.getInetAddress()+" is Closed",Toast.LENGTH_SHORT).show();
}
}catch(Exception ex){
ex.printStackTrace();
}
break;
}
return createNewIntent;
}
protected void onPostExecute(Integer createNewIntent) {
System.out.println("Create New Intent Value "+ createNewIntent);
if(createNewIntent.intValue()==1){
System.out.println("CreateNewIntent"+createNewIntent);
Intent gameClientIntent = new Intent(MainActivity.this,gameClient.class);
//gameClientIntent.putExtra("Toast","Connecting to "+clientSocket.getInetAddress());
startActivity(gameClientIntent);
}
}
}
}
|
[
"sahil.sachdeva@SAs.local"
] |
sahil.sachdeva@SAs.local
|
0c8cfbc22c42b2248eab2e8b395bba36f3d96ad1
|
329d3d239f30a1aff93d4c58ac6c7385562430e7
|
/app/src/main/java/com/example/koi/HomePage.java
|
0ad32a6f86682769671d06cc10e8215028c7416c
|
[] |
no_license
|
niyitiann/koiApp3
|
c294ae5de7fe7f9c8c7e3da7640010f1ae253c40
|
89bfd8a2a8f205ceeab120d4554d6da8417b687e
|
refs/heads/master
| 2020-06-03T10:47:56.150506
| 2019-06-12T09:22:48
| 2019-06-12T09:22:48
| 191,539,887
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,120
|
java
|
package com.example.koi;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;
import android.widget.ViewFlipper;
public class HomePage extends AppCompatActivity {
ViewFlipper v_flipper;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home_page);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
int images[] = {R.drawable.menu, R.drawable.signature_drinks, R.drawable.milk_tea, R.drawable.taro_milktea,R.drawable.brownsugar_milktea};
v_flipper = findViewById(R.id.v_flipper);
for (int image: images)
{
flipperImages(image);
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu)
{
//Inflate the menu; this adds items to the action bar if it is present.
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId())
{
case R.id.menu:
Toast.makeText(this,"Item 1 selected",Toast.LENGTH_SHORT).show();
return true;
case R.id.item2:
Toast.makeText(this,"Item 2 selected",Toast.LENGTH_SHORT).show();
return true;
case R.id.item3:
Toast.makeText(this,"Item 3 selected",Toast.LENGTH_SHORT).show();
return true;
case R.id.subitem1:
Toast.makeText(this,"Subitem 1 selected",Toast.LENGTH_SHORT).show();
return true;
case R.id.subitem2:
Toast.makeText(this,"Subitem 2 selected",Toast.LENGTH_SHORT).show();
return true;
default:return super.onOptionsItemSelected(item);
}
}
public void flipperImages(int image)
{
ImageView imageView = new ImageView(this);
imageView.setBackgroundResource(image);
v_flipper.addView(imageView);
v_flipper.setFlipInterval(2000);
v_flipper.setAutoStart(true);
//animation
v_flipper.setInAnimation(this, android.R.anim.slide_in_left);
v_flipper.setInAnimation(this, android.R.anim.slide_out_right);
}
Intent intent = getIntent();
public void milktea(View view)
{
Intent intent = new Intent(this,MilkTeaPage.class);
startActivity(intent);
}
public void flavouredtea(View view)
{
Intent intent = new Intent(this,FlavouredTeaPage.class);
startActivity(intent);
}
public void macchiato(View view)
{
Intent intent = new Intent(this,SignatureMacchiatoPage.class);
startActivity(intent);
}
}
|
[
"1801574c@student.tp.edu.sg"
] |
1801574c@student.tp.edu.sg
|
4ced0de5ab0124303e3134428dda735b82396972
|
b3e78a8a2b24ae0e3934be23633a88c4375fc0b4
|
/StacksAndQueues/src/com/dsa/linklist/LinkQueue.java
|
f18298d3a17d48079b60a27b7fc62a56f45826e1
|
[] |
no_license
|
abhayrautela/data-structures-algorithms
|
0932b0b64d85f5b932babf62570990346df8b55b
|
6318f77b6bdc46135cd3e980616c0a005781b425
|
refs/heads/master
| 2020-08-03T02:53:23.883954
| 2019-10-07T20:41:01
| 2019-10-07T20:41:01
| 211,603,796
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 295
|
java
|
package com.dsa.linklist;
public class LinkQueue {
private DoubleEndedLinkList linkList;
public LinkQueue() {
linkList = new DoubleEndedLinkList();
}
public void insert(int id, double dd) {
linkList.insertLast(id, dd);
}
public void remove() {
linkList.deleteFirst();
}
}
|
[
"abhayrautela@gmail.com"
] |
abhayrautela@gmail.com
|
fdc86469aa93b4ecb4442ec898fb057b170264a5
|
85105d57519023a2ca277db1388706b86109c2dd
|
/prev_workspace/Done/HiveGCM/src/com/jon/test/gcm/AlertDialogManager.java
|
f08659a968058c1271ecb5aee6b33e835a38185e
|
[] |
no_license
|
ibJony/Mobile-Web_workspace
|
dc9c78a8e5d2152e961d6196f1dcb759558cce6c
|
8b9ad3e1bb8e49c769b537a2ab72891fed58e1ef
|
refs/heads/master
| 2023-03-23T01:34:46.543604
| 2021-03-13T11:31:21
| 2021-03-13T11:31:21
| 347,066,379
| 0
| 0
| null | 2021-03-13T11:14:36
| 2021-03-12T12:55:38
|
HTML
|
UTF-8
|
Java
| false
| false
| 1,154
|
java
|
package com.jon.test.gcm;
import com.hivegcm.pushnotifications.R;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
public class AlertDialogManager {
/**
* Function to display simple Alert Dialog
* @param context - application context
* @param title - alert dialog title
* @param message - alert message
* @param status - success/failure (used to set icon)
* - pass null if you don't want icon
* */
public void showAlertDialog(Context context, String title, String message,
Boolean status) {
AlertDialog alertDialog = new AlertDialog.Builder(context).create();
// Setting Dialog Title
alertDialog.setTitle(title);
// Setting Dialog Message
alertDialog.setMessage(message);
if(status != null)
// Setting alert dialog icon
alertDialog.setIcon((status) ? R.drawable.success : R.drawable.fail);
// Setting OK Button
alertDialog.setButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
}
});
// Showing Alert Message
alertDialog.show();
}
}
|
[
"joniezpal@gmail.com"
] |
joniezpal@gmail.com
|
28a24f49364bca952ddfc83eef843da39a3eebe5
|
883b518a4bf3a8ae056f4de75c8a385fc9350ccb
|
/src/main/java/com/hthyaq/zybadmin/model/excelModel/TijianTotalOfServiceModel.java
|
c81a4dc937b10bee1417bd32d80722f1f1eaa2c5
|
[] |
no_license
|
threeDevTeam/zyb-admin
|
1f1ea4e218c9a8b5a95751eef2d34a64bac215d6
|
ddf41879ef43bd7551e2b8343c85b7a48ce78963
|
refs/heads/master
| 2020-07-15T10:23:17.826513
| 2020-05-15T08:22:25
| 2020-05-15T08:22:25
| 205,541,682
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 700
|
java
|
package com.hthyaq.zybadmin.model.excelModel;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class TijianTotalOfServiceModel extends BaseRowModel {
@ExcelProperty(value = {"年份"},index=0)
private Integer year;
@ExcelProperty(value = {"体检报告数"},index=1)
private Integer count1;
@ExcelProperty(value = {"体检人数"},index=2)
private Integer count2;
@ExcelProperty(value = {"职业禁忌证人数"},index=3)
private Integer count3;
@ExcelProperty(value = {"疑似职业病人数"},index=4)
private Integer count4;
}
|
[
"sq20190831@163.com"
] |
sq20190831@163.com
|
a649208968ea1802139fef0877c21e8b6b54ed87
|
3e6dfdf8419af4161de303c03ccde02b69b97df8
|
/WhiteSpaceTokenizer.java
|
27ae33a4629d9009b5a0375c44576b8b552583c3
|
[
"Apache-2.0"
] |
permissive
|
Ratan348/Java-Codes
|
fea4618ade0c3d5d5d65fb9c400e8ecd6ed83ca4
|
27e88d1bd1c18c74360b416c647ace94021bf0c2
|
refs/heads/master
| 2021-01-20T06:44:17.446946
| 2017-09-10T13:29:12
| 2017-09-10T13:29:12
| 101,511,524
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,379
|
java
|
import java.util.Scanner;
class WhiteSpaceTokenizer
{
public static void main(String args[])throws Exception
{
String save="";
System.out.println("input a String ");
Scanner sc=new Scanner(System.in);
String s=sc.nextLine(); //Inputs a string.
s=s+" ";
System.out.println(" \n\n");
char[] arr=s.toCharArray(); //Converts string into characater
int set=arr.length; //calculates length of array and returns to the set variable
String[] store=new String[set];
char[] ch=new char[100];
int count=0;
System.out.println("\n\n");
int i=0;
int j=0;
System.out.println("length of array "+set);
try{
while(i<arr.length)
{
if(arr[i]!=' ')
{
ch[j]=arr[i];
}
else if(arr[i]==' ')
{
char[] str=ch;
save=new String(str);
store[count]=save;
j= -1;
ch=new char[50];
count++;
}
i++;
j++;
}
}
catch(Exception e)
{
}
int fix=store.length; // calculates size of store
System.out.println("length of string array "+fix);
count=0;
System.out.println("The tokens of the input string are :- \n");
while(store[count]!=null)
{
System.out.println(store[count]+"\n");
count++;
}
}
}
|
[
"noreply@github.com"
] |
Ratan348.noreply@github.com
|
802b57ead23e0653f7b0a68466ff453cbf079bde
|
59da8c75021610887304acc36fdecad84289847c
|
/이재창/Java/20201230/src/P1.java
|
07abdc0e8b65c4e4ebfe9c669cdb25f7d040dc87
|
[] |
no_license
|
kb-ict/20201126_cSharp_java_class
|
8e3d041566a74f39911c660c89fd1174a3eec224
|
e5be9e11f1d0e2f58fbbdade6c28c6de1fefc023
|
refs/heads/main
| 2023-05-09T12:29:51.721299
| 2021-05-24T07:25:36
| 2021-05-24T07:25:36
| 340,220,518
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 217
|
java
|
import java.util.Arrays;
public class P1 {
public static void main(String[] args) {
int[] arr = new int[] {4, 6, 2, 3, 1};
Arrays.sort(arr);
for (var a : arr) {
System.out.print(a + " ");
}
}
}
|
[
"xpdlfwm424@gmail.com"
] |
xpdlfwm424@gmail.com
|
7c079cef67b63da661850b7ac13dd7450f558df9
|
115cf07622637a87ffecb716ec1ef71d091fb566
|
/WEB-INF/src/com/yhaguy/gestion/cobranzas/CobranzasViewModel.java
|
117e34e52460dd1d9c1e831b9ddf59c9a4258c03
|
[] |
no_license
|
sraul/alborada
|
60e3ba054a1c9ee17cb6e17534404a6fbae2c6f0
|
df6ae6041f4b8969409a6648ac8f1ad9d0e06a19
|
refs/heads/master
| 2021-09-26T19:20:00.713648
| 2018-11-01T15:29:35
| 2018-11-01T15:29:35
| 114,824,304
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 23,433
|
java
|
package com.yhaguy.gestion.cobranzas;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import net.sf.dynamicreports.report.builder.component.ComponentBuilder;
import net.sf.dynamicreports.report.builder.component.VerticalListBuilder;
import org.zkoss.bind.BindUtils;
import org.zkoss.bind.annotation.AfterCompose;
import org.zkoss.bind.annotation.BindingParam;
import org.zkoss.bind.annotation.Command;
import org.zkoss.bind.annotation.DependsOn;
import org.zkoss.bind.annotation.Init;
import org.zkoss.bind.annotation.NotifyChange;
import org.zkoss.calendar.api.CalendarEvent;
import org.zkoss.calendar.api.RenderContext;
import org.zkoss.calendar.impl.SimpleCalendarEvent;
import org.zkoss.calendar.impl.SimpleCalendarModel;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zk.ui.select.annotation.Wire;
import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zul.Label;
import org.zkoss.zul.Listbox;
import org.zkoss.zul.Popup;
import org.zkoss.zul.Timer;
import org.zkoss.zul.Window;
import com.coreweb.componente.ViewPdf;
import com.coreweb.componente.WindowPopup;
import com.coreweb.control.SimpleViewModel;
import com.coreweb.extras.reporte.DatosColumnas;
import com.coreweb.util.Misc;
import com.coreweb.util.MyArray;
import com.yhaguy.domain.CtaCteEmpresaMovimiento;
import com.yhaguy.domain.Empresa;
import com.yhaguy.domain.LlamadaCobranza;
import com.yhaguy.domain.RegisterDomain;
import com.yhaguy.domain.TareaProgramada;
import com.yhaguy.util.reporte.ReporteYhaguy;
@SuppressWarnings({"unchecked", "rawtypes"})
public class CobranzasViewModel extends SimpleViewModel {
static final String VER_CLIENTES = "Clientes";
static final String VER_TAREAS = "Tareas";
static final String VER_LLAMADAS = "Llamadas";
static final String VER_CALENDARIO = "Calendario";
static final String CAL_DIA = "Día";
static final String CAL_SEMANA = "Semana";
static final String CAL_MES = "Mes";
static final String ZUL_LLAMADA = "/yhaguy/gestion/cobranzas/llamadas.zul";
private List<MyArray> clientes;
private MyArray selectedItem;
private MyArray selectedTarea;
private MyArray nuevaLlamada;
private String selectedVista = VER_CLIENTES;
private String selectedCalendario = CAL_MES;
private String selectedResultado;
private Date desde = new Date();
private Date hasta = new Date();
private boolean verPendientes = false;
private DemoCalendarModel calendarModel;
@Init(superclass = true)
public void init() {
}
@AfterCompose(superclass = true)
public void afterCompose() {
try {
calendarModel = new DemoCalendarModel(new DemoCalendarData(this.getTodasLasTareasProgramadas()).getCalendarEvents());
} catch (Exception e) {
e.printStackTrace();
}
}
@Wire
private Window win;
@Wire
private Listbox listCli;
@Wire
private Popup pop_coment;
@Wire
private Label coment;
/******************** COMANDOS ********************/
@Command
@NotifyChange("*")
public void buscarClientes() throws Exception {
Clients.showBusy(this.listCli, "Buscando Clientes con facturas vencidas...");
Events.echoEvent("onLater", this.listCli, null);
}
@Command
@NotifyChange({"*"})
public void registrarLlamada() throws Exception {
this.selectedResultado = null;
this.nuevaLlamada = new MyArray();
this.nuevaLlamada.setPos1(this.selectedItem);
this.nuevaLlamada.setPos2(new Date());
this.nuevaLlamada.setPos3("");
this.nuevaLlamada.setPos4(new Date());
WindowPopup wp = new WindowPopup();
wp.setCheckAC(null);
wp.setDato(this);
wp.setHigth("430px");
wp.setWidth("400px");
wp.setModo(WindowPopup.NUEVO);
wp.setTitulo("Registro de llamada al Cliente..");
wp.show(ZUL_LLAMADA);
if (wp.isClickAceptar()) {
RegisterDomain rr = RegisterDomain.getInstance();
Empresa empresa = rr.getEmpresaById(this.selectedItem.getId());
LlamadaCobranza lc = new LlamadaCobranza();
lc.setDetalle(((String) this.nuevaLlamada.getPos3()).toUpperCase());
lc.setEmpresa(empresa);
lc.setFecha(new Date());
lc.setResultado(this.selectedResultado);
lc.setUsuario(this.getUs().getNombre());
rr.saveObject(lc, this.getLoginNombre());
if (!this.selectedResultado.equals(LlamadaCobranza.NO_RESPONDE)) {
TareaProgramada tarea = new TareaProgramada();
tarea.setEmpresa(empresa);
tarea.setFecha((Date) this.nuevaLlamada.getPos4());
tarea.setTarea(lc.getResultado());
tarea.setObservacion(lc.getDetalle());
tarea.setRealizado(false);
rr.saveObject(tarea, this.getLoginNombre());
}
Clients.showNotification("Registro Guardado..");
}
}
@Command
@NotifyChange("*")
public void realizarTarea() throws Exception {
boolean realizado = (boolean) this.selectedTarea.getPos3();
if (realizado) {
Clients.showNotification("LA TAREA YA FUE REALIZADA POR "
+ this.selectedTarea.getPos5().toString().toUpperCase(),
Clients.NOTIFICATION_TYPE_ERROR, null, null, 0);
return;
}
if (this.mensajeSiNo("Realizar la tarea seleccionada..?") == false)
return;
RegisterDomain rr = RegisterDomain.getInstance();
TareaProgramada tarea = (TareaProgramada) rr.getObject(
TareaProgramada.class.getName(), this.selectedTarea.getId());
tarea.setRealizado(true);
tarea.setRealizadoPor(this.getUs().getNombre());
rr.saveObject(tarea, this.getLoginNombre());
Clients.showNotification("TAREA REALIZADA..");
this.selectedTarea = null;
}
@Command
public void registrarTarea() {
Clients.showNotification("Registrar tarea..");
}
@Command
public void verComentario(@BindingParam("item") MyArray item,
@BindingParam("comp") Component comp) {
this.coment.setValue((String) item.getPos2());
this.pop_coment.open(comp, "after_end");
}
/**
* Cierra la ventana de progreso..
*/
@Command
@NotifyChange("*")
public void clearProgress() throws Exception {
Timer timer = new Timer();
timer.setDelay(1000);
timer.setRepeats(false);
timer.addEventListener(Events.ON_TIMER, new EventListener() {
@Override
public void onEvent(Event evt) throws Exception {
Clients.clearBusy(listCli);
}
});
timer.setParent(this.win);
this.buscarClientes_();
}
@Command
@NotifyChange("selectedVista")
public void selectFilter(@BindingParam("filter") int filter) {
if (filter == 1) {
this.selectedVista = VER_CLIENTES;
} else if (filter == 2) {
this.selectedVista = VER_TAREAS;
} else {
this.selectedVista = VER_CALENDARIO;
}
}
@Command
public void imprimir() throws Exception {
this.imprimirTareas();
}
/**************************************************/
/******************* FUNCIONES ********************/
/**
* busca los clientes con facturas vencidas..
*/
public void buscarClientes_() throws Exception {
RegisterDomain rr = RegisterDomain.getInstance();
List<Empresa> clientes = rr.getClientesConFacturasVencidas();
this.clientes = new ArrayList<MyArray>();
for (Empresa emp : clientes) {
MyArray my = new MyArray();
my.setId(emp.getId());
my.setPos1(emp.getRuc());
my.setPos2(emp.getRazonSocial());
my.setPos3(emp.getTelefono());
my.setPos4(emp.isCuentaBloqueada());
this.clientes.add(my);
}
BindUtils.postNotifyChange(null, null, this, "clientes");
}
/**
* Impresion de Tareas..
*/
private void imprimirTareas() throws Exception {
List<Object[]> data = new ArrayList<Object[]>();
for (MyArray item : this.getTodasLasTareasProgramadas()) {
Date fecha = (Date) item.getPos1();
boolean estado = (boolean) item.getPos3();
Object[] obj1 = new Object[] { estado ? "REALIZADO" : "PENDIENTE",
item.getPos6(), this.m.dateToString(fecha, Misc.DD_MM__YYY_HORA_MIN),
item.getPos4(), item.getPos2() };
data.add(obj1);
}
ReporteYhaguy rep = new ReporteTareas();
rep.setDatosReporte(data);
rep.setApaisada();
ViewPdf vp = new ViewPdf();
vp.setBotonImprimir(false);
vp.setBotonCancelar(false);
vp.showReporte(rep, this);
}
/**************************************************/
/******************** GET/SET *********************/
/**
* @return las facturas vencidas..
*/
@DependsOn("selectedItem")
public List<MyArray> getFacturasVencidas() throws Exception {
if (this.selectedItem == null) {
return new ArrayList<MyArray>();
}
List<MyArray> out = new ArrayList<MyArray>();
RegisterDomain rr = RegisterDomain.getInstance();
List<CtaCteEmpresaMovimiento> facs = rr.getFacturasVencidas(this.selectedItem.getId());
for (CtaCteEmpresaMovimiento fac : facs) {
MyArray my = new MyArray();
my.setId(fac.getId());
my.setPos1(fac.getFechaEmision_());
my.setPos2(fac.getFechaVencimiento_());
my.setPos3(fac.getNroComprobante().replace("(1/1)", ""));
my.setPos4(fac.getTipoMovimiento().getDescripcion());
my.setPos5(fac.getImporteOriginalFinal());
my.setPos6(fac.getSaldoFinal());
out.add(my);
}
return out;
}
@DependsOn("selectedItem")
public List<MyArray> getLlamadas() throws Exception {
if (this.selectedItem == null) {
return new ArrayList<MyArray>();
}
List<MyArray> out = new ArrayList<MyArray>();
RegisterDomain rr = RegisterDomain.getInstance();
List<LlamadaCobranza> lms = rr.getLlamadasCobranza(this.selectedItem.getId());
for (LlamadaCobranza item : lms) {
MyArray my = new MyArray();
my.setId(item.getId());
my.setPos1(item.getFecha());
my.setPos2(item.getUsuario());
my.setPos3(item.getResultado());
my.setPos4(item.getDetalle());
out.add(my);
}
return out;
}
@DependsOn("selectedItem")
public List<MyArray> getTareasProgramadas() throws Exception {
if (this.selectedItem == null) {
return new ArrayList<MyArray>();
}
List<MyArray> out = new ArrayList<MyArray>();
RegisterDomain rr = RegisterDomain.getInstance();
List<TareaProgramada> tareas = rr
.getTareasProgramadas(this.selectedItem.getId());
for (TareaProgramada item : tareas) {
MyArray my = new MyArray();
my.setId(item.getId());
my.setPos1(item.isRealizado());
my.setPos2(item.getFecha());
my.setPos3(item.getTarea());
my.setPos4(item.getObservacion());
my.setPos5(item.getRealizadoPor());
out.add(my);
}
return out;
}
@DependsOn({ "desde", "hasta", "verPendientes" })
public List<MyArray> getTodasLasTareasProgramadas() throws Exception {
List<MyArray> out = new ArrayList<MyArray>();
RegisterDomain rr = RegisterDomain.getInstance();
List<TareaProgramada> tareas = rr.getTareasProgramadas(this.desde, this.hasta);
for (TareaProgramada item : tareas) {
if (item.getEmpresa() != null) {
MyArray my = new MyArray();
my.setId(item.getId());
my.setPos1(item.getFecha());
my.setPos2(item.getObservacion());
my.setPos3(item.isRealizado());
my.setPos4(item.getEmpresa().getRazonSocial());
my.setPos5(item.getRealizadoPor());
my.setPos6(item.getTarea());
if (this.verPendientes == true) {
if (!item.isRealizado()) {
out.add(my);
}
} else {
out.add(my);
}
}
}
return out;
}
/**
* @return las vistas del formulario..
*/
public List<String> getVistas() {
List<String> out = new ArrayList<String>();
out.add(VER_CLIENTES);
out.add(VER_TAREAS);
out.add(VER_LLAMADAS);
out.add(VER_CALENDARIO);
return out;
}
/**
* @return las vistas del formulario..
*/
public List<String> getCalendarios() {
List<String> out = new ArrayList<String>();
out.add(CAL_DIA);
out.add(CAL_SEMANA);
out.add(CAL_MES);
return out;
}
/**
* @return los posibles resultados de la llamada..
*/
public List<String> getResultados() {
return LlamadaCobranza.getResultados();
}
@DependsOn("selectedVista")
public boolean isTareasVisible() {
return this.selectedVista.equals(VER_TAREAS);
}
@DependsOn("selectedVista")
public boolean isCalendarioVisible() {
return this.selectedVista.equals(VER_CALENDARIO);
}
@DependsOn("selectedVista")
public boolean isClientesVisible() {
return this.selectedVista.equals(VER_CLIENTES);
}
@DependsOn("selectedResultado")
public boolean isFieldTareasVisible() {
if(this.selectedResultado == null)
return false;
return !this.selectedResultado.equals(LlamadaCobranza.NO_RESPONDE);
}
@DependsOn("selectedCalendario")
public String getModoCalendario() {
return this.selectedCalendario.equals(CAL_MES)? "month" : "default";
}
@DependsOn("selectedCalendario")
public String getDiasCalendario() {
return this.selectedCalendario.equals(CAL_DIA)? "1" : "7";
}
@DependsOn("facturasVencidas")
public double getTotalSaldo() throws Exception {
double out = 0;
for (MyArray fac : this.getFacturasVencidas()) {
out += (double) fac.getPos6();
}
return out;
}
public MyArray getSelectedItem() {
return selectedItem;
}
public void setSelectedItem(MyArray selectedItem) {
this.selectedItem = selectedItem;
}
public String getSelectedVista() {
return selectedVista;
}
public void setSelectedVista(String selectedVista) {
this.selectedVista = selectedVista;
}
public String getSelectedResultado() {
return selectedResultado;
}
public void setSelectedResultado(String selectedResultado) {
this.selectedResultado = selectedResultado;
}
public MyArray getNuevaLlamada() {
return nuevaLlamada;
}
public void setNuevaLlamada(MyArray nuevaLlamada) {
this.nuevaLlamada = nuevaLlamada;
}
public Date getDesde() {
return desde;
}
public void setDesde(Date desde) {
this.desde = desde;
}
public MyArray getSelectedTarea() {
return selectedTarea;
}
public void setSelectedTarea(MyArray selectedTarea) {
this.selectedTarea = selectedTarea;
}
public void setClientes(List<MyArray> clientes) {
this.clientes = clientes;
}
public List<MyArray> getClientes() {
return clientes;
}
public Date getHasta() {
return hasta;
}
public void setHasta(Date hasta) {
this.hasta = hasta;
}
public boolean isVerPendientes() {
return verPendientes;
}
public void setVerPendientes(boolean verPendientes) {
this.verPendientes = verPendientes;
}
public String getSelectedCalendario() {
return selectedCalendario;
}
public void setSelectedCalendario(String selectedCalendario) {
this.selectedCalendario = selectedCalendario;
}
public DemoCalendarModel getCalendarModel() {
return calendarModel;
}
public void setCalendarModel(DemoCalendarModel calendarModel) {
this.calendarModel = calendarModel;
}
}
/**
* Reporte de Tareas..
*/
class ReporteTareas extends ReporteYhaguy {
static List<DatosColumnas> cols = new ArrayList<DatosColumnas>();
static DatosColumnas col1 = new DatosColumnas("Estado", TIPO_STRING, 50);
static DatosColumnas col2 = new DatosColumnas("Tarea", TIPO_STRING, 50);
static DatosColumnas col3 = new DatosColumnas("Horario", TIPO_STRING, 50);
static DatosColumnas col4 = new DatosColumnas("Cliente", TIPO_STRING);
static DatosColumnas col5 = new DatosColumnas("Observación", TIPO_STRING);
public ReporteTareas() {
}
static {
cols.add(col1);
cols.add(col2);
cols.add(col3);
cols.add(col4);
cols.add(col5);
}
@Override
public void informacionReporte() {
this.setTitulo("Planilla de Tareas");
this.setDirectorio("tareas");
this.setNombreArchivo("Tarea-");
this.setTitulosColumnas(cols);
this.setBody(this.getCuerpo());
}
/**
* cabecera del reporte..
*/
@SuppressWarnings("rawtypes")
private ComponentBuilder getCuerpo() {
VerticalListBuilder out = cmp.verticalList();
out.add(cmp.horizontalFlowList().add(this.texto("")));
return out;
}
}
/**
* test
*/
class DemoCalendarModel extends SimpleCalendarModel {
private static final long serialVersionUID = 1L;
private String filterText = "";
public DemoCalendarModel(List<CalendarEvent> calendarEvents) {
super(calendarEvents);
}
public void setFilterText(String filterText) {
this.filterText = filterText;
}
@Override
public List<CalendarEvent> get(Date beginDate, Date endDate, RenderContext rc) {
List<CalendarEvent> list = new LinkedList<CalendarEvent>();
long begin = beginDate.getTime();
long end = endDate.getTime();
for (Iterator<?> itr = _list.iterator(); itr.hasNext();) {
Object obj = itr.next();
CalendarEvent ce = obj instanceof CalendarEvent ? (CalendarEvent)obj : null;
if(ce == null) break;
long b = ce.getBeginDate().getTime();
long e = ce.getEndDate().getTime();
if (e >= begin && b < end && ce.getContent().toLowerCase().contains(filterText.toLowerCase()))
list.add(ce);
}
return list;
}
}
/**
* test
*/
class DemoCalendarData {
private List<CalendarEvent> calendarEvents = new LinkedList<CalendarEvent>();
private final SimpleDateFormat DATA_FORMAT = new SimpleDateFormat("yyyy/MM/dd HH:mm");
public DemoCalendarData(List<MyArray> tareas) {
init(tareas);
}
private void init(List<MyArray> tareas) {
for (MyArray tarea : tareas) {
Date fecha = (Date) tarea.getPos1();
String tarea_ = (String) tarea.getPos6();
calendarEvents.add(new DemoCalendarEvent(this.getDate(fecha), fecha, "#A32929", "#D96666", tarea_));
}
/*
int mod = cal.get(Calendar.MONTH) + 1;
int year = cal.get(Calendar.YEAR);
String date2 = mod > 9 ? year + "/" + mod + "" : year + "/" + "0" + mod;
String date1 = --mod > 9 ? year + "/" + mod + "" : year + "/" + "0" + mod;
++mod;
String date3 = ++mod > 9 ? year + "/" + mod + "" : year + "/" + "0" + mod;
// Red Events
calendarEvents.add(new DemoCalendarEvent(getDate(date1 + "/28 00:00"), getDate(date1 + "/29 00:00"), "#A32929", "#D96666", "ZK Jet Released"));
calendarEvents.add(new DemoCalendarEvent(getDate(date1 + "/04 02:00"), getDate(date1 + "/05 03:00"), "#A32929", "#D96666", "Experience ZK SpreadSheet Live Demo!"));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/21 05:00"), getDate(date2 + "/21 07:00"), "#A32929", "#D96666", "New Features of ZK Spreadsheet"));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/08 00:00"), getDate(date2 + "/09 00:00"), "#A32929", "#D96666", "ZK Spreadsheet Released"));
// Blue Events
calendarEvents.add(new DemoCalendarEvent(getDate(date1 + "/29 03:00"), getDate(date2 + "/02 06:00"), "#3467CE", "#668CD9", "ZK Released"));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/02 10:00"), getDate(date2 + "/02 12:30"), "#3467CE", "#668CD9", "New Feature of ZK "));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/17 14:00"), getDate(date2 + "/18 16:00"), "#3467CE", "#668CD9", "Case Study - Mecatena"));
calendarEvents.add(new DemoCalendarEvent(getDate(date3 + "/01 14:30"), getDate(date3 + "/01 17:30"), "#3467CE", "#668CD9", "ZK Unit Testing Project - zunit"));
// Purple Events
calendarEvents.add(new DemoCalendarEvent(getDate(date1 + "/29 08:00"), getDate(date2 + "/03 12:00"), "#7A367A", "#B373B3", "ZK Studio released"));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/07 08:00"), getDate(date2 + "/07 12:00"), "#7A367A", "#B373B3", "Tutorial : Reading from the DB with Netbeans and ZK"));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/13 11:00"), getDate(date2 + "/13 14:30"), "#7A367A", "#B373B3", "Small talk - ZK Charts"));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/16 14:00"), getDate(date2 + "/18 16:00"), "#7A367A", "#B373B3", "Style Guide for ZK released !"));
calendarEvents.add(new DemoCalendarEvent(getDate(date3 + "/02 12:00"), getDate(date3 + "/02 17:00"), "#7A367A", "#B373B3", "Small talk -- Simple Database Access From ZK"));
// Khaki Events
calendarEvents.add(new DemoCalendarEvent(getDate(date1 + "/03 00:00"), getDate(date1 + "/04 00:00"), "#88880E", "#BFBF4D", "ZK UK User Group"));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/13 05:00"), getDate(date2 + "/13 07:00"), "#88880E", "#BFBF4D", "How to Test ZK Application with Selenium"));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/24 19:30"), getDate(date2 + "/24 20:00"), "#88880E", "#BFBF4D", "ZK Alfresco Talk"));
calendarEvents.add(new DemoCalendarEvent(getDate(date3 + "/03 00:00"), getDate(date3 + "/04 00:00"), "#88880E", "#BFBF4D", "ZK selected as SourceForge.net Project of the Month"));
// Green Events
calendarEvents.add(new DemoCalendarEvent(getDate(date1 + "/28 10:00"), getDate(date1 + "/28 12:30"), "#0D7813", "#4CB052", "ZK Mobile Released"));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/03 00:00"), getDate(date2 + "/03 05:30"), "#0D7813", "#4CB052", "ZK Gmaps released"));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/05 20:30"), getDate(date2 + "/06 00:00"), "#0D7813", "#4CB052", "Refresh with Five New ZK Themes!"));
calendarEvents.add(new DemoCalendarEvent(getDate(date2 + "/23 00:00"), getDate(date2 + "/25 16:30"), "#0D7813", "#4CB052", "ZK Roadmap Announced"));
calendarEvents.add(new DemoCalendarEvent(getDate(date3 + "/01 08:30"), getDate(date3 + "/01 19:30"), "#0D7813", "#4CB052", "Build Database CRUD Application in 6 Steps"));
*/}
private Date getDate(Date date) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
String fecha = sdf.format(date) + " 00:00";
try {
return DATA_FORMAT.parse(fecha);
} catch (ParseException e) {
e.printStackTrace();
}
return null;
}
public List<CalendarEvent> getCalendarEvents() {
return calendarEvents;
}
}
/**
* test
*/
class DemoCalendarEvent extends SimpleCalendarEvent {
private static final long serialVersionUID = 1L;
public DemoCalendarEvent(Date beginDate, Date endDate, String headerColor, String contentColor, String content) {
setHeaderColor(headerColor);
setContentColor(contentColor);
setContent(content);
setBeginDate(beginDate);
setEndDate(endDate);
}
public DemoCalendarEvent(Date beginDate, Date endDate, String headerColor, String contentColor, String content,
String title) {
setHeaderColor(headerColor);
setContentColor(contentColor);
setContent(content);
setTitle(title);
setBeginDate(beginDate);
setEndDate(endDate);
}
public DemoCalendarEvent(Date beginDate, Date endDate, String headerColor, String contentColor, String content,
String title, boolean locked) {
setHeaderColor(headerColor);
setContentColor(contentColor);
setContent(content);
setTitle(title);
setBeginDate(beginDate);
setEndDate(endDate);
setLocked(locked);
}
public DemoCalendarEvent() {
setHeaderColor("#FFFFFF");
setContentColor("#000000");
}
@Override
public Date getBeginDate() {
return super.getBeginDate();
}
@Override
public Date getEndDate() {
return super.getEndDate();
}
}
|
[
"sraul@users.noreply.github.com"
] |
sraul@users.noreply.github.com
|
434001d7011ff3129b9de6c1831ac38fac18d3ba
|
da34e1a5905a98ebbc165dff821ccc381ac03416
|
/app/src/main/java/com/michael_monaghan/mpgtracker/MainActivity.java
|
6ab0b64262502ad5e36dd1e312ef3cad900b534f
|
[] |
no_license
|
michaellmonaghan/MPG-Tracker
|
2b020569c3a5f58dcff28715545a07e7d72315c3
|
f159ec567df367630ab07f1c2198bdc1f2f38811
|
refs/heads/master
| 2021-01-10T21:01:08.815370
| 2015-02-11T04:16:15
| 2015-02-11T04:16:15
| 30,630,000
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,187
|
java
|
package com.michael_monaghan.mpgtracker;
import android.app.ActionBar;
import android.app.Activity;
import android.app.AlertDialog;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.ContextMenu;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.Toast;
import java.util.Arrays;
import michael_monaghan.mpgtracker.R;
public class MainActivity extends Activity implements ActionBar.OnNavigationListener {
// Database
private MileageDatabase mdb;
// Current Car
private String[] carNames;
private int carIndex = 0;
// Loaders
LoadMileageEntriesTask lastEntriesLoader;
// Views
private ListView list;
private ProgressBar loading;
// Adapters
private MileageEntriesAdapter entriesAdapter;
//ViewHandlers
private UserEntryViewHandler userEntryViewHandler;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Set up Views
setContentView(R.layout.activity_main);
list = (ListView) findViewById(R.id.list);
loading = (ProgressBar) findViewById(R.id.loading);
showLoading();
// Set up Database
mdb = new MileageDatabase(this);
carNames = mdb.getCarNames();
// Set up action bar
ActionBar ab = getActionBar();
ab.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
ArrayAdapter<String> carsAdapter = new ArrayAdapter<String>(ab.getThemedContext(), android.R.layout.simple_spinner_item, carNames);
carsAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
ab.setListNavigationCallbacks(carsAdapter, this);
// Set up cars list
entriesAdapter = new MileageEntriesAdapter(this);
View inputView = getLayoutInflater().inflate(R.layout.user_entry_input,null);
userEntryViewHandler = new UserEntryViewHandler(inputView, new UserEntryViewHandler.AddUserEntryListener() {
@Override
public void addEntry(MileageDatabase.UserEntry entry) {
performAddEntry(entry);
}
});
list.addHeaderView(inputView);
registerForContextMenu(list);
list.setAdapter(entriesAdapter);
}
@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
if (((AdapterView.AdapterContextMenuInfo)menuInfo).id != -1) {
menu.add(Menu.NONE, 0, Menu.NONE, R.string.delete);
}
}
@Override
public boolean onContextItemSelected(MenuItem item) {
AdapterView.AdapterContextMenuInfo menuInfo = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
Toast.makeText(this, R.string.entry_deleted, Toast.LENGTH_SHORT).show();
performDeleteEntry(menuInfo.id);
return true;
}
@Override
public boolean onNavigationItemSelected(int i, long l) {
if (i < carNames.length) {
loadCarMileageEntries(carNames[i]);
carIndex = i;
} else {
showLoading();
performAddNewCar();
}
return true;
}
public void performAddNewCar() {
//TODO implement.
}
private void performAddEntry(MileageDatabase.UserEntry entry) {
userEntryViewHandler.clear();
mdb.addEntry(carNames[carIndex], entry);
Toast.makeText(this, R.string.entry_added, Toast.LENGTH_LONG).show();
loadCarMileageEntries();
}
private void performDeleteEntry(long id) {
mdb.deleteEntry(carNames[carIndex], id);
loadCarMileageEntries();
}
private void loadCarMileageEntries() {
loadCarMileageEntries(carNames[carIndex]);
}
/**
* Loads a MileageDatabase
*/
private class LoadMileageEntriesTask extends AsyncTask<String, Void, MileageDatabase.MileageEntry[]> {
@Override
protected MileageDatabase.MileageEntry[] doInBackground(String... strings) {
Log.d(this.toString(), "Loading...");
return mdb.getMileageEntries(strings[0]);
}
@Override
protected void onPostExecute(MileageDatabase.MileageEntry[] entries) {
updateCarMileageEntries(entries);
}
}
private void loadCarMileageEntries(String carName) {
showLoading();
if (lastEntriesLoader != null) {
lastEntriesLoader.cancel(false);
}
lastEntriesLoader = new LoadMileageEntriesTask();
lastEntriesLoader.execute(carName);
}
private void updateCarMileageEntries(MileageDatabase.MileageEntry[] entries) {
entriesAdapter.setMileageEntries(entries);
hideLoading();
}
private void showLoading() {
loading.setVisibility(loading.VISIBLE);
list.setVisibility(list.GONE);
}
private void hideLoading() {
loading.setVisibility(loading.GONE);
list.setVisibility(list.VISIBLE);
}
/*
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
*/
/*
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
*/
}
|
[
"michaellmonaghan@gmail.com"
] |
michaellmonaghan@gmail.com
|
3816faae7275f6a94f9b40dc7bd6b7eb179fa1ce
|
2814b4ed8ebe8bbeb2e4210ed083326dd6ce7252
|
/Easy/392. Is Subsequence/isSubsequence2.java
|
443ca34c1f44161812b7b8646baffdf465669765
|
[] |
no_license
|
teddy8997/LeetCode
|
31970b5efe1945204bf2f8fc4e5d6924f05636db
|
399edc5300fb1cb2cb0fe51b42ce3a913c830d25
|
refs/heads/master
| 2023-04-10T21:14:28.684276
| 2021-04-19T06:12:34
| 2021-04-19T06:12:34
| 303,752,589
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 304
|
java
|
class Solution {
public boolean isSubsequence(String s, String t) {
int i = 0;
int j = 0;
while(i < s.length() && j < t.length()){
if(s.charAt(i) == t.charAt(j)){
i++;
}
j++;
}
return i == s.length();
}
}
|
[
"70366832+teddy@users.noreply.github.com"
] |
70366832+teddy@users.noreply.github.com
|
d38e6dbbbb30af43a285f8e40658ec121db6e07e
|
60e9413b9956a30e73db9d39c6365dfee4457e9b
|
/src/com/jishijiyu/takeadvantage/entity/result/ForgotPasswordResult.java
|
c50b0fcf6973adb08299316c45f5f61edc331fb2
|
[] |
no_license
|
XHiStone/TakeaDvantageProject
|
72335701ccc984b8d2db42290992018ae33c1214
|
7ac5fdb597a36e913c2fb7ceff92a9cf16c97591
|
refs/heads/master
| 2021-05-31T22:06:16.795608
| 2015-08-10T11:11:03
| 2015-08-10T11:11:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 176
|
java
|
package com.jishijiyu.takeadvantage.entity.result;
public class ForgotPasswordResult {
public String c;
public Parameter p;
public class Parameter{
public int type;
}
}
|
[
"295233477@qq.com"
] |
295233477@qq.com
|
8e54758ec1821f328f20091b540ac034100fd1a1
|
e3d8ab6a1ed9c69fbd89cecb16242ace9c14312f
|
/src/test/java/com/freemarkerdemo/FreemarkerDemoApplicationTests.java
|
3a0739c126f93d5c0e1a31efe23869ff68aa3c86
|
[] |
no_license
|
Caojiahai1/springBoot-freemarker
|
907b32137ebd08d17e666e8c41227193928f9d6c
|
9217de00b7b981c4dab89179ca941593921e3cc9
|
refs/heads/master
| 2021-04-26T22:13:20.060992
| 2018-03-06T09:28:32
| 2018-03-06T09:28:32
| 124,044,165
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 343
|
java
|
package com.freemarkerdemo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class FreemarkerDemoApplicationTests {
@Test
public void contextLoads() {
}
}
|
[
"18652550182@163.com"
] |
18652550182@163.com
|
7f10154eb3315c4e0180584b71e6f57d69926ccc
|
216fd834fff7111c7e6535289d34b0c16f33306a
|
/jar-shell-monitor/jar-shell-monitor-client/src/main/java/me/tsinyong/monitor/client/handler/ClientHandler.java
|
62fd3ad251d4957fefb8b39ed563c525f02d33da
|
[] |
no_license
|
zsinyong/jar-shell
|
faab7613ba120eebd9cfbc920862d6fd7e009b0b
|
0595c9d237c0da68b92dfa48a1a463290c2b438d
|
refs/heads/master
| 2020-04-03T11:17:01.291435
| 2018-10-31T13:26:19
| 2018-10-31T13:26:19
| 155,216,938
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,346
|
java
|
package me.tsinyong.monitor.client.handler;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import me.tsinyong.monitor.client.protocol.JSMProtocol;
import me.tsinyong.monitor.client.utils.ContentWriteToByteBuf;
import org.springframework.stereotype.Service;
@Service
@ChannelHandler.Sharable
public class ClientHandler extends ChannelInboundHandlerAdapter {
@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
JSMProtocol jsmProtocol = new JSMProtocol("Client Active");
ctx.writeAndFlush(ContentWriteToByteBuf.writeToByteBuf(jsmProtocol));
}
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
System.out.println("Client read " + msg);
}
@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
System.out.println("Client detect connection lose");
}
@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
System.out.println("Client read over");
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
cause.printStackTrace();
ctx.channel().close();
}
}
|
[
"13215658013@163.com"
] |
13215658013@163.com
|
ca0cb02c103dc2fb6b2cfe481ad610ea4d44619b
|
d4b543dc146696f43614d9deec0071d309d6a51b
|
/app/src/main/java/cn/itcast/takeout/ui/fragment/SellerFragmetn.java
|
1b46d6730d05e3ba80f39a53e50c5b4dc8f03592
|
[] |
no_license
|
TWBfly/TakeOut123
|
d99e53675312be8869cd075ff0f91a898d397c97
|
645d20355f18a5dadd1ae5a56a5a9c4c93cf8d67
|
refs/heads/master
| 2021-01-20T13:55:08.534241
| 2017-05-04T04:50:25
| 2017-05-04T04:50:25
| 90,534,850
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 92
|
java
|
package cn.itcast.takeout.ui.fragment;
public class SellerFragmetn extends BaseFragment{
}
|
[
"1063351761@qq.com"
] |
1063351761@qq.com
|
c215d79ee2c467437597f6345fa54db3d1855d92
|
2814b275178263457c4a2c7c1ffbd9b4d2581de1
|
/src/main/java/io/hops/util/featurestore/ops/read_ops/FeaturestoreReadFeaturegroupLatestVersion.java
|
3dd9dd2e3e6515e08c53726fb542fb995cc77b01
|
[
"Apache-2.0"
] |
permissive
|
ErmiasG/hops-util
|
1bd6dde9b695cb24cd32fc4c46ab7a60da60db97
|
cf9b2fedd90f89d1e1ebb067524d8fd3648d2817
|
refs/heads/master
| 2023-01-20T15:27:51.738519
| 2020-11-11T17:51:37
| 2020-11-11T17:51:37
| 299,307,500
| 0
| 0
|
Apache-2.0
| 2020-09-28T12:51:10
| 2020-09-28T12:51:09
| null |
UTF-8
|
Java
| false
| false
| 2,372
|
java
|
package io.hops.util.featurestore.ops.read_ops;
import io.hops.util.Hops;
import io.hops.util.exceptions.FeaturestoreNotFound;
import io.hops.util.featurestore.FeaturestoreHelper;
import io.hops.util.featurestore.dtos.app.FeaturestoreMetadataDTO;
import io.hops.util.featurestore.dtos.featuregroup.FeaturegroupDTO;
import io.hops.util.featurestore.ops.FeaturestoreOp;
import javax.xml.bind.JAXBException;
import java.util.List;
/**
* Builder class for Read-LatestFeaturegroupVersion operation on the Hopsworks Featurestore
*/
public class FeaturestoreReadFeaturegroupLatestVersion extends FeaturestoreOp {
/**
* Constructor
*
* @param name name of the featuregroup
*/
public FeaturestoreReadFeaturegroupLatestVersion(String name) {
super(name);
}
/**
* Gets the latest version of a featuregroup in the featurestore
*
* @throws FeaturestoreNotFound FeaturestoreNotFound
* @throws JAXBException JAXBException
* @return the latest version of the featuregroup
*/
public Integer read() throws FeaturestoreNotFound, JAXBException {
try {
return doGetLatestFeaturegroupVersion(name, Hops.getFeaturestoreMetadata().setFeaturestore(featurestore).read());
} catch (Exception e) {
Hops.updateFeaturestoreMetadataCache().setFeaturestore(featurestore).write();
return doGetLatestFeaturegroupVersion(name, Hops.getFeaturestoreMetadata().setFeaturestore(featurestore).read());
}
}
/**
* Method call to execute write operation
*/
public void write(){
throw new UnsupportedOperationException("write() is not supported on a read operation");
}
public FeaturestoreReadFeaturegroupLatestVersion setFeaturestore(String featurestore) {
this.featurestore = featurestore;
return this;
}
/**
* Extrects the latest version of a featuregroup from the metadata
*
* @param featuregroupName name of the featuregroup
* @param featurestoreMetadata metadata of the featurestore
* @return the latest version of the feature group
*/
private static int doGetLatestFeaturegroupVersion(
String featuregroupName, FeaturestoreMetadataDTO featurestoreMetadata) {
List<FeaturegroupDTO> featuregroupDTOList = featurestoreMetadata.getFeaturegroups();
return FeaturestoreHelper.getLatestFeaturegroupVersion(featuregroupDTOList, featuregroupName);
}
}
|
[
"tkakantousis@users.noreply.github.com"
] |
tkakantousis@users.noreply.github.com
|
47f49c88b27c7738136a77ddabda4df1006e7856
|
2c5b2a65c7c417d7e95e8700ca022941c17b46ab
|
/hydrograph.ui/hydrograph.ui.propertywindow/src/main/java/hydrograph/ui/propertywindow/widgets/customwidgets/config/DropDownConfig.java
|
0553a6a578e80d729578cba411ced3c10ffcc5d7
|
[
"Apache-2.0"
] |
permissive
|
nikhilballari/Hydrograph
|
1fb2ab965bf28239bf39a3772fcd4bf7b2112fcf
|
06e127f58ffce25da0ec18bae9057052b2f36c3a
|
refs/heads/master
| 2021-02-24T20:58:40.919429
| 2020-04-20T15:02:25
| 2020-04-20T15:02:25
| 245,441,228
| 0
| 1
|
Apache-2.0
| 2020-03-06T14:31:57
| 2020-03-06T14:31:56
| null |
UTF-8
|
Java
| false
| false
| 1,867
|
java
|
/*******************************************************************************
* Copyright 2017 Capital One Services, LLC and Bitwise, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package hydrograph.ui.propertywindow.widgets.customwidgets.config;
import hydrograph.ui.propertywindow.factory.ListenerFactory.Listners;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
public class DropDownConfig implements WidgetConfig {
private String name;
private List<String> items = new LinkedList<>();
private List<Listners> textBoxListeners = new ArrayList<>();
private List<Listners> dropDownListeners = new ArrayList<>();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<String> getItems() {
return items;
}
public void setItems(List<String> items) {
this.items = items;
}
public List<Listners> getTextBoxListeners() {
return textBoxListeners;
}
public void setTextBoxListeners(List<Listners> textBoxListeners) {
this.textBoxListeners = textBoxListeners;
}
public List<Listners> getDropDownListeners() {
return dropDownListeners;
}
public void setDropDownListeners(List<Listners> dropDownListeners) {
this.dropDownListeners = dropDownListeners;
}
}
|
[
"alpesh.kulkarni@bitwiseglobal.com"
] |
alpesh.kulkarni@bitwiseglobal.com
|
83eebb6f03af182d835a48ebb98934ba45c13230
|
8df28f1670aab8873166d8ee4e427db5759f5081
|
/app/src/main/java/com/zhongjh/cameraapp/phone/customlayout/camera2/CameraFragment2.java
|
61fe92923a7c8d032a3c6d7e0ea18eca6f99f250
|
[
"MIT"
] |
permissive
|
zhongjhATC/AlbumCameraRecorder
|
619ea33f82e3f94da8789dd1a67a7929de0796ea
|
b1b9a4d9d6f94088c5e966950a4b5dd733923782
|
refs/heads/androidx
| 2023-08-18T01:52:17.759243
| 2023-08-14T06:36:08
| 2023-08-14T06:36:08
| 144,702,880
| 777
| 92
|
MIT
| 2023-04-27T04:34:59
| 2018-08-14T10:05:47
|
Java
|
UTF-8
|
Java
| false
| false
| 5,090
|
java
|
package com.zhongjh.cameraapp.phone.customlayout.camera2;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatButton;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.RecyclerView;
import com.otaliastudios.cameraview.CameraView;
import com.zhongjh.albumcamerarecorder.camera.ui.camera.BaseCameraFragment;
import com.zhongjh.albumcamerarecorder.camera.ui.camera.presenter.BaseCameraPicturePresenter;
import com.zhongjh.albumcamerarecorder.camera.ui.camera.presenter.BaseCameraVideoPresenter;
import com.zhongjh.albumcamerarecorder.camera.ui.camera.state.CameraStateManagement;
import com.zhongjh.albumcamerarecorder.camera.widget.PhotoVideoLayout;
import com.zhongjh.albumcamerarecorder.widget.childclickable.ChildClickableRelativeLayout;
import com.zhongjh.albumcamerarecorder.widget.childclickable.IChildClickableLayout;
import com.zhongjh.cameraapp.R;
/**
* 继承于BaseCameraFragment
* 主要演示 BaseCameraPicturePresenter
* <p>
* 使用 TODO 关键字可搜索相关自定义代码
*
* @author zhongjh
* @date 2022/8/12
*/
public class CameraFragment2 extends BaseCameraFragment<CameraStateManagement, BaseCameraPicturePresenter, BaseCameraVideoPresenter> {
ViewHolder mViewHolder;
CameraPicturePresenter cameraPicturePresenter = new CameraPicturePresenter(this);
BaseCameraVideoPresenter cameraVideoPresenter = new BaseCameraVideoPresenter(this);
CameraStateManagement cameraStateManagement = new CameraStateManagement(this);
public static CameraFragment2 newInstance() {
return new CameraFragment2();
}
@Override
public View setContentView(LayoutInflater inflater, ViewGroup container) {
return inflater.inflate(R.layout.fragment_camera_zjh, container, false);
}
@Override
public void initView(View view, Bundle savedInstanceState) {
mViewHolder = new ViewHolder(view);
}
@NonNull
@Override
public IChildClickableLayout getChildClickableLayout() {
return mViewHolder.rlMain;
}
@Nullable
@Override
public View getTopView() {
return mViewHolder.clMenu;
}
@NonNull
@Override
public CameraView getCameraView() {
return mViewHolder.cameraView;
}
@Override
public RecyclerView getRecyclerViewPhoto() {
return mViewHolder.rlPhoto;
}
@Nullable
@Override
public View[] getMultiplePhotoView() {
return new View[]{mViewHolder.vLine1, mViewHolder.vLine2};
}
@NonNull
@Override
public PhotoVideoLayout getPhotoVideoLayout() {
return mViewHolder.pvLayout;
}
@NonNull
@Override
public com.zhongjh.albumcamerarecorder.widget.ImageViewTouch getSinglePhotoView() {
return mViewHolder.imgPhoto;
}
@Nullable
@Override
public View getCloseView() {
return mViewHolder.imgClose;
}
@Nullable
@Override
public ImageView getFlashView() {
return mViewHolder.imgFlash;
}
@Nullable
@Override
public ImageView getSwitchView() {
return mViewHolder.imgSwitch;
}
@NonNull
@Override
public CameraStateManagement getCameraStateManagement() {
return cameraStateManagement;
}
@NonNull
@Override
public BaseCameraPicturePresenter getCameraPicturePresenter() {
return cameraPicturePresenter;
}
@NonNull
@Override
public BaseCameraVideoPresenter getCameraVideoPresenter() {
return cameraVideoPresenter;
}
public static class ViewHolder {
View rootView;
ChildClickableRelativeLayout rlMain;
com.zhongjh.albumcamerarecorder.widget.ImageViewTouch imgPhoto;
ImageView imgFlash;
ImageView imgSwitch;
PhotoVideoLayout pvLayout;
RecyclerView rlPhoto;
View vLine1;
View vLine2;
ImageView imgClose;
CameraView cameraView;
ConstraintLayout clMenu;
AppCompatButton btnCustom;
ViewHolder(View rootView) {
this.rootView = rootView;
this.rlMain = rootView.findViewById(R.id.rlMain);
this.imgPhoto = rootView.findViewById(R.id.imgPhoto);
this.imgFlash = rootView.findViewById(R.id.imgFlash);
this.imgSwitch = rootView.findViewById(R.id.imgSwitch);
this.pvLayout = rootView.findViewById(R.id.pvLayout);
this.rlPhoto = rootView.findViewById(R.id.rlPhoto);
this.vLine1 = rootView.findViewById(R.id.vLine1);
this.vLine2 = rootView.findViewById(R.id.vLine2);
this.imgClose = rootView.findViewById(R.id.imgClose);
this.cameraView = rootView.findViewById(R.id.cameraView);
this.clMenu = rootView.findViewById(R.id.clMenu);
this.btnCustom = rootView.findViewById(R.id.btnCustom);
}
}
}
|
[
"254191389@qq.com"
] |
254191389@qq.com
|
57694050a861085e73d986b15936d433585ef661
|
bcd0f7d4133e59c7fd7034b2ddfb19434f7c38c5
|
/src/main/java/aashish/dao/XpsDAOInt.java
|
cb9bc0dd826e5fe0e885bc8de0b79d00c314e4c0
|
[] |
no_license
|
KedaraMamatha/CellPhones
|
61020a04c1a73bba4073d94e768f471db54b78ec
|
79daa957e2b9cacdfc1f867e5403dd294df9c4b8
|
refs/heads/master
| 2021-06-29T15:50:01.510719
| 2017-09-15T05:31:21
| 2017-09-15T05:31:21
| 103,617,519
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 363
|
java
|
package aashish.dao;
import java.util.List;
import aashish.model.XMAP_Product_Supplier;
public interface XpsDAOInt {
public void addxps(XMAP_Product_Supplier xps);
public List<XMAP_Product_Supplier> getAllXps();
public void deleteXps(String psid);
public XMAP_Product_Supplier getXpsById(String psid);
public void editXps(XMAP_Product_Supplier xps);
}
|
[
"Mamatha K"
] |
Mamatha K
|
04035973426a83de6224688133e9a529178ba26d
|
4611ed0d03c37e89f2f329c2d868e4a9eee32a60
|
/src/ca/uqtr/gl/controllers/ControlleurClients.java
|
5d3679b02bf4ca00e8ec311c5ffecde779ea895e
|
[] |
no_license
|
gabriellamer/ProjetGenieLogicielScrap
|
394f89cb73561d1ce340420a688f58f1dd9e24df
|
6b353ac8776b14aab17a4040390f254dc68e90cf
|
refs/heads/master
| 2021-01-02T23:12:35.004233
| 2014-11-24T22:48:54
| 2014-11-24T22:48:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,295
|
java
|
package ca.uqtr.gl.controllers;
import java.util.Date;
import ca.uqtr.gl.domain.RegistreClient;
import ca.uqtr.gl.entities.Adresse;
import ca.uqtr.gl.entities.Client;
public class ControlleurClients {
private static RegistreClient registreClient;
public ControlleurClients() {
registreClient = new RegistreClient();
}
public Client obtenirClient(int identifiant) {
return registreClient.obtenirClient(identifiant);
}
public Client obtenirClientParNoCarteMembre(int noCarteMembre) {
return registreClient.obtenirClientParNoCarteMembre(noCarteMembre);
}
public Client obtenirDernierClient() {
return registreClient.getListeClients().get(registreClient.getListeClients().size()-1);
}
public void ajouter(String nom, String prenom, Date dateNaissance, Adresse adresse, String noTel, String courriel) {
registreClient.ajouterClient(nom, prenom, dateNaissance, adresse, noTel, courriel);
}
public void supprimer(Client c) {
registreClient.supprimerClient(c);
}
public void modifier(Client c, String nom, String prenom, Date dateNaissance, Adresse adresse, String noTel, String courriel) {
registreClient.modifierClient(c, nom, prenom, dateNaissance, adresse, noTel, courriel);
}
public RegistreClient getRegistreClient() {
return registreClient;
}
}
|
[
"simon.gdupre@gmail.com"
] |
simon.gdupre@gmail.com
|
1970ceac93e600eb64e34a69bc9571427aa64f1d
|
9eb58ebaaf23b3bd96b57528ce2fd96c032eed11
|
/finance-common/src/main/java/com/rw/finance/common/utils/QrCodeUtils.java
|
d503e03cb875f2b0d5c6fd1b029f55640b36cf56
|
[] |
no_license
|
vip96300/finance-parent
|
24356c75af8636b8d31c59d2514b322c9e9b2d7b
|
e845e1458630b8bac08f53ed3b58adb3fcaf1290
|
refs/heads/master
| 2020-03-15T09:47:38.404265
| 2018-05-16T01:53:02
| 2018-05-16T01:53:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,978
|
java
|
package com.rw.finance.common.utils;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.MultiFormatWriter;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.geom.RoundRectangle2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Hashtable;
/**
* 二维码工具类
*
* @author huanghongfei
* @file QrCodeUtils.java
* @date 2018年1月18日 下午4:10:56
* @declaration
*/
public class QrCodeUtils {
// private static final int BLACK = 0xFF000000;
// private static final int WHITE = 0xFFFFFFFF;
private static final int margin = 1; // 白边大小,取值范围0~4
private static final ErrorCorrectionLevel level = ErrorCorrectionLevel.H; // 二维码容错率
private QrCodeUtils() {
}
private static void writeToFile(BufferedImage image, String format, File file) throws IOException {
if (!ImageIO.write(image, format, file)) {
throw new IOException("Could not write an image of format " + format + " to " + file);
}
}
/**
* 创建二维码
*
* @param text 文本
*/
public static BufferedImage createQrCode(String text, String mobile) throws Exception {
BufferedImage image = createQrCode(text, 530, 520);
if (image != null) {
File bgFile=new File(File.listRoots()[0]+"/data/file/static/img/bg.jpg");
File iconFile=new File(File.listRoots()[0]+"/data/file/static/img/icon-50@2x.png");
insertImage(image,iconFile);
return mergeShareImage(image, bgFile, mobile);
} else {
throw new IOException("create QR Code Error");
}
}
/**
* 分享图片与二维码合成
*
* @param qrImage 二维码
* @param bgFile 背景图
* @param text 文本内容
* @throws IOException Exception
*/
private static BufferedImage mergeShareImage(BufferedImage qrImage, File bgFile, String text) throws IOException {
BufferedImage bgBufferImage = ImageIO.read(bgFile);
BufferedImage combined = new BufferedImage(bgBufferImage.getWidth(), bgBufferImage.getHeight(), BufferedImage.TYPE_INT_RGB);
Graphics graphics = combined.getGraphics();
graphics.drawImage(bgBufferImage, 0, 0, null);
graphics.drawImage(qrImage, 650, 1215, null);
graphics.setColor(new Color(228, 117, 120));
graphics.setFont(new Font(null, Font.BOLD, 35)); //字体、字型、字号
graphics.drawString(text, 660, 2050); //画文字
graphics.dispose();
return combined;
}
/**
* 创建二维码
*
* @param text 文本
*/
public static BufferedImage createQrCode1(int bgNumber,String text, String mobile) throws Exception {
BufferedImage image = createQrCode(text, 300, 300);
if (image != null) {
File bgFile=new File(File.listRoots()[0]+"/data/file/static/img/bg_"+bgNumber+".jpg");
File iconFile=new File(File.listRoots()[0]+"/data/file/static/img/icon-50@2x.png");
insertImage(image,iconFile);
return mergeShareImage1(image, bgFile, mobile);
} else {
throw new IOException("create QR Code Error");
}
}
/**
* 分享图片与二维码合成
*
* @param qrImage 二维码
* @param bgFile 背景图
* @param text 文本内容
* @throws IOException Exception
*/
private static BufferedImage mergeShareImage1(BufferedImage qrImage, File bgFile, String text) throws IOException {
BufferedImage bgBufferImage = ImageIO.read(bgFile);
BufferedImage combined = new BufferedImage(bgBufferImage.getWidth(), bgBufferImage.getHeight(), BufferedImage.TYPE_INT_RGB);
Graphics graphics = combined.getGraphics();
graphics.drawImage(bgBufferImage, 0, 0, null);
graphics.drawImage(qrImage, 935, 0, null);
graphics.setColor(new Color(228, 117, 120));
graphics.setFont(new Font(null, Font.BOLD, 35)); //字体、字型、字号
//graphics.drawString(text, 660, 2050); //画文字
graphics.dispose();
return combined;
}
private static BufferedImage createQrCode(String text, int width, int height) {
Hashtable<EncodeHintType, Object> hints = new Hashtable<>();
hints.put(EncodeHintType.ERROR_CORRECTION, level);
hints.put(EncodeHintType.CHARACTER_SET, "utf-8");
hints.put(EncodeHintType.MARGIN, margin);
BitMatrix bitMatrix;
try {
bitMatrix = new MultiFormatWriter().encode(text, BarcodeFormat.QR_CODE, width, height, hints);
BufferedImage image = new BufferedImage(bitMatrix.getWidth(), bitMatrix.getHeight(), BufferedImage.TYPE_INT_RGB);
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
image.setRGB(x, y, bitMatrix.get(x, y) ? 0x000000 : 0xFFFFFF);
}
}
return image;
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
/**
* @param source 二维码
* @param imgPath logo的路径
*/
private static void insertImage(BufferedImage source, File imgPath) throws Exception {
Image src = ImageIO.read(imgPath);
int width = src.getWidth(null);
int height = src.getHeight(null);
int x = source.getWidth() / 2 - width / 2;
int y = source.getHeight() / 2 - height / 2;
Graphics2D graph = source.createGraphics();
graph.drawImage(src, x, y, width, height, null);
Shape shape = new RoundRectangle2D.Float(x, y, width, height, 5, 5);
graph.setStroke(new BasicStroke(2f));
graph.draw(shape);
graph.dispose();
}
/**
* 给jpg添加文字
*
* @param image 图片
* @param markContent 文字内容
* @param markContentColor 文字颜色
*/
/*public static void createStringMark(BufferedImage image, String markContent, Color markContentColor) {
ImageIcon imgIcon = new ImageIcon(image);
Image theImg = imgIcon.getImage();
int width = theImg.getWidth(null) == -1 ? 200 : theImg.getWidth(null);
int height = theImg.getHeight(null) == -1 ? 200 : theImg.getHeight(null);
BufferedImage bufferImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
Graphics2D g = bufferImage.createGraphics();
g.setColor(markContentColor);
g.setBackground(Color.red);
g.drawImage(theImg, 0, 0, null);
g.setFont(new Font(null, Font.BOLD, 15)); //字体、字型、字号
g.drawString(markContent, 11, height / 2); //画文字
g.dispose();
}*/
}
|
[
"vip96300@163.com"
] |
vip96300@163.com
|
7fb16ff42045d45bc391dfe7febac92302e01e4f
|
d9ec4d801c9d7b4c81ff9bd47713f4f052e1c2f0
|
/src/main/java/ru/amalnev/solarium/library/ip/IpRange.java
|
7279df7fab5afe402658a46c03f09f0694ec9c92
|
[] |
no_license
|
amalnev/solarium
|
33bb3b8b27b95fe4645e411589122699bbc62c16
|
d01b7bd912953cd3038f8cc3a088945b4f41a60d
|
refs/heads/master
| 2022-12-02T19:25:10.801987
| 2019-11-25T11:15:57
| 2019-11-25T11:15:57
| 201,919,894
| 0
| 0
| null | 2022-11-16T08:55:46
| 2019-08-12T11:47:55
|
Java
|
UTF-8
|
Java
| false
| false
| 1,548
|
java
|
package ru.amalnev.solarium.library.ip;
import inet.ipaddr.AddressStringException;
import inet.ipaddr.IPAddress;
import inet.ipaddr.IPAddressString;
import ru.amalnev.solarium.interpreter.ExecutionContext;
import ru.amalnev.solarium.interpreter.errors.InterpreterException;
import ru.amalnev.solarium.interpreter.memory.IValue;
import ru.amalnev.solarium.interpreter.memory.Value;
import ru.amalnev.solarium.library.AbstractNativeFunction;
import ru.amalnev.solarium.library.FunctionArguments;
import ru.amalnev.solarium.library.FunctionName;
import java.util.Iterator;
@FunctionName("ipRange")
@FunctionArguments("ipRangeString")
public class IpRange extends AbstractNativeFunction
{
@Override
public void call(ExecutionContext context) throws InterpreterException
{
try
{
final String ipRangeString = getScalarArgument(context, "ipRangeString");
final IPAddress rangeAddress = new IPAddressString(ipRangeString).toAddress();
final Iterator<? extends IPAddress> rangeIterator = rangeAddress.iterator();
final IValue result = new Value().convertToArray();
while (rangeIterator.hasNext())
{
final IPAddress ipAddress = rangeIterator.next().withoutPrefixLength();
result.addArrayElement(new Value(ipAddress.toCanonicalString()));
}
context.setReturnValue(result);
}
catch (AddressStringException e)
{
throw new InterpreterException(e);
}
}
}
|
[
"a.malnev@gmail.com"
] |
a.malnev@gmail.com
|
180e5c865533c716f71750a5497ea327012db625
|
84bf4bb61ccdec7f2d2a2ebb5f67e224b3691bd3
|
/Kattis/src/solved/Bus.java
|
e1e75c33b623f3dca9a116428b7c33c1bb8b8c4b
|
[] |
no_license
|
wanglizhong0118/Kattis
|
09327743aa60dd882bacf47359a79fc79127d50b
|
5904f44b192b3f45d97e4eb3817fa6980120b616
|
refs/heads/master
| 2020-03-07T06:50:08.553109
| 2018-05-05T07:29:32
| 2018-05-05T07:29:32
| 127,332,027
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 822
|
java
|
package solved;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
/**
* https://open.kattis.com/problems/bus
*
* @author allwi
*
*/
public class Bus {
public static void main(String[] args) throws IOException {
final BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
final BufferedWriter w = new BufferedWriter(new OutputStreamWriter(System.out));
int n = Integer.parseInt(r.readLine());
for (int i = 0; i < n; i++) {
int m = Integer.parseInt(r.readLine());
int re = (int) (Math.pow(2, m) - 1);
w.write(String.valueOf(re) + "\n");
}
w.flush();
w.close();
r.close();
}
}
|
[
"wanglizhong0118@gmail.com"
] |
wanglizhong0118@gmail.com
|
8193fb9f17ec61382cc2c73aeedc1ea0fdfb2a50
|
739bae5f438ade45ef4ae30004534f28c9ad3e78
|
/GameOf24Points/src/Util/MyUtils.java
|
a79fc1e1b86c7e8612d13558025a52f472ff0fc1
|
[] |
no_license
|
hawkiloh/24PointGame
|
7e31ed7ff2c057dcfb7b37db6f6250c40330f9eb
|
929267b96a2b783c70e87585a1f6bcfb44e6d619
|
refs/heads/master
| 2020-06-13T23:26:19.210719
| 2016-11-21T05:10:50
| 2016-11-21T05:10:50
| 75,532,218
| 0
| 1
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,029
|
java
|
package Util;
import Game.GameConstants;
import java.awt.*;
import java.io.*;
import java.net.Socket;
import java.util.ArrayList;
import java.util.Scanner;
public final class MyUtils implements GameConstants {
public static final Dimension GetParentSize(){
Toolkit toolkit=Toolkit.getDefaultToolkit();
return toolkit.getScreenSize();
}
public static final void SendMessage(Socket socket, String messge) throws IOException {
// OutputStream os=socket.getOutputStream();
PrintWriter pw = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));
pw.println(messge);
pw.flush();
}
public static final String ReceiveMessage(Socket socket) throws IOException {
// InputStream is=socket.getInputStream();
DataInputStream dis=new DataInputStream(new BufferedInputStream(socket.getInputStream()));
byte[] bytes=new byte[512];//0.5kb
int length=dis.read(bytes);
String message=new String(bytes,0,length);
// System.out.println(message);
return message;
}
public static final String BuildComm(String cm, String content) {
return cm + SEP + content;
}
public static final String DeMessage_cm(String message) {
int index = message.indexOf(SEP);
//仅仅是指令或内容,没有分隔符
if(index==-1)return message;
return message.substring(0, index);
}
public static final String DeMessage_cont(String message) {
int index = message.indexOf(SEP);
if(index==-1)return message;
return message.substring(index + 1);
}
public static final ArrayList<String> DeMessge_strings(String message){
Scanner scanner=new Scanner(message);
ArrayList<String> strings=new ArrayList<>();
while (scanner.hasNext()){
strings.add(scanner.next());
}
return strings;
}
public static final String CalExpression(String exp){
return FALSE;
}
}
|
[
"1070506780@qq.com"
] |
1070506780@qq.com
|
0c45c0392c12a9c9eac6031178fe27450bd252da
|
e3e1085adfaada2392e33a8cc1e3bb38313d2d24
|
/AnjoyoSinaWeibo/src/net/tsz/afinal/common/FileNameGenerator.java
|
da528ef0fba9d19b12e9c8cbd11e5999a3734c59
|
[] |
no_license
|
marszhanglin/like_sina_weibo
|
6a1d49c6f8cb0963014b4cf00da065d09514dae9
|
dba81fe06b44f3501f8d2169b9853fb7e6faabbe
|
refs/heads/master
| 2021-01-10T07:17:40.079875
| 2015-11-06T09:38:24
| 2015-11-06T09:38:24
| 45,673,347
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,636
|
java
|
/**
* Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.tsz.afinal.common;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class FileNameGenerator {
public static String generator(String key) {
String cacheKey;
try {
final MessageDigest mDigest = MessageDigest.getInstance("MD5");
mDigest.update(key.getBytes());
cacheKey = bytesToHexString(mDigest.digest());
} catch (NoSuchAlgorithmException e) {
cacheKey = String.valueOf(key.hashCode());
}
return cacheKey;
}
private static String bytesToHexString(byte[] bytes) {
// http://stackoverflow.com/questions/332079
StringBuilder sb = new StringBuilder();
for (int i = 0; i < bytes.length; i++) {
String hex = Integer.toHexString(0xFF & bytes[i]);
if (hex.length() == 1) {
sb.append('0');
}
sb.append(hex);
}
return sb.toString();
}
}
|
[
"780965203@qq.com"
] |
780965203@qq.com
|
b5a40b326742f09fedc93cda3c0d962be61bd868
|
d83516af69daf73a56a081f595c704d214c3963e
|
/nan21.dnet.module.hr/nan21.dnet.module.hr.business/src/main/java/net/nan21/dnet/module/hr/grade/business/serviceimpl/PayScaleService.java
|
18322665af9935287b4e7e916048261c6b21996a
|
[] |
no_license
|
nan21/nan21.dnet.modules_oss
|
fb86d20bf8a3560d30c17e885a80f6bf48a147fe
|
0251680173bf2fa922850bef833cf85ba954bb60
|
refs/heads/master
| 2020-05-07T20:35:06.507957
| 2013-02-19T12:59:05
| 2013-02-19T12:59:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,608
|
java
|
/*
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.hr.grade.business.serviceimpl;
import javax.persistence.EntityManager;
import net.nan21.dnet.core.api.session.Session;
import net.nan21.dnet.core.business.service.entity.AbstractEntityService;
import net.nan21.dnet.module.hr.grade.business.service.IPayScaleService;
import net.nan21.dnet.module.hr.grade.domain.entity.PayScale;
/**
* Repository functionality for {@link PayScale} domain entity. It contains
* finder methods based on unique keys as well as reference fields.
*
*/
public class PayScaleService extends AbstractEntityService<PayScale>
implements
IPayScaleService {
public PayScaleService() {
super();
}
public PayScaleService(EntityManager em) {
super();
this.setEntityManager(em);
}
@Override
public Class<PayScale> getEntityClass() {
return PayScale.class;
}
/**
* Find by unique key
*/
public PayScale findByCode(String code) {
return (PayScale) this.getEntityManager()
.createNamedQuery(PayScale.NQ_FIND_BY_CODE)
.setParameter("pClientId", Session.user.get().getClientId())
.setParameter("pCode", code).getSingleResult();
}
/**
* Find by unique key
*/
public PayScale findByName(String name) {
return (PayScale) this.getEntityManager()
.createNamedQuery(PayScale.NQ_FIND_BY_NAME)
.setParameter("pClientId", Session.user.get().getClientId())
.setParameter("pName", name).getSingleResult();
}
}
|
[
"mathe_attila@yahoo.com"
] |
mathe_attila@yahoo.com
|
c495cab4e801ae80de457cdf515825beac80b73e
|
47c37dc336a17392531a6b7e5c001b9c1c3ec4e6
|
/app/src/main/java/com/example/zenghui/bmobdemo/model/CookieCallBack.java
|
6c5953094ffa63c48b91b84bb388bca8fd1f19bd
|
[] |
no_license
|
jsdtoolbox/toolbox
|
6f6086c077d8644f2aebe8c14c99e6d3448a9239
|
4ad5f2e0969dcb420242da0e969fe6d270bb965b
|
refs/heads/master
| 2020-04-06T07:06:14.357592
| 2016-09-09T06:39:20
| 2016-09-09T06:39:20
| 65,625,486
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 475
|
java
|
package com.example.zenghui.bmobdemo.model;
import com.example.zenghui.bmobdemo.utils.Common;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
/**
* Created by zenghui on 2016/7/17.
*/
public class CookieCallBack<T> implements Callback<T> {
@Override
public void onResponse(Call<T> call, Response<T> response) {
Common.setCookies(response);
}
@Override
public void onFailure(Call<T> call, Throwable t) {
}
}
|
[
"zenghui@192.168.103.117"
] |
zenghui@192.168.103.117
|
3f27449e6fff520e1e3dab41bb2554eed6b5e27d
|
3c4ba57eec3685adfe0e950f58101fc609983594
|
/Google/src/test/java/com/tbla/tbz/calc/memory/HashMapMemoryTest.java
|
540d7973b7838e172375906fcc5fb55375a42b77
|
[] |
no_license
|
tregistergithub/interview-questions
|
6b9b687fc5a5a992c8d55847a8a9c3f17963a6db
|
b0417b21025c152cd2930cdb2d1d9c2ff1e58dd1
|
refs/heads/master
| 2020-06-19T17:36:13.209062
| 2016-12-10T23:46:25
| 2016-12-10T23:46:25
| 74,833,645
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 979
|
java
|
package com.tbla.tbz.calc.memory;
import static org.junit.Assert.*;
import org.junit.Test;
public class HashMapMemoryTest {
@Test
public void testToString() {
Memory m = new HashMapMemory();
assertEquals("empty memory toString", "Memory is empty", m.toString());
}
@Test
public void testMemoryBasicFunctionality() {
Memory m = new HashMapMemory();
m.set("a", 1);
Integer aVal = m.get("a");
assertEquals("set & get var", aVal, Integer.valueOf(1));
assertNull("get missing var", m.get("non existant var"));
}
@Test
public void testNegative_MemoryBasicFunctionality() {
Memory m = new HashMapMemory();
// Negative flow - null variable name
try {
m.set(null, 1);
fail("Should not reach here");
} catch (Exception e) {
// Do nothing
}
// Negative flow - null value
try {
m.set("a", null);
fail("Should not reach here");
} catch (Exception e) {
// Do nothing
}
}
}
|
[
"tregister@hotmail.com"
] |
tregister@hotmail.com
|
ba461dbf6d8adff5e9398aabb342c609c47cbcec
|
fc412db3831586d63ca0ad45daf2ff368ca841c3
|
/src/main/java/com/example/mybatis/entity/User.java
|
09e856b92dba0d1993874378caadedaf5f26598f
|
[] |
no_license
|
lhf-programer/mybatis-demo
|
9f09fbad933b96430800932f4252566faa32d6fb
|
f6fae515da6ab0089c3ad37b3f18fa507a5efd78
|
refs/heads/master
| 2022-07-04T19:03:25.878120
| 2020-07-18T07:33:21
| 2020-07-18T07:33:21
| 233,982,111
| 0
| 0
| null | 2022-06-21T02:38:27
| 2020-01-15T02:36:48
|
Java
|
UTF-8
|
Java
| false
| false
| 676
|
java
|
package com.example.mybatis.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: 用户
* @Author: haifeng.lv
* @Date: 2020-01-15 09:49
*/
@Data
@TableName("user")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User {
/**id*/
@TableId(type = IdType.UUID)
private String id;
/**name*/
private String name;
public User(String id, String name) {
this.id = id;
this.name = name;
}
public User() {
}
}
|
[
"1179438473@qq.com"
] |
1179438473@qq.com
|
6d98353ec18b1b1c10d23da11c933b4730266302
|
0e61288d788e51e04f69473fd7c2829ddb1f9846
|
/Web/src/lti/octave/repo/PasswordDoesnotExistException.java
|
e852da7cc740e633ab8258a3b936ca9aee14ba80
|
[] |
no_license
|
MalhotraAshish/Banking-Octave
|
d568ccfa663247b6e0c0ce9e42e32f3d786bd97b
|
e18de9e54d52d0dac05ec573cae496338ea36a89
|
refs/heads/master
| 2020-03-22T13:08:03.086149
| 2018-07-25T07:47:15
| 2018-07-25T07:47:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 357
|
java
|
package lti.octave.repo;
/*Password does not Exist Exception*/
public class PasswordDoesnotExistException extends Exception {
public PasswordDoesnotExistException() {
super();
// TODO Auto-generated constructor stub
}
public PasswordDoesnotExistException(String arg0) {
super(arg0);
// TODO Auto-generated constructor stub
}
}
|
[
"LTI@Infva06229"
] |
LTI@Infva06229
|
5399d4562946d38110af1bb3375221baeec43b4d
|
05968fe06d4954fa555bac786a71a7ce63fc294f
|
/xd test/Storage.java
|
fb3ff48750268ed14523c9fa1a3bdfe5b380abdb
|
[] |
no_license
|
ph-jo/PRO1
|
b1c9f10298bafd486f3dc0e7d75f0c9a74752206
|
31c5eecf09f6a88f74f915bb4d6eb4cea2694c61
|
refs/heads/master
| 2021-01-22T19:49:21.607387
| 2018-02-07T14:10:35
| 2018-02-07T14:10:35
| 85,247,467
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 727
|
java
|
import java.util.ArrayList;
/**
* Created by Jona on 08-06-2017.
*/
public class Storage {
private static ArrayList<Kamp> kampe = new ArrayList<>();
private static ArrayList<Spiller> spillere = new ArrayList<>();
public static ArrayList<Kamp> getKampe() {
return new ArrayList<>(kampe);
}
public static void addKamp(Kamp kamp) {
if (!kampe.contains(kamp)) {
kampe.add(kamp);
}
}
public static ArrayList<Spiller> getSpillere() {
return new ArrayList<>(spillere);
}
public static void addSpiller(Spiller spiller) {
if (!spillere.contains(spiller)) {
spillere.add(spiller);
}
}
}
|
[
"noreply@github.com"
] |
ph-jo.noreply@github.com
|
bc7ec660d1dd3fd15e8fc16228e4b005f599ba4d
|
cb586b6429303fac9f4d08be836cce45a6045fc3
|
/socialbooksapi/src/main/java/com/algaworks/socialbooks/services/AutoresService.java
|
2fcad155ff8f76934cb4eab30839e73d9ddb9d01
|
[] |
no_license
|
alexbfreitas/socialbooks
|
495b189018cb9617295b2a87bc10f7b7186a036c
|
7ab94d54f1c303815d18f9b31020d237a340aa1b
|
refs/heads/master
| 2021-01-25T13:57:25.134942
| 2018-03-15T01:36:07
| 2018-03-15T01:36:07
| 123,625,368
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,169
|
java
|
package com.algaworks.socialbooks.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.algaworks.socialbooks.domain.Autor;
import com.algaworks.socialbooks.repository.AutoresRepository;
import com.algaworks.socialbooks.services.exceptions.AutorExistenteException;
import com.algaworks.socialbooks.services.exceptions.AutorNaoEncontradoException;
@Service
public class AutoresService {
@Autowired
private AutoresRepository autoresRepository;
public List<Autor> listar() {
return autoresRepository.findAll();
}
public Autor salvar(Autor autor) {
if (autor.getId() != null) {
Autor a = autoresRepository.findOne(autor.getId());
if (a != null) {
throw new AutorExistenteException("O autor já existe.");
}
}
return autoresRepository.save(autor);
}
public Autor buscar(Long id) {
Autor autor = autoresRepository.findOne(id);
if (autor == null) {
throw new AutorNaoEncontradoException("O autor não pode ser encontrado.");
}
return autor;
}
}
|
[
"alexbfreitas@gmail.com"
] |
alexbfreitas@gmail.com
|
39be54b96fa8dacc2264ba47e570e74aa7516eda
|
d132a32f07cdc583c021e56e61a4befff6228900
|
/src/main/java/net/minecraft/client/particle/EntityFishWakeFX.java
|
61b23f3c6349afc20e0fcc5b361694f6f8164ae5
|
[] |
no_license
|
TechCatOther/um_clean_forge
|
27d80cb6e12c5ed38ab7da33a9dd9e54af96032d
|
b4ddabd1ed7830e75df9267e7255c9e79d1324de
|
refs/heads/master
| 2020-03-22T03:14:54.717880
| 2018-07-02T09:28:10
| 2018-07-02T09:28:10
| 139,421,233
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,072
|
java
|
package net.minecraft.client.particle;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class EntityFishWakeFX extends EntityFX
{
private static final String __OBFID = "CL_00000933";
protected EntityFishWakeFX(World worldIn, double p_i45073_2_, double p_i45073_4_, double p_i45073_6_, double p_i45073_8_, double p_i45073_10_, double p_i45073_12_)
{
super(worldIn, p_i45073_2_, p_i45073_4_, p_i45073_6_, 0.0D, 0.0D, 0.0D);
this.motionX *= 0.30000001192092896D;
this.motionY = Math.random() * 0.20000000298023224D + 0.10000000149011612D;
this.motionZ *= 0.30000001192092896D;
this.particleRed = 1.0F;
this.particleGreen = 1.0F;
this.particleBlue = 1.0F;
this.setParticleTextureIndex(19);
this.setSize(0.01F, 0.01F);
this.particleMaxAge = (int)(8.0D / (Math.random() * 0.8D + 0.2D));
this.particleGravity = 0.0F;
this.motionX = p_i45073_8_;
this.motionY = p_i45073_10_;
this.motionZ = p_i45073_12_;
}
public void onUpdate()
{
this.prevPosX = this.posX;
this.prevPosY = this.posY;
this.prevPosZ = this.posZ;
this.motionY -= (double)this.particleGravity;
this.moveEntity(this.motionX, this.motionY, this.motionZ);
this.motionX *= 0.9800000190734863D;
this.motionY *= 0.9800000190734863D;
this.motionZ *= 0.9800000190734863D;
int i = 60 - this.particleMaxAge;
float f = (float)i * 0.001F;
this.setSize(f, f);
this.setParticleTextureIndex(19 + i % 4);
if (this.particleMaxAge-- <= 0)
{
this.setDead();
}
}
@SideOnly(Side.CLIENT)
public static class Factory implements IParticleFactory
{
private static final String __OBFID = "CL_00002573";
public EntityFX getEntityFX(int p_178902_1_, World worldIn, double p_178902_3_, double p_178902_5_, double p_178902_7_, double p_178902_9_, double p_178902_11_, double p_178902_13_, int ... p_178902_15_)
{
return new EntityFishWakeFX(worldIn, p_178902_3_, p_178902_5_, p_178902_7_, p_178902_9_, p_178902_11_, p_178902_13_);
}
}
}
|
[
"alone.inbox@gmail.com"
] |
alone.inbox@gmail.com
|
21ff5cfa9d069f9d5e1f432ff1fe9766e0dee6cc
|
aa993cc5a7dab7251fd7f6c7c709dfa82e7fed35
|
/modules/reindex/src/test/java/org/elasticsearch/index/reindex/DeleteByQueryBasicTests.java
|
841c864be77402caeb23a794aade4f1633763e85
|
[
"Apache-2.0"
] |
permissive
|
cherish6092/elasticsearch-5.4.0
|
7102eb48dd254e52a149687b596dc39305b76218
|
8b611b0271ee98308c710a5dce11c408fab4fa3a
|
refs/heads/master
| 2022-12-14T18:46:12.588517
| 2020-08-13T04:07:48
| 2020-08-13T04:07:48
| 263,504,074
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 11,302
|
java
|
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.index.reindex;
import org.elasticsearch.action.admin.indices.alias.Alias;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.index.IndexNotFoundException;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.sort.SortOrder;
import java.util.ArrayList;
import java.util.List;
import static org.elasticsearch.index.query.QueryBuilders.matchQuery;
import static org.elasticsearch.index.query.QueryBuilders.rangeQuery;
import static org.elasticsearch.index.query.QueryBuilders.termQuery;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
import static org.hamcrest.Matchers.hasSize;
public class DeleteByQueryBasicTests extends ReindexTestCase {
public void testBasics() throws Exception {
indexRandom(true,
client().prepareIndex("test", "test", "1").setSource("foo", "a"),
client().prepareIndex("test", "test", "2").setSource("foo", "a"),
client().prepareIndex("test", "test", "3").setSource("foo", "b"),
client().prepareIndex("test", "test", "4").setSource("foo", "c"),
client().prepareIndex("test", "test", "5").setSource("foo", "d"),
client().prepareIndex("test", "test", "6").setSource("foo", "e"),
client().prepareIndex("test", "test", "7").setSource("foo", "f")
);
assertHitCount(client().prepareSearch("test").setTypes("test").setSize(0).get(), 7);
// Deletes two docs that matches "foo:a"
assertThat(deleteByQuery().source("test").filter(termQuery("foo", "a")).refresh(true).get(), matcher().deleted(2));
assertHitCount(client().prepareSearch("test").setTypes("test").setSize(0).get(), 5);
// Deletes the two first docs with limit by size
DeleteByQueryRequestBuilder request = deleteByQuery().source("test").size(2).refresh(true);
request.source().addSort("foo.keyword", SortOrder.ASC);
assertThat(request.get(), matcher().deleted(2));
assertHitCount(client().prepareSearch("test").setTypes("test").setSize(0).get(), 3);
// Deletes but match no docs
assertThat(deleteByQuery().source("test").filter(termQuery("foo", "no_match")).refresh(true).get(), matcher().deleted(0));
assertHitCount(client().prepareSearch("test").setTypes("test").setSize(0).get(), 3);
// Deletes all remaining docs
assertThat(deleteByQuery().source("test").refresh(true).get(), matcher().deleted(3));
assertHitCount(client().prepareSearch("test").setTypes("test").setSize(0).get(), 0);
}
public void testDeleteByQueryWithOneIndex() throws Exception {
final long docs = randomIntBetween(1, 50);
List<IndexRequestBuilder> builders = new ArrayList<>();
for (int i = 0; i < docs; i++) {
builders.add(client().prepareIndex("test", "doc", String.valueOf(i)).setSource("fields1", 1));
}
indexRandom(true, true, true, builders);
assertThat(deleteByQuery().source("t*").refresh(true).get(), matcher().deleted(docs));
assertHitCount(client().prepareSearch("test").setSize(0).get(), 0);
}
public void testDeleteByQueryWithMultipleIndices() throws Exception {
final int indices = randomIntBetween(2, 5);
final int docs = randomIntBetween(2, 10) * 2;
long[] candidates = new long[indices];
// total number of expected deletions
long deletions = 0;
List<IndexRequestBuilder> builders = new ArrayList<>();
for (int i = 0; i < indices; i++) {
// number of documents to be deleted with the upcoming delete-by-query
// (this number differs for each index)
candidates[i] = randomIntBetween(1, docs);
deletions = deletions + candidates[i];
for (int j = 0; j < docs; j++) {
boolean candidate = (j < candidates[i]);
builders.add(client().prepareIndex("test-" + i, "doc", String.valueOf(j)).setSource("candidate", candidate));
}
}
indexRandom(true, true, true, builders);
// Deletes all the documents with candidate=true
assertThat(deleteByQuery().source("test-*").filter(termQuery("candidate", true)).refresh(true).get(),
matcher().deleted(deletions));
for (int i = 0; i < indices; i++) {
long remaining = docs - candidates[i];
assertHitCount(client().prepareSearch("test-" + i).setSize(0).get(), remaining);
}
assertHitCount(client().prepareSearch().setSize(0).get(), (indices * docs) - deletions);
}
public void testDeleteByQueryWithMissingIndex() throws Exception {
indexRandom(true, client().prepareIndex("test", "test", "1").setSource("foo", "a"));
assertHitCount(client().prepareSearch().setSize(0).get(), 1);
try {
deleteByQuery().source("missing").get();
fail("should have thrown an exception because of a missing index");
} catch (IndexNotFoundException e) {
// Ok
}
}
public void testDeleteByQueryWithRouting() throws Exception {
assertAcked(prepareCreate("test").setSettings("number_of_shards", 2));
ensureGreen("test");
final int docs = randomIntBetween(2, 10);
logger.info("--> indexing [{}] documents with routing", docs);
List<IndexRequestBuilder> builders = new ArrayList<>();
for (int i = 0; i < docs; i++) {
builders.add(client().prepareIndex("test", "test", String.valueOf(i)).setRouting(String.valueOf(i)).setSource("field1", 1));
}
indexRandom(true, true, true, builders);
logger.info("--> counting documents with no routing, should be equal to [{}]", docs);
assertHitCount(client().prepareSearch().setSize(0).get(), docs);
String routing = String.valueOf(randomIntBetween(2, docs));
logger.info("--> counting documents with routing [{}]", routing);
long expected = client().prepareSearch().setSize(0).setRouting(routing).get().getHits().totalHits();
logger.info("--> delete all documents with routing [{}] with a delete-by-query", routing);
DeleteByQueryRequestBuilder delete = deleteByQuery().source("test");
delete.source().setRouting(routing);
assertThat(delete.refresh(true).get(), matcher().deleted(expected));
assertHitCount(client().prepareSearch().setSize(0).get(), docs - expected);
}
public void testDeleteByMatchQuery() throws Exception {
assertAcked(prepareCreate("test").addAlias(new Alias("alias")));
final int docs = scaledRandomIntBetween(10, 100);
List<IndexRequestBuilder> builders = new ArrayList<>();
for (int i = 0; i < docs; i++) {
builders.add(client().prepareIndex("test", "test", Integer.toString(i))
.setRouting(randomAlphaOfLengthBetween(1, 5))
.setSource("foo", "bar"));
}
indexRandom(true, true, true, builders);
int n = between(0, docs - 1);
assertHitCount(client().prepareSearch("test").setSize(0).setQuery(matchQuery("_id", Integer.toString(n))).get(), 1);
assertHitCount(client().prepareSearch("test").setSize(0).setQuery(QueryBuilders.matchAllQuery()).get(), docs);
DeleteByQueryRequestBuilder delete = deleteByQuery().source("alias").filter(matchQuery("_id", Integer.toString(n)));
assertThat(delete.refresh(true).get(), matcher().deleted(1L));
assertHitCount(client().prepareSearch("test").setSize(0).setQuery(QueryBuilders.matchAllQuery()).get(), docs - 1);
}
public void testDeleteByQueryWithDateMath() throws Exception {
indexRandom(true, client().prepareIndex("test", "type", "1").setSource("d", "2013-01-01"));
DeleteByQueryRequestBuilder delete = deleteByQuery().source("test").filter(rangeQuery("d").to("now-1h"));
assertThat(delete.refresh(true).get(), matcher().deleted(1L));
assertHitCount(client().prepareSearch("test").setSize(0).get(), 0);
}
public void testDeleteByQueryOnReadOnlyIndex() throws Exception {
createIndex("test");
final int docs = randomIntBetween(1, 50);
List<IndexRequestBuilder> builders = new ArrayList<>();
for (int i = 0; i < docs; i++) {
builders.add(client().prepareIndex("test", "test", Integer.toString(i)).setSource("field", 1));
}
indexRandom(true, true, true, builders);
try {
enableIndexBlock("test", IndexMetaData.SETTING_READ_ONLY);
assertThat(deleteByQuery().source("test").refresh(true).get(), matcher().deleted(0).failures(docs));
} finally {
disableIndexBlock("test", IndexMetaData.SETTING_READ_ONLY);
}
assertHitCount(client().prepareSearch("test").setSize(0).get(), docs);
}
public void testWorkers() throws Exception {
indexRandom(true,
client().prepareIndex("test", "test", "1").setSource("foo", "a"),
client().prepareIndex("test", "test", "2").setSource("foo", "a"),
client().prepareIndex("test", "test", "3").setSource("foo", "b"),
client().prepareIndex("test", "test", "4").setSource("foo", "c"),
client().prepareIndex("test", "test", "5").setSource("foo", "d"),
client().prepareIndex("test", "test", "6").setSource("foo", "e"),
client().prepareIndex("test", "test", "7").setSource("foo", "f")
);
assertHitCount(client().prepareSearch("test").setTypes("test").setSize(0).get(), 7);
// Deletes the two docs that matches "foo:a"
assertThat(deleteByQuery().source("test").filter(termQuery("foo", "a")).refresh(true).setSlices(5).get(),
matcher().deleted(2).slices(hasSize(5)));
assertHitCount(client().prepareSearch("test").setTypes("test").setSize(0).get(), 5);
// Delete remaining docs
DeleteByQueryRequestBuilder request = deleteByQuery().source("test").refresh(true).setSlices(5);
assertThat(request.get(), matcher().deleted(5).slices(hasSize(5)));
assertHitCount(client().prepareSearch("test").setTypes("test").setSize(0).get(), 0);
}
}
|
[
"muzan@ibantang.com"
] |
muzan@ibantang.com
|
e45b0e842877cdd7a1734722d25d404e93cba3e5
|
f2bc2df9492117ee25915a488cc69873a39d81df
|
/InventoryManagementCore/src/main/java/com/report/ReportProcessCsv.java
|
db517af9c76f7d80420a64daaac24e983b33f7a5
|
[] |
no_license
|
Jorik88/InventoryManagement
|
3ae61dfd92d86e4b7a3e01bdb115923e44757fbe
|
5eb7fab4c1ceca5ced447fd519911f0f517e1845
|
refs/heads/master
| 2021-10-15T22:49:52.018292
| 2019-02-06T09:16:37
| 2019-02-06T09:16:37
| 114,396,674
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,316
|
java
|
package com.report;
import static org.apache.commons.lang.CharEncoding.UTF_8;
import com.entity.InventoryState;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.List;
import org.springframework.stereotype.Service;
@Service("reportProcessCSV")
public class ReportProcessCsv implements ReportProcess {
private static final String TAB_CHAR = "\t";
@Override
public void writeData(List<InventoryState> inventoryStates,
File file) throws FileNotFoundException, UnsupportedEncodingException {
PrintWriter pwt = new PrintWriter(file, UTF_8);
int rowNumber = 1;
for (InventoryState inventoryState : inventoryStates) {
StringBuilder report = new StringBuilder()
.append(rowNumber++)
.append(TAB_CHAR)
.append(inventoryState.getInventoryStatePk().getProduct().getProductName())
.append(TAB_CHAR)
.append(inventoryState.getQuantity())
.append(TAB_CHAR)
.append(inventoryState.getInventoryStatePk().getStateDate())
.append(TAB_CHAR)
.append(inventoryState.calculateItemCost())
.append("\n");
pwt.format(report.toString());
}
pwt.flush();
pwt.close();
}
}
|
[
"alexandr.makarevich88@gmail.com"
] |
alexandr.makarevich88@gmail.com
|
05a2f4f0b99df2fc72b55e40b802b93d5929bc61
|
16fc03c458060c39d1b24ba6bbe29f399f0b532c
|
/Java8Codes/src/com/interfacejava8/InterfWithoutLambda.java
|
a23a7527637d2f83ae7bec5b328fb1869603f69f
|
[] |
no_license
|
rkumar3ic/java8
|
0426b04d61d40494b524cde0e6baad483fcf5711
|
c24d0cfbf3767009d709566bd771d3b138d81521
|
refs/heads/master
| 2020-08-20T23:17:04.531902
| 2019-10-29T08:11:43
| 2019-10-29T08:11:43
| 216,076,745
| 0
| 0
| null | 2019-10-18T17:38:13
| 2019-10-18T17:38:12
| null |
UTF-8
|
Java
| false
| false
| 291
|
java
|
package com.interfacejava8;
interface Interf {
public void m1();
}
class Demo implements Interf{
@Override
public void m1() {
System.out.println("m1");
}
}
public class InterfWithoutLambda {
public static void main(String[] args) {
Interf i1 = new Demo();
i1.m1();
}
}
|
[
"ritesh3388@gmail.com"
] |
ritesh3388@gmail.com
|
0b7ede144ebb4526adf843dddb59437a55f9b429
|
e455edbab41f96c6776533ee6fa9da52d70c35b2
|
/Programmieren_2/src/prog2_a1/Run.java
|
9b056139f6599fdebb64f8f1f010a8acf97af529
|
[] |
no_license
|
MKanoune/prog2
|
02c2deceb9500e512983ac30f816113adbff98ee
|
0221b002c8f3c9e835c0dac1e2c248100f11f894
|
refs/heads/master
| 2021-05-30T20:30:04.439346
| 2016-04-18T10:14:04
| 2016-04-18T10:14:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 143
|
java
|
package prog2_a1;
public class Run {
public static void main(String[] args){
Board VG = new Board(true);
VG.play();
}
}
|
[
"tim.koehler@hs-augsburg.de"
] |
tim.koehler@hs-augsburg.de
|
e5b85bf1f7882cea38854977246403603596eb2f
|
b671d6b4df7a3deb491f15caf37084f17c436eb1
|
/src/biblioteca/TestBiblio.java
|
2b7ce30aa49dd5feb333268bf06e236fd1f5accd
|
[] |
no_license
|
UniversityProjects/ProgrammingII
|
ab0a58163218a1df005f8fb6e31c46682820ee94
|
59098b01c20140c3369dbf78ce12496b45acd43b
|
refs/heads/master
| 2021-01-01T16:19:52.737431
| 2014-03-28T11:18:25
| 2014-03-28T11:18:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 671
|
java
|
package biblioteca;
import junit.framework.TestCase;
public class TestBiblio extends TestCase {
public void TestTutto() {
Utente ut1 = new Utente ("Mario Rossi", 600);
Libro book1 = new Libro ("La Compagnia Dell'Anello", 150);
Libro book2 = new Libro ("Le Due Torri", 170);
Libro book3 = new Libro ("Il Ritorno Del Re", 250);
Libro rivista = new Rivista ("Gianni", 90, 800);
assertEquals(true, ut1.prendiInPrestito(book1));
assertEquals(true, ut1.prendiInPrestito(book2));
assertEquals(true, ut1.prendiInPrestito(book3));
assertEquals(false, ut1.prendiInPrestito(rivista));
}
}
|
[
"sapo93@gmail.com"
] |
sapo93@gmail.com
|
2ea5ecdea9ab65f52386a417d6985f7f320ab242
|
1dc1f050eaaa5396349d321d4f33b7a749b09514
|
/src/de/tu_darmstadt/stg/mudetect/model/TestAUGBuilder.java
|
10ae3549629286ef3a13e9cdc4a2d1d104222e2b
|
[] |
no_license
|
miketran238/ParserForGM
|
5fc1ba47d788b15d779c1a2dcbb497b7e958c3aa
|
66b4f84283585a2eee0b11d5905b4ac99997338a
|
refs/heads/master
| 2021-03-13T02:55:37.919526
| 2017-05-16T17:08:29
| 2017-05-16T17:08:29
| 91,483,689
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,628
|
java
|
package de.tu_darmstadt.stg.mudetect.model;
import egroum.*;
import org.eclipse.jdt.core.dom.ASTNode;
import utils.JavaASTUtil;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class TestAUGBuilder {
private static int randomAUGCount = 0;
private final Map<String, EGroumNode> nodeMap;
private final Set<EGroumEdge> edges;
private final String name;
private TestAUGBuilder(String name) {
this.name = name;
nodeMap = new HashMap<>();
edges = new HashSet<>();
}
private TestAUGBuilder(TestAUGBuilder baseBuilder) {
name = baseBuilder.name;
nodeMap = new HashMap<>(baseBuilder.nodeMap);
edges = new HashSet<>(baseBuilder.edges);
}
public static AUG someAUG() {
return buildAUG().withActionNode(":dummy:" + (++randomAUGCount)).build();
}
public static TestAUGBuilder buildAUG() {
return new TestAUGBuilder(":AUG:");
}
public static TestAUGBuilder buildAUG(String name) {
return new TestAUGBuilder(name);
}
private static TestAUGBuilder join(TestAUGBuilder... builder) {
TestAUGBuilder joinedBuilder = null;
for (int i = 0; i < builder.length; i++) {
if (i == 0) {
joinedBuilder = new TestAUGBuilder(builder[0]);
} else {
joinedBuilder.nodeMap.putAll(builder[i].nodeMap);
joinedBuilder.edges.addAll(builder[i].edges);
}
}
return joinedBuilder;
}
public static TestAUGBuilder extend(TestAUGBuilder... baseBuilder) {return new TestAUGBuilder(join(baseBuilder)); }
static TestAUGBuilder builderFrom(AUG aug) {
TestAUGBuilder builder = new TestAUGBuilder(aug.getLocation().getMethodName());
for (EGroumNode node : aug.vertexSet()) {
builder.withNode(node.getLabel(), node);
}
builder.edges.addAll(aug.edgeSet());
return builder;
}
public TestAUGBuilder withActionNodes(String... nodeNames) {
for (String nodeName : nodeNames) {
withActionNode(nodeName);
}
return this;
}
public TestAUGBuilder withActionNode(String nodeName) {
if (nodeMap.containsKey(nodeName)) {
throw new IllegalArgumentException("A node with id '" + nodeName + "' already exists, please specify an explicit node id.");
}
return withActionNode(nodeName, nodeName);
}
public TestAUGBuilder withActionNode(String id, String nodeName) {
int nodeType;
if (JavaASTUtil.infixExpressionLables.containsKey(nodeName)) {
nodeName = JavaASTUtil.infixExpressionLables.get(nodeName);
nodeType = ASTNode.INFIX_EXPRESSION;
} else if (nodeName.equals("return")) {
nodeType = ASTNode.RETURN_STATEMENT;
} else {
nodeType = ASTNode.METHOD_INVOCATION;
}
return withNode(id, new EGroumActionNode(nodeName, nodeType));
}
public TestAUGBuilder withDataNodes(String... nodeNames) {
for (String nodeName : nodeNames) {
withDataNode(nodeName);
}
return this;
}
public TestAUGBuilder withDataNode(String nodeName) {
if (nodeMap.containsKey(nodeName)) {
throw new IllegalArgumentException("A node with id '" + nodeName + "' already exists, please specify an explicit node id.");
}
return withDataNode(nodeName, nodeName);
}
public TestAUGBuilder withDataNode(String id, String nodeName) {
return withNode(id, new EGroumDataNode(nodeName));
}
public TestAUGBuilder withNode(String id, EGroumNode node) {
if (nodeMap.containsKey(id)) {
throw new IllegalArgumentException("A node with id '" + id + "' already exists.");
}
nodeMap.put(id, node);
return this;
}
public TestAUGBuilder withDataEdge(String sourceId, EGroumDataEdge.Type type, String targetId) {
edges.add(new EGroumDataEdge(getNode(sourceId), getNode(targetId), type));
return this;
}
public TestAUGBuilder withCondEdge(String sourceId, String kind, String targetId) {
edges.add(new EGroumDataEdge(getNode(sourceId), getNode(targetId), EGroumDataEdge.Type.CONDITION, kind));
return this;
}
EGroumNode getNode(String id) {
if (!nodeMap.containsKey(id)) {
throw new IllegalArgumentException("A node with id '" + id + "' does not exist.");
}
return nodeMap.get(id);
}
EGroumEdge getEdge(String sourceNodeId, EGroumDataEdge.Type type, String targetNodeId) {
for (EGroumEdge edge : edges) {
if (edge.getSource() == getNode(sourceNodeId) &&
edge.getTarget() == getNode(targetNodeId) &&
hasType(edge, type)) {
return edge;
}
}
throw new IllegalArgumentException("no such edge");
}
private boolean hasType(EGroumEdge edge, EGroumDataEdge.Type type) {
return edge.getLabel().equals(EGroumDataEdge.getLabel(type)) ||
(type == EGroumDataEdge.Type.CONDITION &&
("sel".equals(edge.getLabel()) || "rep".equals(edge.getLabel())));
}
public AUG build() {
AUG aug = new AUG(name, ":aug-file-path:");
for (EGroumNode node : nodeMap.values()) {
aug.addVertex(node);
}
for (EGroumEdge edge : edges) {
aug.addEdge(edge.getSource(), edge.getTarget(), edge);
}
return aug;
}
}
|
[
"ngocmike238@gmail.com"
] |
ngocmike238@gmail.com
|
4504f4af9b92bdc05a545a3cde840ca30013c70b
|
1502fa73aaed536b38c1eb75e9a8c91ee6b22bbf
|
/exam-mts/exam-mts-cvs/src/com/zhjedu/exam/domain/ZjManeuver.java
|
2b33e033a371f0853ee19d820cf82324de566389
|
[] |
no_license
|
myedlt/mytester
|
634aa11e787feb44ad24f81ee829954c4197bc89
|
ef9b95bf6c5adea4f9a9f70394cb2e8770c4d50e
|
refs/heads/master
| 2021-05-29T17:35:59.758905
| 2008-08-15T13:42:46
| 2008-08-15T13:42:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,512
|
java
|
package com.zhjedu.exam.domain;
import java.util.HashSet;
import java.util.Set;
/**
* ZjManeuver generated by MyEclipse - Hibernate Tools
*/
public class ZjManeuver implements java.io.Serializable {
// Fields
private String id;
private String title;
private Long createdate;
private String creator;
private String maneuverType;
private Long maneuverPri;
private String status;
private Set maneuverItem = new HashSet();
// Constructors
/** default constructor */
public ZjManeuver() {
}
/** minimal constructor */
public ZjManeuver(String title, String status) {
this.title = title;
this.status = status;
}
/** full constructor */
public ZjManeuver(String title, Long createdate, String creator, String maneuverType, Long maneuverPri, String status) {
this.title = title;
this.createdate = createdate;
this.creator = creator;
this.maneuverType = maneuverType;
this.maneuverPri = maneuverPri;
this.status = status;
}
// Property accessors
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public Long getCreatedate() {
return this.createdate;
}
public void setCreatedate(Long createdate) {
this.createdate = createdate;
}
public String getCreator() {
return this.creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public String getManeuverType() {
return this.maneuverType;
}
public void setManeuverType(String maneuverType) {
this.maneuverType = maneuverType;
}
public Long getManeuverPri() {
return this.maneuverPri;
}
public void setManeuverPri(Long maneuverPri) {
this.maneuverPri = maneuverPri;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public Set getManeuverItem() {
return maneuverItem;
}
public void setManeuverItem(Set maneuverItem) {
this.maneuverItem = maneuverItem;
}
}
|
[
"huhongjun@2e452bda-7c54-0410-b8b4-67ef32aab22e"
] |
huhongjun@2e452bda-7c54-0410-b8b4-67ef32aab22e
|
7a6b60d3a16812780bb816e3a2fda7bd2a726209
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_54477.java
|
5cb25499e5c037689a4dffb3d99765b346fb60c5
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 149
|
java
|
/**
* Returns the value of the {@code m_jointUpperLimit} field.
*/
public double m_jointUpperLimit(){
return nm_jointUpperLimit(address());
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
4dcd073706b761782658c6c57a8b4ef84adeb6b8
|
a82ce51f7341843511d5367c1959d1294252c24f
|
/BootArticle/src/test/java/com/inti/formation/BootProduitApplicationTests.java
|
8f7634c5e335a91bdc6ce6b8282d7e2076b65e57
|
[] |
no_license
|
Mbharis/articles
|
a1e994fe6dfe85266e64385d958bc9221ad23a50
|
15088675d9bacdfe1ad4ae6bbe6e0c040f2cdceb
|
refs/heads/master
| 2020-06-02T22:10:07.685910
| 2019-06-11T08:14:13
| 2019-06-11T08:14:13
| 191,324,913
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 340
|
java
|
package com.inti.formation;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class BootProduitApplicationTests {
@Test
public void contextLoads() {
}
}
|
[
"haris.Cesko7@gmail.com"
] |
haris.Cesko7@gmail.com
|
935e72080ef5ee4e723ca5ddcd20560ce82f423d
|
f812d79b60ff2a7bb3e08c5117fd17fe8b2b8bc3
|
/util4j/src/main/java/net/jueb/util4j/buffer/BufferBuilder.java
|
f068a16e2515680a997332e13e14d5190684eea9
|
[
"Apache-2.0"
] |
permissive
|
czpzxczyq/util4j
|
b5130604e547a5b6480e7ec689cd88faf58dca60
|
0b7e14a449a08bc90dc40e0685232a26b7d37b6c
|
refs/heads/master
| 2021-01-01T16:22:33.515947
| 2017-07-14T09:40:18
| 2017-07-14T09:40:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 21,157
|
java
|
package net.jueb.util4j.buffer;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import java.util.function.Predicate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class BufferBuilder{
protected Logger log=LoggerFactory.getLogger(getClass());
private final String bufferClass;
private final String writeMethodName;
private final String readMethodName;
private final List<Predicate<Field>> fieldFilter=new ArrayList<>();
private final List<TypeHandler> typeHandler=new ArrayList<>();
public BufferBuilder(String bufferClass, String writeMethodName, String readMethodName) {
super();
this.bufferClass = bufferClass;
this.writeMethodName = writeMethodName;
this.readMethodName = readMethodName;
}
public BufferBuilder() {
bufferClass="net.jueb.util4j.buffer.BytesBuff";
writeMethodName="writeTo";
readMethodName="readFrom";
}
public void addFieldSkipFilter(Predicate<Field> filter)
{
fieldFilter.add(filter);
}
public void addTypeHandler(TypeHandler typeHandler)
{
this.typeHandler.add(typeHandler);
}
public void build(Class<?> clazz,StringBuilder writesb,StringBuilder readsb)throws Exception
{
writesb.append("\t").append("@Override").append("\n");
writesb.append("\t").append("public void "+writeMethodName+"(ByteBuffer buffer) {").append("\n");
readsb.append("\t").append("@Override").append("\n");
readsb.append("\t").append("public void "+readMethodName+"(ByteBuffer buffer) {").append("\n");
if (clazz.getSuperclass() != null) {
Class<?> buffClass=Thread.currentThread().getContextClassLoader().loadClass(bufferClass);
try {
clazz.getSuperclass().getMethod(writeMethodName,buffClass);
writesb.append("\t").append("super."+writeMethodName+"(buffer);").append("\n");
} catch (NoSuchMethodException ex) {
}
try {
clazz.getSuperclass().getMethod(readMethodName,buffClass);
readsb.append("\t").append("super."+readMethodName+"(buffer);").append("\n");
} catch (NoSuchMethodException ex) {
}
}
Field[] fields = clazz.getDeclaredFields();
for(Field field: fields)
{
if(skipField(field))
{
log.warn(clazz.getSimpleName()+"==>skipField:"+field.getName());
continue;
}
StringBuilder write = new StringBuilder();
StringBuilder read = new StringBuilder();
try {
write.append("\t").append("//field->"+field.getName()).append("\n");
read.append("\t").append("//field->"+field.getName()).append("\n");
readWriteField(field, write, read);
writesb.append(write.toString());
readsb.append(read.toString());
} catch (Exception e) {
log.error(clazz.getSimpleName()+"==>buildFieldError:field="+field.getName()+",error="+e.getMessage());
}
}
writesb.append("\t").append("}").append("\n");
readsb.append("\t").append("}").append("\n");
}
public boolean skipField(Field field)
{
for(Predicate<Field> f:fieldFilter)
{
if(f.test(field))
{
return true;
}
}
return false;
}
/**
* 读写属性
* @param field
* @param writesb
* @param readsb
*/
public void readWriteField(Field field,StringBuilder writesb,StringBuilder readsb)
{
Class<?> type=field.getType();
String varName=field.getName();
//泛型类型
Type[] actTypes=new Type[]{};
if(field.getGenericType() instanceof ParameterizedType)
{
actTypes=((ParameterizedType)field.getGenericType()).getActualTypeArguments();
}
//变量声明
declearVar(type, varName, writesb, readsb,actTypes);
if(type.isPrimitive() && type.equals(boolean.class))
{
writesb.append("\t").append(varName+"=is"+fieldUper(field.getName())+"();").append("\n");
}else
{
writesb.append("\t").append(varName+"=get"+fieldUper(field.getName())+"();").append("\n");
}
readWriteVar(type, varName, writesb, readsb,true,actTypes);//读写属性变量
readsb.append("\t").append("set" + fieldUper(field.getName()) + "(" + varName + ");").append("\n");
}
/**
* 获取变量类型名称
*/
public String getVarTypeName(Class<?> varType)
{
String str=varType.getSimpleName();
if(varType.isPrimitive())
{
str=varType.getName();
}
str=str.replace('$','.');
return str;
}
/**
* 获取带泛型的类型名称
* @param type
* @param actTypes
* @return
*/
public String getVarTypeName(Class<?> type,Type ...actTypes)
{
String varType=getVarTypeName(type);
if(actTypes!=null)
{
List<String> acts=new ArrayList<>();
for(Type act:actTypes)
{
acts.add(act.getTypeName());
}
if(!acts.isEmpty())
{
if(acts.size()==1)
{
varType+="<"+acts.remove(0)+">";
}else
{
varType+="<"+String.join(",", acts)+">";
}
}
}
varType=varType.replace('$','.');
return varType;
}
/**
* 变量声明
* @param type
* @param varName
*/
public void declearVar(Class<?> type,String varName,StringBuilder writesb,StringBuilder readsb,Type ...actTypes)
{
String varType=getVarTypeName(type, actTypes);
//变量声明
if(type.isPrimitive())
{
if(type.equals(boolean.class))
{
writesb.append("\t").append(varType+" "+varName+"=false;").append("\n");
}else
{
writesb.append("\t").append(varType+" "+varName+"=0;").append("\n");
readsb.append("\t").append(varType+" "+varName+"=0;").append("\n");
}
}else
{
writesb.append("\t").append(varType+" "+varName+"=null;").append("\n");
readsb.append("\t").append(varType+" "+varName+"=null;").append("\n");
}
}
/**
* 读写变量
* @param type
* @param varName
* @param writesb
* @param readsb
*/
public void readWriteVar(Class<?> type,String varName,StringBuilder writesb,StringBuilder readsb,boolean nullCheck,Type ...actualType)
{
// if(type.isArray())
// {//数组不支持泛型
// Class<?> ctype=type.getComponentType();
// String varTypeName=getVarTypeName(type);
// String i=varName+"_i";
// String var_data=varName+"_d";
// String var_dataTypeName=getVarTypeName(ctype);
// String var_len=varName+"_l";
//
// if(nullCheck)
// {
// writesb.append("\t").append("if (" + varName + "!=null){").append("\n");
// writesb.append("\t").append("buffer.writeBoolean(true);").append("\n");
//
// readsb.append("\t").append("if (buffer.readBoolean()){").append("\n");
// }
// writesb.append("\t").append("int "+var_len+"="+varName+".length;").append("\n");
// writesb.append("\t").append("buffer.writeInt("+var_len+");").append("\n");
// writesb.append("\t").append("for(int "+i +"=0;" +i+"<"+var_len+";"+i+"++){").append("\n");
// writesb.append("\t").append(var_dataTypeName+" "+var_data+"="+varName+"["+i+"];").append("\n");
//
// readsb.append("\t").append("int "+var_len+"=buffer.readInt();").append("\n");
// readsb.append("\t").append(varName+"=("+varTypeName+") java.lang.reflect.Array.newInstance("+var_dataTypeName+".class,"+var_len+");").append("\n");
// readsb.append("\t").append("for(int "+i +"=0;" +i+"<"+var_len+";"+i+"++){").append("\n");
// readsb.append("\t").append(var_dataTypeName+" "+var_data+";").append("\n");
// //读写变量
// readWriteVar_Base(ctype, var_data, writesb, readsb, false);
// //设置值
// readsb.append("\t").append(varName+"["+i+"]="+var_data+";").append("\n");
//
// writesb.append("\t").append("}").append("\n");
// readsb.append("\t").append("}").append("\n");
//
// if(nullCheck)
// {
// writesb.append("\t").append("}else{");
// writesb.append("\t").append("buffer.writeBoolean(false);}").append("\n");
//
// readsb.append("\t").append("}").append("\n");
// }
// return ;
// }
if(Map.class.isAssignableFrom(type))
{
Type keyType_=actualType[0];
Type valueType_=actualType[1];
Class<?> keyType=null;
Class<?> valueType=null;
Type[] keyTypeActs=new Type[]{};
Type[] valueTypeActs=new Type[]{};
if(keyType_ instanceof ParameterizedType)
{
ParameterizedType pt=(ParameterizedType)keyType_;
keyType=(Class<?>)pt.getRawType();
keyTypeActs=pt.getActualTypeArguments();
}else
{
keyType=(Class<?>)keyType_;
}
if(valueType_ instanceof ParameterizedType)
{
ParameterizedType pt=(ParameterizedType)valueType_;
valueType=(Class<?>)pt.getRawType();
valueTypeActs=pt.getActualTypeArguments();
}else
{
valueType=(Class<?>)valueType_;
}
String var_mapSize=varName+"_ms";
String var_mapI=varName+"_mi";
String var_mapKey=varName+"_mk";
String var_mapValue=varName+"_mv";
String var_mapKeyType=getVarTypeName(keyType,keyTypeActs);
String var_mapValueType=getVarTypeName(valueType,valueTypeActs);
String varInstanceType="java.util.HashMap";
if(nullCheck)
{
writesb.append("\t").append("if (" + varName + "!=null){").append("\n");
writesb.append("\t").append("buffer.writeBoolean(true);").append("\n");
readsb.append("\t").append("if (buffer.readBoolean()){").append("\n");
}
writesb.append("\t").append("int "+var_mapSize+"="+varName+".size();").append("\n");
writesb.append("\t").append("buffer.writeInt("+var_mapSize+");").append("\n");
writesb.append("\t").append("for("+var_mapKeyType+" "+var_mapKey +":" +varName+".keySet()){").append("\n");
writesb.append("\t").append(var_mapValueType+" "+var_mapValue+"="+varName+".get("+var_mapKey+");").append("\n");
readsb.append("\t").append("int "+var_mapSize+"=buffer.readInt();").append("\n");
readsb.append("\t").append(varName+"=new "+varInstanceType+"<>();").append("\n");
readsb.append("\t").append("for(int "+var_mapI +"=0;" +var_mapI+"<"+var_mapSize+";"+var_mapI+"++){").append("\n");
//声明变量
readsb.append("\t").append(var_mapKeyType+" "+var_mapKey+";").append("\n");
readsb.append("\t").append(var_mapValueType+" "+var_mapValue+";").append("\n");
//读写变量
if(keyTypeActs.length>0)
{
readWriteVar(keyType, var_mapKey, writesb, readsb, false,keyTypeActs);
}else
{
readWriteVar_Base(keyType, var_mapKey, writesb, readsb, false);
}
if(valueTypeActs.length>0)
{
readWriteVar(valueType, var_mapValue, writesb, readsb, false,valueTypeActs);
}else
{
readWriteVar_Base(valueType, var_mapValue, writesb, readsb, false);
}
//设置值
readsb.append("\t").append(varName+".put("+var_mapKey+","+var_mapValue+");").append("\n");
writesb.append("\t").append("}").append("\n");
readsb.append("\t").append("}").append("\n");
if(nullCheck)
{
writesb.append("\t").append("}else{");
writesb.append("\t").append("buffer.writeBoolean(false);}").append("\n");
readsb.append("\t").append("}").append("\n");
}
return ;
}
if(Collection.class.isAssignableFrom(type))
{
Type valueType_=actualType[0];
Class<?> valueType=null;
Type[] valueTypeActs=new Type[]{};
if(valueType_ instanceof ParameterizedType)
{
ParameterizedType pt=(ParameterizedType)valueType_;
valueType=(Class<?>)pt.getRawType();
valueTypeActs=pt.getActualTypeArguments();
}else
{
valueType=(Class<?>)valueType_;
}
String var_listSize=varName+"_ls";
String var_listI=varName+"_li";
String var_listValue=varName+"_lv";
String var_listValueType=getVarTypeName(valueType,valueTypeActs);
String varInstanceType="java.util.ArrayList";
if(List.class.isAssignableFrom(type))
{
varInstanceType="java.util.ArrayList";
}
if(Queue.class.isAssignableFrom(type))
{
varInstanceType="java.util.concurrent.ConcurrentLinkedQueue";
}
if(Set.class.isAssignableFrom(type))
{
varInstanceType="java.util.HashSet";
}
if(nullCheck)
{
writesb.append("\t").append("if (" + varName + "!=null){").append("\n");
writesb.append("\t").append("buffer.writeBoolean(true);").append("\n");
readsb.append("\t").append("if (buffer.readBoolean()){").append("\n");
}
writesb.append("\t").append("int "+var_listSize+"="+varName+".size();").append("\n");
writesb.append("\t").append("buffer.writeInt("+var_listSize+");").append("\n");
writesb.append("\t").append("for("+var_listValueType +" "+var_listValue+":" +varName+"){").append("\n");
readsb.append("\t").append("int "+var_listSize+"=buffer.readInt();").append("\n");
readsb.append("\t").append(varName+"=new "+varInstanceType+"<>();").append("\n");
readsb.append("\t").append("for(int "+var_listI +"=0;" +var_listI+"<"+var_listSize+";"+var_listI+"++){").append("\n");
//声明变量
readsb.append("\t").append(var_listValueType+" "+var_listValue+";").append("\n");
//读写变量
if(valueTypeActs.length>0)
{
readWriteVar(valueType, var_listValue, writesb, readsb, false,valueTypeActs);
}else
{
readWriteVar_Base(valueType, var_listValue, writesb, readsb, false);
}
//设置值
readsb.append("\t").append(varName+".add("+var_listValue+");").append("\n");
writesb.append("\t").append("}").append("\n");
readsb.append("\t").append("}").append("\n");
if(nullCheck)
{
writesb.append("\t").append("}else{");
writesb.append("\t").append("buffer.writeBoolean(false);}").append("\n");
readsb.append("\t").append("}").append("\n");
}
return ;
}
//简单类型
readWriteVar_Base(type, varName, writesb, readsb, nullCheck);
}
/**
* 简单变量读写
* @param type
* @param varName
* @param writesb
* @param readsb
* @param nullCheck
*/
public void readWriteVar_Base(Class<?> type,String varName,StringBuilder write,StringBuilder read,boolean nullCheck)
{
if (type.isPrimitive())
{// 标准类型
String typeName = type.getName();
typeName = typeName.substring(0, 1).toUpperCase() + typeName.substring(1);// 类型
write.append("\t").append("buffer.write"+typeName+"(" + varName + ");").append("\n");
read.append("\t").append(varName+"=buffer.read"+typeName+"();").append("\n");
return ;
}
StringBuilder writesb=new StringBuilder();
StringBuilder readsb=new StringBuilder();
if(nullCheck)
{
writesb.append("\t").append("if (" + varName + "!=null){").append("\n");
writesb.append("\t").append("buffer.writeBoolean(true);").append("\n");
readsb.append("\t").append("if (buffer.readBoolean()){").append("\n");
}
boolean match=false;
if(!match && type.isArray())
{//数组不支持泛型
Class<?> ctype=type.getComponentType();
String varTypeName=getVarTypeName(type);
String i=varName+"_i";
String var_data=varName+"_d";
String var_dataTypeName=getVarTypeName(ctype);
String var_len=varName+"_l";
writesb.append("\t").append("int "+var_len+"="+varName+".length;").append("\n");
writesb.append("\t").append("buffer.writeInt("+var_len+");").append("\n");
writesb.append("\t").append("for(int "+i +"=0;" +i+"<"+var_len+";"+i+"++){").append("\n");
writesb.append("\t").append(var_dataTypeName+" "+var_data+"="+varName+"["+i+"];").append("\n");
readsb.append("\t").append("int "+var_len+"=buffer.readInt();").append("\n");
readsb.append("\t").append(varName+"=("+varTypeName+") java.lang.reflect.Array.newInstance("+var_dataTypeName+".class,"+var_len+");").append("\n");
readsb.append("\t").append("for(int "+i +"=0;" +i+"<"+var_len+";"+i+"++){").append("\n");
readsb.append("\t").append(var_dataTypeName+" "+var_data+";").append("\n");
//读写变量
readWriteVar_Base(ctype, var_data, writesb, readsb, false);
//设置值
readsb.append("\t").append(varName+"["+i+"]="+var_data+";").append("\n");
writesb.append("\t").append("}").append("\n");
readsb.append("\t").append("}").append("\n");
match=true;
}
if(!match && type.isEnum())
{//枚举类型
String typeName = getVarTypeName(type);
writesb.append("\t").append("buffer.writeUTF(" + varName + ".name());").append("\n");
readsb.append("\t").append(varName+"="+typeName+".valueOf(buffer.readUTF());").append("\n");
match=true;
}
if(!match && String.class.isAssignableFrom(type))
{
writesb.append("\t").append("buffer.writeUTF(" + varName + ");").append("\n");
readsb.append("\t").append(varName+"=buffer.readUTF();").append("\n");
match=true;
}
if(!match && Boolean.class.isAssignableFrom(type))
{
writesb.append("\t").append("buffer.writeBoolean(" + varName + ");").append("\n");
readsb.append("\t").append(varName+"=buffer.readBoolean();").append("\n");
match=true;
}
if(!match && Byte.class.isAssignableFrom(type))
{
writesb.append("\t").append("buffer.writeByte(" + varName + ");").append("\n");
readsb.append("\t").append(varName+"=buffer.readByte();").append("\n");
match=true;
}
if(!match && Short.class.isAssignableFrom(type))
{
writesb.append("\t").append("buffer.writeShort(" + varName + ");").append("\n");
readsb.append("\t").append(varName+"=buffer.readShort();").append("\n");
match=true;
}
if(!match && Integer.class.isAssignableFrom(type))
{
writesb.append("\t").append("buffer.writeInt(" + varName + ");").append("\n");
readsb.append("\t").append(varName+"=buffer.readInt();").append("\n");
match=true;
}
if(!match && Long.class.isAssignableFrom(type))
{
writesb.append("\t").append("buffer.writeLong(" + varName + ");").append("\n");
readsb.append("\t").append(varName+"=buffer.readLong();").append("\n");
match=true;
}
if(!match && Double.class.isAssignableFrom(type))
{
writesb.append("\t").append("buffer.writeDouble(" + varName + ");").append("\n");
readsb.append("\t").append(varName+"=buffer.readDouble();").append("\n");
match=true;
}
if(!match && Float.class.isAssignableFrom(type))
{
writesb.append("\t").append("buffer.writeFloat(" + varName + ");").append("\n");
readsb.append("\t").append(varName+"=buffer.readFloat();").append("\n");
match=true;
}
// if(ISqlTableData.class.isAssignableFrom(type))
// {//自定义类型
// String ClassName=type.getSimpleName();
// writesb.append("\t").append(varName+"."+writeMethodName+"(buffer);").append("\n");
//
// readsb.append("\t").append(varName +"=new "+ClassName+"();").append("\n");
// readsb.append("\t").append(varName + "."+readMethodName+"(buffer);").append("\n");
// match=true;
// }
if(!match)
{//没有匹配,可能是集合中的复合类型
boolean varType=type.isArray();
if(varType)
{
readWriteVar(type, varName, writesb, readsb, nullCheck);
}else
{
StringBuilder tmpRead=new StringBuilder();
StringBuilder tmpWrite=new StringBuilder();
Context ctx=new Context(){
@Override
public Class<?> varType() {
return type;
}
@Override
public String varName() {
return varName;
}
@Override
public String varBuffer() {
return "buffer";
}
@Override
public StringBuilder read() {
return tmpRead;
}
@Override
public StringBuilder write() {
return tmpWrite;
}
@Override
public String writeMethodName() {
return writeMethodName;
}
@Override
public String readMethodName() {
return readMethodName;
}
};
for(TypeHandler t:typeHandler)
{
match=t.handle(ctx);
if(match)
{
break;
}
}
if(match)
{
writesb.append(tmpWrite.toString());
readsb.append(tmpRead.toString());
}else
{
throw new RuntimeException("unSupported type:"+type+",varName:"+varName);
}
}
}
if(nullCheck)
{
writesb.append("\t").append("}else{");
writesb.append("\t").append("buffer.writeBoolean(false);}").append("\n");
readsb.append("\t").append("}").append("\n");
}
write.append(writesb.toString());
read.append(readsb.toString());
}
@FunctionalInterface
public static interface TypeHandler{
public boolean handle(Context context);
}
public static interface Context{
Class<?> varType();
String varName();
String varBuffer();
StringBuilder read();
StringBuilder write();
String writeMethodName();
String readMethodName();
}
protected boolean isAbstract(Class<?> type)
{
return Modifier.isAbstract(type.getModifiers());
}
/**
* 属性名首字母大写
* @param filedName
* @return
*/
protected String fieldUper(String filedName)
{
return filedName.substring(0, 1).toUpperCase() + filedName.substring(1);// 类型
}
}
|
[
"juebanlin@DESKTOP-IBGCEI5"
] |
juebanlin@DESKTOP-IBGCEI5
|
b1798d40cd4c0f80983011bcdbf6cf12f5804313
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-ws/results/XWIKI-12798-65-10-Single_Objective_GGA-WeightedSum/com/xpn/xwiki/internal/template/DefaultTemplateManager_ESTest.java
|
24de734e0d9ed68d3458fea6eed9bd4a5690bdc7
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 582
|
java
|
/*
* This file was automatically generated by EvoSuite
* Tue Mar 31 23:07:30 UTC 2020
*/
package com.xpn.xwiki.internal.template;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class DefaultTemplateManager_ESTest extends DefaultTemplateManager_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
a16d325f8f7c97353e4f2f4eebd876804e0437c6
|
98ed0f58da40dfa8357ba4a4724a7ec5c6af4003
|
/src/main/java/com/example/dartfanpage/news/NewsDto.java
|
da9f5f44d1e949a4e8d71553ec89c5577112778a
|
[] |
no_license
|
MBudzynski/dartfanpage
|
7253cf51f39306f6b7016e4ecff63058032d90f2
|
dd0084062957da82f5d9b501042391fc1acc298f
|
refs/heads/main
| 2023-09-03T11:49:29.689444
| 2021-11-03T20:19:49
| 2021-11-03T20:19:49
| 384,907,832
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,149
|
java
|
package com.example.dartfanpage.news;
import com.example.dartfanpage.news.comment.CommentDto;
import com.example.dartfanpage.news.picture.PictureDto;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDate;
import java.util.List;
@Getter
@Setter
public class NewsDto {
private Long id;
private String author;
private LocalDate publicationDate;
private String mainPicture;
private String title;
private String headline;
private String text;
private List<PictureDto> pictures;
private List<CommentDto> comments;
@Builder(toBuilder = true)
public NewsDto(Long id, String author, LocalDate publicationDate, String mainPicture,
String title, String headline, String text, List<PictureDto> pictures, List<CommentDto> comments) {
this.id = id;
this.author = author;
this.publicationDate = publicationDate;
this.mainPicture = mainPicture;
this.title = title;
this.headline = headline;
this.text = text;
this.pictures = pictures;
this.comments = comments;
}
public NewsDto() {
}
public News fromDto(){
return News.builder()
.id(id)
.author(author)
.publicationDate(publicationDate)
.mainPicture(mainPicture)
.title(title)
.headline(headline)
.text(text)
.pictures(PictureDto.fromDtoList(pictures))
.build();
}
public static NewsDto toDto(News news){
return NewsDto.builder()
.id(news.getId())
.author(news.getAuthor())
.publicationDate(news.getPublicationDate())
.mainPicture(news.getMainPicture())
.title(news.getTitle())
.headline(news.getHeadline())
.text(news.getText())
.pictures(PictureDto.toDto(news.getPictures()))
.comments(CommentDto.toDto(news.getComments()))
.build();
}
}
|
[
"michalbu92@gmail.com"
] |
michalbu92@gmail.com
|
1843b5bbd47309e885de904cdb5eebe22c10c0bb
|
6bad724d81e9d69e00889a3a0620df2460315223
|
/src/logic/oldtype/map/MapToErrors.java
|
9116bfd1244933257137ceed378a1a6e1ca8d8ea
|
[] |
no_license
|
Echogene/Tarka
|
75dcdaed6a9696251973716b3a3e59c336a93d55
|
e5a9c17adc30fcbff50ed208d95bfb185b757fdd
|
refs/heads/master
| 2020-06-04T15:42:05.024420
| 2017-04-16T18:48:42
| 2017-04-16T18:48:42
| 18,262,568
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,017
|
java
|
package logic.oldtype.map;
import javafx.util.Pair;
import ophelia.util.StringUtils;
import java.util.*;
/**
* @author Steven Weston
*/
public class MapToErrors<K> implements ErrorMap {
private final Set<K> passedKeys;
private final Map<K, String> failedValues;
public MapToErrors(final Collection<K> keys, final Checkor<K> checkor) {
passedKeys = new HashSet<>();
failedValues = new HashMap<>();
fillFrom(keys, checkor);
}
private void fillFrom(final Collection<K> keys, final Checkor<K> checkor) {
for (K key : keys) {
try {
checkor.check(key);
passedKeys.add(key);
} catch (CheckorException e) {
failedValues.put(key, e.getMessage());
}
}
}
@SafeVarargs
public MapToErrors(final Collection<K> keys, final Pair<Testor<K>, Checkor<K>>... pairs) {
passedKeys = new HashSet<>();
failedValues = new HashMap<>();
fillFrom(keys, pairs);
}
@SafeVarargs
private final void fillFrom(final Collection<K> keys, final Pair<Testor<K>, Checkor<K>>... pairs) {
for (K key : keys) {
for (Pair<Testor<K>, Checkor<K>> pair : pairs) {
Testor<K> testor = pair.getKey();
if (testor.test(key)) {
Checkor<K> checkor = pair.getValue();
try {
checkor.check(key);
passedKeys.add(key);
} catch (CheckorException e) {
failedValues.put(key, e.getMessage());
}
}
}
}
}
@Override
public boolean allFailed() {
return passedKeys.isEmpty();
}
@Override
public boolean allPassed() {
return failedValues.isEmpty();
}
@Override
public String concatenateErrorMessages() {
StringBuilder sb = new StringBuilder();
for (Map.Entry<K, String> entry : failedValues.entrySet()) {
sb.append(entry.getKey());
sb.append(" → \n");
sb.append(StringUtils.addCharacterAfterEveryNewline(entry.getValue(), '\t'));
sb.append("\n");
}
return sb.toString();
}
@Override
public Collection<String> getErrorMessages() {
return failedValues.values();
}
public Set<K> getPassedKeys() {
return passedKeys;
}
}
|
[
"echogene.alpha@gmail.com"
] |
echogene.alpha@gmail.com
|
93d47e208d6c7b753d2d35d4d962f119bd11d90c
|
e5eeb9d61c5f16342b19ba8461e63818bd57d43d
|
/src/main/java/top/dfghhj/leetCode/array/TwoSum.java
|
3f0d8434a617573926132dd338d9e90dd34b8205
|
[] |
no_license
|
Dfghhj/AlgorithmInAction
|
841f79175346a08ba9dd9e217c045a7c1082e7c7
|
56a99cb7e31934117877e1e0a6d17e5584202fce
|
refs/heads/master
| 2021-07-20T21:47:05.043580
| 2020-10-22T03:33:18
| 2020-10-22T03:33:18
| 224,799,267
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 988
|
java
|
package top.dfghhj.leetCode.array;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
* @Author: Dfghhj
* @Date: 2019/3/30 16:48
* @Description: 1.两数之和
*/
public class TwoSum {
public static void main(String[] args) {
int[] nums = {2, 7, 11, 15};
int target = 9;
TwoSum twoSum = new TwoSum();
System.out.println(Arrays.toString(twoSum.twoSum(nums, target)));
}
public int[] twoSum(int[] nums, int target) {
Map<Integer, Integer> map = new HashMap<>(nums.length);
int[] result = new int[2];
for(int i=0;i<nums.length;i++) {
int number = nums[i];
int other = target - number;
Integer old = map.get(other);
if (old != null) {
result[0] = old;
result[1] = i;
return result;
} else {
map.put(number, i);
}
}
return result;
}
}
|
[
"dfghhj95@163.com"
] |
dfghhj95@163.com
|
ee4f703468bfcbd9a93f17a3f4a8c484b766a42e
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/realm-java/2016/4/LinkView.java
|
3e6869ffeb823e07c54f3f6df54791e6d42959ea
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 6,578
|
java
|
/*
* Copyright 2014 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.realm.internal;
import io.realm.RealmFieldType;
/**
* The LinkView class represents a core {@link RealmFieldType#LIST}.
*/
public class LinkView extends NativeObject {
private final Context context;
final Table parent;
final long columnIndexInParent;
public LinkView(Context context, Table parent, long columnIndexInParent, long nativeLinkViewPtr) {
this.context = context;
this.parent = parent;
this.columnIndexInParent = columnIndexInParent;
this.nativePointer = nativeLinkViewPtr;
context.executeDelayedDisposal();
context.addReference(NativeObjectReference.TYPE_LINK_VIEW, this);
}
/**
* Returns a non-checking {@link Row}. Incorrect use of this Row will cause a hard Realm Core crash (SIGSEGV).
* Only use this method if you are sure that input parameters are valid, otherwise use {@link #getCheckedRow(long)}
* which will throw appropriate exceptions if used incorrectly.
*
* @param index the index of row to fetch.
* @return the unsafe row wrapper object.
*/
public UncheckedRow getUncheckedRow(long index) {
return UncheckedRow.getByRowIndex(context, this, index);
}
/**
* Returns a wrapper for {@link Row} access. All access will be error checked at the JNI layer and will throw an
* appropriate {@link RuntimeException} if used incorrectly.
*
* If error checking is done elsewhere, consider using {@link #getUncheckedRow(long)} for better performance.
*
* @param index the index of row to fetch.
* @return the safe row wrapper object.
*/
public CheckedRow getCheckedRow(long index) {
return CheckedRow.get(context, this, index);
}
public long getTargetRowIndex(long pos) {
return nativeGetTargetRowIndex(nativePointer, pos);
}
public void add(long rowIndex) {
checkImmutable();
nativeAdd(nativePointer, rowIndex);
}
public void insert(long pos, long rowIndex) {
checkImmutable();
nativeInsert(nativePointer, pos, rowIndex);
}
public void set(long pos, long rowIndex) {
checkImmutable();
nativeSet(nativePointer, pos, rowIndex);
}
public void move(long oldPos, long newPos) {
checkImmutable();
nativeMove(nativePointer, oldPos, newPos);
}
public void remove(long pos) {
checkImmutable();
nativeRemove(nativePointer, pos);
}
public void clear() {
checkImmutable();
nativeClear(nativePointer);
}
public boolean contains(long tableRowIndex) {
long index = nativeFind(nativePointer, tableRowIndex);
return (index != TableOrView.NO_MATCH);
}
public long size() {
return nativeSize(nativePointer);
}
public boolean isEmpty() {
return nativeIsEmpty(nativePointer);
}
public TableQuery where() {
// Execute the disposal of abandoned realm objects each time a new realm object is created
this.context.executeDelayedDisposal();
long nativeQueryPtr = nativeWhere(nativePointer);
try {
return new TableQuery(this.context, this.parent, nativeQueryPtr);
} catch (RuntimeException e) {
TableQuery.nativeClose(nativeQueryPtr);
throw e;
}
}
public boolean isAttached() {
return nativeIsAttached(nativePointer);
}
/**
* Returns the {@link Table} which all links point to.
*/
public Table getTable() {
return parent;
}
/**
* Remove all target rows pointed to by links in this link view, and clear this link view.
*/
public void removeAllTargetRows() {
checkImmutable();
nativeRemoveAllTargetRows(nativePointer);
}
/**
* Removes target row from both the Realm and the LinkView.
*/
public void removeTargetRow(int index) {
checkImmutable();
nativeRemoveTargetRow(nativePointer, index);
}
public Table getTargetTable() {
// Execute the disposal of abandoned realm objects each time a new realm object is created
context.executeDelayedDisposal();
long nativeTablePointer = nativeGetTargetTable(nativePointer);
try {
// Copy context reference from parent
return new Table(context, this.parent, nativeTablePointer);
} catch (RuntimeException e) {
Table.nativeClose(nativeTablePointer);
throw e;
}
}
private void checkImmutable() {
if (parent.isImmutable()) {
throw new IllegalStateException("Changing Realm data can only be done from inside a write transaction.");
}
}
static native void nativeClose(long nativeLinkViewPtr);
native long nativeGetRow(long nativeLinkViewPtr, long pos);
private native long nativeGetTargetRowIndex(long nativeLinkViewPtr, long pos);
private native void nativeAdd(long nativeLinkViewPtr, long rowIndex);
private native void nativeInsert(long nativeLinkViewPtr, long pos, long rowIndex);
private native void nativeSet(long nativeLinkViewPtr, long pos, long rowIndex);
private native void nativeMove(long nativeLinkViewPtr, long oldPos, long newPos);
private native void nativeRemove(long nativeLinkViewPtr, long pos);
private native void nativeClear(long nativeLinkViewPtr);
private native long nativeSize(long nativeLinkViewPtr);
private native boolean nativeIsEmpty(long nativeLinkViewPtr);
protected native long nativeWhere(long nativeLinkViewPtr);
private native boolean nativeIsAttached(long nativeLinkViewPtr);
private native long nativeFind(long nativeLinkViewPtr, long targetRowIndex);
private native void nativeRemoveTargetRow(long nativeLinkViewPtr, long rowIndex);
private native void nativeRemoveAllTargetRows(long nativeLinkViewPtr);
private native long nativeGetTargetTable(long nativeLinkViewPtr);
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
482464f1efce1d6af42dd4ec5eeacd3d7c491ce8
|
d0dde05d8c7a3d888a28723aebe06d9b0255709d
|
/RushEye-Manager/src/main/java/org/jboss/rusheye/manager/gui/charts/StatisticsPanel.java
|
d6c5027c42302df25e15ce86deecdcfb7ffff559
|
[] |
no_license
|
cube88/arquillian-rusheye
|
54cc142dc595063d16588fc4aafb3bc257bac3fe
|
ac118fcff84fe9251269db5bc6a0937910cd3be7
|
refs/heads/master
| 2021-01-18T08:51:50.588127
| 2012-08-19T22:45:55
| 2012-08-19T22:45:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,127
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.jboss.rusheye.manager.gui.charts;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;
import javax.swing.JPanel;
/**
* JPanel where image with chart is displayed.
* @author Jakub D.
*/
public class StatisticsPanel extends JPanel {
private ChartRetriever chartRetriever;
private Image image;
public StatisticsPanel() {
image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB);
chartRetriever = new ChartRetrieverImpl();
}
public StatisticsPanel(RushEyeStatistics stats) {
this();
chartRetriever = new ChartRetrieverImpl(stats);
}
public void update(RushEyeStatistics stats) {
System.out.println(stats);
chartRetriever.setStatistics(stats);
image = chartRetriever.generateChart();
this.repaint();
}
@Override
public void paint(Graphics g) {
g.drawImage(image, 0, 0, null);
}
public Image getImage(){
return image;
}
}
|
[
""
] | |
8db8cebe6579e3ccee13f0491c01a9254c73177c
|
7ff5880c974627ba7595cfc9d535a9c720414b11
|
/spring-11-transaction/src/main/java/com/kuang/mapper/UserMapper.java
|
fd8bf908343c1a860c9e3e9f8b1a3623a643dde7
|
[] |
no_license
|
fanxidan/spring-study
|
1c4136990dddee25352e31dfa6ed06f6f8359f3b
|
32d8f58e70ba2b12aa7f5005b5d353ff6e928458
|
refs/heads/master
| 2023-06-05T01:18:38.442449
| 2021-06-24T11:40:20
| 2021-06-24T11:40:20
| 366,393,161
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 247
|
java
|
package com.kuang.mapper;
import com.kuang.pojo.User;
import java.util.List;
public interface UserMapper {
List<User> selectUser();
//添加一个用户
int addUser(User user);
//删除一个用户
int deleteUser(int id);
}
|
[
"fanxidan@outlook.com"
] |
fanxidan@outlook.com
|
9f03f06c06c89f2c2e4c38adde53069070f7a6e6
|
0ab5be55fa6af4603d1bfc0e92aec219e8bee584
|
/src/com/Meetok/adapter/Adapter_search.java
|
ca605079a0016ca2c082c8155f0443c5298211a5
|
[] |
no_license
|
Meetok/imooc-tab03
|
476dbf0f8c87626788990dca36443cf6531a2fc9
|
01413551092ae2273ca58b229c7a7c430d0317ac
|
refs/heads/master
| 2016-09-13T08:58:33.602348
| 2016-05-05T08:14:32
| 2016-05-05T08:14:35
| 58,114,588
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,796
|
java
|
package com.Meetok.adapter;
import java.util.ArrayList;
import java.util.List;
import com.Meetok.Entity.OrderEntity;
import com.Meetok.Entity.ShouyeEntity;
import com.Meetok.adapter.Adapter_home_all.HolderView;
import com.imooc.tab03.R;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.assist.FailReason;
import com.nostra13.universalimageloader.core.assist.ImageScaleType;
import com.nostra13.universalimageloader.core.listener.SimpleImageLoadingListener;
import android.content.Context;
import android.graphics.Bitmap;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class Adapter_search extends BaseAdapter {
private Context context;
private List<OrderEntity> mlist;
public Adapter_search(Context context,List<OrderEntity> list){
this.context=context;
this.mlist=list;
}
public void onDateChange(List<OrderEntity> list) {
this.mlist = list;
this.notifyDataSetChanged();
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return mlist.size();
}
@Override
public Object getItem(int arg0) {
// TODO Auto-generated method stub
return null;
}
@Override
public long getItemId(int arg0) {
// TODO Auto-generated method stub
return 0;
}
@Override
public View getView(final int position, View currentView, ViewGroup arg2) {
// TODO Auto-generated method stub
final HolderView holderView;
if (currentView==null) {
holderView=new HolderView();
currentView=LayoutInflater.from(context).inflate(R.layout.adapter_search, null);
holderView.iv_ProductPic=(ImageView) currentView.findViewById(R.id.img_pic);
holderView.iv_title = (TextView) currentView.findViewById(R.id.iv_grid_title);
holderView.iv_DisPurchasePrice = (TextView) currentView.findViewById(R.id.iv_DisPurchasePrice);
holderView.iv_RetailPrice = (TextView) currentView.findViewById(R.id.iv_RetailPrice);
holderView.iv_stock =(TextView) currentView.findViewById(R.id.iv_stock);
holderView.iv_ProductPic.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
currentView.setTag(holderView);
}else {
holderView=(HolderView) currentView.getTag();
}
OrderEntity search = mlist.get(position);
String title = search.Title;
float DisPurchasePrice = search.DisPurchasePrice;
float RetailPrice = search.RetailPrice;
int stock = search.Stock;
String p1 = String.valueOf(DisPurchasePrice);
String p2 = String.valueOf(RetailPrice);
String st = String.valueOf(stock);
holderView.iv_title.setText(title);
holderView.iv_DisPurchasePrice.setText(p1);
holderView.iv_RetailPrice.setText(p2);
holderView.iv_stock.setText(st);
//displayImage(search.typepic,holderView.iv_ProductPic);
//显示图片的配置
DisplayImageOptions options = new DisplayImageOptions.Builder()
//.showImageOnLoading(R.drawable.app_logo)
//.showImageOnFail(R.drawable.icon_error)
.cacheInMemory(true)
.cacheOnDisk(true)
.bitmapConfig(Bitmap.Config.RGB_565)
.imageScaleType(ImageScaleType.EXACTLY)//
.build();
ImageLoader.getInstance().displayImage(search.ProductPic, holderView.iv_ProductPic, options);
return currentView;
}
public class HolderView {
private ImageView iv_ProductPic;
private TextView iv_title;
private TextView iv_DisPurchasePrice;
private TextView iv_RetailPrice;
private TextView iv_stock;
}
}
|
[
"fzerozhu@163.com"
] |
fzerozhu@163.com
|
49913e5560e0c24411c00db3b0738b31b25b816a
|
c4395a3c7769e19aed79abd26f587648b2f6f9ad
|
/src/sort/tests/SortTests.java
|
275b6dc4f816bfef5a21d479703d9fa990f17091
|
[] |
no_license
|
Shryne/HAW_AD
|
fe70b976b38933cbd9ad2f390e805dc07dc68d86
|
c2aee57bfe5b5bb04045f362fa5b67b6049e4d35
|
refs/heads/master
| 2021-07-19T13:54:30.545441
| 2016-07-19T09:34:15
| 2016-07-19T09:34:15
| 62,761,828
| 0
| 0
| null | 2021-07-07T05:37:02
| 2016-07-07T00:18:41
|
Java
|
UTF-8
|
Java
| false
| false
| 2,878
|
java
|
package sort.tests;
import adt.implementations.AdtContainerFactory;
import adt.interfaces.AdtArray;
import org.junit.Test;
import sort.*;
import java.util.ArrayList;
import java.util.Arrays;
import static junit.framework.TestCase.assertEquals;
/**
* This class contains all the tests for every sorting algorithm,
* as the result of all of them should be the same.
*/
public class SortTests {
@Test
public void empty() {
for (Sort s : createSorts()) {
AdtArray toSort = array();
s.sort(toSort);
assertEquals(array(), toSort);
}
}
@Test
public void oneElement() {
for (Sort s : createSorts()) {
AdtArray toSort = array(5);
s.sort(toSort);
assertEquals(array(5), toSort);
}
}
@Test
public void twoElements() {
for (Sort s : createSorts()) {
AdtArray toSort = array(5, 3);
s.sort(toSort);
assertEquals(array(3, 5), toSort);
}
}
@Test
public void someElementsSorted() {
for (Sort s : createSorts()) {
AdtArray toSort = array(1, 4, 6, 9, 10, 31);
s.sort(toSort);
assertEquals(array(1, 4, 6, 9, 10, 31), toSort);
}
}
@Test
public void someElements() {
for (Sort s : createSorts()) {
AdtArray toSort = array(5, 2, 549, 29, 1, 59);
s.sort(toSort);
assertEquals(array(1, 2, 5, 29, 59, 549), toSort);
}
}
@Test
public void someElementsDupplications() {
for (Sort s : createSorts()) {
AdtArray toSort = array(3, 3, 69, 120, 3, 42, 42, 3);
s.sort(toSort);
assertEquals(array(3, 3, 3, 3, 42, 42, 69, 120), toSort);
}
}
// ##################################################
// private helper
// ##################################################
private static ArrayList<Sort> createSorts() {
ArrayList<Sort> result = new ArrayList<>(4);
result.addAll(
Arrays.asList(
new InsertionSort(),
new SelectionSort(),
new ShellSort(),
new BubbleSort(),
new ShakerSort(),
new CombSort()
)
);
return result;
}
private static AdtArray array(int... e) {
AdtArray result = AdtContainerFactory.adtArray();
for (int i = 0; i < e.length; i++) {
result.set(i, e[i]);
}
return result;
}
private static AdtArray array(AdtArray array) {
AdtArray result = AdtContainerFactory.adtArray();
for (int i = 0; i < array.length(); i++) {
result.set(i, array.get(i));
}
return result;
}
}
|
[
"enomeral@gmx.de"
] |
enomeral@gmx.de
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.