text stringlengths 10 2.72M |
|---|
package com.jpa.entity;
import javax.persistence.*;
import java.util.Set;
/**
* Created by Дарья on 04.03.2015.
*/
@Entity
@Table(name = "station")
@NamedQueries({
@NamedQuery(name = "Station.getAll", query = "SELECT c from Station c"),
@NamedQuery(name="Station.findByName", query="SELECT c F... |
package com.shashi.customer.service;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import com.shashi.customer.model.Customer;
import com.shashi.customer.model.CustomerDB;
/*This Utils Call we are using for Serializtion, we have ... |
package com.sunrj.application.System.model;
import java.util.List;
public class TestModel {
private String id;
private String ccode;
private String cname;
private String cpar_code;
private String cpar_name;
private String test1;
private String test2;
public String getTest1() {
return test1;
}
public void setTest1(S... |
import java.util.*;
public class BlockTheBlockPuzzle {
private final int INF = 250 * 250;
private int[][] graph;
private int source;
private int sink;
public int minimumHoles(String[] board) {
int goalRow = -1;
int goalColumn = -1;
for(int i = 0; i < board.length; ++i) {... |
package com.questionanswer.questionanswer.model;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.web.context.WebApplicationContext;
@Component
@Scope(value = WebApplicationC... |
package controllers;
public interface ControllerVisitor {
void visit(StartController controller);
void visit(ProposeController controller);
void visit(ResumeController controller);
}
|
package com.cht.training.Lab13;
public class Employee {
static {
counter = 200;
}
private static int counter;
public Employee(){
counter++;
}
public static int getCounter() {//若可以宣告為staic的函數或變數盡量宣告為staic,因為會被直接放入固定記憶體,存取較快速
return counter;
}
public static vo... |
package com.bofsoft.laio.customerservice.DataClass.index;
import com.bofsoft.laio.data.BaseData;
/**
* 产品服务协议
*
* @author admin
*/
public class ProductRuleUrlData extends BaseData {
// 请求参数
// ProType Integer 产品类型,0招生类产品,1培训类产品;
private String Url; // String 规则连接
public String getUrl() {
... |
package classes.facade;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import classes.core.IDAO;
import classes.core.IFacade;
import classes.core.IStrategy;
import classes.core.DAO.EventoDAO;
import classes.core.DAO.EventosParticipanteD... |
package com.barclaycard.currency.validator;
import com.barclaycard.currency.model.CurrencyDetails;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
@Component
public c... |
package pl.com.dropbox;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
public class MainClass {
public static void main(String[] args) throws IOException {
BlockingQueue<Message> myQueue = new ArrayBlockingQue... |
package a50;
/**
* @author 方康华
* @title SearchInRotatedSortedArray
* @projectName leetcode
* @description No.33 Medium
*/
public class SearchInRotatedSortedArray {
public int search(int[] nums, int target) {
return find(nums, 0, nums.length - 1, target);
}
public int find(int[] nums, int left... |
package com.example.app_ex3;
import android.content.Intent;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
/**
* A placeholder fragment containing a simple view.
*/
public cl... |
package com.shinjinhun.jsonparserexample;
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;
import org.json.JSONArray;
import org.json.JSONExcept... |
package com.developworks.jvmcode;
/**
* <p>Title: isub</p>
* <p>Description: int数值相减</p>
* <p>Author: ouyp </p>
* <p>Date: 2018-05-20 14:30</p>
*/
public class isub {
public void isub(int i, int i2) {
int ii = i - i2;
}
}
/**
* public void isub(int, int);
* Code:
* 0: iload_1
* ... |
package Lec_04_NestedConditionalStatements;
import java.util.Scanner;
public class Pro_04_08_HotelRoom {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Въведете име на месец: ");
String month = scanner.nextLine();
System.out.... |
package com.example.demo;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.item.ItemWriter;
import org.springframework.beans.factory.annotation.Value;
public class AttemptWriter implements... |
package de.ndn.game.platformer.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import de.ndn.game.platformer.gameobjects.MainCamera;
import de.ndn.game.platformer.gameobjects.Meeple;
/**
* C... |
package tw.org.iiijava;
public class zora19 {
public static void main(String[] args) {
int p1,p2,p3,p4,p5,p6;
p1=p2=p3=p4=p5=p6=0;
for(int i=0;i<100;i++){
int point = (int) (Math.random()*6+1);//1-6
switch(point){
case 1:p1++;break;
case 2:p2++;break;
case 3:p3++;break;
case 4:p4++;break;
... |
package com.example.hotel.model.rooms;
public enum AvailableStatus {
AVAILABLE,
NOT_AVAILABLE
}
|
import java.util.Arrays;
/**
* 编辑距离 https://leetcode-cn.com/problems/edit-distance/
*/
public class 编辑距离 {
public static void main(String[] args) {
编辑距离 t=new 编辑距离();
System.out.println(t.minDistance("intention","execution"));
System.out.println(t.minDistance2("intention","execution"));
... |
package textanalysis.wikipediaindex;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.sql.SQLException;
import java.util.HashSet;
import textanalysis.dbutils.DBUtils;
public class IndexInfoDBWriter {
private final static String WIKIPEDIA_DUMP_APTH = "resources/ar-wi... |
package com.cambi.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.testng.Assert;
import com.cambi.selenium.framework.BasePage;
import com.graphbuilder.curve.Point;
import io.appium.java_client.Per... |
package com.example.demo;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/role")
public class RoleController {
@Value("${server.port}")
Str... |
/**
* Sencha GXT 1.0.0-SNAPSHOT - Sencha for GWT
* Copyright (c) 2006-2018, Sencha Inc.
*
* licensing@sencha.com
* http://www.sencha.com/products/gxt/license/
*
* ================================================================================
* Commercial License
* ============================================... |
public class ServiceFinder extends Service {
public ServiceFinder() {
}
public ServiceFinder(Person person) {
super(person);
}
Person find(String name) {
// поиск по БД
return new Person(1, "John");
}
public void add(Person person) {
// проверки
pe... |
package com.github.dongchan.scheduler.dao;
import com.github.dongchan.scheduler.task.Execution;
import java.time.Duration;
import java.time.Instant;
import java.util.List;
import java.util.Optional;
import java.util.function.Consumer;
/**
* @author DongChan
* @date 2020/10/22
* @time 11:51 PM
*/
public interface... |
package servicesubscriber1;
public class Methods {
public static boolean isDouble(String amount) {
try {
double amountInDoble = Double.parseDouble(amount);
return true;
} catch (Exception e) {
return false;
}
}
public static boolean isInt(String amount) {
try {
int amountInInt = Integer.pars... |
package com.monkey1024.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;
... |
package audio;
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.util.HashSet;
import java.util.Set;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
public class AudioManager {
private static Clip clip;
private static ... |
package java.com.kaizenmax.taikinys_icl.model;
public interface MandiCampaignDataPushNetworkOperationInterface {
public void sendingMcDataToWebService()throws Exception;
}
|
package lab6;
import classesState.EstadoVacinacao;
import classesState.NaoVacinada;
public class Pessoa {
private String nome;
private String cpf;
private String endereco;
private String cartaoSUS;
private String email;
private String telefone;
private String profissao;
private String comorbidade;
pr... |
package mySQL;
import java.security.NoSuchAlgorithmException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import controllers.PasswordHasher;
import dao.UserDAO;
import models.User;
public class MySQLUserDAO implements UserDAO {
private fin... |
package com.test.gpstracker;
import android.annotation.SuppressLint;
import android.app.AlarmManager;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.IntentSender;
import and... |
package coordinate;
import java.awt.Rectangle;
public class Coordinate {
public static float X_MIN = -1f, X_MAX = 1f,
Y_MIN = -1f, Y_MAX = 1f,
Z_MIN = 1f, Z_MAX = 4f;
public static float CLOSE_BOUNDS = 0.3f;
float x, y, z;
public Coordinate(float x, float y, float z) {
... |
package com.conexion;
import java.sql.Connection;
import java.sql.DriverManager;
import javax.swing.JOptionPane;
public class Conexion {
public static Connection obtenerConexion() {
Connection cn = null;
try {
// String host = "127.7.165.2";
// String port = "3306";
... |
package com.huruilei.designpattern.decoratee;
/**
* @author: huruilei
* @date: 2019/11/5
* @description:
* @return
*/
public abstract class CondimentDecorator extends Beverage {
public abstract String getDescription();
}
|
package cn.kitho.web.controller.textRecording;
import cn.kitho.core.config.DetailTypes;
import cn.kitho.core.config.StatusType;
import cn.kitho.core.config.SystemConfig;
import cn.kitho.core.model.Types;
import cn.kitho.core.service.base.TypesService;
import cn.kitho.web.dto.base.BaseResult;
import com.alibaba.fastjso... |
package com.tvm.arrayExample;
/**
*
* This method removes all negative integer from Array except first one.
*
*/
public class RemoveFirstNegative {
public static void main(String[] args) {
int[] array = new int[] { 10, 1, -3, 2, -4, -5, -6, 7 };
int newArrays[] = new int[10];
int j = 0;
boolean first... |
package de.gaudian.webcrawler;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;... |
/*
* Copyright 2002-2022 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package ro.ase.csie.g1093.testpractice.builder;
public class User {
//the class should have a lot of attributes
//all attributes should be final or at least private
private final String firstName;
private final String lastName;
private final int age;
private final String phoneNo;
private final String homeAdd... |
package controller;
import algorithm.annealing.test.SATestManager;
import algorithm.genetic.test.GATestManager;
import application.MainApplication;
import configuration.TestConfig;
import javafx.application.Platform;
import view.MainView;
public class MainController {
// View
private MainView view = new MainView(M... |
/*
* (c) 2009 Thomas Smits
*/
package de.smits_net.tpe;
class PackagePrivateClass {
}
class NochEineKlasse {
}
class UndNochEine {
} |
package com.gaoshin.fandroid;
import java.util.List;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.RemoteViews;
pub... |
package org.point85.domain.dto;
import org.point85.domain.DomainUtils;
import org.point85.domain.collector.OeeEvent;
import com.google.gson.annotations.SerializedName;
/**
* Data Transfer Object (DTO) for a recorded OEE event
*/
public class OeeEventDto {
@SerializedName(value = "type")
private String eventType;... |
package pro.likada.dao.daoImpl;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import org.hibernate.sql.JoinType;
import org.slf4j.Logger;
import ... |
package com.soft1841.book.controller;
import com.soft1841.book.entity.Book;
import com.soft1841.book.service.BookService;
import com.soft1841.book.utils.ServiceFactory;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.geometry.Pos;
import javafx.scene.N... |
package com.gaoshin.onsalelocal.osl.beans;
public enum SearchOrder {
DistanceAsc,
DistanceDesc,
UpdatedAsc,
UpdatedDesc,
}
|
package com.mycompany.ghhrkapp1.service;
import org.springframework.data.domain.Page;
import com.mycompany.ghhrkapp1.dto.PersonsDTO;
import com.mycompany.ghhrkapp1.entity.Persons;
public interface PersonService {
Iterable<Persons> listAll();
Page<Persons> listAllPaged(int page);
Persons save(PersonsDTO personsD... |
package com.zantong.mobilecttx.base.fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.zantong.mobilecttx.R;
import com.zantong.mobilecttx.utils.PullToRefreshLayout;
import butterknife.Bind;
/**
* 可下拉刷新页面
*/
public ... |
package slimeknights.tconstruct.tools.common.client.module;
import net.minecraft.util.ResourceLocation;
import slimeknights.mantle.client.gui.GuiElement;
import slimeknights.mantle.client.gui.GuiElementScalable;
import slimeknights.tconstruct.library.Util;
public final class GuiGeneric {
public static final Resou... |
package monitors;
import java.io.IOException;
import java.net.Inet4Address;
import java.net.UnknownHostException;
import utils.CSV;
import utils.GetDate;
public class ProcessMonitor implements Runnable {
private boolean isOn=true;
private int sampleTime=0;
private String path="";
private String processName;
pu... |
package hello;
public enum Car {
FERRARI,PORSCHE,LAMBORGHINI
}
|
package by.academy.homework.homework5;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
public class Task4 {
public static void main(String[] args) {
List<Integer> arrayList = new ArrayList<>();
addMarks(arrayList);
System.out.println("Список оценок: " + ... |
/*
* 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 prototype;
/**
*
* @author robotica
*/
public class PrototypeFactory {
Animal prototypeAnimal;
public PrototypeFa... |
package asylumdev.adgresources.api.materialsystem.material;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
public class Materials {
public static List<BasicMaterial> materials = new ArrayList<>();
public static BlockMaterial advancium = new BlockMaterial("advancium", new Color(150, 50, 15... |
package com.prasnottar.nepalidateconverter.core;
import com.prasnottar.nepalidateconverter.exception.NepaliDateConverterException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import... |
package com.hibernateExample.springHibernate;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringHibernateExampleApplication {
public static void main(String[] args) {
SpringApplication.run(SpringHibernat... |
package com.minhvu.proandroid.sqlite.database.main.presenter;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AlertDialog;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
im... |
package fudan.database.project.dao.impl;
import fudan.database.project.dao.DAO;
import fudan.database.project.dao.DoctorDAO;
import fudan.database.project.entity.Doctor;
import java.util.List;
public class DoctorDAOJdbcImpl extends DAO<Doctor> implements DoctorDAO {
@Override
public List<Doctor> getAll() {
... |
package com.comp445.lab2.http;
import com.comp445.lab2.file.server.FileServerHandler;
import com.comp445.lab2.file.server.DirectoryOutputMethod;
import org.junit.Test;
import java.io.FileNotFoundException;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
public class FileServerHandlerTest {
... |
/*
* 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 Num;
/**
*
* @author YNZ
*/
public class WhyMustDouble {
/**
* @param args the command line argumen... |
package com.alibaba.druid.test;
import javax.sql.DataSource;
import org.junit.Assert;
import junit.framework.TestCase;
import org.nutz.dao.Chain;
import org.nutz.dao.Dao;
import org.nutz.dao.impl.NutDao;
import org.nutz.trans.Atom;
import org.nutz.trans.Trans;
import com.alibaba.druid.pool.DruidDataSource;
public ... |
package com.citibank.ods.entity.pl.valueobject;
import java.math.BigInteger;
import com.citibank.ods.common.entity.valueobject.BaseEntityVO;
/**
*
*@author michele.monteiro,02/05/2007
*/
public class BaseTbgSystemEntityVO extends BaseEntityVO
{
// Codigo da segmentacao do sistema
private BigIn... |
package com.crealytics.reporting;
import com.crealytics.reporting.service.ReportService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframewo... |
import org.junit.jupiter.api.Test;
import java.util.Date;
import static org.junit.jupiter.api.Assertions.*;
class OfficeEmployeeTest {
@Test
void boxReassignBox() {
Date birthDate = new Date();
birthDate.setYear(birthDate.getYear()-30);
Date hireDate = new Date();
hireDate.set... |
package be.tcla.bookinventory.repository;
import be.tcla.bookinventory.model.Book;
import be.tcla.bookinventory.model.Genre;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface BookJpaRepository extends JpaRepository<Book, Integer> {
List<Book> findByAuthorConta... |
package io.shodo.banking.account.infra;
import io.shodo.banking.account.domain.core.Account;
import io.shodo.banking.account.domain.core.AccountNumber;
import io.shodo.banking.account.domain.core.PositiveAmount;
import io.shodo.banking.account.domain.core.Transaction;
import static io.shodo.banking.account.domain.core... |
package sales_tax;
import java.util.List;
import java.util.ArrayList;
/**
* Created by Eugene on 5/14/2015.
*/
public class ProductParser {
public List<Product> parseProducts(List<String> lines) {
List<Product> products = new ArrayList<>();
for(String line: lines){
String name = "";
... |
/**
* All rights Reserved, Designed By www.tydic.com
* @Title: SearchDao.java
* @Package com.taotao.search.dao
* @Description: TODO(用一句话描述该文件做什么)
* @author: axin
* @date: 2019年2月11日 下午9:05:01
* @version V1.0
* @Copyright: 2019 www.hao456.top Inc. All rights reserved.
*/
pac... |
package com.energytrade.app.util;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Scanner;
import org.springframework.stereotype.Component;
@Component
public class PushHe... |
package ar.edu.unlam.scaw.persistencia;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabase;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.jdbc.datasource.embedde... |
package jire.player;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.UUID;
import jire.world.ChatMessage;
import jire.world.Entity;
import jire.world.UpdateFlagSet;
public class Player extends Entity {
private final transient List<LocalPlaye... |
package zhuoxin.com.viewpagerdemo.info;
public class userInfo {
public String name;
public String passwd;
public userInfo(String name, String passwd) {
this.name = name;
this.passwd = passwd;
}
public String toString() {
return "userInfo{" +
"name='" + na... |
package com.car;
/**
* Created by husiqin on 16/9/6.
*/
public class DoubleCar extends Car {
DoubleCar(String name, double pricepd, double capabilityT, int capabilityP) {
this.name = name;
this.pricepd = pricepd;
this.load = capabilityT;
this.numOfPerson = capabilityP;
}
@Override
public void print() {... |
import java.util.*;
public class Carnivore extends Animal
{
public Carnivore(String n, String sym, TreeSet<String> s, double dm, double ds, double be, double me, double le, double ie, double pm, double ps, double mr, double dr, double hr) {
super(n, sym, s, dm, ds, be, me, le, ie, pm, ps, mr, dr, ... |
package com.alex.chess;
import com.alex.chess.enums.Color;
import static com.alex.chess.util.MapCoordinates.*;
public class Board {
private Cell[][] state;
public Board() {
this.state = new Cell[8][8];
for (int i = 0; i < 64; i++) {
if ((i + 1) % 2 != 0) {
stat... |
package com.larryhsiao.nyx.base;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.core.hardware.fingerprint.FingerprintManagerCompat;
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
import com.larryhsiao.nyx.JotApplication;
import com.silverhet... |
package com.zxt.compplatform.workflow.action;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
import net.sf.json.JS... |
package com.write;
public class dd {
}
/*
[java]
객체 지향 언어(OOP)
객체 : instance : 메모리에 실제 구현된 구현체
class -> 구현하기 위한 설계도
=> member - field : 속성 - instance variable
- class variable(static)
- method : 기능
접근제한자 메모리영역 리턴타입 이름(파라미터/아규먼트){body}
constructor :... |
package com.zenwerx.findierock.data;
import java.util.ArrayList;
import java.util.Date;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteConstraintException;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.zenwerx.findierock... |
package com.tu.common.service;
/**
* @Auther: tuyongjian
* @Date: 2019/12/6 10:11
* @Description:
*/
public interface IDubboService {
Integer add(int cost);
}
|
package au.gov.nsw.records.digitalarchive.struts.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.Actio... |
package com.edasaki.rpg.dungeons;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.inventory.ItemStack;
import com.edasaki.rpg.items.EquipType;
import com.edasaki.rpg.items.RPGItem;
import com.edasaki.rpg.items.RandomItemGenerator;
public class DungeonReward {
public RPGItem item = null;
... |
package ua.epam.course.java.block16;
import java.util.ArrayList;
import java.util.Arrays;
public class Faculty extends Thread {
private static int count = 0;
private int number;
private ArrayList<Student.specialities> specialities;
private ArrayList<Student> students = new ArrayList<>();
private int ent... |
package services;
import domain.Chef;
public interface ChefService extends Service<Chef, Long>{
}
|
package com.proyecto.ui.controller;
import javax.servlet.http.HttpServletRequest;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.select.SelectorComposer;
import org.zkoss.zk.ui.select.annotation.Listen;
import org.zkoss.zk.ui.select.annotation.VariableResolve... |
package example.lgcode.launchstatus.dtos;
import com.google.gson.annotations.SerializedName;
import org.joda.time.DateTime;
import java.io.Serializable;
import java.util.List;
/**
* Created by leojg on 1/20/17.
*/
public class LaunchDTO implements Serializable {
@SerializedName("id")
private Integer id;... |
package hu.alkfejl.utils;
import javafx.scene.control.Alert;
import javafx.scene.image.Image;
import org.apache.commons.io.FileUtils;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.util.Base64;
public class Utils {
public static void showWarning(String message) ... |
package formation.formation.service.rest;
import formation.domain.FormulaireReponses;
import formation.formation.service.itf.CustomerServiceItf;
import formation.formation.service.itf.FormulaireReponsesItf;
import javax.ejb.EJB;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response... |
/**
* Please modify this class to meet your needs
* This class is not complete
*/
package com.wirelesscar.dynafleet.api;
import java.util.logging.Logger;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.Xm... |
package com.crmiguez.aixinainventory.service.itemtype;
import com.crmiguez.aixinainventory.entities.ItemType;
import java.util.List;
import java.util.Optional;
public interface IItemTypeService {
public List<ItemType> findAllItemTypes();
public Optional<ItemType> findItemTypeById(String itemTypeId);
publ... |
package dev.fujioka.eltonleite.presentation.dto.order;
import java.time.LocalDateTime;
public class OrderResponseTO {
private Long id;
private LocalDateTime dateOrder;
private Long idUser;
public OrderResponseTO(Long id, LocalDateTime dateOrder, Long idUser) {
super();
this.id = id... |
package com.awakenguys.kmitl.ladkrabangcountry.model;
import org.springframework.data.annotation.Id;
/**
* Created by Xync on 05-Nov-15.
*/
public class Bus_Line {
@Id
private String id;
private String line;
private String route;
public Bus_Line() {
}
public Bus_Line(String line, Strin... |
/*
* generated by Xtext
*/
package org.yazgel.snow.notation.text;
import org.eclipse.xtext.junit4.IInjectorProvider;
import com.google.inject.Injector;
public class SnowUiInjectorProvider implements IInjectorProvider {
@Override
public Injector getInjector() {
return org.yazgel.snow.notation.tex... |
import java.util.Scanner;
import java.util.Random;
public class Nim {
private Pile pileA;
private Pile pileB;
private Pile pileC;
private Scanner input;
private Random rnd;
// Default constructor, constructs the three piles
public Nim() {
pileA = new Pile();
pileB = new Pile();
pileC = new Pile();
}
... |
package com.bag.core.config;
import com.mongodb.Mongo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.core.MongoTemplate;
import java.net.UnknownHostException;
/**
* Created by johnny on 25/11/15.
*/
@Configur... |
package varTypes;
public class TipoPez {
int tipopez_id;
String descripcion;
float phMin, phMax, temMin, temMax;
public TipoPez(int tipopez_id, String descripcion, float phMin, float phMax, float temMin, float temMax) {
this.tipopez_id = tipopez_id;
this.descripcion = descripcion;
this.phMin =... |
/**
*
*/
/**
* @author Aloy
*
*/
package Control.output; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.