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.
*/
package morpion;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Toolkit;
import ... |
package nom.hhx.cache.impl;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import nom.hhx.cache.Key;
public abstract class ObjectCacheAdapter<KEY extends Key, OBJECT> extends CacheAdapter<KEY,OBJECT>
{
public ObjectCacheAdapter( int cachesize )
{
super( cachesize );
cac... |
import java.util.Scanner;
import java.util.Arrays;
public class exe10 {
public static void main(String[] args) {
Scanner leia = new Scanner (System.in);
int i, total = 0, soma, pessoas, maiorIdade = 0, menorIdade = 0, mulheres = 0, j = 0;
double media=0, menorSalario=0 ;
System... |
package com.example.mrmadom2;
import java.util.ArrayList;
import androidx.recyclerview.widget.DiffUtil;
public class ContactDiffCallback extends DiffUtil.Callback {
private ArrayList<Contact> mOldList;
private ArrayList<Contact> mNewList;
public ContactDiffCallback(ArrayList<Contact> oldList, ArrayList... |
/*
* Created by Angel Leon (@gubatron), Alden Torres (aldenml)
* Copyright (c) 2011-2014, FrostWire(R). 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, either versio... |
package controllers;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import models.ModelOperaciones;
import views.ViewOperaciones;
/**
*
* @author Lupita
*/
public class ControllerOperaciones {
... |
package com.ferreusveritas.growingtrees.worldgen;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Random;
import javax.imageio.ImageIO;
import com.ferreusveritas.growingtrees.util.Circle;
import net.minecraft.w... |
package api.algorithm.selection;
import java.util.ArrayList;
import java.util.List;
import api.RandomNumbers;
import api.model.individual.Individual;
public class ProbabilisticTournament extends DeterministicTournament {
public ProbabilisticTournament(int numberOfSelected) {
super(numberOfSelected,2);
}
prot... |
/*
* @(#)$Id: MinimumEscapeHandler.java,v 1.2 2005/09/10 19:07:39 kohsuke Exp $
*/
/*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the "License"). You may not use this file except
* in compliance with the License.
*
* You can obtain a copy of th... |
package com.netcracker.repositories;
//import org.springframework.data.repository.CrudRepository;
import com.netcracker.entities.Complain;
import com.netcracker.entities.Group;
import com.netcracker.entities.Route;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRep... |
/**
* @author Michael Avnyin
* THIS IS A GUI APPLICATION OF MY DATABASE
*
* ************IMPORTANT***************
*
* MyDbGui IS A SEPERATE JAVA FILE
* IF YOU WOULD LIKE TO VIEW DATABASE IN GUI PLEASE RUN SEPERATLEY
* ALSO IT IS IMPORTANT TO BUILD A PATH TO THE JAR FILE LABELED "rs2xml" LOCATED IN THE FOLDE... |
package com.epam.meal.parser.dom;
import com.epam.meal.parser.entity.Meal;
import com.sun.org.apache.xerces.internal.parsers.DOMParser;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import java.io.IOException;
import java.util.ArrayList;
import ... |
import java.util.Scanner;
public class cMatrix
{
private Scanner scan;
private int matrixA[][];
private int matrixB[][];
private int matrixC[][];
private int size;
public cMatrix()
{
scan = new Scanner(System.in);
System.out.println("Matrix Creation");
System.out.println("\n Wpisz rozmiar macierzy M ... |
package com.unicom.patrolDoor.service;
import com.unicom.patrolDoor.entity.Recommend;
import java.util.List;
import java.util.Map;
/**
* @Author wrk
* @Date 2021/4/13 9:56
*/
public interface RecommendService {
void insertRecommend(Recommend recommend);
Recommend selectByQuestionId(int questionId);
... |
package by.epam.kooks.action.post;
import by.epam.kooks.action.constants.Constants;
import by.epam.kooks.action.manager.Action;
import by.epam.kooks.entity.Customer;
import by.epam.kooks.action.get.AbstractBasket;
import by.epam.kooks.action.manager.ActionResult;
import by.epam.kooks.entity.Basket;
import by.epam.kook... |
package org.kiworkshop.jdbctemplate;
import org.kiworkshop.dao.MemberDao;
import org.kiworkshop.domain.Member;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.core.namedparam.SqlParameterSource;
import org.springframework.jdbc.core.simple.SimpleJdbcInsert;
import... |
package com.karya.controller;
import java.security.Principal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stere... |
package dto.logs;
public class ErroresDTO {
private String tituloError;
private String mensajeError;
public String getMensajeError() {
return mensajeError;
}
public void setMensajeError(String mensajeError) {
this.mensajeError = mensajeError;
}
public String getTituloError() {
return tituloError;
}
... |
package com.gamzat;
/**
* Created by Гамзат on 30.05.2017.
*/
public class Bender {
public static void main (String [] args ){
double Bart;
Bart = 460.128;
System.out.println("Я хочу ");
System.out.println(Bart);
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 Business.StructuralHealthMonitor;
import Business.Architecture.Architecture;
import java.util.Date;
/**
*
* @author User
*... |
package com.example.learningspring.controller;
import com.example.learningspring.data.entity.Room;
import com.example.learningspring.data.repository.RoomRepository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.b... |
package examples;
import mdb.Model;
import java.sql.SQLException;
public class Course extends Model {
public static final String table = "courses";
public static final String[] attributes = {"id", "name"};
public Course() {
super();
}
public Course(int id) throws SQLException {
... |
package com.health.system.domain.dto;
import com.health.system.domain.SysPost;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 岗位表 sys_post
*
* @author zq
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SysPostDto extends SysPost {
/**
* 用户是否存在此岗位标识 默认不存在
*/
private boolea... |
package com.dalong;
import org.springframework.stereotype.Service;
@Service
public class ThirdLogin implements UserLogin{
@Override
public String login(String name, int age) {
return "third";
}
}
|
package com.wxt.designpattern.flyweight.test02.example1;
import java.util.*;
/**
* 供测试用,在内存中模拟数据库中的值
*/
public class TestDB {
/**
* 用来存放单独授权数据的值
*/
public static List<String> colDB = new ArrayList<>();
/**
* 用来存放组合授权数据的值,key为组合数据的id,value为该组合包含的多条授权数据的值
*/
public static Map<String,String[]> mapDB = new Ha... |
package com.revature.controller;
import javax.servlet.http.HttpServletRequest;
import com.revature.ajax.ClientMessage;
import com.revature.model.Employee;
import com.revature.repository.EmployeeRepositoryjdbc;
import com.revature.service.EmployeeServiceAlpha;
public class EmployeeInformationControllerAlpha implement... |
package at.fhv.itm14.fhvgis.persistence.dao.interfaces.raw;
import at.fhv.itm14.fhvgis.domain.raw.RawWaypoint;
import at.fhv.itm14.fhvgis.persistence.dao.interfaces.IGenericDao;
import at.fhv.itm14.fhvgis.persistence.exceptions.PersistenceException;
import java.util.List;
import java.util.UUID;
public interface IRaw... |
package vangthao.app.introandroiddemo;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.widget.TextView;
public class SimpleBundleDemoActivity extends AppCompatActivity {
@Ov... |
package com.mattcramblett.primenumbergenerator;
import java.util.Arrays;
import java.util.List;
/**
* Base class for tests to hold useful constants for testing the system
*/
public abstract class AbstractTest {
protected static final List<Integer> SMALL_PRIMES = Arrays.asList(2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 3... |
package model;
import lombok.Getter;
public class Category{
@Getter private Integer id;
@Getter private String name;
public Category(){
id = 0;
name = "";
}
public Category(Integer id, String name){
this.id = id;
this.name = name;
}
}
|
package org.rs.core.beans.model;
import org.rs.core.beans.RsStrategyInfo;
public class RsStrategyInfoModel extends RsStrategyInfo{
private String msmc;
public String getMsmc() {
return msmc;
}
public void setMsmc(String msmc) {
this.msmc = msmc;
}
}
|
package old.Data20180408;
import java.util.ArrayList;
import java.util.LinkedList;
import old.DataType.TreeNode;
public class BinaryTreePreorderTraversal {
/**
* 二叉树的先序遍历(迭代)
* @param root
* @return
*/
public ArrayList<Integer> preorderTraversal(TreeNode root) {
ArrayList<Integer> list = new Arra... |
package online.lahloba.www.lahloba.ui.cart;
import androidx.lifecycle.ViewModelProviders;
import android.content.Intent;
import androidx.databinding.DataBindingUtil;
import android.location.Location;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import a... |
package crecepalabra;
import java.io.*;
public class Palabra {
private static int MAX_LETRAS = 20;
private static char letra = ' '; // Se inicializa a espacio
private char letras[];
private int longitud;
public Palabra() {
letras = new char[MAX_LETRAS];
longitud = 0;
}
p... |
package com.zhongyp.spring.demo.annotation;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class SpringDemo {
public static void main(String args[]){
ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-demo-a... |
package EmmaD;
import java.util.*;
import javax.swing.*;
/**
* Created by rodrique on 3/12/2018.
*/
public class RunClientAccount
{
public static void main(String[] args) {
Client fnbClient = new Client();
Account fnbAccount = new Account();
String name = JOptionPane.showI... |
package com.ledungcobra.scenes;
import com.ledungcobra.anotations.BackButton;
import com.ledungcobra.applicationcontext.AppContext;
import com.ledungcobra.entites.Course;
import com.ledungcobra.entites.CourseRegistrationSession;
import com.ledungcobra.entites.Semester;
import com.ledungcobra.entites.StudentAccount;
im... |
package com.lab3;
public class demo1 {
public static void main(String[] args) {
int number = 7;
for(int i = 1 ; i<=10;i++) {
System.out.println(number+ " x " + i + "=" +number*i);
}
int j = 1;
while(j<=10) {
System.out.printf("%d x %d = %d %n",number,j,number*j);
j++;
}
int k =1;
do... |
/*
* Copyright 2002-2018 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 ir.sadeghzadeh.mozhdeh.utils;
import android.Manifest;
import android.content.Context;
import android.content.SharedPreferences.Editor;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationManager;
import android.os.Build.VERSION;
import android.os.Environ... |
package cdp.participacao;
import java.io.Serializable;
/**
* O enum representa os tipos de cargo de um Profissional.
*
* @author Yuri Silva
* @author Tiberio Gadelha
* @author Matheus Henrique
* @author Gustavo Victora
*/
public enum Cargo implements Serializable {
DESENVOLVEDOR("desenvolvedor"),
GERENTE(... |
package com.epam.university.spring.model;
import com.epam.university.spring.domain.Show;
import com.epam.university.spring.domain.User;
public class TenthTicketDiscountStrategy implements DiscountStrategy {
public Long execute(User user, Show show) {
int size = user.getTickets().size();
if (size % 10 == 0 && si... |
package com.javarush.task.task08.task0823;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Омовение Рамы
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader... |
package com.tabs.tabs.database;
// method to set Plant notes
// method to increment droplets by N
// method to decide status
// method to calc days since last water
// method to init new plant (e.g. set notes as "" by default)
import androidx.room.Database;
import androidx.room.RoomDatabase;
@Database(entities = {P... |
/*
* Copyright 2002-2019 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... |
public class WaitNotifyTest
{
public static void main(String[] p)
{
Lock lock = new Lock();
ThreadA ta = new ThreadA("a", lock);
ThreadB tb = new ThreadB("b", lock);
ta.start();
tb.start();
}
}
class Lock
{
}
class ThreadA extends Thread
{
Lock lock;
ThreadA(String name, Lock lock)
{
this.setNam... |
package com.onlinetest.athenahealth;
import java.util.Stack;
public class BracketBalanceCheck {
public static void main(String[] args) {
String values[] = { "{}[]()", "{[}]}" };
String[] res = braces(values);
for (int i = 0; i < res.length; i++) {
System.out.println(res[i]);
}
}
private final static... |
package revolt.backend.mapper;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.NullValueCheckStrategy;
import revolt.backend.dto.MechmodDto;
import revolt.backend.entity.Mechmod;
import java.util.List;
@Mapper(componentModel = "spring", uses = {MechmodMa... |
package ui;
import java.awt.Graphics;
import java.awt.Point;
import javax.swing.JPanel;
public class JPanelHelpNext extends JPanel implements Runnable{
private static final long serialVersionUID = 1L;
private JMainFrame jMainFrame;
Point[] points=new Point[]{new Point(34,105),new Point(414,105)};
... |
/* Copyright 2015 Esri
*
* 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,... |
/**
* This package provides support for client HTTP
* {@link io.micrometer.observation.Observation}.
*/
@NonNullApi
@NonNullFields
package org.springframework.http.client.observation;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;
|
package com.twp.baseline;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org... |
package com.test.base;
/**
* You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operated through *, /, +, -, (, ) to get the value of 24.
Example 1:
Input: [4, 1, 8, 7]
Output: True
Explanation: (8-4) * (7-1) = 24
Example 2:
Input: [1, 2, 1, 2]
Output: False
Note:
The divis... |
package plugins.fmp.fmpTools;
import java.awt.Color;
import java.util.ArrayList;
import icy.image.IcyBufferedImage;
import plugins.fmp.fmpSequence.SequenceVirtual;
public class ImageOperations {
private SequenceVirtual seq = null;
private ImageOperationsStruct opTransf = new ImageOperationsStruct();
priv... |
package com.puneragroups.punerainvestmart;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.StrictMode;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.... |
package handlers;
import packets.data.Organisation;
import database.DataBase;
import services.*;
import java.io.*;
import java.net.*;
import java.nio.channels.ClosedSelectorException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
im... |
package com.soldevelo.vmi.communication;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.commons.lang.StringUtils;
import javax.annotation.PreDestroy;
import javax.jms.Connection;
import javax.jms.JMSException;
import javax.jms.Session;
public abstract class Gateway {
private Connection ... |
package com.example.faisal.repositories;
import com.example.faisal.models.User;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends Base<User, Long> {
// Add custom methods to be included in this repo
}
|
package compiler.virtualMachine.Visitor;
import compiler.nodes.*;
import compiler.virtualMachine.VirtualMachine;
public class NodeVisitor implements Visitor{
public Action node;
VirtualMachine vm;
public NodeVisitor(VirtualMachine virtualMachine){
this.vm = virtualMachine;
}
public Action getNode() {
re... |
package dsp;
public class MyLList {
int count = 0;
node head = null;
class node {
int data;
node next = null;
node (int i) {
data = i;
}
}
public void insert(int key) {
count++;
if(head == null) {
head = new node(key);
return;
}
node q = head;
node p = head;
while(p != null) {
... |
/*
* Copyright 2002-2018 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 com.sun.org.apache.xpath.internal.SourceTree;
public class Main {
public static void main(String[] args) {
Figure Square1 = new Figure(8,5);
Figure Square2 = new Figure(12,5);
Figure Square3 = new Figure(12,5);
Figure Rectangle2 = new Figure(4,5);
Figure Recta... |
package io.mosip.tf.t5.cryptograph.model;
import lombok.Data;
@Data
public class StatusEvent {
private String id;
private String requestId;
private String timestamp;
private String status;
private String url;
}
|
package com.zxt.compplatform.skip.entity;
public class MenuSetting {
public String ioc;
public String style;
public String event;
public String url;
public String text;
public String id;
public String menuLayout;
public String formUrl;
public String getMenuLayout() {
return menuLayout;
}
public void setM... |
/*
* (c) 2009 Thomas Smits
*/
package de.smits_net.tpe.vererbung5;
public class Klasse {
int i;
}
|
package com.prep.quiz83;
import java.util.Random;
//Shuffle an array with equal probability of generating any of the possible permutations
public class Drill10 {
public static void main(String[] args){
int[] input={1,2,3,4,5};
for(int i=0;i<10;i++){
shuffle(input);
//shuffle2(in... |
package ua.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler;
import org.... |
/*
* 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 dto;
import java.sql.Date;
/**
*
* @author hienl
*/
public class HistoryDTO {
private String historyID;
private S... |
package com.intentsg.service.tour.model;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import javax.persistence.*;
@Entity
@Table(name = "tours")
@Component
@Scope("prototype")
public class Tour {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)... |
/**
*/
package iso20022.impl;
import java.lang.reflect.InvocationTargetException;
import java.util.Collection;
import java.util.Map;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.co... |
package jarjestaminen.ui;
import jarjestaminen.ui.Commands;
import java.util.Arrays;
import java.util.Random;
public class SuoritusTestit {
public static void suoritusTestitSuorita(int pituus) {
System.out.println("Kouluarvosanat: ");
System.out.println("");
SuoritusTestit.kouluarvosanat... |
package Pro461.HammingDistance;
public class Solution {
public static void main(String[] args) {
System.out.println(hammingDistance(1, 4));
}
/**
* 计算x和y的二进制不同内容的位数, 实际将x和y取异或, 求出异或后的数有多少个1
*
* @param x
* @param y
* @return
*/
public static int hammingDistance(int... |
package com.freakybyte.movies.data;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.freakybyte.movies.data.tables.FavoriteEntry;
import com.freakybyte.movies.data.tables.MovieEntry;
import com.freakybyte.movies.data.tables.Popu... |
/*
* 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 BO;
import DAO.ConnectionFactory;
import DAO.DAOCarrinho;
import DAO.DAOPedido;
import PO.carrinho;
import java.sql.Connection... |
@Local
public interface gestionUsagerLocal {
public usager addUsager(int idUser, string psw) throws userAlreadyExistsException;
public usager identify(int iduser, String psw) throws userNotFoundException;
}
|
package com.wangban.yzbbanban.test_updatadownload.update;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.util.Log;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.net.HttpURLConnection;
import java.net.URL;
import jav... |
package common.util;
public class Log4jLogger implements Logger {
private org.apache.log4j.Logger logger;
public Log4jLogger(org.apache.log4j.Logger logger) {
this.logger = logger;
}
public void debug(String message) {
logger.debug(message);
}
public void info(String message) {
logger.info(message);
}... |
/*
* 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 model.bean.user;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
impo... |
package com.crmiguez.aixinainventory.entities;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.hibernate.annotations.ColumnDefault;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.c... |
package com.dongh.baselib.mvp;
import android.content.Intent;
import android.support.v4.app.Fragment;
import android.view.View;
import com.dongh.baselib.R;
public class BaseFragment<T extends BasePresenter> extends Fragment implements BaseView<T>{
private T mBasePresenter;
protected BaseActivity context = nu... |
package com.mr.pojo;
/**
* Created by Lenovo on 2019/4/29.
*/
public class testtwq {
public static void main(String[] args) {
System.err.println(1);
}
}
|
package com.citibank.ods.persistence.pl.dao.rdb.oracle;
import com.citibank.ods.persistence.util.CitiStatement;
import java.sql.PreparedStatement;
import java.sql.Timestamp;
import java.util.Date;
import com.citibank.ods.common.connection.rdb.ManagedRdbConnection;
import com.citibank.ods.common.dataset.DataSet;... |
package com.bairuitech.anychat;
public class AnyChatDefine {
// 消息通知类型定义
static final int WM_GV = 1224;
static final int WM_GV_CONNECT = WM_GV + 1;
static final int WM_GV_LOGINSYSTEM = WM_GV + 2;
static final int WM_GV_ENTERROOM = WM_GV + 3;
static final int WM_GV_MICSTATECHANGE = WM_GV + 4;
static final in... |
package com.soldevelo.vmi.ex;
public class PacketParseException extends Exception {
public PacketParseException(String message) {
super(message);
}
public PacketParseException(Exception cause) {
super(cause);
}
public PacketParseException(String message, Exception cause) {
... |
package com.example.demo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
... |
package de.amr.games.pacman.model.world;
import java.util.Objects;
import de.amr.games.pacman.lib.V2i;
/**
* A portal is a tunnel end that is connected to the tunnel end on the opposite
* side of the world.
*
* @author Armin Reichert
*/
public class Portal {
public final V2i left; // x == -1
... |
package com.hfjy.framework.net.socket;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.slf4j.Logger;
import com.google.gson.JsonObject;
import com.hfjy.framework.c... |
package servlet;
import bbdd.Sala;
import bbdd.Sesion;
import bbdd.Proxy;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
... |
/**
* Project
Name:market
* File Name:BillMysqlImpl.java
* Package
Name:com.market.mysql.impl
* Date:2020年4月29日下午5:40:57
* Copyright (c) 2020,
277809183@qq.com All Rights Reserved.
*
*/
/**
* Project Name:market
* File Name:BillMysqlImpl.java
*
Package Name:com.market.mysql.impl
* ... |
package PA165.language_school_manager;
import PA165.language_school_manager.Dao.CourseDao;
import PA165.language_school_manager.Dao.LectureDao;
import PA165.language_school_manager.Dao.LecturerDAO;
import PA165.language_school_manager.Entities.Course;
import PA165.language_school_manager.Entities.Lecture;
import PA165... |
/*
* 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.awt.*;
import java.util.*;
import javax.swing.*;
import java.awt.event.*;
/**
*
* @author Sammy Guergachi <sguergachi at... |
package com.infohold.elh.base.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.comm... |
package winkelman.powerswitch;
import android.view.View;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by eric on 8/21/16.
*/
public interface IConnectionEventListener {
public void onEventCompleted(JSONObject result, View triggeringView) throws JSONException;
public void onEvent... |
package br.gov.dataprev.caged.captacao.negocio.exceptions;
public class CompetenciaAtualException
extends BusinessException
{
private static final long serialVersionUID = -2111305047876794506L;
public CompetenciaAtualException(String message)
{
super(message);
}
}
|
package com.portal.util;
import com.portal.bean.Databean;
import net.sf.json.JSON;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
/**
* Cr... |
package com.j1902.shopping.pojo;
public class OrderFrom {
private String orderNumber;
private String orderTime;
private Item item;
private Integer itemNumber;
private double moneys;
private String countMethod;
private String countSat;
private Integer countId;
private Integer orderId... |
package com.sjquechao.cashier.presenter.PCore;
import com.sjquechao.cashier.bean.UserBean;
import com.sjquechao.cashier.model.api.Api;
import com.sjquechao.cashier.model.callback.AppResponse;
import com.sjquechao.cashier.presenter.IView.ILoginView;
/**
* Created by Administrator on 2017/2/26.
*/
public class PLogi... |
package DataStructures.binarysearch;
/**
* Created by senthil on 1/9/16.
*/
public class FindMax {
/**
* array is increasing and then decreasing find max in it
* 5, 12, 15, 4, 3, 2 ,1
* 4, 5, 6, 7, 2, 1 ,0
* @param a
* @return
*/
public int findmax(int a[]) {
if (a == ... |
package dataset;
public class DatasetDocument {
private int id;
private String title;
private String category;
private String text;
private Datasets dataset;
private int indexId;
public int getIndexId() {
return indexId;
}
public void setIndexId(int indexId) {
this.indexId = indexId;
}
public int g... |
package com.arpit.equityposition.utilities;
/**
* Enum of the valid Sides.
* @author : Arpit
* @version 1.0
* @since : 23-Jun-2020
*/
public enum ValidSides {
BUY,SELL;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.