text stringlengths 10 2.72M |
|---|
/*
* 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.
*/
/**
*
* @author talita
*/
public class GameValidations {
// -------------------- gameArrayValidation -------------------- //
... |
package com.samy.study.dto.com.samy.study.service;
import com.samy.study.dto.Address;
import com.samy.study.dto.UserDetails;
import com.samy.study.dto.Vehicle;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import java.util.Date;
/**
* Created by arthanari... |
package com.smartwerkz.bytecode.vm.methods;
import com.smartwerkz.bytecode.classfile.Classfile;
import com.smartwerkz.bytecode.primitives.JavaClassReference;
import com.smartwerkz.bytecode.vm.Frame;
import com.smartwerkz.bytecode.vm.LocalVariables;
import com.smartwerkz.bytecode.vm.OperandStack;
import com.smartwerkz.... |
package com.company.View;
import com.company.manager.ManagerJuego;
import com.company.manager.ManagerUsuarios;
import java.util.Scanner;
public class PantallaPrincipal {
public void mostrar(ManagerJuego managerJuego , ManagerUsuarios managerUsuarios) {
while(true) {
System.out.println("VideoG... |
package com.shopguide;
import java.util.Arrays;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.util.Log;
import android.view.Layou... |
package com.project.mcl.comfort_prediction_things_client.Sensor;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.util.Log;
import com.google.android.things.contrib.dr... |
package com.brainmentors.customers;
public class Consumer {
public static void main(String[] args) {
//IProducer p = new FasterProducer(); // Upcasting
IProducer p = Factory.getObject();
p.first();
//p.second(999);
}
}
|
package com.example.prefecture.domain.model.prefecture;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class Prefecture {
private final String code;
private final String name;
}
|
/*
* created 24.02.2006
*
* Copyright 2009, ByteRefinery
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* $Id... |
package com.mobilephone.foodpai.activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.mobilephone.foodpai.R;
import... |
package com.tencent.mm.plugin.honey_pay.ui;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.text.SpannableStringBuilder;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.... |
package HealthMonitorMng.controller;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.A... |
package com.fixit.rest.responses.data;
import com.fixit.synchronization.SynchronizationResult;
import java.util.Iterator;
import java.util.List;
/**
* Created by Kostyantin on 3/27/2017.
*/
public class SynchronizationResponseData {
private List<SynchronizationResult> synchronizationResults;
public Sync... |
package com.cnk.travelogix.suppliers.events;
import com.cnk.travelogix.suppliers.model.SendFileStatusProcessModel;
import de.hybris.platform.commerceservices.event.AbstractSiteEventListener;
import de.hybris.platform.processengine.BusinessProcessService;
import de.hybris.platform.servicelayer.i18n.CommonI18NService;
... |
package edu.monash.mymonashmate.client;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import org.apache.http.H... |
package com.nefee.prawn.web.dto.request;
import lombok.*;
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class BiSRequest {
private String pawnstring;
private Integer wowSpecId;
private Integer numberT20Pieces;
}
|
/*
* Write a program to input a list of ten arrays as list1, list2...list10
* and sort them in an increasing order
*/
import java.util.Scanner;
import java.util.Arrays;
public class TodaysExample
{
/** Main method */
public static void main(String[] args) {
int[] array = createArray();
sortArray(array... |
package com.tencent.mm.protocal;
import com.tencent.mm.protocal.c.g;
public class c$ia extends g {
public c$ia() {
super("setNavigationBarColor", "setNavigationBarColor", 182, false);
}
}
|
package sisgelar.controller;
/*
* 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.
*/
import java.util.List;
import sisgelar.dao.OrdemServicoDao;
import sisgelar.model.OrdemServico... |
package com.tencent.mm.plugin.pwdgroup.ui;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.tencent.mm.R;
class a$a {
TextView eGX;
ImageView gwj;
final /* synthetic */ a maB;
public a$a(a aVar, View view) {
this.maB = aVar;
this.gw... |
package com.designpattern.behaviorpattern.command;
/**
* 厨师
*/
public class Chef implements Execute{
public void cooking(){
System.out.println("厨师烹饪ing");
}
@Override
public void execute() {
cooking();
}
}
|
package com.netease.qa.demo.controller;
import com.netease.qa.demo.bean.DemoInstanceBean;
import com.netease.qa.demo.constant.ProjectContant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
impo... |
package service;
import javax.servlet.http.HttpServletRequest;
import com.oreilly.servlet.MultipartRequest;
import com.oreilly.servlet.multipart.DefaultFileRenamePolicy;
public class FileService {
public void fileUpload(HttpServletRequest request) {
// 파일을 저장할 경로 만들기
// 현재 프로젝트의 WebContent/images 디렉토리에 저장
// ... |
/**
*
*/
package com.goodhealth.design.demo.MemorandumPattern;
/**
* @author 24663
* @date 2018年10月27日
* @Description
*/
public class Memento {
private int day;
private int price;
/**
* @param day
* @param price
*/
public Memento(int day, int price) {
super();
this.day = day;
this... |
package com.tencent.mm.plugin.emoji.ui.v2;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.WindowManager;
import android.view.WindowManager.LayoutParams;
import android.widget.ListAdapter;
import android.widget.ListView;
import com.tencent.mm.R;
im... |
package edunova;
public class DomacaZadaca {
//polako svakodnevno na ovim mrežnim mjestima vježbati zadatke i čitati
//http://www.znanje.org/knjige/computer/Java/ib01/88_quiz/quiz_java5abc1_0.php
//https://www.hackerrank.com/domains/java
//https://www.w3resource.com/java-exercises/basic/index.php
//https... |
package pt.pagamigo.ws.client;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.net.PasswordAuthentication;
import java.net.UnknownHostException;
import java.security.KeyFactory;
import... |
package com.shafear.notes.mvp.model.load;
import com.shafear.notes.global.G;
import com.shafear.notes.myutils.IOUtils;
import com.shafear.notes.xnotes.XNote;
import com.shafear.notes.xnotes.XNotes;
import java.util.ArrayList;
/**
* Created by shafe_000 on 2015-02-09.
*/
public class MNotesLoad {
public XNotes ... |
package com.harvard.demo;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.SaveMode;
import org.apache.spark.sql.SparkSession;
import static org.apache.spark.sql.functions.*;
public class MovieRatingsAnalysis {
public static void main(String[] args) {
Spa... |
package com.kingdee.lightapp.web.rest;
import javax.servlet.http.HttpServletRequest;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotati... |
package java2.businesslogic.announcementediting;
public interface AnnouncementEditingService {
AnnouncementEditingResponse edit(AnnouncementEditingRequest request);
}
|
package br.senac.tads4.lojinha.managedbean;
import br.senac.tads4.lojinha.entidade.ProdutoQuantidade;
import br.senac.tads4.lojinha.entidade.Produto;
import br.senac.tads4.lojinha.entidade.Usuario;
import br.senac.tads4.lojinha.service.ProdutoService;
import br.senac.tads4.lojinha.service.fakeimpl.ProdutoServiceFakeI... |
package com.conglomerate.dev.controllers;
import com.conglomerate.dev.models.User;
import com.conglomerate.dev.repositories.UserRepository;
import com.conglomerate.dev.services.UserService;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mo... |
package com.aiyonghui.widget.ElasticRecyclerView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.aiyonghui.widget.ElasticRecyclerView.EAdapter.EViewHolder;
import com.aiyonghui.widge... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package com.example.android_version_viewer.ui.detail;
public interface DetailView {
void showDetails(String details);
void setFavoriteStatus(boolean isFavourite);
}
|
package com.example.kafka.springbootkafkaproducerexample;
import com.example.kafka.CarDto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Service;
@Service
public class Producer {
private static final Logger log... |
package mum.lesson8List.prob1Comparator;
import java.util.Comparator;
public class NameComparator implements Comparator<Marketing>{
@Override
public int compare(Marketing o1, Marketing o2) {
Marketing m1 = (Marketing)o1;
Marketing m2 = (Marketing)o2;
return m1.employeename.compareTo(m2.employeename);
}
}
|
package cn.yansui.module.main.view;
import cn.yansui.domain.util.JFXBaseUtil;
import cn.yansui.constant.VenusConstant;
import com.jfoenix.controls.JFXDecorator;
import de.felixroske.jfxsupport.AbstractFxmlView;
import de.felixroske.jfxsupport.FXMLView;
import de.felixroske.jfxsupport.GUIState;
import javafx.scene.Pare... |
package org.demo;
import org.tool.MathTool;
public class Expression {
int operatorNum;//符号数
int range;//分数的范围以及分母的范围
private Fraction[] num;
private String[] operator;
//构造函数
public Expression(Fraction[] num,String[] operator) {
this.num=num;
this.operator=operator;
t... |
package com.hly.o2o.service;
import java.io.InputStream;
import java.util.List;
import com.hly.o2o.dto.ImageHolder;
import com.hly.o2o.dto.ProductExecution;
import com.hly.o2o.entity.Product;
import com.hly.o2o.exceptions.ProductOperationException;
public interface ProductService {
/**
*
* 添加商品信息以及图片处理
*
... |
package com.kunsoftware.entity;
public class HeadIconTitle {
private Integer id;
private String name;
private String sex;
private String member;
private String enable;
private String type;
public Integer getId() {
return id;
}
public void setId(Integer id) {
t... |
/**
* Package for calculate task.
*
* @author Timofey Klykov
* @version $Id$
* @since 05.2019
*/
package ru.job4j.calculate; |
package com.walkerwang.algorithm;
import java.util.ArrayList;
import java.util.Scanner;
public class Class1 {
/*public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int ans = 0, x;
for(int i = 0; i < n; i++){
for(int j = 0; j... |
public class NumberOfStpesToReduceANumberToZero_1342 {
public static int numberOfSteps (int num) {
int steps = 0;
while (num != 0) {
if (num % 2 == 0) {
num /= 2;
} else {
num--;
}
steps++;
}
return steps... |
package com.xiex.btopendoor;
import android.content.Context;
import android.media.MediaPlayer;
import java.io.IOException;
/**
* Created by baby on 2016/12/14.
* <p>
* 宜步出行,天天速达
*/
public class MediaPlayerHelp {
public static MediaPlayer mediaPlayer;
public static void play1(Context context, int id) {... |
package com.semantyca.nb.core.dataengine.jpa.model.embedded;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.util.Date;
@Embeddable
public class Reader {
@Column(name = "was_read")
private boolean wasRead;
@Column(name = "reading_time")
private Date readingTime;
... |
package com.dahua.design.structural.bridge;
public abstract class AbstractSale {
private String price;
private String way;
public AbstractSale(String price, String way) {
this.price = price;
this.way = way;
}
public String getSale(){
return "渠道: " + way + " 售价: " + price... |
package com.tencent.mm.model.c;
import com.tencent.mm.storage.a;
import com.tencent.mm.storage.c;
import java.util.LinkedList;
import java.util.List;
public class a$a {
public List<c> dEw = new LinkedList();
public List<a> dEx = new LinkedList();
}
|
public class RectangleTester{
// Mode = 1 print perimeter, mode = 2 print area;
public void printRectangle(boolean mode, Rectangle rectangle){
if(mode){
System.out.println("Perimeter " + rectangle.getPerimeter());
}else{
System.out.println("Areas " + rectangle.getArea());
}
}
public st... |
package de.jmda.gen.java;
import static de.jmda.core.mproc.ProcessingUtilities.asDeclaredType;
import static de.jmda.core.mproc.ProcessingUtilities.isPrimitiveKind;
import static de.jmda.core.util.StringUtil.sb;
import static de.jmda.gen.java.naming.ImportManagerProvider.getImportManager;
import java.util.ArrayList;
... |
package Lab03.Zad5;
public class Main {
public static void main(String[] args) {
Exchange exchange = new Exchange();
exchange.addCompany("Intel", 1000);
exchange.addCompany("nVidia", 2000);
Client client1 = new Client("Jan Kowalski",2500,exchange);
Client client2 = new Cli... |
package com.jackie.classbook.dao;
import com.jackie.classbook.entity.Teacher;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* Description:
*
* @author xujj
* @date 2018/6/26
*/
public interface TeacherDao {
int insert(Teacher teacher);
List<Teacher> queryTeachers(Teacher teacher);
Teac... |
package com.example.demo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.hateoas.config.EnableHypermediaS... |
package com.gmail.ivanytskyy.vitaliy.controller.editor;
import java.beans.PropertyEditorSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.gmail.ivanytskyy.vitaliy.model.Subject;
import com.gmail.ivanytskyy.vitaliy.service.SubjectService;
... |
package com.hb.rssai.view.subscription;
import android.os.Bundle;
import android.support.design.widget.AppBarLayout;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import ... |
package de.jmda.core.mproc.task;
import java.io.IOException;
public abstract class TaskRunner
{
public static void run(AbstractTypeElementsTask... tasks) throws IOException
{
TaskRunnerTypeElements.run(tasks);
}
public static void run(AbstractAnnotatedElementsTask... tasks) throws IOException
{
TaskRunnerAn... |
package org.zaproxy.zap.extension.sequence;
import java.awt.Component;
import java.awt.event.ActionEvent;
import org.apache.log4j.Logger;
import org.parosproxy.paros.control.Control;
import org.parosproxy.paros.extension.ExtensionPopupMenuItem;
import org.zaproxy.zap.extension.script.ExtensionScript;
import ... |
package de.adesso.gitstalker.core.requests;
import de.adesso.gitstalker.core.enums.RequestType;
import de.adesso.gitstalker.core.objects.Query;
/**
* This is the request used for requesting the organization validation.
*/
public class OrganizationValidationRequest {
private final int estimatedQueryCost = 1;
... |
/*
* LumaQQ - Java QQ Client
*
* Copyright (C) 2004 luma <stubma@163.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any lat... |
package com.yinghai.a24divine_user.module.shop.shopcar.mvp;
import com.example.fansonlib.base.BaseModel;
import com.example.fansonlib.http.HttpResponseCallback;
import com.example.fansonlib.http.HttpUtils;
import com.example.fansonlib.utils.SharePreferenceHelper;
import com.yinghai.a24divine_user.bean.ShopCarBean;
imp... |
package com.example.karenli.budgetingapp.db;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.example.karenli.budgetingapp.models.Receipt;
import java.util.ArrayList;
import java.util.List;
import static android.conten... |
package com.library.bexam.entity;
import com.library.bexam.form.NodeBookForm;
import com.library.bexam.form.VersionForm;
import java.util.List;
/**
* 教材册别实体
* @author caoqian
* @date 20181219
*/
public class TextBookEntity {
private int textBookId;
private String textBookName;
private ... |
package com.noteshare.course.article.model;
import java.util.Date;
import com.noteshare.common.utils.DateUtil;
public class Article {
private Integer id;
private Integer courseid;
private Integer authorid;
private String authorname;
private String articletitle;
private Integer preart... |
package DP;
public class longestascendingarray {
public int longest(int [] array){
if(array == null || array.length == 0){
return 0;
}
int [] num = new int[array.length];
num[0] = 1;
int result = 1;
for(int i = 1; i < array.length; i++) {
if(array[i] > array[i-1]){
num[i] = Math.max(num[i-1] + 1... |
package com.blackdragon2447.AAM.gui.dialog.advCom;
import java.awt.EventQueue;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.util.concurrent.TimeUnit;
import javax.swing.JFrame;
import jav... |
package com.fc.activity.kdg;
import java.util.Map;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.... |
package com.noteshare.wechat.services;
import javax.servlet.http.HttpServletRequest;
/**
* @ClassName : WechatService
* @Description : 核心服务类
* @author : xingchen
* @date : 2016年6月13日 下午10:22:08
*/
public interface WechatService {
/**
* @Title : processRequest
* @Description : 处理微信发来的请求
... |
package com.midashnt.taekwondo.util;
import org.springframework.context.ApplicationContext;
import org.springframework.core.io.ClassPathResource;
import org.springframework.util.FileCopyUtils;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
public class MidasHnTSystemUtil {
public static S... |
package controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRe... |
package cz.root.rohlik.jpa.repository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import cz.root.rohlik.entity.Order;
import java.util.List;
public interface OrderRepository extends CrudRepository<Order, Long> {
@Query(value = "select * from... |
public class TestPunkt {
public static void main(String[] args) {
Zbior<Punkt> z1=new Zbior<Punkt>();
Zbior<Punkt> z2=new Zbior<Punkt>();
Zbior<Punkt> z3=new Zbior<Punkt>();
Punkt p1=new Punkt(3,7);
Punkt p2=new Punkt(2,5);
Punkt p3=new Punkt(1,4);
Punkt p4=ne... |
import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int k=sc.nextInt();
int z[]=new int[n];
for(int i=0;i<n;i++)
{
z[i]=sc.nextInt();
}
int m=n+1-k;
int sol=(m*(m+1))/2;
Syst... |
package com.yeahbunny.stranger.server.controller;
import com.yeahbunny.stranger.server.services.PhotoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable... |
package com;
import org.eclipse.paho.client.mqttv3.MqttClientPersistence;
import org.eclipse.paho.client.mqttv3.MqttException;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence;
import java.util.HashMap;
public class Diff {
public static... |
package Management.HumanResources.test;
import Management.HumanResources.DepartmentCommand.AuditSalaryTableCommand;
import Management.HumanResources.FinancialSystem.DataAccessObject.SalaryDaoImpl;
import Management.HumanResources.FinancialSystem.FinancialDepartment;
import Management.HumanResources.FinancialSystem.Per... |
package org.sbbs.base.service.impl;
public class GeneralmanagerImpl {
}
|
package com.cskaoyan.mapper;
import com.cskaoyan.bean.DeviceType;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @Author: zero
* @Date: 2019/5/18 15:49
* @Version 1.0
*/
public interface DeviceTypeMapper {
List<DeviceType> getDeviceTypeList(@Param("rows") int rows, @Param("offset") ... |
package com.xkzhangsan.time.calendar;
import com.xkzhangsan.time.LunarDate;
import com.xkzhangsan.time.calculator.DateTimeCalculatorUtil;
import com.xkzhangsan.time.converter.DateTimeConverterUtil;
import com.xkzhangsan.time.formatter.DateTimeFormatterUtil;
import com.xkzhangsan.time.holiday.Holiday;
import java.io.S... |
package rs.pupin.custompolyline2;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androi... |
package com.rbkmoney.adapter.atol.service.atol.constant;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import java.util.HashMap;
import java.util.Map;
/**
* Устанавливает номер налога в ККТ
*/
@Getter
@RequiredArgsConstructor
public enum Tax {
NONE("none", "без НДС"),
VAT0("vat0", "НДС по с... |
package com.nosuchteam.mapper;
import com.nosuchteam.bean.Product;
import com.nosuchteam.bean.ProductExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface ProductMapper {
long countByExample(ProductExample example);
int dele... |
package com.tencent.mm.plugin.luckymoney.b;
import com.tencent.mm.bk.a;
public final class ai extends a {
public String content;
public int ddp;
public String iconUrl;
public int kRD;
public int kRE;
public String name;
public String type;
protected final int a(int i, Object... objArr... |
package fnu.web.model;
import java.sql.Timestamp;
import fnu.common.BaseInfo;
/**
* <p>Title : TC_MvnoEntity - ValueObject class for table [TC_MVNO].</p>
* <p>Description : </p>
* <p>Copyright : Copyright (c) 2013 F&U Co. Ltd,.</p>
* <table border=1>
* <tr><th>field name(db)</th><th>type</th><th>comment</th></t... |
package edu.calstatela.cs245.qiao.project;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JButton;
import javax.swing.JOptionPane;
public class SMDFrame extends BaseFrame {
public SMDFrame() {
super(500, 450);
... |
/*
* [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 te... |
package com.hunw.java.lesson1.spells;
import java.util.Random;
import com.hunw.java.lesson1.characters.Character;
public class Heal extends Spell {
int minHeal = 1;
int maxHeal = 5;
public Heal() {
// TODO Auto-generated constructor stub
}
public void use(Character target) {
Random rand = new Random();
... |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Maryam Athar Khan
// Lab 04
// Septemeber 18,2015
// This program is designed to pick a random card from the deck of cards to allow the magician to practice alone.
//
// define a cla... |
execute(des,src,registers,memory) {
int desBitSize = 128;
int desHexSize = desBitSize / 4;
String srcValue;
// Check if SOURCE is either XMM or m128
if( src.isRegister() ) {
srcValue = registers.get(src);
} else if( src.isMemory() ) {
srcValue = memory.read(src,desBitSize);
... |
package com.mybatis.service.redbag;
import com.mybatis.domain.redbag.RedBagPackModel;
import org.springframework.transaction.annotation.Transactional;
/**
* Created by yunkai on 2017/11/30.
*/
public interface RedBagPackServiceI {
/**
* 生成发红包记录
*
* @param pack
*/
public void create(RedB... |
package edu.wayne.cs.severe.redress2.entity;
/**
* @author ojcchar
* @version 1.0
* @created 28-Mar-2014 17:27:26
*/
public class CodeObject {
public CodeObject() {
}
}// end CodeObject |
package servlets;
import static constants.Constants.USER_UPLOADED_XML;
//taken from: http://www.servletworld.com/servlet-tutorials/servlet3/multipartconfig-file-upload-example.html
// and http://docs.oracle.com/javaee/6/tutorial/doc/glraq.html
import com.google.gson.Gson;
import com.magit.logic.exceptions.InvalidNameE... |
package ordo;
import java.rmi.Remote;
import java.rmi.RemoteException;
import formats.Format.Type;
import hdfs.daemon.FragmentDataI;
import map.Mapper;
public interface Daemon extends Remote {
public void runMap (Mapper mapper,
Type inputFormat,
CallBack callback,
Fragme... |
package org.jboss.perf.test.server.controller;
import java.io.Serializable;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;... |
package com.example.demo.controller;
import com.example.demo.dto.TestModelDTO;
import com.example.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import rea... |
package classes;
import java.sql.ResultSet;
import java.sql.SQLException;
public class CodePrestation {
private String code;
private String description;
public CodePrestation(ResultSet rs) throws SQLException {
code = rs.getString("code");
description = rs.getString("description");
}
public String getCode... |
package de.zarncke.lib.time;
import org.joda.time.DateTime;
public interface Clock
{
long getCurrentTimeMillis();
DateTime getCurrentDateTime();
}
|
package arrayVisitors.driver;
import java.util.ArrayList;
import arrayVisitors.adt.MyArray;
import arrayVisitors.adt.MyArrayI;
import arrayVisitors.adt.MyArrayList;
import arrayVisitors.adt.MyArrayListI;
import arrayVisitors.util.FileDisplayInterface;
import arrayVisitors.util.MyLogger;
import arrayVisitors.util.Resu... |
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* Hybris ("Confidential Information"). You shall not disclose such
* Confidential Information and shall use it only in accordance with the
* terms of the l... |
package com.wlc.ds.tree;
import java.util.Stack;
import org.junit.Assert;
import org.junit.Test;
public class BinaryTreeTest {
public BinaryTree create() {
TreeNode[] nodes = new TreeNode[9];
for (int i = 0; i < 9; i++) {
nodes[i] = new TreeNode(i);
}
BinaryTree tree = new BinaryTree();
tree.root =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.