text stringlengths 10 2.72M |
|---|
package com.example.pokeapppro.database.entity;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "pokemon")
public class PokemonDB {
@PrimaryKey
@NonNull
@ColumnInfo(name = "pokemonName")
private Stri... |
package co.khj.dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class DAO {
Connection conn = null; // DB연결된 상태(세션)을 담은 객체
PreparedStatement psmt = null; // SQL 문을 나타내는 객체
ResultSet r... |
package com.oracle.notebookserver.interpreter;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.oracle.notebookserver.model.ProgramingLanguageEnum;
@Component
publi... |
package com.vishaldwivedi.intelliJournal.Adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
im... |
/*
I commenti a ciò che si sta testando sono nelle println così da rendere il risultato su terminale più leggibile.
*/
public class ShareDocTests {
public static void main (String[] args) {
ShareDocImpl tester = new ShareDocImpl();
System.out.println("\n1. Test: addUser(String nick, int password)... |
package com.website.vzw.User;
import com.website.vzw.Address.Address;
import com.website.vzw.City.City;
import java.time.LocalDate;
import java.util.Date;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValu... |
package it.bibliotecaweb.servlet.utente;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import it.bibliotecaweb.model.Ute... |
package patterns.creational.builder;
public class ProductBuilder extends Builder {
public ProductBuilder(Product product) {
super(product);
}
@Override
public void buildPartA() {
product.setPartA("partA");
}
@Override
public void buildPartB() {
product.setPartB("p... |
package br.com.pwc.nfe.integracao.xml;
import java.io.File;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import org.apache.log4j.... |
package com.seboid.udemcalendrier;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickLi... |
package com.yyter.ui4android.widget;
import android.content.Context;
import android.util.AttributeSet;
/**
* 该View确保宽和高相等,因此当指定的宽高或者图片原本的宽高不同时,
* 将取两者的较小值。
* Created by yyter on 2014/12/6.
*/
public class CircleImageView extends RoundCornerImageView {
public CircleImageView(Context context) {
super(co... |
package com.design.factory.AbstractFactory;
public class XVeggiesOfMushroom implements XVeggies {
public String toString() {
return "Mushrooms";
}
}
|
package ru.vlapin.demo.paveldemo;
import javax.annotation.PostConstruct;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.annotation.... |
package com.zimu.ao.controller;
import com.zimu.ao.enums.Status;
/**
* 状态控制器
* 控制玩家当前正在进行的状态(战斗状态,购物状态,等等)
* @author zimu
*
*/
public class StatusController {
private Status status;
public StatusController() {
status = Status.NONE;
}
public void active(Status status) {
this.status = status;
}
... |
import java.util.Scanner;
public class Sumar{
public static void main(String[]arg){
Scanner Lee=new Scanner(System.in);
int a,b,c=0,d=0;
System.out.print("Dame un numero: ");
a=Lee.nextInt();
System.out.print("Dame un numero mayor: ");
b=Lee.nextInt();
a+=1;
int i=a;
while(i<b){
c+=i;
System.out.print(i+" ");
i++;
... |
package com.citi.yourbank.vo;
import javax.validation.constraints.NotNull;
import io.swagger.annotations.ApiModel;
import lombok.Data;
@ApiModel("RegisterUserRequest")
@Data
public class RegisterUserRequestVO {
@NotNull
private String userId;
private String password;
@NotNull
private Stri... |
package com.example.xiaojw.tamodel;
import okhttp3.Call;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import rx.Observable;
public interface TA {
@Multipart
@POST("upload")
... |
/*
* Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE file for licensing information.
*
* Created on 16 gru 2015
* Author: K. Benedyczak
*/
/**
* Actions for the output translation profile. Not in the core module as depend on some types from this package
* @author K. Benedyczak
... |
// **********************************************************
// 1. 제 목: TORON ADMIN BEAN
// 2. 프로그램명: ToronAdminBean.java
// 3. 개 요: 토론방 관리자 bean
// 4. 환 경: JDK 1.3
// 5. 버 젼: 1.0
// 6. 작 성: 박진희 2003. 7. 22
// 7. 수 정:
// **********************************************************
pa... |
/*
* 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 EjerciciosProgramacion2;
/**
*
* @author PocyxDesigner
*/
public class Ejer6Tema2 {
public static void main(String[] ar... |
package p12;
import java.util.ArrayList;
import java.util.Scanner;
public class ListExam {
private ArrayList<String> alStr;
ListExam(){
alStr=new ArrayList<String>();
}
void add(String str) {
if(alStr.isEmpty()) {
System.out.println("처음 값을 입력하셨군요!");
}
else {
System.out.print... |
package com.david.secretsanta.services;
import com.david.secretsanta.models.PersonFamily;
import java.util.Optional;
public interface PersonFamilyService {
PersonFamily createPersonFamily (String name,String forename,String idFamilyGroup) ;
PersonFamily findPersonFamiliy (String idPerson);
}
|
package pl.dkiszka.bank.account.services;
import io.vavr.control.Try;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.axonframework.commandhandling.gateway.CommandGateway;
import org.springframework.stereotype.Service;
import pl.dkiszka.bank.account.commands.CloseAccountCommand;
imp... |
package com.oak.wshop.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.oak.wshop.model.Post;
import com.oak.wshop.repository.PostRepository;
@Service
public class PostService {
@Autow... |
package ua.siemens.dbtool.serializers;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import ua.siemens.dbtool.model.entities.Partner;
import java.lang.reflect.Type;
/**
* The class is custom serializer f... |
package matthbo.mods.darkworld.world;
import java.util.Random;
import matthbo.mods.darkworld.init.ModBlocks;
import matthbo.mods.darkworld.init.ModDimensions;
import net.minecraft.block.Block;
import net.minecraft.block.state.pattern.BlockHelper;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
i... |
package taojinqu.springboot.jaxrs.service;
import java.io.IOException;
import java.net.URI;
import java.net.URL;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.Form;
import javax.ws.rs.core.Media... |
package com.stepin.mushroom_recognizer;
import androidx.lifecycle.ViewModelProviders;
import android.app.Activity;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.MotionE... |
package Model;
import android.widget.Button;
public class jobApply {
String companyName;
String contact;
String emailid;
String advertname;
String jobqualificatio;
String experience;
String id;
String date;
public jobApply(String companyName, String contact, String emailid, Stri... |
package com.demo.model;
import com.demo.model.entity.Usuario;
public class ModeloUsuario extends Model {
}
|
package com.example.sean.onedroid;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
public class MoreInfo extends Fragment {
public... |
package DataSets;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@Entity
@Table(name = "Teacher")
public class TeachersDataSet {
private String role = "";
@Id
@Generate... |
package com.my.learn.core_java2.ch2;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;
import java.util.Scanner;
/**
* Created by yidianadmin on 14-10-9.
*/
public class SocketTest {
public static void main(String[] ... |
package com.webserver.shoppingmall.post.service.impl;
import com.webserver.shoppingmall.post.repository.PostRepository;
import com.webserver.shoppingmall.post.repository.CommentRepository;
import com.webserver.shoppingmall.post.service.CommentService;
import lombok.RequiredArgsConstructor;
import org.springframework.s... |
/**
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Copyright (C) 2017 NEMESIS (Lima - Peru)
* Sistemas - Desarrollo de Sistemas Informaticos
* Luis Bustamante Villar lbustamante@nemesisdata.com
* All rights reserved. Used by permission
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
package com.eshop.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import javax.activity.InvalidActivityException;
import com.eshop... |
package com.capgemini.Resource_Management.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.capgemini.Resource_Management.model.ProjectDetails;
@Repository
public interface ProjectRepository extends JpaRepository<ProjectDeta... |
package com.android.wendler.wendlerandroid.main.presenter;
import com.android.wendler.wendlerandroid.main.contract.SetContract;
import com.android.wendler.wendlerandroid.main.model.Lift;
import com.android.wendler.wendlerandroid.main.model.User;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reac... |
/*
* Copyright (c) 2004 Steve Northover and Mike Wilson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, ... |
package com.stocktrading.stockquote.codec;
import com.fasterxml.jackson.databind.JsonNode;
import com.mongodb.client.model.Aggregates;
import com.mongodb.client.model.Filters;
import com.stocktrading.stockquote.enumeration.IDPrefixes;
import org.bson.BsonReader;
import org.bson.BsonWriter;
import org.bson.codecs.Codec... |
package evaluation;
import java.util.Arrays;
import java.util.LinkedHashMap;
public class PairTestAnswer {
public final static LinkedHashMap<Integer, PairTestAnswer> ANSWERS;
public enum Truth {
CORRECT(1), UNCERTAIN(0), INCORRECT(-1);
public final int level;
Truth(int level) {
this.level = level... |
package com.anger.service.userservice.service;
import com.anger.service.userservice.dao.UserDao;
import com.anger.service.userservice.dto.UserDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
@Service
public class... |
package com.wipro.objectserialization;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Date;
@SuppressWarnings("serial")
public class Employee implements Serializable{
private String na... |
package com.daexsys.automata.gui.listeners;
import com.daexsys.automata.gui.GUI;
import com.daexsys.automata.world.WorldLayer;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
public class MouseHandler implements MouseListener {
private GUI gui;
private boolean mouseDown = false;
... |
package com.example.admin.mvp.xulylogin;
public interface PresenterlXuLyDangNhap {
void kiemTraDangNhap(String name, String pass);
}
|
package edu.nyu.cs9053.homework3.oo;
import java.io.PrintStream;
public class Letter {
private final char[][] asciiVerbose;
private final PrintStream out;
public Letter(char[][] asciiVerbose, PrintStream out) {
this.asciiVerbose = asciiVerbose;
this.out = out;
}
pu... |
package za.ac.ngosa.repository;
import za.ac.ngosa.domain.Showing;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
/**
* Created by User on 2015/08/10.
*/
@Repository
public interface ShowingRepository extends CrudRepository<Showing,Long> {
public Sh... |
/*
* Created on Jul 9, 2009
* Created by Paul Gardner
*
* Copyright 2009 Vuze, Inc. All rights reserved.
*
* 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; version 2 of the License onl... |
package com.eomcs.util;
public class Score {
public String name;//설계도
public int kor;//설계도
public int math;//설계도
public int eng;//설계도
public int sum ;//설계도
public float aver;//설계도
public void compute() {//non static은값을 줘야한다 s1,s2
this.sum = this.kor + this.eng + this.math;
this.aver = this.sum ... |
package at.fhv.teama.easyticket.server.program;
import at.fhv.teama.easyticket.dto.ProgramDto;
import at.fhv.teama.easyticket.server.mapping.MapperContext;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context... |
package com.prep.algorithm;
public class Bucketsort {
public static void sort(int[] a, int maxVal){
int [] bucket=new int[maxVal+1];
for (int i=0; i<bucket.length; i++){
bucket[i]=0;
}
for (int i=0; i<a.length; i++){
buck... |
package org.yxm.modules.ting.aidlservice;
import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.IBinder;
import android.os.RemoteException;
import android.support.annotation.Nullable;
import org.yxm.lib.rxbus.RxBus;
import org.yxm.modules.base.utils.LogUtils;
im... |
/*
* 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 database;
import controllers.ShoppingCart;
import models.*;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import javax.persistence.ParameterMode;
import javax.persistence.StoredProcedureQuery;
import java.util.ArrayList;
import java.util.Calendar;
i... |
package com.taskmanag.taskmanag.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.web.server.ErrorPage;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServe... |
package com.nepc.asset.manager.configuration;
/**
* Constants used across the application
*
* @author Rubén Jiménez
*/
public class Constants
{
public static final char DISABLED_VALUE = '0';
public static final char ENABLED_VALUE = '1';
}
|
package modelo.excepciones;
public class CasilleroOcupado extends RuntimeException {
private static final long serialVersionUID = 7526472295622776147L;
}
|
package com.sjquechao.cashier.model;
import com.google.gson.Gson;
import com.sjquechao.cashier.cons.Cons;
import com.sjquechao.cashier.model.api.IApi;
import com.sjquechao.cashier.utils.LogUtils;
import com.sjquechao.cashier.view.application.App;
import java.io.IOException;
import java.util.Iterator;
import java.util... |
package org.sunshinelibrary.turtle.reader;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import org.sunshinelibrary.turtle.utils.Configurations;
import org.sunshinelibrary.turtle.utils.Logger;
/**
* User: fxp
* Date: 10/1... |
package com.example.PollingApplication.controllers;
import com.example.PollingApplication.domain.Poll;
import com.example.PollingApplication.services.PollService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotatio... |
package com.meetingapp.android.ui;
import android.app.Dialog;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.widget.TimePicker;
import java.util.Calendar;
/**
* Created on 30.11.2017.
*/
public ... |
package driver;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.Disposable;
import state.stateManager.ScreenShell;
/**
* This is the primary driver class for this game.
*
* Created by Hongyu Wang on... |
/**
* Diese Datei gehört zum Android/Java Framework zur Veranstaltung "Computergrafik für
* Augmented Reality" von Prof. Dr. Philipp Jenke an der Hochschule für Angewandte
* Wissenschaften (HAW) Hamburg. Weder Teile der Software noch das Framework als Ganzes dürfen
* ohne die Einwilligung von Philipp Jenke außerhal... |
package com.jerry.racecondition;
/**
* Date: 2017/10/3 10:53
*
* @author jerry.R
*/
public class Threads implements Runnable {
RequestIDGenerator requestIDGenerator = RequestIDGenerator.getInstance();
@Override
public void run() {
try {
sleep();
} catch (InterruptedExcept... |
package be.odisee.se4.hetnest.service;
import be.odisee.se4.hetnest.dao.*;
import be.odisee.se4.hetnest.domain.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.*;
import java.util.List;
/**
*... |
package com.zenika.microservices.resanet.controller;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class PaysController {
}
|
import java.util.Scanner;
class question4a{
public static void main(String[] args) {
//variables
Scanner sc = new Scanner(System.in);
double r = 0;
double area = 0;
//input
//sc.nextDouble();
//sc.nextInt();
//sc.nextBoolean();
/... |
package com.wongel.test;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
/**
* Created by tseringwongelgurung on 11/23/17.
*/
public class MyAdapter extends RecyclerView.Adapter<MyVH> {
private L... |
package ec.edu.upse.dao;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Query;
import ec.edu.upse.modelo.TblSgaPeriodonivel;
public class PeriodoNivelDao extends ClaseDao{
@SuppressWarnings("unchecked")
public List<TblSgaPeriodonivel> getNivelByPeriodo(Integer idPeriodo) {
List<TblS... |
/*
* Copyright (c) 2012, Riven
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this lis... |
package com.lipnus.gleam;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.media.MediaPlayer;
import android.nfc.NfcAdapter;
import android.nfc.tech.NfcF;
import android.os.Bundle;
import android.support.v4.app.Fragment... |
package io.pivotal.racquetandroid.manager;
import javax.inject.Inject;
import io.pivotal.racquetandroid.RacquetApplication;
import io.pivotal.racquetandroid.RacquetRestService;
public class NetworkManager {
}
|
package com.citibank.ods.modules.client.officercmpl.functionality;
import org.apache.struts.action.ActionForm;
import com.citibank.ods.common.dataset.DataSet;
import com.citibank.ods.common.functionality.ODSListFnc;
import com.citibank.ods.common.functionality.valueobject.BaseFncVO;
import com.citibank.ods.com... |
package com.daylyweb.music.utils;
import java.sql.SQLException;
import javax.annotation.Resource;
import javax.sql.DataSource;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;
/... |
package com.jdbc.test.generator;
import com.jdbc.test.annotations.*;
import com.jdbc.test.exceptions.SqlQueryGeneratorException;
import com.jdbc.test.model.User;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.stream.Collectors;
/**
* Created by aram on 1/14/2018.
*/
public class SqlQuery... |
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
static EmployeeService employeeService;... |
/*
* Copyright 2002-2017 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 com.yidatec.weixin.util;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class TestMain {
@SuppressWarnings({ "unchecked", "rawtypes" })
public static void main(String args[]) {
List<String> list = new ArrayList<String>... |
/*
* Welcome to use the TableGo Tools.
*
* http://vipbooks.iteye.com
* http://blog.csdn.net/vipbooks
* http://www.cnblogs.com/vipbooks
*
* Author:bianj
* Email:edinsker@163.com
* Version:5.8.0
*/
package com.lenovohit.hwe.treat.model;
import javax.persistence.Column;
import javax.persistence.Entity;
impor... |
package com.xixiwan.platform.sys.dto;
import lombok.Data;
@Data
public class NodeState {
/**
* 是否选中节点,用复选框样式的符号表示。
*/
private Boolean checked = Boolean.FALSE;
/**
* 是否禁用节点(不可选择、可扩展或可检查)。
*/
private Boolean disabled = Boolean.FALSE;
/**
* 一个节点是否扩展,即打开。优先于全局选项级别。
*/
private Boolean expanded = Boole... |
package com.controller;
import com.bean.User;
import com.mapper.UserMapper;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.beans.factory.annotat... |
package Models;
public class GenericOrderLine {
private int quantity;
public GenericOrderLine(int quantity)
{
this.quantity = quantity;
}
public int getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
}
|
package com.zhaoyan.ladderball.dao.recordermatch;
import com.zhaoyan.ladderball.domain.recordermatch.db.RecorderTmpMatch;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.anno... |
/*
* Copyright 2002-2020 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... |
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* ... |
package ro.ase.cts.teste.test.categorii;
public class GetPromovabilitateCategory {
}
|
package me.basiqueevangelist.datapackify;
import me.basiqueevangelist.datapackify.commands.DumpErrorsCommand;
import me.basiqueevangelist.datapackify.potionrecipes.PotionRecipes;
import me.basiqueevangelist.datapackify.trades.VillagerTrades;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.comman... |
package com.heihei.fragment.live.widget;
import java.util.ArrayList;
import android.animation.Animator;
import android.animation.Animator.AnimatorListener;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.content.Context;
import android.util.Attribu... |
package com.lipnus.gleam.etc;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.speech.RecognizerIntent;
import java.util.List;
/**
* Created by Sunpil on 2016-06-05.
*/
public class VoiceRecognition {
... |
package cn.net.bluechips.zsystem.service;
import org.springframework.stereotype.Service;
import cn.com.topit.base.GenericService;
import cn.net.bluechips.zsystem.entity.Department;
import cn.net.bluechips.zsystem.entity.Project;
import cn.net.bluechips.zsystem.repository.DepartmentRepository;
import cn.net.bl... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.jearl.web.jsf;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.faces.context.FacesContext;
import javax.faces.model.SelectItem;
import org.... |
package com.artogrid.app.sim.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import ... |
package com.kyliethedev.ecommercetoy.domain.item;
import com.kyliethedev.ecommercetoy.domain.Category;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Singular;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Getter
@AllArgsConstr... |
package co.sblock.commands.cheat;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.map.MapView;
import org.bukkit.map.MapView.Scale;
... |
package com.tvm.completableFuture;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.func... |
package shacs.dmotion.com.shacs;
import android.app.Activity;
import android.app.Service;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.cont... |
package com.vuforia.samples.VuforiaSamples.ui.Common;
/**
* Created by aquat on 2017/12/26.
*/
public class CommentInfo {
public String userId;
public String userName;
public int sex;
public String userCmt;
public double star;
// public String insertDate;
// public int commentId;
... |
package uk.co.tekkies.readings.day;
import uk.co.tekkies.readings.model.Passage;
public interface DayPresenter {
void reLoad();
void setCalendar(int year, int month, int day);
void addItem(Passage passage);
void notifyDataSetChanged();
}
|
package com.itheima.day_13.demo_03;
public interface Flyable {
void fly(String s);
}
|
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Vector;
public class GenerateVector {
public static Vector mVector()
{
String everything = "";
try {
Buf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.