text stringlengths 10 2.72M |
|---|
package com.pay.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author Lee Yarbin
*/
public class LoggerUtil {
private static Logger thisLogger = LoggerFactory.getLogger(LoggerUtil.class);
/**
* 统一所有的运行时异常的处理机制。
* @param e 传递一个运行时异常,可以包含信息。
* @param logger 要进行记录的日志对象
... |
package com.bfchengnuo.security.demo.web.async;
import lombok.Data;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.async.DeferredResult;
import java.util.HashMap;
import java.util.Map;
/**
* 用于两个线程之间的数据传递, 使用 DeferredResult 的方式
*
* @see AsyncController
* @author C... |
package org.proyectofinal.gestorpacientes.controler;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import org.proyectofinal.gestorpacientes.modelo.Modelo;
import org.proyectofinal.gestorpacientes.modelo.ModeloPaciente;
import org.pro... |
/**
*
*/
package com.gzone.ecommerce.service.impl;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StringReader;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.util.Array... |
package crypt;
import exceptions.*;
import util.Crypt;
import util.Stopwatch;
import javax.crypto.*;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.security.InvalidAlgorithmParameterException;
import java.securi... |
package com.acounting.dao;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import com.accounting.connectionClass.Helper;
import com.accounting.models.Payabless;
public class PayablesDAO {
private SessionFactory session=Helper.getSess... |
package com.lukian.creditmicroservice.entity;
import com.lukian.creditmicroservice.dto.CustomerDTO;
import lombok.*;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
public class Customer {
private int creditId;
private String firstName;
private String pesel;
private String surname;//t... |
package org.elasticsearch.hadoop.rest.bulk.handler;
import java.io.InputStream;
import java.util.Collections;
import java.util.List;
import org.elasticsearch.hadoop.handler.impl.BaseExceptional;
import org.elasticsearch.hadoop.util.BytesArray;
import org.elasticsearch.hadoop.util.FastByteArrayInputStream;
/**
* Enc... |
package ru.kappers.convert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.junit.MockitoJUnitRunner;
import ru.kappers.model.dto.leon.CompetitorLeonDTO;
import ru.kappers.model.leonmodels.CompetitorLeon;
import java.util.Arrays;
import java.util.List;
impor... |
package ru.allfound.accountpurchases.services;
import android.content.ContentProvider;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.net.Uri;
import android.support.anno... |
package de.jmda.gen.java;
import de.jmda.gen.Generator;
/**
* Import statements look like <code>import x.y.z.T;</code> where x.y.z.T is the
* fully qualified name of type T. Import statements can also define imports for
* static fields or static methods.
*
* @author rwegner
*/
public interface ImportStatementGe... |
package com.tencent.mm.af;
import com.tencent.mm.model.bx;
import java.io.Serializable;
public class c$d implements Serializable {
int dQY = 0;
boolean dQZ = true;
boolean dRa = false;
long dRt = 0;
long endTime = 0;
int pid = 0;
long startTime = 0;
final void a(int i, long j, long j2... |
package calendar;
/**
* This class provides a basic set of test cases for the
* CalDay class.
*/
import org.junit.Test;
import static org.junit.Assert.*;
import java.util.Calendar;
import java.util.GregorianCalendar;
public class CalDayTest {
/**
* Test constructors and iterator
*/
@Test
public void ... |
package com.scottehboeh.glc.forms;
import com.scottehboeh.glc.managers.UserManager;
import com.scottehboeh.glc.objects.ObjectUser;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.util.UUID;
/**
* C... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
package com.tencent.mm.plugin.walletlock.gesture.ui;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.Intent;
import android.os.Bundle;
import android.os.Looper;
import android.os.SystemClock;
import android.view.KeyEvent... |
package com.services.utils.file.obj;
import java.io.*;
/**
* Object输出对象
*
*/
public class ObjectWriter {
/** 输出流 */
private ObjectOutputStream oos;
/**
* 构造一个Object输出对象
*
* @param fileName
* 文件名
* @throws IOException
*/
public ObjectWriter(String fileName) throws IOException {
this... |
/*
* created 14.08.2006
*
* Copyright 2009, ByteRefinery
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* $Id$
... |
package micro.catalogos.controllers;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.s... |
package edu.hust.mr.MultipleOutputs;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.lib.MultipleTextOutputFo... |
package com.cyy.naak.beans;
import java.io.Serializable;
/**
* Created by naak on 15/6/18.
*/
public class DetailBean implements Serializable{
public int ccid;
public String title;
private String ccsid;
private String type;
private String org_url;
private String key;
private String ep;... |
package com.serenskye.flickrpaper.helper;
import android.os.Environment;
import android.util.Log;
import java.io.*;
import java.nio.channels.FileChannel;
/**
* Created by IntelliJ IDEA.
* User: seren
* Date: 28/08/12
* Time: 17:29
*/
public class Files {
public static void copyFile(File src, File dst) throws ... |
package com.gmail.khanhit100896.foody.home;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
im... |
/*
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
package com.jim.multipos.data.db.model.unit;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.DaoException;
import org.greenrobot.greendao.annotation.ToMany;
import com.jim.multipos.data... |
public class QuickSort {
public static void quickSort(int[] input) {
int n=input.length;
qsort(input,0,n-1);
}
public static void qsort(int input[],int s,int e) {
if(s>=e)
return;
int a=input[s];
int count=s;
for(int i=s+1;i<=e;i++) {
... |
package net.sf.ardengine.rpg.multiplayer;
import com.google.gson.JsonObject;
import net.sf.ardengine.rpg.multiplayer.messages.DeltaStateMessage;
import net.sf.ardengine.rpg.multiplayer.messages.JsonMessage;
/**
* Interface for Nodes synchronized by ANetworkCore.
*/
public interface INetworkedNode {
class Store... |
package BattleShipRMI;
public class OutputView {
public void outputChar(String string){
System.out.print(string);
}
public void outputValue(String string){
System.out.println(string);
}
}
|
import java.util.LinkedList;
import java.util.ListIterator;
public class Test22 {
// teste si les listes l1 et l2 peuvent être melangées par le riffle pour donner l3 (sans modifier les deux listes)
static boolean fromRiffle(LinkedList<Integer> l1, LinkedList<Integer> l2, LinkedList<Integer> l3) {
// si l3 est vid... |
package fr.bodysplash.bwish.web;
import java.util.HashMap;
import java.util.Map;
import org.restlet.data.Form;
import org.restlet.data.MediaType;
import org.restlet.ext.freemarker.TemplateRepresentation;
import org.restlet.representation.Representation;
import org.restlet.resource.Get;
import org.restlet.resource.Pos... |
package ru.otus.outside.utils;
import mockit.Mock;
import mockit.MockUp;
import ru.otus.outside.exeptions.IORuntimeException;
import java.io.BufferedReader;
import java.io.IOException;
import static ru.otus.outside.utils.IOHelper.getBufferedReaderFromString;
public class IOHelperTestHelper
{
public static void ... |
package com.tutorial.basics.classes;
public class Golfer {
public static void main(String[] args) {
Golfer golf = new Golfer();
golf.callMe();
PlaysGolf pg = new Golfer().new PlaysGolf();
}
class PlaysGolf {
String name;
}
public void callMe(){
}
} |
package com.smile2sm.mq;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.smile2sm.config.MQConfig;
import com.smile2sm... |
package com.example.kcroz.joggr;
public interface AsyncResponse {
void processRun(int runID);
} |
/**
*
*/
package com.huawei.cloudstorage.web.controller;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import com.huawei.cloudstorage.dal.modelDo.UserInfo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.s... |
import java.io.*;
/** SequentialFileReader implements input of strings, ints, and doubles from
a sequential file. */
public class SequentialFileReader extends TextReader // see Fig. 11, Ch. 9
{ private BufferedReader reader; // holds the address of the file
/** Constructor SequentialFileReader constructs... |
/*
* @project: (Sh)ower (R)econstructing (A)pplication for (M)obile (P)hones
* @version: ShRAMP v0.0
*
* @objective: To detect extensive air shower radiation using smartphones
* for the scientific study of ultra-high energy cosmic rays
*
* @institution: University of California, Irvine
* @department... |
package com.tencent.mm.g.a;
public final class nj$a {
public int action;
public String appId;
public String bHF;
public String bWQ;
public int bYq;
public String bYr;
public int msgType;
public int scene;
}
|
package com.tencent.mm.plugin.honey_pay.a;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.b.a;
import com.tencent.mm.network.q;
import com.tencent.mm.protocal.c.bun;
import com.tencent.mm.protocal.c.buo;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.wallet_core.c.h;
public final class n exten... |
package mg.egg.eggc.compiler.libegg.base;
import java.util.Enumeration;
import java.util.Vector;
import mg.egg.eggc.compiler.libegg.type.Resolveur;
public class TDS_ACTION extends Vector<ENTREE> {
private static final long serialVersionUID = 1L;
protected boolean unreachable;
private Resolveur resolveur;
pub... |
package com.example.ashvant.stock;
import java.util.Comparator;
/**
* Created by ashvant on 11/28/17.
*/
public class SymbolComparator implements Comparator<FavouriteData> {
@Override
public int compare(FavouriteData o, FavouriteData t1) {
return o.getSymbol().compareTo(t1.getSymbol());
}
}
|
package com.espendwise.manta.util.arguments;
import java.io.Serializable;
public interface Argument<T> extends Serializable {
public T get();
}
|
public class superkey {
int num=10565;
}
|
package com.wong.amelia.dailybingwallpaper.model;
import android.graphics.Bitmap;
/**
* Created by amelia on 5/10/16.
*/
public class LocalWallpaperInfo {
Bitmap wallpaper = null;
String describption = null;
String date = null;
boolean inUse = false;
public boolean isInUse() {
return in... |
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAccessType;
@XmlAccessorType(XmlAccessType.FIELD)
public class ExcelHiddenColumnConfig {
private Map<String,String[]> TPNHiddenColumnConfig = null;
private Map<String,String[]> e... |
public class NoOfUniquePaths {
public static int uniquePaths(int m, int n) {
int[][] dp = new int[m][n];
dp[m-1][n-1] = 1;
getPath(0, 0, m ,n, dp);
return dp[0][0];
}
static int getPath1(int row, int col, int m, int n, int[][] dp, int[][] og) {
if(dp[row][col] != 0)... |
package com.puxtech.reuters.rfa.RelayServer;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import org.apache.commons.l... |
package com.fansolomon.Creational.AbstractFactory.HolidayTheme.Factory.impl;
import com.fansolomon.Creational.AbstractFactory.HolidayTheme.Components.Building;
import com.fansolomon.Creational.AbstractFactory.HolidayTheme.Components.Bullet;
import com.fansolomon.Creational.AbstractFactory.HolidayTheme.Components.impl... |
package com.projetoTecnico.projetoTecnico.repository;
import com.projetoTecnico.projetoTecnico.model.Cliente;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ClienteRepository extends JpaRepository<Cliente, Long> {
Client... |
public class Main {
public static void main(String[] args) {
Singleton tony = Singleton.getSingletonInstance("Tony Stark");
Singleton steve = Singleton.getSingletonInstance("Steve Rogers");
// ricardo y steve son referencias a un único objeto de la clase Singleton
... |
package com.bozhong.lhdataaccess.infrastructure.dao.impl;
import com.bozhong.lhdataaccess.domain.BasicDepartmentDO;
import com.bozhong.lhdataaccess.domain.HospitalDO;
import com.bozhong.lhdataaccess.domain.HospitalWardDO;
import com.bozhong.lhdataaccess.infrastructure.dao.HospitalDAO;
import com.bozhong.lhdataaccess.i... |
package com.example.slumsurvey;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.p... |
package com.appdear.client;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import com.appdear.client.service.Constants;
import com.appdear.client.R;
public class MoreAboutActivityNoNet extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super... |
package org.sqlflow.parser;
import java.util.ArrayList;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
// ParseResult contains the parsing result of ParseAndSplit
class ParseResult {
// SQL statements accepted by the parser
ArrayList<String> Statements;
// Position where parser raise error... |
package banking.exceptions;
public class InsuffcientFundsException extends Exception {
public InsuffcientFundsException() {
}
public InsuffcientFundsException(String arg0) {
super(arg0);
}
public InsuffcientFundsException(Throwable arg0) {
super(arg0);
}
public InsuffcientFundsException(String arg... |
package com.bytedesk.ui.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import androidx.appcompat.app.AppCompatActivity;
... |
package com.epam.bar.util;
import java.util.Locale;
import java.util.ResourceBundle;
/**
* The class used to localize content in the server
*
* @author Kirill Karalionak
* @version 1.0.0
*/
public class LocalizationMessage {
private LocalizationMessage() {
}
/**
* Localize string.
*
*... |
package com.fleet.grpc.server.service;
import com.fleet.grpc.common.BooleanResponse;
import com.fleet.grpc.common.UserRequest;
import com.fleet.grpc.common.UserResponse;
import com.fleet.grpc.common.UserServiceGrpc;
import io.grpc.stub.StreamObserver;
import net.devh.boot.grpc.server.service.GrpcService;
/**
* @auth... |
package week1.day1homework;
public class MyCalculator {
public static void main(String[] args) {
// TODO Auto-generated method stub
Calculator MyCalc=new Calculator();
int addition=MyCalc.add(2,4);
System.out.println(addition);
int subtraction=MyCalc.sub(4,2);
System.out.println(subtraction);
int multip... |
package aula12;
import java.util.Iterator;
public class MyList<T extends Object> {
private class VectorIterator implements Iterator{
private int index;
VectorIterator() {
indice = 0;
}
@Override
public boolean hasNext() {
return (index < indice);
}
@Override
public Ob... |
package com.example.v3.concurrent;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
/**
* ScheduledExecutorService 和 Timer对比
* (建议使用ScheduledExecutorServiceTest代替Timer)
*
* Timer定时任务
*
* task1每隔2秒执行
* task2任务应该没隔1秒执行,实际情况确不是
*
* 同一个Timer实例运行多个Timer... |
package com.example.onlineshop.view.Adapter;
import android.content.Context;
import android.os.Build;
import android.text.Html;
import android.text.Spanned;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
import androi... |
package J2EE.mvcPatterns;
import cloneDemo.Things;
public class StudentController {
private Student model;
private StudentView view;
public StudentController(Student model, StudentView view) {
this.model = model;
this.view = view;
}
public void setStudentName(String name){
... |
package com.ibm.ive.tools.japt.out;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.util.Date;
import java.util.jar.JarFile;
import java.util.jar.JarOutputStream... |
package com.kobotan.android.Vshkole.adapters;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.kobotan.android.Vshkole.activities.BookActivity;
import com.kobotan.android.Vshkole.entities.Entity;
import com.kobotan.and... |
package step._08_Basic_Math_01;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
/* date : 2021-07-22 (목)
* author : develiberta
* number : 02775
*
* [단계]
* 08. 기본 수학 1
* 수학 문제로 수학적 사고력을 길러 봅시다.
* [제목]... |
package net.sssanma.mc.data.user.itembox;
import net.minecraft.server.v1_7_R4.IInventory;
import net.minecraft.server.v1_7_R4.NBTTagCompound;
import net.sssanma.mc.ECore;
import net.sssanma.mc.data.user.UserLoadException;
import net.sssanma.mc.data.user.rank.UserFunctionLimitedException;
import net.sssanma.mc.utility.... |
package exemplos;
import java.util.TreeSet;
public class Exemplo03 {
public static void main(String[] args) {
TreeSet<Integer> arvore = new TreeSet<>();
int [] numeros ={2,4,1,6,3,7,9,5,2,0,5,3,2,5,8,7,8}; //arvore de busca não aceita repetições.- Vetor de numeros.
//percorre da posi... |
package cn.sh.ideal.util;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Base64;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.Obj... |
package ru.Makivay.sandbox.tests;
import org.apache.pdfbox.multipdf.PDFMergerUtility;
import org.apache.pdfbox.pdmodel.PDDocument;
import ru.Makivay.sandbox.Constants;
import ru.Makivay.sandbox.utils.Counter;
import ru.Makivay.sandbox.utils.FileLoader;
import ru.Makivay.sandbox.utils.PdfToolbox;
import java.io.*;
imp... |
package utils;
import dataStructures.Pair;
import functions.Function;
public class Fitness {
public static double compute(Function f, Pair params) {
double output=f.output(params);
if(output>=0d)
return 1d/(1d+output);
else
return 1+Math.abs(output);
}
}
|
package com.example.hereapi_example;
import com.here.android.mapping.FragmentInitListener;
import com.here.android.mapping.InitError;
import com.here.android.mapping.Map;
import com.here.android.mapping.MapFactory;
import com.here.android.mapping.MapFragment;
import com.here.android.mapping.MapMarker;
import android... |
package com.example.retrofitgetput.data.remote;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class RetrofitBuilder {
private static TestApi instance;
private RetrofitBuilder(){}
public static TestApi getInstance(){
if(instance==null){
insta... |
package com.example.cnit355.minhw;
import android.content.Context;
import android.provider.MediaStore;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import a... |
/*
* 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 pe.gob.onpe.adan.controller.step2;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonE... |
package com.tencent.mm.g.a;
public final class ft extends com.tencent.mm.sdk.b.b {
public a bOq;
public b bOr;
public static final class b {
public String path;
}
public ft() {
this((byte) 0);
}
private ft(byte b) {
this.bOq = new a();
this.bOr = new b();
... |
package example.Test;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;
import example.Pages.FirstPage;
import example.Pages.Methods;
import example.Pages.Search;
import example.Pages.SetUp;
import io.appium.java_client.AppiumDriver;
public class Test_Cases extends SetUp{
... |
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class moveWildCardTest {
// @Before
// public void setUp() {
//
// }
//
// @After
// public void tearDown() {
// testPlayer = null;
// board = null;
// }
@Test
pub... |
package People;
import javax.swing.*;
public class ICUPatients extends Patients{
public ICUPatients(){
setName();
setRoom();
}
public String getName(){
return(name);
}
public String setName(){
name = JOptionPane.showInputDialog("What is the patients name?");
return name;
}
pu... |
package com.lins.myzoom.service;
import com.lins.myzoom.pojo.Blog;
import com.lins.myzoom.pojo.BlogQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
import java.util.Map;
public interface BlogService {
Blog getBlog(Long id);
Blog getAn... |
/*******************************************************************************
* Copyright 2020 Grégoire Martinetti
*
* 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://ww... |
package chap12.sec06.exam05_wait_notify;
public class ConsumerThread extends Thread{
private DataBox db;
public ConsumerThread(DataBox db) {
this.db = db;
}
@Override
public void run() {
for(int i = 0; i < 20; i++) {
db.getData();
}
}
}
|
package com.javarush.task.task14.task1406;
/**
* Created by Rostislav on 15.03.2017.
*/
public class RussianHen extends Hen {
@Override
public int getCountOfEggsPerMonth() {
return 22;
}
public String getDescription()
{
return "Моя страна Россия " + "я несу " + this.getCountOfEgg... |
/*
Written in 2015 by Sebastiano Vigna (vigna@acm.org)
To the extent possible under law, the author has dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
See <http://creativecommons.org/publicdomain/zero/1.0/>... |
package assignment;
import java.io.Console;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
i... |
package com.sogeti.upm.dao;
import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;
import com.sogeti.upm.model.Admin;
@Repository
public class AdminDAOImpl extends BaseDAO implements AdminDAO {
@Override
public Admin getAdmin(String loginId, ... |
import java.util.Scanner;
public class ZeroSum {
/**
* @param args
*/
public static void main(String[] args)
{
int[] input1 = new int[10];
int[] input2 = new int[10];
int counter1 = 0;
int counter2 = 0;
Scanner keyboard = new Scanner(System.in);
while(counter1 != 10)
{
... |
package com.media2359.mediacorpspellinggame.game.typeE;
import android.app.Fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMe... |
package com.rs;
import java.math.BigInteger;
import com.rs.game.WorldTile;
//import com.rs.utils.Utils;
public final class Settings {
public static final String SERVER_NAME = "OSCScape";
public static final int PORT_ID = 43595;
public static final int CLIENT_BUILD = 718;
public static final int CUSTOM_CLIENT_BU... |
package chart;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import javax.swing.*;
import javax.swing.border.TitledBorder;
public class Select extends JFram... |
@javax.xml.bind.annotation.XmlSchema(namespace = "http://schema.ws.highdeal.com/")
package com.cnk.travelogix.custom.mappingtable.maintain;
|
package com.tencent.mm.ui.chatting.b;
import com.tencent.mm.pluginsdk.permission.a;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.ui.base.h.c;
class x$1 implements c {
final /* synthetic */ x tQP;
x$1(x xVar) {
this.tQP = xVar;
}
public final void ju(int i) {
switc... |
package sarong.discouraged;
import sarong.LightRNG;
import sarong.RandomnessSource;
import sarong.ThrustAltRNG;
/**
* An interesting idea for an RNG algo, LanyardRNG is a simplified, non-splittable version of TwinLinear (which appears
* to be designed to replace the JDK's splitmix64 algorithm used in SplittableRand... |
package main;
import java.util.ArrayList;
import java.util.List;
public class Usuario {
String ciudad;
List<Atuendo> atuendos = new ArrayList<Atuendo>();
GeneradorDeSugerencias generadorDeSugerencias;
ServicioDeClima servicioDeClima;
public void agregarAtuendo(Atuendo atuendo){
this.atue... |
package com.cjc.framework.core.response;
import java.util.List;
/**
* @Author: chengjunchao
* @Date: 2018/11/23 16:38
* @Description: 分页页面返回
*/
public class PageResponse<T> {
/**
* 总条数
*/
private Integer total;
/**
* 行内容
*/
private List<T> rows;
}
|
package de.jmda.app.xstaffr.common.service.jpa.util;
import static org.junit.Assert.assertNotNull;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
imp... |
/*
* Copyright 2011 frdfsnlght <frdfsnlght@gmail.com>.
*
* 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 appl... |
package com.mpa.cursomc.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.mpa.cursomc.domain.Endereco;
@Repository
public interface EnderecoRepository extends JpaRepository<Endereco , Integer>{
}
|
/*
* 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 com.itesm.services;
import com.itesm.classes.Categorias;
import com.itesm.classes.Delito;
import com.itesm.classes.Delitos;
im... |
package com.hx.service.impl;
import com.hx.dao.SysLogMapper;
import com.hx.entity.SysLog;
import com.hx.model.MainDataModel;
import com.hx.model.SysLogDataModel;
import com.hx.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ja... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.