text stringlengths 10 2.72M |
|---|
package com.belhomme.alexandre.sudokuandroid.objects;
import java.util.Objects;
public class Cellule {
private int x;
private int y;
private int valeur;
private boolean readOnly = false;
public Cellule(int x, int y) {
this.x = x;
this.y = y;
this.valeur = 0;
}
pub... |
package com.mysql;
import java.sql.SQLException;
import java.util.List;
import javax.sql.DataSource;
import org.apache.commons.dbcp2.BasicDataSource;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanListHandler;
import org.apache.commons.dbutils.handlers.ColumnListHandler... |
package com.tuyenmonkey.tlist.ui;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.tuyenmonkey.tlist.R;
import com.tuyenmonkey.tlist.base.BaseFragment;
import org.greenrobot.eventbus.E... |
package com.codecool.movieorganizer.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import org.hibernate.annotations.NaturalId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import java.util.HashS... |
package com.Study.day1;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
public class FindElementDay06 {
WebDriver wb;
//查找页面元素id
@Test
public void OpenChrome... |
package ch.ethz.geco.t4j.obj.base;
public interface Closable {
/**
* Returns whether the object is still open or not. When an object was closed
* this often means that it cannot be modified anymore.
*
* @return whether the object is still open or not.
*/
Boolean isOpen();
}
|
package com.lenovohit.hwe.pay.exception;
import java.io.PrintWriter;
import java.io.StringWriter;
/**
* 交易异常记录,包括交易码,错误级别,以及异常信息
* <p>异常码组成规则说明:异常码由8位数字组成,第1位代表错误级别,第2-4位代表模块编号,第5-8位为错误编号</p>
* <p>一级级别,错误级别说明:9-"ERROR", 4-"WARN", 1-"INFO", 0-"DEFAULT" 默认"0"</p>
* <p>二级业务,业务模块说明:000-"系统错误", 100-"支付业务异常", 900-"其他错误... |
import java.util.Scanner;
/**
* 입력받은 10진수를 2~36진수로 기수 변환하여 나타냄
*/
public class DoIt_Q8 {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int no; //변환하는 정수
int cd; //기수
int dno; //변환 후의 자릿수
char[] cno = new char[32]; // 변환 후 각 자리의 숫자를 넣어두는 문... |
package insa;
public class Insa {
private String name;
public void setName(String name)
{
this.name=name; //나중에 인자가 객체로 넘어올 수 있다..//setter injection
}
public String insaGo(String str)
{
return this.name+" 님\n"+str;
}
}
|
package com.infoworks.lab.client.jersey;
import com.infoworks.lab.exceptions.HttpInvocationException;
import com.infoworks.lab.rest.breaker.CircuitBreaker;
import com.infoworks.lab.rest.models.Message;
import com.infoworks.lab.rest.models.QueryParam;
import com.infoworks.lab.rest.template.HttpInteractor;
import com.in... |
package com.soa.domain;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@Getter
@RequiredArgsConstructor
public enum Power {
POWER_1(1),
POWER_2(2),
POWER_3(3);
private final Integer intValue;
}
|
package com.pshc.cmg.controller;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort.Direction;
import org.springframework.data.web.PageableDefault;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import ... |
package practices.written;
/**
* ÒøÐлµÕË
*/
import java.util.Scanner;
public class BankBadDebts {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
String[] strs = str.split(" ");
long n = Long.parseLong(strs[0]);
... |
import dataFactory.impl.OrderMysqlDataHelper;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import po.OrderEvaluationPO;
import po.OrderPO;
import java.util.Map;
import static org.junit.Assert.assertEquals;
/**
* OrderMysqlDataHelper Tester.
*
* @author <Authors ... |
package org.nhnnext.web;
import java.util.List;
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.OneToMany;
@Entity
public class... |
package com.cssl.oop.demo05;
//计算器类
/*
* 根据用户选择运算符,进行运算并返回结果
*/
public class JiQuanQi {
public void add(int num1, int num2) {
System.out.println("运算结果为:" + (num1 + num2));
}
public void add(int num1, double num2) {
System.out.println("运算结果为:" + (num1 + num2));
}
public void jian(int n... |
/*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.example.onix_android.Models;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.onix_android.Interfaces.ItemClickListener;
import com.example.onix_... |
package com.docker.annotations;
import java.lang.annotation.*;
@Target(value = {ElementType.METHOD})
@Retention(value = RetentionPolicy.RUNTIME)
@Documented
public @interface PeriodicTask {
//业务自行指定,每个任务type固定,最好带上项目标识
public String type();
//间隔时间(单位:秒)
public int period() default 0;
// 第一次执行时间 ... |
package com.atakan.app.converter;
import org.apache.tomcat.util.codec.binary.Base64;
import com.vaadin.server.ExternalResource;
import com.vaadin.spring.annotation.SpringComponent;
import com.vaadin.ui.Image;
@SpringComponent
public class Convert {
public Convert() {
}
public Image bytesToResour... |
package com.liujc.codeencapsulation;
import android.app.Application;
import com.liujc.commonlibrary.AppContext;
import com.liujc.commonlibrary.ApplicationAsLibrary;
import com.liujc.httplib.HttpBaseContext;
import com.liujc.modulea.ApplicationA;
import java.util.ArrayList;
import java.util.List;
/**
* 类名称:MainApp... |
package com.Memento.phone;
/**
* Created by Valentine on 2018/5/11.
*/
public class Client {
public static void main(String[] args){
PhoneOriginator phone = new PhoneOriginator();
phone.setName("hello");
phone.setNumber("123");
phone.show();
PhoneCaretaker pcaretaker = new... |
package com.wenyuankeji.spring.dao.impl;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;
import com.wenyuankeji.spring.dao.IBaseConfig... |
abstract class LibraryBook extends Book
implements Comparable<LibraryBook>{
private String callNumber;
public LibraryBook(String newAuthor, String newTitle, String newISBN,
String newcallNumber){
super(newAuthor, newTitle, newISBN);
callNumber = newcallNumber;
}
public boolean setAut... |
package MapTEST;
import java.util.LinkedList;
public class MapTest {
LinkedList<Integer> queue=new LinkedList();
public void put(int data)
{
this.queue.addLast(data);
}
public int get()
{
return this.queue.removeFirst();
}
public boolean isEmpty()
{
return this.queue.isEmpt... |
package com.goldenasia.lottery.data;
import com.android.volley.Request;
import com.goldenasia.lottery.base.net.RequestConfig;
import com.google.gson.annotations.SerializedName;
/**
* 追号订单详情
* Created by Alashi on 2016/1/21.
*/
@RequestConfig(api = "?c=game&a=traceDetail", method = Request.Method.GET)
public class ... |
package com.examples.io.generics.boundedtypeparameters.multiplebounds;
public class Dog extends Animal {
@Override
void show() {
System.out.println("Im dog and my sound is");
sound();
}
@Override
public void sound() {
System.out.println("Bark!");
}
}
|
import java.util.*;
import java.io.*;
public class Cross {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
//Scanner in = new Scanner(System.in);
Scanner in = new Scanner(new File("cross.dat"));
int N = in.nextInt(); in.nextLine();
for (int idx = 0; idx < N; ... |
package br.com.formsoft.bean;
import java.util.List;
import javax.faces.bean.ManagedBean;
import br.com.formsoft.interfaces.Cadastravel;
import br.com.formsoft.modelo.Produto;
@ManagedBean
public class ProdutoBean implements Cadastravel<Produto> {
private Produto produto;
public ProdutoBean() {
this.produto =... |
package my.app.apitrialrun2;
import androidx.appcompat.app.AppCompatActivity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;
import java.io.IOException;
import java.io.InputStream;
publ... |
package com.training.rettiwt.service.api;
import javax.transaction.Transactional;
import java.util.List;
public interface Service<Entity, Id> {
@Transactional
void save(Entity entity);
Entity findById(Id id);
List<Entity> findAll();
@Transactional
void update(Id id, Entity entity);
@T... |
package gui.form;
import java.io.Serializable;
/**
* This interface provides an API for form item filters. */
public interface Filter extends Serializable
{
/**
* Filters the data by returning a value (possibly an null character)
* based on the input character.
*
* Usually, this method would eit... |
package com.junzhao.rongyun.response;
/**
* Created by AMing on 16/1/4.
* Company RongCloud
*/
public class GetGroupData {
/**
{"status":"100",
"message":"查询讨论组基本信息成功",
"showMessage":null,
"result":{"groupsId":"3b289cf2538e45af9095cc1f0fa8d3ff",
"groupsName":"aa、哈哈one、哇个广告",
"phot... |
import java.text.SimpleDateFormat;
import java.util.*;
class Config <T> {
private String[] args;
private List<String> log;
// Config
private Map<String, CfgArguments> cfg;
Config(String[] args) {
this.args = args;
log = new LinkedList<>();
cfg = new HashMap<>();
... |
package com.leetcode.google;
public class isSubTree {
public static class TreeNode{
int val;
TreeNode left;
TreeNode right;
public TreeNode(int data) {
this.val = data;
this.left = null;
this.right = null;
}
}
public static boolean isSubtree(TreeNode s, TreeNode t) {
if(t == null && ... |
package de.cuuky.varo.api.event;
import java.lang.reflect.Method;
import java.util.ArrayList;
import de.cuuky.varo.Main;
import de.cuuky.varo.api.event.register.VaroEventMethod;
import de.cuuky.varo.api.event.register.VaroListener;
public class EventManager {
private ArrayList<EventHandler> handlerList;... |
package com.xixiwan.platform.module.minio.config;
import io.minio.MinioClient;
import io.minio.errors.InvalidEndpointException;
import io.minio.errors.InvalidPortException;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnM... |
public class MutaliskEasy {
public int minimalAttacks(int[] x) {
int a = x[0];
int b = 0;
int c = 0;
if(1 < x.length) {
b = x[1];
}
if(2 < x.length) {
c = x[2];
}
int[][][] min = new int[a + 1][b + 1][c + 1];
for(int... |
package me.libraryaddict.disguise.utilities.backwards;
import me.libraryaddict.disguise.disguisetypes.MetaIndex;
import me.libraryaddict.disguise.utilities.LibsPremium;
import me.libraryaddict.disguise.utilities.ReflectionManager;
import me.libraryaddict.disguise.utilities.backwards.metadata.Version_1_11;
import java... |
package com.cjkj.insurance.controller;
import com.cjkj.insurance.entity.other.*;
import com.cjkj.insurance.service.InsuranceService;
import com.cjkj.insurance.service.MsgHandleService;
import com.cjkj.insurance.utils.ApiCode;
import com.cjkj.insurance.utils.ApiResult;
import com.cjkj.insurance.utils.TimeToString;
impo... |
package assignment.io;
import java.util.ArrayList;
import java.util.List;
public class GpaCalcualtion {
private List<String> allStudentResult = null;
public GpaCalcualtion() {
this.allStudentResult = new ArrayList<>();
}
public void resultCalculation(List<String> studentDetails, ... |
package com.example.plotarmapa;
import android.os.AsyncTask;
import com.example.plotarmapa.GoogleGeoCoding.GoogleGeoCode;
import com.google.gson.Gson;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;... |
package algopro.datastr;
/**
* This class is intended to be an implementation of the data structure heap in
* a way more suited to graph search algorithms than the standard java
* PriorityQueue.
*
*/
public class Heap {
private int heapSize;
private Node[] elements;
private int[] keyList;
private... |
/*
* 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.dawningsolutions.tasks.pcgui.panels;
import com.dawningsolutions.tasks.core.ExportEmail;
import com.dawningsolutions.tasks... |
package ru.javaprac.array;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class BubbleSortTest {
@Test
public void whenArray51273Then12357() {
BubbleSort bubbleSort = new BubbleSort();
int[] input = new int[]{5, 1, 2, 7, 3};
... |
package com.zpf.dto;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
/**
* Created by LoseMyself
* on 2017/3/13 13:38
*/
@Entity
public class girl {
@Id
@GeneratedValue
private Long id;
private String cupSize;
private Long age;
pu... |
package com.edasaki.rpg.commands.member;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.HashMap;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.edasaki.core.punishments.Punishment;
import co... |
package controllers.administrator;
import java.util.Collection;
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.RequestMethod;
import... |
package ua.com.rd.pizzaservice.repository.customer;
import org.junit.Before;
import org.junit.Test;
import ua.com.rd.pizzaservice.domain.address.Address;
import ua.com.rd.pizzaservice.domain.customer.Customer;
import ua.com.rd.pizzaservice.repository.customer.inmem.InMemCustomerRepository;
import static org.junit.Ass... |
package org.dimigo.vaiohazard.conversation.parser;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
i... |
package com.dian.diabetes.activity.assess;
import java.util.Map;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;
import andr... |
package Java;
import java.util.StringTokenizer;
class IntegerNode {
int id;
IntegerNode(int id) {
this.id = id;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
IntegerNode that = (... |
package InterfaceDemo;
/**
* Created by Frank Fang on 8/18/18.
*/
public class Computer {
}
|
package com.anyuaning.osp.ui.widget;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.os.SystemClock;
import android.util.AttributeSet;
import android.widget.TextView;
import java.text.DecimalFormat;
/**
* Created by thom on 14-4-2.
*/
public class Chronometer ex... |
package ua.siemens.dbtool.dao;
import ua.siemens.dbtool.model.entities.Activity;
import ua.siemens.dbtool.model.entities.User;
import ua.siemens.dbtool.model.timesheet.DayEntry;
import java.time.LocalDate;
import java.util.Collection;
/**
* The DAO interface for {@link DayEntry}
*
* @author Perevoznyk Pavlo
* ... |
package com.webstore.shoppingcart.domain.entity;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
@Document
public class User {
@Id
private String id;
private String name;
private String emai... |
package com.weishengming.clientservice.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import io.swagger.annotations.Api;
... |
package com.itheima.mapper;
import com.itheima.domain.User;
import org.apache.ibatis.annotations.Many;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface UserMapper {
@Select("select * from ... |
package net.kkolyan.elements.engine.core.templates;
import net.kkolyan.elements.engine.core.graphics.Text;
import java.util.Arrays;
import java.util.List;
/**
* @author nplekhanov
*/
public class SimpleText extends Object2d implements Text {
private String text;
private String color;
public SimpleText... |
/*
* 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.source;
import java.io.IOException;
import org.testng.Assert;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeClass;
import com.y... |
package com.test;
import com.test.dynamic.EditDistance;
import com.test.dynamic.Knapsack;
import com.test.dynamic.Knapsack2;
import com.test.dynamic.ShortestPath;
import junit.framework.TestCase;
public class DynamicSample extends TestCase
{
// 莱文斯距离
public void testLevenDistance()
{
EditDistance... |
package com.sinoway.sinowayCrawer.entitys;
import java.util.Date;
public class ToShow {
//订单号 姓名 身份证号码 访问时间(最早) 注册完成时间 申请完成时间(最近) 生成报告时间 流程完成时间
String ordercode;
String oname;
String ocardid;
String createtime;
String registerfinishtime;
String applytime;
String getreporttime;
String finis... |
package org.wso2.carbon.identity.user.endpoint.factories;
import org.wso2.carbon.identity.user.endpoint.ValidateCodeApiService;
import org.wso2.carbon.identity.user.endpoint.impl.ValidateCodeApiServiceImpl;
public class ValidateCodeApiServiceFactory {
private final static ValidateCodeApiService service = new Vali... |
class Solution {
public int getSum(int a, int b) {
while((a&b) != 0){
//if we have a carry
int carry = a&b;// puts 1 on exactly where the carry exists
int sum = a^b; // does the sum without carry
carry = carry << 1;// puts the carry to step to the left to be a... |
package dao;
import java.util.List;
import entity.IsDone;
public interface IsDoneDao extends CrudDao<Long, IsDone> {
public List<IsDone> findAll();
public List<IsDone> findByName(String name);
public List<IsDone> findByUserId(Long id);
void deleteByUserId(Long id);
}
|
/* ------------------------------------------------------------------------------
* 软件名称:美播手机版
* 公司名称:多宝科技
* 开发作者:Yongchao.Yang
* 开发时间:2014年10月11日/2014
* All Rights Reserved 2012-2015
* ----------------------------------------------------... |
package com.tsuro.action.actionpat;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import com.tsuro.board.ColorString;
import com.tsuro.board.Token;
import com.t... |
import java.util.Random;
public class CreateTrain implements Runnable {
private int trainNumGen;
private int trainNum;
private String trainType;
private int trainSpeed;
public CreateTrain(int trainNumGen, int trainNum, String trainType,int trainSpeed) {
this.trainNumGen = trainNumGen;
... |
package com.ipartek.ejercicios.listas;
import com.ipartek.pojo.Carta;
import java.util.ArrayList;
import java.util.Scanner;
public class Ejercicio4 {
static final String PALOS_NOMBRES[] = {"Bastos","Copas","Espadas","Oros"};
static final String CARTAS_NOMBRES[] = {"As","Dos","Tres","Cuatro","Cinco","Se... |
package cn.chay;
import cn.chay.filters.pre.PreRequestLogFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
@SpringBootApplica... |
package com.raymon.api.demo.leetcodedemo;
import java.util.Arrays;
/**
* @author :raymon
* @date :Created in 2019/7/19 9:13
* @description:给定一个 n × n 的二维矩阵表示一个图像。将图像顺时针旋转 90 度。
* 给定 matrix =
* [
* [1,2,3],
* [4,5,6],
* [7,8,9]
* ],
*
& 原地旋转输入矩阵,使其变为:
* [
* [7,4,1],
* [8,5,2],
* [9,6,3]
* ]
* @modifie... |
package io.report.modules.ser.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.report.common.utils.PageUtils;
import ... |
package com.actitime.businessLib;
import org.openqa.selenium.By;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.Select;
import com.actitime.genericLib.Driver;
import com.actitime.genericLib.WebDriverCommomLib;
import com.actitime.pageObjrepository.ActiveProjectAndCust;
import co... |
package dominio.participantes;
import java.util.Date;
import dominio.endereco.Endereco;
import dominio.evento.EntidadeDominio;
public abstract class Pessoa extends EntidadeDominio {
private String nome;
private int genero;
private Date dtNascimento;
private String cpf;
private String telefone;
private Endere... |
package com.krt.gov.strategy.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.krt.common.annotation.KrtLog;
import com.krt.common.base.BaseController;
import com.krt.common.bean.D... |
package kr.or.ddit.profile_file.service;
import java.util.List;
import java.util.Map;
import kr.or.ddit.profile_file.dao.IProfileFileDao;
import kr.or.ddit.vo.ProfileFileVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.support.DaoSupport;
import org.springframework.st... |
package answers;
import org.junit.*;
public class GuitarTest {
@Test
public void testInstrumentInfo_ShouldReturnCorrectDescription() {
// ARRANGE - Create a new Guitar object
Guitar guitar = new Guitar();
// ACT - Call the getInstrumentInfo() method and store the result in a String ... |
package kh.baseball;
public class WrongInputException extends Exception {
public WrongInputException() {
System.out.println("You have input incorrect number, please input numbers from 1~9.");
}
}
|
package com.distributie.listeners;
import com.distributie.enums.EnumOperatiiAdresa;
public interface OperatiiAdresaListener {
void opAdresaComplete(EnumOperatiiAdresa methodName, String result);
}
|
package com.karya.dao.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import org.springframework.stereotype.Rep... |
package 多线程.生产者和消费者;
/**
* Created by 陆英杰
* 2018/9/7 14:36
*/
public class 生产者和消费者 {
}
|
/*
* Created on 19/08/2008
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.citibank.ods.modules.product.prodassettype.functionality;
import java.math.BigInteger;
import org.apache.struts.action.ActionForm;
... |
package Area4;
/**
* Created by james on 30/11/2018.
*/
public class File1Area4 {
int i = 0;
}
|
import java.util.ArrayList;
import java.util.List;
/*
悲观gc ——parallel scavenge
https://blog.csdn.net/liuxiao723846/article/details/72808495/
1、在YGC执行前,min(目前新生代已使用的大小,之前平均晋升到old的大小中的较小值) > 旧生代剩余空间大小 ? 不执行YGC,直接执行Full GC : 执行YGC;
2、在YGC执行后,平均晋升到old的大小 > 旧生代剩余空间大小 ? 触发Full GC : 什么都不做。
Sun JDK之所以要有悲... |
import java.util.Scanner;
public class List1
{
public static void main(String[] args)
{
TextMenu menu = new TextMenu();
menu.textMenu();
}
}
|
package com.acme.impl;
import com.acme.DataProvider;
import com.acme.impl.DataFile;
import com.google.common.base.Charsets;
import com.google.common.io.Files;
import com.google.inject.Inject;
import java.io.File;
import java.util.List;
import org.eclipse.xtext.xbase.lib.Exceptions;
import org.eclipse.xtext.xbase.lib.I... |
package cn.edu.njnu.nnu_creative_cloud;
import android.view.View;
public abstract class FunctionActivity extends BaseActivity {
public void return_back(View view) {
if (super.setting) {
SettingFragment settingfragment = (SettingFragment) getFragmentManager()
.findFragmentById(setting_container_id);
get... |
package com.hdy.myhxc.controller;
import com.hdy.myhxc.entity.FormInfo;
import com.hdy.myhxc.entity.ResultData;
import com.hdy.myhxc.model.Menu;
import com.hdy.myhxc.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframewor... |
package nl.kolkos.photoGallery.services;
import java.io.File;
import java.nio.file.Path;
import java.util.Date;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.se... |
package com.uit.huydaoduc.hieu.chi.hhapp.Model.Passenger;
public enum PassengerRequestState {
FINDING_DRIVER,
FOUND_DRIVER,
PAUSE,
TIME_OUT
}
|
package cn.plusman.poc.mybatis.plus.explore.mapper;
import cn.plusman.poc.mybatis.plus.explore.entity.Blog;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotati... |
package dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import bean.ClassInfoBean;
public class ClassInfoDao {
String CLASSFORNAME="com.mysql... |
public class Main {
public static void main(String[] args) {
String filename = "C:\\Users\\abac\\Desktop\\Facultate\\flcd\\FLCD\\lab4\\src\\main\\java\\data\\fa.txt";
FiniteAutomata fa = new FiniteAutomata();
FAReader controller = new FAReader(fa, filename);
UI userInterface = new UI... |
package com.test.base;
import java.util.List;
import com.test.SolutionA;
import junit.framework.TestCase;
public class Example extends TestCase
{
private SolutionA solution;
@Override
protected void setUp()
throws Exception
{
super.setUp();
}
public void testSolutio... |
package com.SearchHouse.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.SearchHouse.pojo.Collect;
public interface CollectMapper {
// 新增收藏;
public void addClollect(@Param("houseId") Integer houseId, @Param("userId") String userId);
// 删除收藏
public void deleteCollect(@Par... |
package com.burst.message;
/**
* Lookup services registered for a `name`. {@link BindingsMessage} will be sent to
* `sender()`.
*/
public class LookupMessage {
public final String name;
public LookupMessage (String name) {
this.name = name;
}
} |
package org.opal;
public class incorrect {
public String $a_clumsy__String;
} |
package com.bookdataanalyzer;
import java.io.*;
import java.util.*;
/**
* Metrics collected for every author
* @author nirav99
*
*/
public class CollectiveMetrics
{
private HashMap<String, AuthorMetrics> authorMetricsMap;
public CollectiveMetrics()
{
authorMetricsMap = new HashMap<String, AuthorMetri... |
package com.gs.tablasco.spark;
import com.gs.tablasco.spark.avro.AvroDataSupplier;
import org.apache.avro.Schema;
import org.apache.avro.file.DataFileWriter;
import org.apache.avro.generic.GenericData;
import org.apache.avro.generic.GenericDatumWriter;
import org.apache.avro.generic.GenericRecord;
import org.apache.av... |
package com.artauction.service;
import java.util.List;
import com.artauction.domain.GoodsVO;
import com.artauction.domain.ImageVO;
import com.artauction.domain.ListVO;
import com.artauction.domain.UserVO;
public interface RegisterService {
public void insert(GoodsVO gVo);
public List<ImageVO> findImageByGno(in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.