text stringlengths 10 2.72M |
|---|
package thsst.calvis.configuration.model.errorlogging;
/**
* Created by Ivan on 1/29/2016.
*/
public enum InstructionInvalid{
invalidFilePath,
invalidFileParamterCount,
invalidFileNegativeCount,
invalidDuplicateFileRegisterDestinationParameter,
invalidFileNoSuchAddressingVariable,
invalidFileExceededParameterC... |
/*
* All rights Reserved, Copyright (C) Aisino LIMITED 2018
* FileName: CreateOrder.java
* Version: $Revision$
* Modify record:
* NO. | Date | Name | Content
* 1 | 2018年12月6日 | Aisino)JackWei | original version
*/
package com.aisino.receipt.util;
import java.util... |
import java.io.*;
import java.net.*;
import java.util.Scanner;
public class TcpClient {
public static void main(String[] args) {
if (args.length < 2) {
System.out.println("Usage: <host> <port>");
}
int port = Integer.valueOf(args[1]);
Scanner scanner = new Scanner(System.in);
String file;
int size;
S... |
package com.jim.multipos.ui.reports.debts;
import android.support.v4.app.Fragment;
import com.jim.multipos.config.scope.PerFragment;
import dagger.Binds;
import dagger.Module;
/**
* Created by Sirojiddin on 20.01.2018.
*/
@Module(
includes = DebtsReportPresenterModule.class
)
public abstract class DebtsRe... |
package programmers.level3;
import java.util.*;
class Network {
static int cnt;
public int solution(int n, int[][] computers) {
int answer = 0;
boolean[] visited = new boolean[n];
for (int[] target : computers)
System.out.println(Arrays.toString(target));
for (int i = 0; i < n; i++) {
... |
package com.example.flutter_module.host;
import android.content.Context;
import io.flutter.plugin.common.MessageCodec;
import io.flutter.plugin.platform.PlatformView;
import io.flutter.plugin.platform.PlatformViewFactory;
public class HJPlatformFactory extends PlatformViewFactory {
/**
* @param createArgsCod... |
package com.myapp.exception;
public class TargetAlreadyAttackedException extends RuntimeException {
public TargetAlreadyAttackedException(String message) {
super(message);
}
}
|
package cn.izouxiang.dao;
import cn.izouxiang.domain.CFProject;
import cn.izouxiang.dao.base.BaseMongoDao;
public interface CFProjectDao extends BaseMongoDao<CFProject>{
void addCFProjectRealAmount(String proId, int amount);
void setProjectStatus(String proId, int status);
}
|
package com.top.top.utils.timer;
import java.util.Timer;
import java.util.TimerTask;
/**
* 作者:ProZoom
* 时间:2018/5/2
* 描述:
*/
public class BaseTimerTask extends TimerTask {
private ITimerListener mITimerListener=null;
public BaseTimerTask(ITimerListener mITimerListener) {
this.mITimerListener = ... |
package me.themgrf.skooblock.island.permissions;
public class IslandVisitorPermissionSet {
private final boolean ALLOW_BLOCK_PLACING;
private final boolean ALLOW_BLOCK_BREAKING;
private final boolean ALLOW_CONTAINER_ACCESS;
private final boolean ALLOW_WORKBENCH_ACCESS;
private final boolean ALLOW_... |
package kr.or.ddit.basic;
import javax.swing.*;
/*
* 컴퓨터와 가위 바위 보를 진행하는 프로그램을 작성하시오.
*
* 컴퓨터의 가위 바위 보는 난수를 이용하여 구하고
* 사용자의 가위 바위 보는 showInputDialog()메서드를 이용하여 입력받는다.
*
* 입력시간은 5초로 제한하고 카운트다운을 진행한다.
* 5초동안 입력이 없으면 진 것으로 처리한다.
*
* 5초 안에 입력이 완료되면 승패를 출력한다.
*
* 예시)
* == 결과 ==
* 컴퓨터 : 가위
*... |
package com.tencent.mm.plugin.offline.ui;
import com.tencent.mm.g.a.ks;
import com.tencent.mm.sdk.b.b;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.sdk.platformtools.x;
class WalletOfflineCoinPurseUI$35 extends c<ks> {
final /* synthetic */ WalletOfflineCoinPurseUI lMe;
WalletOfflineCoinPurseUI$35(Wa... |
package com.tencent.mm.plugin.backup.backupmoveui;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.R;
import com.tencent.mm.bg.d;
import com.tencent.mm.sdk.platformtools.w;
class BackupUI$2 implements OnClickListener {
final /* synthetic */ ... |
package com.lec.ex09lib;
//new Book("890ㄱ-102나","자바","홍길동")
public class Book implements ILendable {
private String bookNo; // 책청구번호ex. 890 ㄱ-102나
private String bookTitle; // 책제목 ex.자바
private String writer; // 저자
private String borrower; // 대출인 (입력)
private String checkOutDate; // 대출일(입력)
private byte state;
... |
package es.utils.mapper.utils;
import es.utils.mapper.Mapper;
import es.utils.mapper.annotation.AliasNames;
import es.utils.mapper.converter.AbstractConverter;
import es.utils.mapper.holder.FieldHolder;
import es.utils.mapper.impl.object.DirectMapper;
import lombok.extern.slf4j.Slf4j;
import java.lang.reflec... |
package com.noteshare.common.filter;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
public final class RequestWrapper extends HttpServletRequestWrapper {
@SuppressWarnings("unused")
private String apostrophe = "'";
/** 可能存在风险... |
package medicalcentermanagement;
import com.mahadihasan.mc.gui.LogIn;
import javax.swing.UIManager;
/**
*
* @author MAHADI HASAN NAHID
*/
public class MedicalCenterManagement {
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(
... |
package com.xworkz.rental.utility.response;
import org.springframework.http.HttpStatus;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public class Response {
private String statusCode; // create status integer for user response
private String message; // create mess... |
package org.springframework.fom;
/**
*
* @author shanhm1991@163.com
*
*/
public enum State {
/**
* 初始化
*/
INITED("images/inited.png", "inited"),
/**
* 正在运行
*/
RUNNING("images/running.png", "running"),
/**
* 等待定时周期
*/
SLEEPING("images/sleeping.png", "waiting for next time"),
/**
* 正在停止
*... |
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.List;
//package Homework_Day3;
//import Homework_Day3.IntUtil;
public class LetterThruSubRoutine {
private static final IntUtil u = new IntUtil();
publ... |
package com.dvilson.gadsleaderboard;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerV... |
package com.xiaodao.system.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import com.xiaodao.system.mapper.SysMenuMapper;
import com.xiaodao.system.service.ISysMenuService;
import com.xiaodao.... |
package com.supconit.kqfx.web.fxzf.msg.entities;
import java.util.Date;
import hc.base.domains.OrderPart;
/**
* 告警信息实体类
* @author gaoshuo
*
*/
public class Msg extends hc.base.domains.StringId implements hc.base.domains.Orderable {
/**
*
*/
private static final long serialVersionUID = 698242157940644050... |
package com.sample.school.app;
import java.util.List;
import com.sample.school.service.SchoolService;
import com.sample.school.util.KeyboardUtil;
import com.sample.school.vo.Course;
import com.sample.school.vo.Dept;
import com.sample.school.vo.Prof;
import com.sample.school.vo.Reg;
import com.sample.school.vo.Student... |
/*
* Copyright (C) 2015 Miquel Sas
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is d... |
package Menu;
import java.awt.Graphics;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JPanel;
public class Logo extends JPanel{
public void paintComponent(Graphics g) {
try {
Image img = ImageIO.read(new File("Risk_logo.jpg"));
g.drawI... |
import java.io.File;
import java.io.IOException;
import org.apache.uima.cas.CAS;
import org.apache.uima.cas.CASException;
import org.apache.uima.collection.CollectionException;
import org.apache.uima.collection.CollectionReader_ImplBase;
import org.apache.uima.jcas.JCas;
import org.apache.uima.util.FileUtils;
import o... |
package com.spark.source;
import org.apache.spark.SparkConf;
import org.apache.spark.streaming.Duration;
import org.apache.spark.streaming.api.java.JavaDStream;
import org.apache.spark.streaming.api.java.JavaStreamingContext;
/**
* @fileName: HDFSSourceHandler.java
* @description: 读取hdfs数据
* @author: by echo huang... |
package com.example.comprale;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
impo... |
package com.hb.rssai.presenter;
import com.hb.rssai.constants.Constant;
import com.hb.rssai.view.iView.IOfficeView;
import java.util.HashMap;
import java.util.Map;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
/**
* Created by Administrator on 2017/10/3 0003.
*/
public class Of... |
package com.example.tutorialconexion;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import org.json.JSONException;
import org.json.JSONObject;
import android.os.AsyncTask;
impo... |
package fr.badblock.badkeys;
import java.sql.ResultSet;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import fr.badblock.badkeys.Request.RequestType;
import net.md_5.bungee.api.ChatColor;
public class BadKeyCommand implements Comman... |
class Solution {
public boolean canPermutePalindrome(String s) {
/*
map to store the frequency
if there are greater than 1 odd frequency characters, return false;
else return true;
**/
if (s == null || s.length() == 0) return true;
M... |
package com.anibal.educational.rest_service.comps.config;
import com.odhoman.api.utilities.config.AppConfig;
/**
* Configurador General de la aplicacion
*
* @author Jonatan Flores
*
*/
public class RestServiceConfig extends AppConfig {
/**
* Autogenerated UID
*/
private static final long serialVersionUID... |
package com.szcinda.express.dto;
import com.szcinda.express.RoleType;
import lombok.Data;
import java.io.Serializable;
@Data
public class UserCreateDto implements Serializable {
private String account;
private String password;
private String name;
private String email;
private RoleType role;
}
|
package com.lupan.HeadFirstDesignMode.chapter9_iteratorAndComposite.iterator;
/**
* TODO
*
* @author lupan
* @version 2016/3/24 0024
*/
public interface IteratorInterface<T> {
boolean hasNext();
T next();
}
|
package com.github.ezauton.core.pathplanning.purepursuit;
import com.github.ezauton.core.localization.sensors.VelocityEstimator;
/**
* Easy lookahead implementation given a speed. Takes in min speed, max speed, min lookahead, max lookahead and
* performs a linear interpolation.
*/
public class LookaheadBounds impl... |
package com.hqhcn.android.service.impl;
import com.hqh.android.dao.LogMapper;
import com.hqh.android.entity.Log;
import com.hqh.android.entity.LogExample;
import com.hqh.android.service.LogService;
import com.hqh.android.tool.LogType;
import org.apache.commons.lang.time.DateUtils;
import org.springframework.beans.fac... |
package de.rwth.i9.palm.persistence;
import java.util.List;
import java.util.Map;
import de.rwth.i9.palm.model.InterestProfile;
import de.rwth.i9.palm.model.InterestProfileType;
public interface InterestProfileDAO extends GenericDAO<InterestProfile>, InstantiableDAO
{
public List<InterestProfile> getAllInterestProf... |
package Networking.LowLevelAPIS.TCPIP.EchoServer;
import java.io.*;
import java.net.Socket;
public class Echoer extends Thread {
private final Socket socket;
public Echoer(Socket socket) {
this.socket = socket;
}
@Override
public void run() {
try {
BufferedReader rea... |
package com.stackroute.muzix.service;
import com.stackroute.muzix.model.Track;
import com.stackroute.muzix.repository.TrackRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
@Service
public class ... |
package com.duanxr.yith.midium;
import java.util.Stack;
import javafx.util.Pair;
/**
* @author 段然 2021/3/10
*/
public class DailyTemperatures {
/**
* Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to wait until a warmer temperat... |
package com.example.user.myapplication.lockscreen.receiver;
import android.app.KeyguardManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.PhoneStateListener;
import android.telephony.TelephonyManager;
import com.example.user.myapp... |
package com.moon.moon_thread.moonThread.threadSync;
/**
* @ClassName PushOrderProcess
* @Description: TODO
* @Author zyl
* @Date 2020/12/30
* @Version V1.0
**/
public class PushOrderProcess {
// 10个订单一起派发, 有100个司机,、
public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
... |
package com.codecow.common.vo.resp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* @author codecow
* @version 1.0 UPMS
* @date 2021/6/17 16:49
**/
@Data
public class HomeRespVO {
@ApiModelProperty(value = "用户信息")
private UserInfoRespVO userInfoRespVO;
... |
package no.hiof.larseknu.javafx.model;
import java.time.LocalDate;
public class Dyr {
private String navn, art;
private LocalDate fodselsDato;
private final int ID;
private static int idTeller = 100;
public Dyr(String navn, String art, LocalDate fodselsDato) {
this.navn = navn;
th... |
package interfaceTest;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class MyWindow2 implements ActionListener {
JLabel resul... |
package shopify.app.shopifyme.domain.entities;
import java.util.List;
public class WishList {
private List<Wish> items;
public List<Wish> getItems() {
return items;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("WishList{");
sb.append(... |
package issearchtree;
public class Solution {
public boolean isBST(TreeNode root) {
// Write your solution here.
return decide( root, Integer.MIN_VALUE, Integer.MAX_VALUE);
}
private boolean decide(TreeNode root, int min, int max){
if (root == null){
return true;
}
if (root.ke... |
package by.dt.boaopromtorg.repository;
import by.dt.boaopromtorg.entity.Shop;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ShopRepository extends MongoRepository<Shop,String>{
Shop findShopByAddress(String addres... |
package quiz12;
public class Computer {
//키보드, 마우스, 모니터 클래스를 저장하는 변수를 선언하세요
private KeyBoard k ;
private Mouse m ;
private Monitor mo ;
//기본생성자를 생성하고, 변수를 클래스로 초기화 하세요
public Computer(){
this.k =new KeyBoard();
this.m = new Mouse();
this.mo = new Monitor();
}
//모든 멤버변수를 받는 생성자
public... |
package Model.Connection;
import java.sql.*;
public class JDBC_conn {
private Connection con = null;
public boolean getConnection(String user, String pass) throws SQLException {
boolean conSucess = true;
// Connect to database
String DB_USER = user;
String DB_PASS = pass;
... |
package com.rx.rxmvvmlib.ui;
import android.os.Bundle;
public interface IBaseView {
/**
* 初始化根布局
*
* @return 布局layout的id
*/
int initLayoutId(Bundle savedInstanceState);
/**
* 初始化ViewModel的id
*
* @return BR的id
*/
int initVariableId();
/**
* 初始化界面传递参数... |
package de.fafeitsch.maze.domain;
public class ShortestPathFinder {
private final char[][] maze;
public ShortestPathFinder(char[][] maze) {
this.maze = maze;
}
private static CellList findShortestPath(Cell start, int endRow, int endCol) {
CellList queue = new CellList();
queu... |
package Search;
import java.io.File;
public class FileExample {
public static void main(String[] args) throws Exception{
System.out.println(File.separatorChar);
System.out.println(File.separator);
String s = "�������� \"name\" = \"Poll\"";
System.out.println(s);
File file1 = new File("c:\\work\\example.tX... |
package operations.commands.exceptions;
/**
* Thrown to indicate that a line of a DIMACS file has too many space separated arguments.
*/
public class ParseDIMACSTooManyArgs extends ParseDIMACSException {
private static final long serialVersionUID = 1L;
public ParseDIMACSTooManyArgs(int line) {
... |
package cn.leo.produce.decode;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.DecodeHintType;
import com.google.zxing.MultiFormatReader;
import java.util.Arrays;
import java.util.Collection;
import java.util.EnumMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* @descri... |
package com.flutterwave.raveandroid.zmmobilemoney;
import com.flutterwave.raveandroid.RavePayInitializer;
import com.flutterwave.raveandroid.ViewObject;
import com.flutterwave.raveandroid.rave_presentation.zmmobilemoney.ZmMobileMoneyContract;
import java.util.HashMap;
/**
* Created by hfetuga on 28/06/2018.
*/
pu... |
package io.confluent.se.poc.utils;
import java.util.Properties;
import org.apache.kafka.clients.producer.*;
import org.apache.avro.Schema;
import org.apache.avro.generic.GenericData;
import org.apache.avro.generic.GenericRecord;
import java.io.*;
import java.util.*;
import org.json.*;
public class PocData {
public... |
package persistenza.dao;
import business.cassa.Scontrino;
import business.inventario.Prodotto;
import exceptions.DatabaseException;
import exceptions.ElencaException;
import exceptions.ProdottoException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
... |
package com.ntil.habiture;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextV... |
package com.test.gurukul.pages;
import org.apache.log4j.Logger;
import org.openqa.selenium.WebDriver;
import org.testng.Assert;
public class GkBranchPage extends GkBasePage {
public GkBranchPage(WebDriver driver) {
super(driver);
}
private static Logger myLog = Logger.getLogger(GkBranchPage.class);
public St... |
package com.union.design.generator;
import freemarker.template.Configuration;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Objects;
public class FreeMarkerConfig {
public static Configuration getConfig() throws IOException {
Configuration cf... |
package com.tyss.javacloud.loanproject.exceptions;
@SuppressWarnings("serial")
public class FormReviewChoiceException extends RuntimeException {
public FormReviewChoiceException(String msg) {
super(msg);
}
}
|
package org.george.library;
import org.george.library.entities.Book;
import org.george.library.entities.Review;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
... |
package com.rofour.baseball.dao.user.bean;
import java.io.Serializable;
/**
* @ClassName: TbUserTypeBean
* @Description: 操作用户类型DTO
* @author ZhangLei
* @date 2016年3月25日 下午6:35:30
*
*/
public class UserTypeBean implements Serializable{
/**
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
*/
priv... |
package strategycustomburger;
public class HousemadeVeganVeggie implements BurgerCharges {
public HousemadeVeganVeggie()
{
}
@Override
public double BurgerCharge(double burgerprice) {
System.out.println("House made Vegan Veggie Charge");
double burgercharge = burgerprice + 3;
return burgercharge;... |
package rugal.westion.jiefanglu.core.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinCo... |
package com.example.nicolas4.nicolasminesweeper;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class welcome extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
import tester.Tester;
// represents a picture
interface IPicture {
// computes the width of this picture
int getWidth();
// computes the number of shapes in this picture
int countShapes();
// computes how deeply operations are nested in the construction of this picture
int comboDepth();
// reflects th... |
package com.example.myreadproject8.ui.presenter.book;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Build;
import android.os.Handler;
import android.os.Message;
import android.view.MenuItem;
import android.view.View;
import androidx.core.app.ActivityCompat;
import com.examp... |
package com.brunocalou.guitarstudio;
/**
* Created by bruno on 05/02/16.
*/
public class AudioProcessorException extends Exception {
public AudioProcessorException(String message) {
super(message);
}
public AudioProcessorException(String detailMessage, Throwable throwable) {
super(detail... |
package utils;
public class Log
{
public static void i(String str1, String str2)
{
System.out.println(String.valueOf(str1) + ": " + String.valueOf(str2));
}
public static void e(String str1, String str2)
{
System.err.println(String.valueOf(str1) + ": " + String.valueOf(str2));
... |
package com.zhonghuilv.shouyin.mapper;
import com.zhonghuilv.shouyin.common.CommonMapper;
import com.zhonghuilv.shouyin.pojo.ArticleType;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ArticleTypeMapper extends CommonMapper<ArticleType> {
} |
/**
* Write a description of interface BusinessClass here.
*
* @author (your name)
* @version (a version number or a date)
*/
public interface BusinessClass
{
/**
* The base fares and charges for business class passengers
*/
public static final int CAPETOWN_BASE_FARE = 1000;
pu... |
package com.wcy.netty.protocol.request;
import com.wcy.netty.protocol.Packet;
import lombok.Data;
import static com.wcy.netty.protocol.command.Command.WX_MESSAGE_REQUEST;
@Data
public class WxMessageRequestPacket extends Packet {
private String packetId;
private String message;
@Override
public By... |
package br.com.maikel.poc.bold.facebold.factory;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;
import br.com.maikel.poc.bold.facebold.entity.Post;
import br.com.maikel.poc.bold.facebold.response.PostResponse;
@Component
public class PostResponseFactory {
publi... |
public class Vehicle extends TaxableItem {
/** The cost of the vehicle to the dealer. */
private double dealerCost;
/** The amount the dealer marks up the price. */
private double dealerMarkup;
/**
* Constructs a new Vehicle, given dealer cost, dealer markup, and tax rate.
*
* @pa... |
/*
* Copyright 1995-2014 Caplin Systems Ltd
*/
package com.caplin.datasource;
public class PeerStatusEventImpl implements PeerStatusEvent
{
private final PeerStatus status;
public PeerStatusEventImpl(PeerStatus status)
{
this.status = status;
}
@Override
public Peer getPeer()
{
// TODO Auto-generated m... |
package jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import model.Student;
public class StudentJDBC {
public static void main(String[] args) throws ClassNotFoundException, SQLException {
// TODO A... |
package test.io;
import org.junit.Test;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
/**
* Created by maguoqiang on 2016/5/6.
* NIO测试
*/
public class NioDemo {
@Test
publ... |
package retrogene.discover;
import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import htsjdk.samtools.SAMFormatException;
import htsjdk.samtools.SAMRecord;
import htsjdk.s... |
package com.maia.bank.repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.maia.bank.domain.Banco;
@Repository
public interface BancoRepository extends JpaRepository<Banco, Long> {
Optional<Banco> findByNu... |
package com.budget.serviceImpl;
import com.budget.service.MyUserService;
public class MyUsersServiceImpl implements MyUserService
{
@Override
public void MyUSers()
{
// TODO Auto-generated method stub
}
}
|
package javabasico.aula15labs;
import java.util.Scanner;
/**
* @author Kim Tsunoda
* Objetivo Um posto está vendendo combustíveis com a seguinte tabela de descontos:
*/
public class Exercicio21 {
public static void main(String[] args) {
Scanner scan = new Scanner (System.in);
System.out.print... |
package net.adoptopenjdk.bumblebench.examples;
public final class LargeArrayGenerator {
public static long[] generate(long state, final long[] data)
{
state = (state & 0x1FFFFFFL) + 1L;
for (int i = 0; i < data.length; i++) {
data[i] = (state = 0xC6BC279692B5CC8BL - (state << 35 | s... |
package com.module.helpers;
import com.module.model.entity.*;
import javafx.embed.swing.SwingFXUtils;
import javafx.scene.image.Image;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.util.Units;
import org.apache.poi.xwpf.usermodel.ParagraphAlignment;
import org.apache.poi.xwpf... |
package tij.concurrents.part5;
import java.util.concurrent.TimeUnit;
public class Test1{
private Restaurant restaurant;
class WaitPerson{
public void run() throws InterruptedException {
synchronized (this){
while(restaurant.meal == null){ wait(); }
}
// ... |
package ioio.examples.hello;
import ioio.examples.hello.R;
import ioio.lib.api.exception.ConnectionLostException;
import ioio.lib.util.BaseIOIOLooper;
import ioio.lib.util.IOIOLooper;
import ioio.lib.util.android.IOIOActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.SeekBar;
impo... |
package br.com.engenharia;
public class Dimensao {
private float x;
public float getX() {
return x;
}
public void setX(float x) {
this.x = x;
}
public float getY() {
return y;
}
public void setY(float y) {
this.y = y;
}
public float getZ() {
return z;
}
public void setZ(floa... |
package rest.controller;
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.GetMapping;
import org.springframework.web.bind.annotation.RequestParam... |
package com.lanltn.homestay.applicationModule;
public class AppComponent {
}
|
package com.thoughtworks.rslist.repository;
import com.thoughtworks.rslist.dto.UserDto;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import javax.transaction.Transactional;
import java.util.Li... |
package com.hb.rssai.presenter;
import android.text.TextUtils;
import android.view.View;
import com.hb.rssai.bean.ResSubscription;
import com.hb.rssai.constants.Constant;
import com.hb.rssai.view.iView.IFindView;
import java.util.HashMap;
import java.util.Map;
import rx.android.schedulers.AndroidSchedulers;
import ... |
package com.gnomikx.www.gnomikx;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.design.widget.NavigationView;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.view.GravityCompat;
import... |
import java.util.*;
/**
* 632. Smallest Range
* So Hard -_-b
* 求多个整数数组列表中,每个数组取至少一个值,组成的最小数值范围
*/
class Solution {
public int[] smallestRangePointer(List<List<Integer>> nums) {
int minx = 0, miny = Integer.MAX_VALUE;
int[] next = new int[nums.size()]; // 遍历时指向每个list的指针
boolean flag = tr... |
package entities.pages.pepboys;
import entities.pages.BasePage;
import org.openqa.selenium.By;
public class PepBoysTrackingPage extends BasePage {
public boolean isPage() {
return isElementVisible(By.id("tracking"));
}
}
|
package com.vilio.plms.service.quartz;
import com.vilio.plms.service.base.BaseService;
/**
* Created by martin on 2017/8/28.
*/
public interface BmsSynchronizationBaseDataService{
public void execute() throws Exception;
}
|
package packone;
public class FirstClass {
int a,b;
public FirstClass(int a, int b) {
this.a = a;
this.b = b;
System.out.println(this.a + this.b);
}
}
|
package com.simbircite.demo.controller;
import java.io.IOException;
import java.io.InputStream;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Part;
import javax.validation.Valid;
import com.google.common.collect.Lists;
import com.simbircite.demo.form.Message;
import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.