text stringlengths 10 2.72M |
|---|
package Grupp1.Newton.FlightBookingSystem.models;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@Entity
public class Norwegian extends FlightCompany implements Serializable {
private static final long serialVersionUID = 238... |
package Utility;
import com.Healthcare.PropertiesFile;
public class ReadExcelData extends PropertiesFile{
public static void main(String[] args) {
ExcelDataConfig excel=new ExcelDataConfig("D:\\Workspace\\HealthcareDemo\\TestData\\DataExcel.xlsx");
//PropertiesFile pf=new PropertiesFile();
//pf.readP... |
package jdbctemplate;
import common.Student;
import org.springframework.jdbc.core.simple.ParameterizedBeanPropertyRowMapper;
import org.springframework.jdbc.core.simple.SimpleJdbcTemplate;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* Created by robin on 2017/7/31.
*/
public class StudentDaoImpl i... |
package listener;
import java.awt.Point;
import java.util.ArrayList;
import util.Enums.ColorMode;
import calibration.Calibration;
public interface RoiListener
{
public void roiEvent(int roi_ch1, int roi_ch2);
public void roiEvent(ArrayList<Point> ROIs);
public void roiEvent(String defaultPath);
}
|
package com.example.mauricio.simpleDagger2WithMockito;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.databinding.DataBindingUtil;
import com.example.mauricio.simpleDagger2WithMockito.databinding.ActivityMainBinding;
import javax.inject.Inject;
public class MainActivity ex... |
import java.util.ArrayList;
public class ListsofExceptions{
public static void main(String[] args){
ArrayList<Object> myList = new ArrayList<Object>();
myList.add(13);
myList.add("Hello World");
myList.add(48);
myList.add("Goodbey World");
for(int i = 0; i < myList.size(... |
package com.spark.collecteLait.Rest.Dto;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spark.collecteLait.model.entity.Agriculteur;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsC... |
package br.com.ocjp7.nio;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.DirectoryStream;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.LinkOption;
import java.nio.file.Path;
import java.nio.file.Paths;
public class... |
/*
* Copyright Verizon Media, Licensed under the terms of the Apache License, Version 2.0. See LICENSE file in project root for terms.
*/
package com.yahoo.cubed.model;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMo... |
package org.giddap.dreamfactory.leetcode.onlinejudge.implementations;
import org.giddap.dreamfactory.leetcode.commons.TreeNode;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
/**
*
*/
public class BinaryTreeLevelOrderTraversalIterativeBfsWithTwoQueueImpl {
... |
package ru.snake.tools.checkstyle.pattern;
import java.util.Map;
/**
* Common pattern interface. Instance of this class represents single header
* pattern like text string or date.
*
* @author snake
*
*/
public interface Pattern {
/**
* Returns length of matched with patter part of the line. If line string
... |
package no.hvl.dat100ptc.oppgave2;
import no.hvl.dat100ptc.TODO;
import no.hvl.dat100ptc.oppgave1.GPSPoint;
import static java.lang.Integer.*; // La til denne og
import static java.lang.Double.*; // Denne også
public class GPSDataConverter {
// konverter tidsinformasjon i gps data punkt til antall sekunder fra midna... |
package com.gaoshin.onsaleflyer.beans;
import java.io.File;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class PosterAsset {
private PosterId posterId;
private String assetName;
public PosterAsset() {
}
public PosterAsset(String assetName, PosterId posterId) {
this.assetName = as... |
package edu.mum.sonet.models.enums;
/**
* Created by Jonathan on 12/13/2019.
*/
public enum UserStatus {
ACTIVE, BLOCKED, BANNED
}
|
package org.squonk.services.cell;
import org.apache.camel.Body;
import org.apache.camel.CamelContext;
import org.apache.camel.Consume;
import org.apache.camel.Exchange;
/** Example consumer. Not used.
* Created by timbo on 27/01/16.
*/
public class Consumer {
@Consume(uri = "direct:inbound")
public void c... |
import java.util.ArrayList;
/**
* Write a description of class PostCommented here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class PostCommented extends Post
{
// Almacena el comentario del post
private String comentario;
// Almacena una coleccion de comen... |
package com.example.certificate_demo;
public class AuthenticationCancelError extends AuthenticationException {
static final long serialVersionUID = 1;
/**
* Constructs a new AuthenticationCancelError.
*/
public AuthenticationCancelError() {
}
/**
* Constructs a new Authentication... |
package com.sunjob.yudioj_springboot_framemark.controller;
import com.sunjob.yudioj_springboot_framemark.service.Auth2RoleService;
import com.sunjob.yudioj_springboot_framemark.vo.Auth2Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.spri... |
package de.hofuniversity.ejbbean.data.impl;
import de.hofuniversity.ejbbean.data.GoalGetterSummaryData;
/**
*
* @author Michael Jahn
*
*/
public class DefaultGoalGetterSummaryData implements GoalGetterSummaryData {
private int goalAmount;
private String playerName, teamName, teamIconURL;
@Over... |
package utilities;
/*
* 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 Anup
*/
public class EntUser {
private int userId;
private Stri... |
package com.moh.departments.fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android... |
package com.zhicai.byteera.activity.myhome.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.SectionIndexer;
import android.widget.TextView;
imp... |
package com.baytie.vo;
import com.sz.util.json.Alias;
import java.io.Serializable;
import java.util.List;
/**
* Created by YongJong on 09/29/16.
*/
public class RestaurantVO implements Serializable {
@Alias("restro_id")
private String id;
@Alias("status")
private String pstatus;
@Alias("restr... |
package com.bistel.YMA.lib;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public final class algo_const {
public static String WAFERID = "WaferID";
public static String RECORD_SEPERAT... |
package com.zantong.mobilecttx.weizhang.bean;
import com.zantong.mobilecttx.base.bean.Result;
import java.util.List;
/**
*
* @author zyb
*
* 违章查询结果
* 2017-05-08 17:50:15
* * * * *
* * * *
* * *
* * *
* * *
* *
*
*
* create at 17/5/8 下午5:50
*... |
package org.apache.hadoop.hdfs.server.namenode.persistance;
import java.io.IOException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataOutputStream;
import org.apache.hadoop.fs.FileSystem;
import org.ap... |
/*
* Copyright (c) 2009, Julian Gosnell
* 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 list ... |
// 코드명 : AlgoStudy 2021 프로그래머스 해시 level 1 (score : 50/50)
// 작성자 : 서민기
// 문제명 : 완주하지 못 한 선수
// 시작일 : 2021-01-03
// 종료일 : 2021-01-04
import java.util.ArrayList;
import java.util.Collections;
class programmers {
public static void main(String[] args) {
String[] participant = {"marina", "josipa", "nikola","vi... |
package com.ecjcoach.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.ecjcoach.daoimplementation.ECJ_Job_Opening_DAOImplementation;
import com.ecjco... |
package Comandos;
import Utils.Locations;
import org.bukkit.Location;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
/**
* Created by cristianvaleroabundio on 25/12/16.
*/
public class SetArena implements Comman... |
package com.teamdev.webapp1.model.product;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.hibernate.validator.constraints.NotEmpty;
import javax.persistence.*;
import javax.validation.constraints.Size;
/**
* Created with IntelliJ IDEA.
* User: alexander.serebriyan
* Date: 24.04.12
* ... |
package practice.leetcode.algorithm;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.ArrayDeque;
import java.util.Deque;
/**
* The type Merge two binary trees.
// Tree 1
// 1
// / \
// 3
//
// Tree 2
// 7
// / \
// 9
// ... |
package com.blackflagbin.kcommondemowithjava.mvp.model;
import com.blackflagbin.kcommon.base.BaseModel;
import com.blackflagbin.kcommon.http.transformer.DefaultTransformer;
import com.blackflagbin.kcommondemowithjava.common.entity.net.DataItem;
import com.blackflagbin.kcommondemowithjava.common.http.ApiService;
import... |
package learning;
import java.util.Arrays;
import java.util.List;
import java.util.OptionalInt;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class LambdaPractise {
public static void main(String[] args) {
List<String> names = Arrays.asList("Sam","Peter","Billing","Sam");
int[] f... |
import dataFactory.impl.ManagerMysqlDataHelper;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import po.ManagerPO;
import util.ManagerType;
import java.util.ArrayList;
import java.util.Map;
/**
* ManagerMysqlDataHelper Tester.
*
* @author <Authors name>
* @since <pre>十二月 7, 2016</pre>
*... |
/*
* Copyright 2002-2023 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.util.AbstractMap.SimpleEntry;
import java.util.LinkedList;
/** NFor.java
*
* Author: Greg Choice c9311718@uon.edu.au
*
* Created:
* Updated: 28/09/2018
*
* Description:
* STNode sub-class for NFOR rule
*
*/
public class NFor extends STNode
{
public NFor(LinkedList<Token> tokenLi... |
package edu.cricket.api.cricketscores.rest.scheduler;
import edu.cricket.api.cricketscores.task.EventStatusTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework... |
package crescendo.base.parsing;
import java.io.InputStream;
import java.io.IOException;
import java.util.Stack;
/**
* Provides an InputStream wrapper that provides a few extra methods used in Midi file parsing and allows pushing
* @author forana
*/
public class MidiInputStream
{
/** The wrapped strea... |
package com.app.UserIU;
import com.app.DBConnection;
import com.app.UserIU.ControlsUI.AddToPlaylistScreen;
import com.app.UserIU.ControlsUI.RemoveFromPlaylistScreen;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
imp... |
package com.ucas.algorithms.utils;
/**
* @author wjg
* @version 0.0.1
*
*/
public class ArrayPrinter {
/**
* 打印数组中的全部元素。
* @param arr 待打印的数组
*/
public static void print(int[] arr) {
System.out.print("[");
int i=0;
for (; i<arr.length-1; i++) {
System.out.print(arr[i] + ", ");
... |
package com.base.widget.sectionlist;
import android.widget.BaseAdapter;
public abstract class SectionAdapter extends BaseAdapter {
@Override
public Object getItem(int position) {
return null;
}
public static class SectionObj {
public String section = "";
}
}
|
package RogueM;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class ItemTest {
@Test
public void itemValidValues(){
Item t = new Item("axe", 0, 0, 0);
assertEquals("axe", t.getName());
assertEquals(0, t.getHealth());
as... |
package com.example.yao.threedtest;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DefaultItemAnimator;
imp... |
/*
* Copyright (c) 2008-2019 Haulmont.
*
* 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 agr... |
package com.easyway2in.mysqldbdemo;
import android.app.AlertDialog;
import android.content.Context;
import android.os.AsyncTask;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReade... |
package use_collection.use_set;
import java.util.HashSet;
import java.util.Set;
public class UseHashSet {
public static class A {
public boolean equals(Object obj) {
return true;
}
}
//类B的hashCode()方法总是返回1,但没有重写其equals()方法
public static class B {
public int hashCod... |
package dp;
/**
* 213. 打家劫舍 II
* https://leetcode-cn.com/problems/house-robber-ii/
*
* 因为第一家和最后一家也是挨着的,所以分别计算从[1,n-1]和[2,n]的结果取最大值
*/
public class Rob {
public int rob(int[] nums) {
int n = nums.length;
if (n == 1) {
return nums[0];
}
return Math.max(robFromRange(nu... |
package io.bryantcason;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import static org.junit.Assert.*;
public class PhoneBookSpec {
PhoneBook newarkPhoneBook;
ArrayList<String> numbers;
@Before
public void init() {
numbers = new ArrayList<String>();
n... |
package com.example.ivrrestfulservice.bo;
import java.util.List;
import org.springframework.stereotype.Service;
import com.example.ivrrestfulservice.vo.FileVO;
@Service
public interface IVRRestFulBO {
public String uploadFile(FileVO fileVO) throws Exception;
public FileVO fileDetails(String fileN... |
package com.foreignreader;
import android.os.Bundle;
import android.text.Html;
import android.widget.TextView;
import android.app.Activity;
public class AboutActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.ac... |
package com.meehoo.biz.core.basic.sql;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* 饼图的返回格式
* @author zc
* @date 2020-05-28
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class PieChartVO {
private String name;//
pr... |
package com.example.ccrecyclerview;
import android.content.Context;
import com.example.ccrecyclerview.base.CCRecyclerViewAdapt;
import com.example.ccrecyclerview.base.CCViewHolder;
import java.util.List;
/**
* Created by henryzheng on 2017/3/15.
*/
public class TestRecyclerAdapt extends CCRecyclerViewAdapt{
pub... |
package com.mpowa.android.powapos.apps.powatools;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Handler;
import android.util.AttributeSet;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.mpowa.android.powapos.apps.powatools.common.Cont... |
package net.maizegenetics.analysis.distance;
import net.maizegenetics.analysis.distance.Kinship.KINSHIP_TYPE;
import net.maizegenetics.dna.snp.GenotypeTable;
import net.maizegenetics.trait.SimplePhenotype;
import net.maizegenetics.plugindef.AbstractPlugin;
import net.maizegenetics.plugindef.DataSet;
import net.... |
package ch.mitti.methoden_polymorphie;
public class OpPlus extends Operation {
public OpPlus(){
}
public void doOperation(){
result = term1+term2;
}
}
|
package com.tacademy.board.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class HelloController implements Controller {
@Override
public String handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
String name =... |
package com.github.rosjava.android_apps.blind_guide;
import android.util.Log;
import com.github.rosjava.android_apps.blind_guide.data_manager.dataLoader;
import com.github.rosjava.android_apps.blind_guide.data_manager.dataLoaderRequest;
import com.github.rosjava.android_apps.blind_guide.data_manager.dataLoaderRespons... |
package com.virtusa.sai.dao;
public class LocationWithCoords {
private String location_name;
private String from_weather_date;
private String to_weather_date;
private Double latitude;
private Double longitude;
public Double getLatitude() {
return latitude;
}
public void setLatitude(Double latitude) {
this.lati... |
package com.async.service;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
/**
* @author 郑超
* @create 2021/5/15
*/
@Service
public class AsyncService {
@Async// 告诉springboot这个方法需要异步执行
public void hello() {
try {
Thread.sleep(3000);... |
package com.soft1841.set;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;
public class TreeSetTest {
public static void main(String[] args) {
//使用TreeSet创建Set集合对象
Set<Integer> set = new TreeSet<>();
//向Set添加元素
set.add(-5);
set.add(-8);
set... |
/*
Enum for types of map tiles, just to be able to hold it and not have to hold sprites
*/
package com.insertnamehere.map;
public enum TileType
{
GRASS1, GRASS2, GRASSFLOWER;
}
|
package com.croquis.crary.dialog;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
public class CraryInputDialog {
public static void selectSingle(Context context, int itemIds, DialogInterface.OnClickListener listener) {
selectSingle(context, context.... |
package com.design.factory.AbstractFactory;
public interface XSauce {
public String toString();
}
|
package com.jhfactory.aospimagepick.sample;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.text.format.Formatter;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.su... |
package com.bawei.seller.service;
import com.bawei.api.ProductRpc;
import com.bawei.api.domain.ProductRpcReq;
import com.bawei.entity.Product;
import com.bawei.entity.enums.ProductStatus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.... |
package com.thinkgem.jeesite.modules.sys.web;
import java.io.IOException;
import java.util.Collection;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.au... |
package com.bitlab.ui;
import com.bitlab.constant.CommandMap;
import java.util.stream.Stream;
/**
* Enum with all available command for user
* @author Jacek Giedronowicz
*/
public enum UserCommandMap {
VERSION("version"),
VERACK("verack"),
GETADDR("getaddr"),
GETDATA("getdata"),
ADDR("addr"),
... |
package com.pdd.pop.sdk.http.api.request;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.api.response.PddAdHistoryRtReportGetResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import com.pdd.pop.sdk.common.util.JsonUtil;
im... |
package Replica1;
import java.io.IOException;
import java.net.*;
import java.util.ArrayList;
import Sequencer.Port;
import Util.FailureHandling;
public class ReplicaManager {
public String replicaNumber;
public Integer sequenceNumber;
public ArrayList<Request> arrRequestToPerform;
public Boolean is... |
package online.lahloba.www.lahloba.ui.products;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.ViewModelProviders;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.ap... |
package com.example.q.project3;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
... |
package com.jokerkart.jokermenu;
import java.util.ArrayList;
import java.util.Iterator;
/**
* Created by btdays on 2/12/16.
*/
public class Organization {
/**
* An order representing a piece of content.
*
* {"id":"Vr2xr_zc8AAD4x5t",
"username":"me@ahmet.io",
"expires_at":"2016-02-16T10... |
package in.vamsoft.excersise2;
/*
* @author vignesh
*/
import java.util.*;
public class Utils {
public static String calmString(String speech) {
if (speech != null) {
speech = speech.replaceAll("!", "");
}
return(speech);
}
public static void calmAttendees(List<String> attendingParties) {
... |
package com.asgab.repository;
import java.util.List;
import com.asgab.entity.RechargeRecord;
import com.asgab.repository.mybatis.MyBatisRepository;
@MyBatisRepository
public interface RechargeRecordMapper {
RechargeRecord get(String id);
List<RechargeRecord> getByEnterpriseId(String enterpriseId);
}
|
package Entidad;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
public class Evaluaciones implements Serializable {
@Id
@Column(name = "fecha")
private String fecha;
float calidad;
... |
package com.andtinder.interfaces;
public interface OnCardClickListener {
void OnClickListener();
}
|
package com.arjun.repositories;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import com.arjun.models.Reimbursements;
import com.arjun.util.MyConnectionFactory;
pub... |
package com.soldevelo.vmi.tester.http.test;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public interface HttpTest {
String BINARY_OCTET_STREAM = "binary/octet-stream";
void doTest(HttpServletRequest request, HttpServletResponse res... |
package getterandsetter;
public class GetterandSetter {
public static void main(String[] args) {
Human first = new Human();
Human second = new Human();
Human third = new Human();
first.setName("Adrienn");
second.getName();
... |
package TCPServerNIO;
import org.luan.LUANObject;
import GuiServer.MainFrameServerGUI;
import GuiServer.ShutDownServerProtocol;
import GuiServerSelection.MainFrameServerSelection;
public class NioServer implements Runnable {
private CommunicationProtocolTcpNIO com = null;
private AvalibleOperations o... |
package BatailleNavale;
import javax.swing.*;
import java.awt.*;
import java.util.Collection;
/**
* Created by fabie_000 on 05/05/2017.
*/
public class Fenetre extends JFrame {
private Model model;
private JButton jbRules, jbBack, jbPlay, jbQuit, jbEye, jbEyeVB, jbDone, jbTransition, jbMenu;
... |
package com.youthlin.example.stream;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.function.BiConsumer;
impor... |
package com.example.android.courtcounter_project2;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.method.LinkMovementMethod;
import android.view.Menu;
import android.view.MenuItem;
import android.vie... |
package trimble;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Problem1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Map<Integer,List<Integer>>opMap=new HashMap<Integer,List<Integer>>();
for(int i=0;i<3;i++) {... |
package com.stacksimplify.restservices.controllers;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
im... |
package com.lmx.jredis.storage;
import lombok.Getter;
/**
* Created by limingxin on 2017/12/8.
*/
public enum DataTypeEnum {
KV("kv"), LIST("list"), HASH("hash");
@Getter
String desc;
DataTypeEnum(String desc) {
this.desc = desc;
}
}
|
package com.lenovohit.elh.treat.vom;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.lenovohit.elh.base.model.Doctor;
import com.lenovohit.elh.treat.model.Diagnosis;
import com.lenovohit.elh.treat.model.TreatDetail;
/**
* 看诊
* @author Administrator
*
*/
public class DiagnosisVom extends TreatDetail... |
package com.mingrisoft;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
imp... |
package com.github.andlyticsproject.db;
import android.net.Uri;
import java.util.HashMap;
public class CommentsTable {
public static final String DATABASE_TABLE_NAME = "comments";
public static final Uri CONTENT_URI = Uri.parse("content://"
+ AndlyticsContentProvider.AUTHORITY + "/" + DATABASE_TABLE_NAME);
... |
package com.sap.als.persistence;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
@Entity
@NamedQueries({
@NamedQuery(name = "SMST... |
package nodream.nodream.phantoms;
import nodream.nodream.config.Config;
import org.bukkit.entity.EntityType;
import org.bukkit.plugin.Plugin;
public class EntityGet {
public static EntityType getEntityTypeConfig(Plugin plugin) {
String name = Config.getMobName();
switch (name) {
case ... |
package guhao.controller;
import guhao.entity.Message;
import guhao.exception.GlobalException;
import guhao.service.ChatSessionService;
import guhao.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.u... |
import java.util.Random;
import java.util.Scanner;
/**
* Starter code for the "Guess My Number" exercise.
*/
public class GuessStarter {
public static void main(String[] args) {
// pick a random number
Random random = new Random();
Scanner in = new Scanner(System.in);
int number ... |
package com.edasaki.rpg.commands.builder;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.edasaki.core.players.Rank;
import com.edasaki.core.utils.RMessages;
import com.edasaki.rpg.PlayerDataRPG;
import com.edasaki.rpg.commands.RPGAbstractCommand;
pub... |
package com.test;
import com.test.base.ListNode;
import com.test.base.Solution;
/**
* 两个点
*
* @author YLine
*
* 2018年10月23日 下午8:31:56
*/
public class SolutionA implements Solution
{
@Override
public ListNode middleNode(ListNode head)
{
ListNode slow = head;
ListNode fast = head;
... |
import java.io.File;
import javax.swing.JFileChooser;
import java.io.FileNotFoundException;
import java.util.Scanner;
import java.io.PrintWriter;
import java.util.ArrayList;
public class AnimalCrossingGuide{
private String osPath;
private ArrayList<String> saveFile;
public AnimalCrossingGuide(){
try{
... |
package com.example.fileshare.exception;
public class StorageFileNotFoundException extends Throwable {
}
|
package com.trump.auction.web.vo;
import java.math.BigDecimal;
import java.util.List;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@ToString
public class BaseAuctionInfoVo {
@Getter @Setter private Integer aucti... |
/*
* 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 the license at
* https://jwsdp.dev.java.net/CDDLv1.0.html
* See the License for the sp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.