text stringlengths 10 2.72M |
|---|
package com.dayuanit.shop.vo;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
public class UserAddressVo {
private Integer id;
private Integer userId;
@NotNull
@Length(min=6, max=6, message="provinceCode长度为6")
private String provinceCode;
@NotNull
@Len... |
package org.idea.plugin.atg.psi.reference;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.psi.PsiElementResolveResult;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiPolyVariantReferenceBase;
import com.intellij.psi.ResolveResult;
import com.intellij.psi.xml.XmlAttribute;
impor... |
package issue87;
import org.concordion.api.Resource;
import org.concordion.api.extension.ConcordionExtender;
import org.concordion.api.extension.ConcordionExtension;
public class JQueryExtension implements ConcordionExtension {
@Override
public void addTo(ConcordionExtender concordionExtender) {
conco... |
package com.budget.controller;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.w... |
package nju.cs.lw.shoot;
public class Bullet extends FlyingObject{
private int speed = 3;//子弹可以向上移动,具有移动的速度作为属性
//构造器
public Bullet(int x, int y){
this.x = x;
this.y = y;
this.image = ShootGame.bullet;
}
//移动方法
@Override
public void step(){
y -= speed;
}
//越界处理,越界返回true
@Over... |
package com.santhosh.model;
import java.sql.Timestamp;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;
@Entity
@Table(name="directtransaction")
public class Dstatus {
@Id
private int sno;
@NotNull(message="Customer ID cannot be empt... |
package de.codingchallenge.service;
import de.codingchallenge.model.Question;
import de.codingchallenge.model.SingleChoiceQuestionType;
import de.codingchallenge.model.Survey;
import de.codingchallenge.model.SurveyResponse;
import de.codingchallenge.repository.SurveyRepository;
import de.codingchallenge.repository.Sur... |
package jdbchomework.controller;
import jdbchomework.entity.Project;
import jdbchomework.service.ProjectService;
import java.util.List;
public class ProjectController {
private ProjectService projectService;
public ProjectController(ProjectService projectService) {
this.projectService = projectServ... |
package com.example.kevin.weatherclothingapp;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widg... |
package com.smxknife.java2.collections.concurrent;
import java.util.Arrays;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author smxknife
* 2019/9/2
*/
public class ConcurrentHashMapDemo {
public static void main(String[] args) {
ConcurrentHashMap<Integer, Integer> map = new Concur... |
/**
*
*/
package co.grandcircu.SpringLab22;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
/**
* @author kevinbusch
*
*/
@Controller
public class AppControler {
@RequestMapping("/")
public ... |
package hr.mealpler.database.entities;
import java.math.BigDecimal;
import java.sql.Date;
public class MenuProductLight {
private Long user_id;
private Date date;
private Long product_id;
private BigDecimal amount;
public MenuProductLight() {
}
public MenuProductLight(Long userId, Date date, L... |
package com.Arrays;
import java.io.*;
import java.util.Arrays;
public class WaterTrapping {
public static void main (String[] args) throws IOException
{
//code
BufferedReader input = null;
try {
input = new BufferedReader(new InputStreamReader( new FileInputStream("input/... |
package com.example.hello.mymap;
import android.app.ActivityManager;
//import android.app.Application;
import android.app.Application;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.StrictMode;
import android.support.multidex.MultiDex;... |
package com.db.dao.evaluation;
import java.io.IOException;
import com.db.FileDB;
import com.db.dao.AbstractDao;
public class LoginDao extends AbstractDao{
private static LoginDao instance;
public static LoginDao getInstance() throws IOException {
if (instance == null) {
synchronized (LoginDao.class) {
i... |
package com.mercadolibre.desafioquality;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.http.M... |
package com.tencent.mm.ui.chatting.gallery;
class ImageGalleryUI$8 implements Runnable {
final /* synthetic */ int eKj;
final /* synthetic */ ImageGalleryUI tWn;
ImageGalleryUI$8(ImageGalleryUI imageGalleryUI, int i) {
this.tWn = imageGalleryUI;
this.eKj = i;
}
public final void r... |
package com.lbsp.promotion.entity.model;
public class Task extends BaseModel{
private String name;
private String class_name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getClass_name() {
return cl... |
package cn.yhd.config;
import cn.yhd.bean.User;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
import org.springfra... |
package fall2018.csc2017.scoring;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.*;
public class LeaderBoardTest {
/**
* A LeaderBoard for testing
*/
private LeaderBoard testLeaderBoard;
/**
* A List of scores us... |
package edu.illinois.finalproject.PlayerGuides;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
/**
* Created by liam on 12/3/17.
*/
/*
{"Title": "Test",
"User": "id"
"Introduction": "to play jax one must be good at the game of league of legends",
"Items": [
{"Starti... |
package com.qimou.sb.web.controller;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.spri... |
package ns.tcphack;
/**
* Created by freem on 3/23/2017.
*/
public class InputResults {
public static final int NEXT_HEADER = 6;
public static final int PAYLOAD = 4;
public static final int SEQUENCE_NUMBER = 44;
public static final int ACK_NUMBER = 48;
public static final int TCP_HEADER_SIZE = 52... |
package fr.products;
public class Product {
private String ref;
// private int stock;
private String price;
private String name;
// private int id;
/**
* Constructor which takes 3 params
* @param ref
* @param price
* @param name
*/
public Product(String ref, String ... |
package net.rainmore.persistent.integrator;
import net.rainmore.persistent.events.EntitySaveListener;
import net.rainmore.persistent.events.EntitySaveOrUpdateListener;
import org.hibernate.cfg.Configuration;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.event.service.spi.EventListener... |
package com.wq.dao;
import com.wq.bean.Employee;
import java.util.List;
/**
* Created by qwu on 2018/9/5.
*/
public interface EmployeeMapperPlus {
/**
* 根据id查询员工信息
* @param id
* @return
*/
public Employee selectEmpById(Integer id);
/**
* 根据id查询员工及其部门信息
* @param id
* ... |
package eventbus;
import com.google.common.eventbus.Subscribe;
import observer.Message;
import observer.Observer;
/**
* @Author: lty
* @Date: 2021/2/1 09:33
* 实际观察者1 使用同步阻塞式
*/
public class Ob1 {
@Subscribe
public void execute(Message message) {
long l = System.currentTimeMillis();
Sys... |
/**
* CommonFramework
*
* Copyright (C) 2017 Black Duck Software, Inc.
* http://www.blackducksoftware.com/
*
* 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 o... |
package com.org.review.controller;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.when;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.... |
package tilePack;
import java.util.ArrayList;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.Input;
import mainGame.WindowGame;
public class Door extends Tile {
private Image openImg;
private Image closeImg;
privat... |
package service;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import model.Ngo;
public class NgoDao {
private static final String getNgo="select * from ngo where User_email = ? ";
private static final String deleteNgo="Delete from ngo where ... |
package core.java.lab3;
import java.util.Scanner;
public class ModifyNumber {
public static void main(String[] args) {
// TODO Auto-generated method stub
int num = 0;
System.out.println(ModifyNumber.modifyNumber(num));
}
public static int modifyNumber(int num) {
Scanner sc = new Scanner(System.in);
... |
package org.tosch.neverrest;
import org.elasticsearch.client.Client;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.transport.InetSocketTransportAddress;
import org.elasticsearch.common.transport.TransportAddress;
import org... |
package com.oasisfeng.island.installer;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PermissionInfo;
import android.os.Process;... |
/*
* 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 paquete2;
import paquete1.Persona;
/**
*
* @author reroes
*/
public class Prestamo extends Persona {
private Persona b... |
package Algorithm;
import Algorithm.Algebra.*;
import Algorithm.Arithemic.FractionQuestion;
import Algorithm.Arithemic.Percentage;
import Algorithm.Arithemic.RepeatedDecimal;
import Algorithm.Arithemic.Subtraction;
public abstract class MyAlgorithm {
private static final int SUBTRACTION_WEIGHT = 0;
private stati... |
package day30WrapperClassArrayList;
import java.util.ArrayList;
import java.util.Collections;
public class ArrayListPractice5 {
public static void main(String[] args) {
ArrayList<Integer> list=new ArrayList<>();
for(int i=0;i<31;i++) {
if(i%2==0) {
list.add(i);
}
}System.out.println(list);
Syst... |
package com.tencent.mm.plugin.expt.roomexpt;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;
class RoomExptDebugUI$4 implements OnClickListener {
final /* synthetic */ RoomExptDebugUI iIF;
RoomExptDebugUI$4(RoomExptDebugUI roomExptDebugUI) {
this.iIF =... |
package chapter_3;
/*A basic program to store the ID and name for an Employee and display those value to the console*/
public class Employee {
private int id ;
private String name ;
Employee() // Default Constructor.
{
id=0 ;
name="NULL" ;
}
Employee(int id, String name) // Parameterized Co... |
package com.tencent.mm.ui.base;
class HorizontalListView$2 implements Runnable {
final /* synthetic */ HorizontalListView tsN;
HorizontalListView$2(HorizontalListView horizontalListView) {
this.tsN = horizontalListView;
}
public final void run() {
this.tsN.requestLayout();
}
}
|
package com.gligor.hypnosis.repositories;
import com.gligor.hypnosis.entities.TroupeDescription;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface TroupeDescRepository extends JpaRepository<TroupeDescription, Integer> {
pu... |
package JavaSE.OO.changyonglei;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/*
* 获取自1970年1月1日 00分00秒000毫秒到当前的毫秒数
* 1000毫秒 = 1秒
*
* Date d=new Date();获取系统当前时间
* Date d=new Date(long millis);
*
* 日历
*/
public class DateT... |
// assignment 4
// pair 043
// Wright Steven
// wrights
// Wang Shiyu
// shiyu
import tester.*;
class ExamplesIBook {
ExamplesIBook() {
}
Book b0 = new Book("Java", "Steven", 0);
Book b1 = new Book("Java", "Steven", 15);
RefBook rb0 = new RefBook("Java for Dummies", 0);
RefBook ... |
package com.elvarg.world.model.movement.path;
import com.elvarg.world.collision.region.RegionClipping;
import com.elvarg.world.entity.impl.Character;
import com.elvarg.world.model.Position;
public class PathGenerator {
public static final int[][] DIR = { { -1, 1 }, { 0, 1 }, { 1, 1 }, { -1, 0 }, { 1, 0 }, { -1, -1 ... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package com.ponthaitay.architecturecomponentsandroid2017.room;
import android.annotation.SuppressLint;
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProviders;
import android.arch.persistence.room.Room;
import android.os.Bundle;
import android.support.annotation.Nullable;
import androi... |
/**
* Copyright (c) 2016, 指端科技.
*/
package com.rofour.baseball.dao.manager.mapper;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.inject.Named;
import com.rofour.baseball.controller.model.RequestWorkSigninInfo;
import com.rofour.baseball.dao.manager.bean.ProvinceBean;
/**
*... |
package com.auction.dao.bids;
import com.auction.dao.AbstractDao;
import com.auction.entity.Bids;
public class BidsDaoImpl extends AbstractDao<Integer,Bids> implements BidsDao {
}
|
package jp.co.sakamoto.androidproject.domain.usecase;
import javax.inject.Inject;
import io.reactivex.Single;
import io.reactivex.disposables.Disposable;
import jp.co.sakamoto.androidproject.data.entity.User;
import jp.co.sakamoto.androidproject.data.repository.IUserRepository;
import jp.co.sakamoto.androidpr... |
package gr.athena.innovation.fagi.utils;
import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.PrecisionModel;
import com.vividsolutions.jts.io.ParseException;
import com.vividsolutions.jts.io.WKTReader;
import com.vividsolutions.jts.io.WKTW... |
import java.awt.*;
import java.util.ArrayList;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;;
import java.io.File;
import java.io.FileReader;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import org.json.simple.JSONArray;
import org.json.simp... |
package com.tencent.mm.plugin.backup.backuppcmodel;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.model.au;
import com.tencent.mm.model.c;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.protocal.c.ach;
import com.tencent.mm.protocal.c.pw;
import com.tencent.mm.sdk.... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the te... |
package com.baizhi.entity;
import java.util.HashMap;
import java.util.Map;
public class Cart {
//想要从map中判断是否含有指定的key值 不能为空 需要new出来一个
private Map<Integer,Item> addmap=new HashMap<>();
private Map<Integer,Item> removemap =new HashMap<>();
private Double totalprice;
private Double totalsave;
public Map<Integer, It... |
package com.marcuschiu.jpahibernateandh2database.repository;
import com.marcuschiu.jpahibernateandh2database.model.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
* JpaRepository<Student, Long>
* - Student is the entity that is being manag... |
package cn.itcast.demo3;
public class Computer {
public void openComputer()
{
System.out.println("电脑打开");
}
public void closeComputer()
{
System.out.println("电脑关闭");
}
public void useUSB(USB usb)//体现多态
{
usb.open();//USB usb = new Mouse();USB usb = new KeyBoard();
// 父类 变量名 = new 子类(),变量名... |
package br.com.conspesca.repository;
import java.util.List;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
impor... |
package com.jack.jkbase.service.impl;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSON;
import com.alibaba.... |
package pl.cwanix.opensun.model.server;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class ServerModel {
private int id;
private int port;
private String ip;
private String name;
}
|
package com.it.userportrait;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @description:
* @author: Delusion
* @date: 2021-09-26 0:01
*/
@SpringBootApplication
public class Application {
public static void main(String[] args) {
... |
package str;
public class SubStrRabinKrap {
private static final int R = 256;
private String pat;
private int hash;
private int Q;
private int RM;
public SubStrRabinKrap(String pat) {
this.pat = pat;
this.Q = 993; //assign some prime number
RM = 1;
for(int i = 1; i < pat.length(); i++)
RM = (RM * R... |
package com.example.zahit.multipleactivityproject;
import android.widget.TableRow;
import android.widget.TextView;
import com.google.firebase.database.Exclude;
import java.util.ArrayList;
/**
* Created by Zahit on 18-Mar-18.
*/
public class Lobby {
private String lobbyName;
private int currentNumberOfPla... |
package com.tencent.mm.plugin.appbrand.wxawidget.console;
import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnKeyListener;
import android.view.W... |
package de.raidcraft.skillsandeffects.pvp.skills.physical;
import com.sk89q.minecraft.util.commands.CommandContext;
import de.raidcraft.skills.api.combat.EffectType;
import de.raidcraft.skills.api.effect.common.QueuedAttack;
import de.raidcraft.skills.api.exceptions.CombatException;
import de.raidcraft.skills.api.hero... |
package cn.edu.ecust.smart;
public class ResponseWait {
private final long id;
private final long size;
public ResponseWait(long id, long size) {
this.id = id;
this.size = size;
}
public long getId() {
return id;
}
public long getSize() {
return size;
}
}
|
package marchal.gabriel.bl.Coleccionista;
import marchal.gabriel.bl.Categoria.Categoria;
import marchal.gabriel.bl.ItemSubasta.ItemSubasta;
import marchal.gabriel.bl.Usuario.Usuario;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Objects;
/**
* @author Gabriel Marchal
* @version V1
* @s... |
package edu.metrostate.ics372.thatgroup.clinicaltrial.android.readingsactivity;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
... |
package JUSLCodeClub;
import java.util.Scanner;
public class nthLargest {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int arr[] = new int[n];
for(int i=0;i<n;i++)
arr[i] = sc.nextInt();
int x = sc.nextInt();
System.out.println(nthLargestBat(arr,... |
/*
* 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 dis... |
package control;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import ... |
package io.vakin.algorithm.sort;
import java.util.Arrays;
/**
* 希尔排序
* @description <br>
* @author <a href="mailto:vakinge@gmail.com">vakin</a>
* @date 2018年8月14日
*/
public class ShellSort {
public static void main(String []args){
int []arr ={1,4,2,7,9,8,3,6};
sort(arr);
System.out.pr... |
package com.tt.miniapp.websocket.common;
public abstract class WsStatusListener {
public void onClosed(int paramInt, String paramString) {}
public void onClosing(int paramInt, String paramString) {}
public void onFailure(Throwable paramThrowable) {}
public void onMessage(String paramString) {... |
package LeetCodeTopics.BinarySearch.SplitArrayLargestSum;
public class Solution {
public static void main(String[] args) {
}
public int splitArray(int[] nums, int k) {
int left = 0;
int right = 0;
for (int num : nums) {
left = Math.max(left, num);
right += ... |
package Controlador;
import Modelo.Carrito;
import Modelo.Producto;
import Modelo.ProductoDAO;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet... |
package com.project1.web1.application;
public class MyIllegalArgumentException extends IllegalArgumentException {
public MyIllegalArgumentException() {
super("Illegal string");
}
}
|
package com.example.OCP.advancedClassDesing.enums;
/**
* Created by guille on 10/13/18.
*/
public enum SeasonsMethods {
WINTER{
public void printHours() {
System.out.println("9am -17pm");
}
},
SUMMER {
public void printHours() {
System.out.println("07am - ... |
package com.ssafy;
import java.util.Arrays;
public class CarMgr{
private Car[] cars = new Car[100];
private int index;
public void add(Car c) {
cars[index++] =c;
}
public Car[] search(){
return cars;
}
public Car search(String num) {
for(Car c : cars) {
if(c==null) break;
if(c.getNum().equals(n... |
package com.tencent.mm.plugin.appbrand.r.a;
import android.content.Context;
public enum a implements e, com.tencent.mm.plugin.appbrand.r.d.a {
;
public static final c gCh = null;
private final e gCi;
private a(String str) {
this.gCi = new b();
}
static {
gCh = new c();
... |
package com.hb.rssai.view.common;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Bundle;
import android.support.design.widget.AppBarLayout;
i... |
package day44_custom_classes;
public class Animal {
String type;
public void eat() {
System.out.println(type +" eats");
}
public void eat(String food) {
System.out.println("eats " +food);
}
public void speak(){
System.out.println(type+ " speaks");
}
}
|
package com.thoughtworks.rslist.service;
import com.thoughtworks.rslist.domain.RsEvent;
import com.thoughtworks.rslist.dto.RsEventDto;
import com.thoughtworks.rslist.exception.InvalidIndexException;
import java.util.List;
/**
* Created by wzw on 2020/8/9.
*/
public interface RsService {
public List<RsEventDto>... |
package com.osce.entity;
import java.io.Serializable;
import java.util.Date;
public class SysRoleAuthorityRef implements Serializable {
private static final long serialVersionUID = 7455796078372374148L;
private Long id; // 主键id
private Long authorityId; // 权限资源id
private Long roleId; ... |
package com.loginPage.model;
public class User {
private String username;
private String password;
private String teleNum;
private String emial;
//¹¹Ô캯Êý
public User(String username, String password, String teleNum, String email) {
this.username = username;
this.password = password;
this.teleNum = tele... |
package com.wechat.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import com.ssm.util.TokenThread;
import com.ssm.wechatpro.object.OutputObject;
import com.ssm.wec... |
/**
* by Kocherga Vitalii 2016.12.10
*/
import java.util.concurrent.locks.*;
import java.util.*;
import java.io.*;
import java.util.regex.*;
public class Main{
public static void main(String[] args){
WordFinder wf = new WordFinder("storage/emulated/0/test"); //change to correct one
System.out.println(wf.getWord... |
package com.osce.orm.user.role;
import com.osce.dto.user.role.PfRoleDto;
import com.osce.entity.SysRole;
import com.osce.entity.SysRoleMenu;
import com.osce.entity.UserRole;
import com.osce.vo.user.role.PfRoleVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package marblegame;
import javax.microedition.lcdui.game.Sprite;
import java.util.Vector;
import java.io.IOException;
/**
*
* the marble that is dropped by the user
*/
public class Marble {
public int imageId; ... |
package com.sneaker.mall.api.util;
import com.google.common.base.Strings;
import net.sourceforge.pinyin4j.PinyinHelper;
import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType;
import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;
import net.sourceforge.pinyin4j.format.HanyuPinyinToneType;
import net.sour... |
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
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.BeforeTest;
import org.testng.annot... |
package com.example.demo.repository;
import java.util.List;
import javax.websocket.server.PathParam;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.example.demo.entity.Course;
import com.ex... |
package customer.gajamove.com.gajamove_customer.fragment;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.TextureView;
import android.view.View;
... |
package dng.deongeori.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.gallery.dao.GalleryBean;
import com.gallery.dao.GalleryDAO;
import com.mtory.action.Action;
import com.mtory.a... |
/*
* 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 may ... |
package com.dns.feedbox;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.integration.support.json.Jackson2JsonObjectMapper;
/**
* Created by dinusha on 9/12/16.
*/
public class FeedMapper {
public static Jackson2JsonObjectMapper getMa... |
package com.hesoyam.pharmacy.appointment.exceptions;
public class CheckupCancellationPeriodExpiredException extends Exception{
public CheckupCancellationPeriodExpiredException(Long id){
super(String.format("Checkup with ID '%s' cannot be cancelled 24h before reserved time",id));
}
}
|
package com.skt.test;
import org.junit.Test;
public class Test02 {
@Test
public void Correctness(){
String [] S = {
"123456" // 162534
,"130" // 103
,"100000000" // 100000000
,"953568128" // 985231586
,"95356812" // 92513856
}
;
for(St... |
package pattern_test.iterator;
/**
* Description:
*
* @author Baltan
* @date 2019-04-03 15:32
*/
public class Test1 {
public static void main(String[] args) {
LanguageRepository languageRepository = new LanguageRepository();
Iterator<String> iterator1 = languageRepository.iterator();
... |
package net.wrap_trap.calcite_arrow_sample;
/**
* Created by masayuki on 2017/12/17.
*/
public interface Filterable {
int[][] filter();
}
|
import sut.OS.potoki.Set;
import sut.OS.potoki.SetImpl;
import java.util.ArrayList;
public class jmn {
public static void main(String[] args) throws InterruptedException {
int threads = 10;
Set set = new SetImpl();
ArrayList<Thread> threadArrayList = new ArrayList<>();
... |
/*
* A java application to compress css code to prepare it for being uploaded to server
* Since transfer of bits of data affect the speed of loading webpage
* So it is necessary to compress css files to decrease its size...
*/
package css.compressor;
import java.awt.*;
import java.awt.event.*;
/**
* @author hite... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.