text stringlengths 10 2.72M |
|---|
package com.github.dongchan.scheduler;
/**
* @author DongChan
* @date 2020/10/23
* @time 3:35 PM
*/
public interface SchedulerState {
boolean isShuttingDown();
boolean isStarted();
class SettableSchedulerState implements SchedulerState {
private boolean isShuttingDown;
private bool... |
package com.onightperson.hearken.datetime;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.onightperson.hearken.R;
import com.onightperson.hearken.base.BaseActivity;
import com.onightperson.hearken.util.ProblemUtils;
/**
* Created by liubaozhu on 17/7/9.
*/
public clas... |
package chat.errors;
/**
*/
public interface GroovyErrorCodes {
public static final int CODE_CORE = 18000;
//Groovy related codes.
public static final int ERROR_GROOVY_CLASSNOTFOUND = CODE_CORE + 1;
public static final int ERROR_GROOY_NEWINSTANCE_FAILED = CODE_CORE + 2;
public static final int ERROR_GROOY_CL... |
package forms;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.SafeHtml;
impo... |
package com.gxtc.huchuan.ui.live.foreshowlist;
import com.gxtc.commlibrary.BasePresenter;
import com.gxtc.commlibrary.BaseUiView;
import com.gxtc.commlibrary.data.BaseSource;
import com.gxtc.huchuan.bean.ChatInfosBean;
import com.gxtc.huchuan.http.ApiCallBack;
import java.util.ArrayList;
import java.util.HashMap;
imp... |
package script.javascript.runtime;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.List;
import javax.script.Compilable;
import javax.script.CompiledScript;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.... |
package ch7;
class Shape{
String color = "black";
void draw() {
System.out.printf("[color=%s]%n", color);
}
}
class PointD{
int x;
int y;
PointD(int x, int y){
this.x = x;
this.y = y;
}
PointD() {
this(0, 0);
}
String getXY() {
return "("+x+","+y+")"; //x,y 문자열로 반환
}
String getLocation()... |
package com.enedis.ludovic;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
* Classe pour l'affichage des menus et les selections de jeu, mode et choix de fin de partie
*/
public class Menu {
private static final Logger logger = LogManager.getLogger();
private String... |
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import org.json.simple.*;
public class GameLogic extends HttpServlet
{
public static int players = 0;
public static boolean gameFull = false;
public static String[] AllCards = getCards();
public static String[] ... |
package net.grandcentrix.tray;
/**
* Created by pascalwelsch on 5/13/15.
*/
public class TrayRuntimeException extends RuntimeException {
public TrayRuntimeException() {
}
public TrayRuntimeException(final String detailMessage) {
super(detailMessage);
}
public TrayRuntimeException(final... |
package GerenciadorSensores;
import java.util.ArrayList;
public class GerenciadorSensores {
private ArrayList<ISensorTemperatura> listaSensores;
public GerenciadorSensores(int quantidadeSensoresPSC, int quantidadeSensoresXSC, int quantidadeSensoresYSC){
int idSensor = 0;
list... |
package com.sinodynamic.hkgta.dao.crm;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.sinodynamic.hkgta.dao.GenericDao;
import com.sinodynamic.hkgta.dto.crm.UserPreferenceSettingDto;
import com.sinodynamic.hkgta.entity.crm.UserPr... |
package net.cattaka.android.learngetaccount;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.accounts.AccountManagerCallback;
import android.accounts.AccountManagerFuture;
import android.accounts.AuthenticatorDescription;
import android.accounts.AuthenticatorException;
import an... |
/*
* Copyright 2019 Claire Fauch
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import java.util.HashMap;
public class JewelsandStones {
/**
* Return how many characters in String S are also in J.
* Input: J = "aA", S = "aAAbbbb"
Output: 3
*/
public int numJewelsInStones(String J, String S) {
HashMap<Character, Integer> save = new HashMap<Character, Integer>();
for(int i=0;... |
package com.git.cloud.resmgt.common.model.po;
import java.io.Serializable;
import com.git.cloud.common.model.base.BaseBO;
public class CmHostUsernamePasswordPo extends BaseBO implements Serializable{
/**
*
*/
private static final long serialVersionUID = 7264873956767654713L;
private String id;
... |
package com.globant.talent.utils;
/**
* Created by drobak on 19/11/14.
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
imp... |
package com.example.demo;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository("userRepository")
public interface UserRepository extends CrudRepository<User, String> {
User findByEmailIdIgnoreCase(String emailId);
}
|
package com.huruilei.designpattern.observer;
/**
* @author: huruilei
* @date: 2019/10/31
* @description:
* @return
*/
public interface DisplayElement {
void display();
}
|
package com.ylz.dto;
import java.util.Date;
/**
* 用户秒杀数据传输类型
* Created by liuburu on 2017/3/6.
*/
public class UserSucessKillsDTO {
private String userPhone;
private String skName;
private Date skTime;
private int status;
public UserSucessKillsDTO() {
}
public String getUserPhone() {
... |
package com.pibs.bo.impl;
import java.util.HashMap;
import java.util.Map;
import com.pibs.bo.RptPatientHistoryBo;
import com.pibs.dao.PatientDao;
public class RptPatientHistoryBoImpl implements RptPatientHistoryBo {
private PatientDao patientDao;
public PatientDao getPatientDao() {
return patient... |
package br.com.hype.medan;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivi... |
//file: Zodiac.java
//author: Victoria Cameron
//course: CMPT 220
//assignment: Project 2
//due date: May, 2017
//version: 0.4
public class Zodiac{
int month = 1;
int day = 1;
int year = 1900;
String cZodiac = new String ("ERROR");
String wZodiac = new String ("ERROR");
//Constructor
public Zodiac(){
... |
package com.mytaxi.controller;
import java.util.List;
import javax.validation.Valid;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.... |
/**
* Created by owen on 2017/6/13.
*/
public class MultiThreadSingleton {
/**
* 多线程模式下线程安全的单例模式
*/
private MultiThreadSingleton(){}
public static volatile MultiThreadSingleton INSATCNE;
public static MultiThreadSingleton getINSATCNE() {
if (INSATCNE == null)
synchronize... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.db.model;
import java.util.Arrays;
/**
* In DB representation of basic data which is present in the most of tables.
* @author K. Benedyczak
*/
public class BaseB... |
/*
* 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 latihan;
/**
*
* @author Fifi Agustina
*/
public class hurufI {
public static void main(String[] args){
i... |
package com.psl.training;
import java.util.Scanner;
public class CalculateIntrest {
static Scanner scan = new Scanner (System.in);
static double calInterest(int amt) {
double percent,interest;
if(amt<=1000){
percent=4;
}
else if(amt>1000&&amt<=5000){
percent=4.5;
}
else{
percent=5;
... |
package com.gaoshin.onsalelocal.osl.resource;
import java.io.File;
import java.io.InputStream;
import java.net.URL;
import junit.framework.Assert;
import org.apache.commons.io.IOUtils;
import org.junit.Before;
import org.junit.Test;
import com.gaoshin.onsalelocal.api.Offer;
import com.gaoshin.onsalelocal.api.OfferD... |
package com.emg.projectsmanage.dao.comm;
import java.util.List;
import java.util.Map;
import com.emg.projectsmanage.pojo.SystemModel;
public interface SystemModelDao {
List<SystemModel> getSystemsByNames(Map<String, List<String>> map);
public List<SystemModel> getAllSystems();
} |
package com.lotbyte.servlet;
import java.io.IOException;
import java.util.Optional;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.lotbyte.... |
package com.pmm.sdgc.model;
import java.io.Serializable;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.time.LocalDateTime;
import java.util.Objects;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.pers... |
package de.trispeedys.resourceplanning;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
import java.util.Calendar;
import java.util.Date;
import org.junit.Test;
import de.trispeedys.resourceplanning.entity.Domain;
import... |
package com.yc.education.service;
import com.yc.education.model.Permissions;
import java.util.List;
/**
* @ClassName PermissionsService
* @Description TODO
* @Author QuZhangJing
* @Date 2019/3/1 11:26
* @Version 1.0
*/
public interface PermissionsService extends IService<Permissions> {
/**
* 根据父级编号和... |
/** @author : Panchami Rudrakshi
* Single linked List class which has methods to
* add elements to the list,
* print the elements of a list,
* perform multiunzip on a list of elements
*/
import java.util.Iterator;
import java.util.Scanner;
public class SinglyLinkedList<T> implements Iterable<T>{
//Ea... |
package com.corejava.java8;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class SortingBasedOnTwoPropertyOnceUsingJava8 {
public static void main(String[] args) {
//List<Employee> employeeLists=new ArrayList<>();
Employee employee1=new Empl... |
package com.sshfortress.controller.system;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.spri... |
import java.util.Arrays;
public class StringArray {
private String[] string_array;
private int size;
public StringArray() {
string_array = new String[100];
size = 0;
}
public StringArray(StringArray a) {
int space = (int) (0.1 * a.string_array.length);
this.string_array = Arra... |
package cn.jpush.impl.applist;
public class ImeiPackageVO {
public String imei;
public String packageStr;
public void setImei(String imei) {
this.imei = imei;
}
public void setPackageStr(String packageStr) {
this.packageStr = packageStr;
}
public String getImei() {
return imei;
}
public String g... |
package math;
public class Game {
public static void main(String[] args) {
Warrior warrior1 = new Warrior("Warrior 1", new Point(0, 0));
Warrior warrior2 = new Warrior("Warrior 2", new Point(5, 10));
System.out.println(warrior1);
System.out.println(warrior2);
int counter =... |
package com.android_dev.tatenuufrn.databases;
import com.raizlabs.android.dbflow.annotation.Database;
/**
* Created by adelinosegundo on 10/13/15.
*/
@Database(name = TatenUFRNDatabase.NAME, version = TatenUFRNDatabase.VERSION)
public class TatenUFRNDatabase {
public static final String NAME = "tatenufrn_db";
... |
package com.uit.huydaoduc.hieu.chi.hhapp.Main.Driver.RouteRequestManager;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
i... |
package com.online.hibernate.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="Authors_Books")
public class Books {
@Id
@Genera... |
package progkomp.zad2;
public class SudokuBoardDaoFactory {
public static FileSudokuBoardDao getFileDao(final String fileName) {
return new FileSudokuBoardDao(fileName);
}
public static JdbcSudokuBoardDao getDbDao(final String dbName, final String user, final String password) throws Exce... |
import java.io.*;
class Sales
{
String name;
int qty;
long mobno;
float rate;
float amt;
float tax;
float total;
byte availableQty;
public void bill() throws IOException
{
BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the item name");
name=br.read... |
package com.lxl.beans.vo;
import com.lxl.beans.po.DfGroupItemPo;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Created by xiaolu on 15/5/7.
*/
public class DfGroupItem {
public DfGroupItem()
{
}
public DfGroupItem(DfGroupItemPo po)
{
this.id = po.getId();
this... |
package com.jzl;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
impor... |
package lawscraper.server.entities.user;
import lawscraper.server.entities.legalresearch.LegalResearch;
import lawscraper.server.entities.superclasses.EntityBase;
import lawscraper.shared.UserRole;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
/**
* Created by erik, IT Bolaget Per & Pe... |
import java.util.Scanner;
/**
* @author zhang
*/
public class Work05 {
public static void main(String[] args) {
System.out.println("请输入一个正整数:");
Scanner sc =new Scanner(System.in);
int number = sc.nextInt();
System.out.println(number+"的因子有:");
for(int i =1 ;i<=n... |
package example.android.notepad.test;
import java.util.ArrayList;
import android.test.suitebuilder.annotation.Smoke;
import android.widget.TextView;
import com.example.android.notepad.NotesList;
import com.jayway.android.robotium.remotesolo.RemoteSolo;
import com.jayway.android.robotium.solo.Solo;
import junit.exten... |
package by.belotserkovsky.pojos;
import javax.persistence.*;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Set;
/**
* Created by K.Belotserkovsky
*/
@Entity
@Table(name = "T_USER")
public class User implements Serializable{
... |
package com.kawakawaryuryu.commandlinerunnersample;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
@Component
@Slf4j
public class JobLauncher implements CommandLineRunner {... |
package pt.utl.ist.bw.conditionsinterpreter.conditioncompiler;
import pt.utl.ist.bw.conditionsinterpreter.conditions.Condition;
import pt.utl.ist.bw.elements.DataModelInstanceID;
import pt.utl.ist.bw.elements.DataModelURI;
import pt.utl.ist.bw.exceptions.InvalidConditionException;
/**
* Creates and returns new condi... |
package classstructureconstructors;
import java.util.Scanner;
public class BookMain {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Book book = new Book("Teszt Elek", "Teszt könyv");
System.out.println("Kérem adja meg a " + book.getAuthor() + " szerzőtő... |
package de.scads.gradoop_service.server.helper.constructor;
import java.util.List;
import java.util.Map;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.java.operators.MapOperator;
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONObject;
import o... |
/*
* 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 Controlador;
import Modelo.Login;
import Modelo.Empleado;
import Vista.FrmLogin;
import Vista.FrmMenuPrincipal;
import Vista.F... |
package com.algaworks.algamoney.api.logic.converter;
import com.algaworks.algamoney.api.data.entity.Address;
import com.algaworks.algamoney.api.data.entity.ClientEntity;
import com.algaworks.algamoney.api.logic.bean.AddressDTO;
import com.algaworks.algamoney.api.logic.bean.ClientDTO;
import org.springframework.core.co... |
package com.openfarmanager.android.utils;
import android.os.Parcel;
import android.os.Parcelable;
import java.io.Serializable;
public class ParcelableWrapper<T> implements Parcelable, Serializable {
public T value;
public ParcelableWrapper(T object) {
value = object;
}
@Override
public... |
package com.spring.work1;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import static org.junit.Assert.... |
package com.cxc.appcontext;
import android.content.SharedPreferences;
import android.os.StrictMode;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
... |
package com.test.base;
/**
* You are given two linked lists representing two non-negative numbers.
* The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
*
* You may assume the two numbers do not contain any leading zero, excep... |
package com.roundarch.entity;
public enum QuestionCategory {
SMART,
MOTIVATED,
GETS_ALONG,
GENERAL
}
|
package org.vincent.aop.dynamicproxy;
/**
* @Package: org.vincent.aop.dynamicproxy <br/>
* @Description: 定义切面接口,切面接口定义了两个切面方法,分别在切点接口方法执行前和执行后执行 <br/>
* @author: lenovo <br/>
* @Company: PLCC <br/>
* @Copyright: Copyright (c) 2019 <br/>
* @Version: 1.0 <br/>
* @Modified By: <br/>
* @Created by lenovo on 2018/1... |
package com.vincent.algorithm.basic.btree;
/**
* Created by chenjun on 2020-04-15 21:09
*/
class BitMapIpList implements IpService{
private IpSet ipSet = null;
public static void main(String[] args) {
BitMapIpList bitMapIpList = new BitMapIpList();
System.out.println(bitMapIpList.ipToLong("1... |
package wholesalemarket_SMP;
import jade.core.AID;
import jade.core.Agent;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.DefaultListModel;
import jxl.Cell;
import jxl.Sheet;
import jxl.Workboo... |
package com.company.tax.role.action;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.HashSet;
import javax.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import com.company.core.action.BaseAction;
import com.company.core.constant.Constant;
import com.comp... |
package com.learn.leetcode.week3;
import com.learn.leetcode.Tool;
import com.learn.leetcode.week1.SolutionRemoveElement;
import com.learn.leetcode.week1.struct.ListNode;
import org.junit.Test;
public class TestSolution {
@Test
public void testGetIntersectionNode(){
}
@Test
public void testTwoSum... |
package com.kevin.cloud.service.limit;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.kevin.cloud.commons.platform.dto.ResponseResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.HttpServletRequest;
/**
* @ProjectName: vue-blog-backend
* @Package: com.... |
package domain;
import repository.RoleRepository;
public class RestaurantManager extends Employee implements RoleRepository {
public String getjobDescription()
{
return "Manages the restaurant, makes sure everyone is working an dbusiness is running smoothly";
}
}
|
/*******************************************************************************
* Copyright 2012 Ivan Morgillo
*
* 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.apach... |
package top.docstorm.documentstormcommon.domain;
import java.io.Serializable;
import java.util.Date;
/**
* file_info
* @author
*/
public class FileInfo implements Serializable {
/**
* 文件id
*/
private Integer fileId;
/**
* 文件唯一key,用于在硬盘中的文件名
*/
private String ... |
package additional.greedy_algorithm;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
/**
* Книга Адитья Бхаргава.Грокаем алгоритмы. Aditya Bhargava.Grokking Algorithms.2017
* Глава 8. Жадные алгоритмы(Greedy algorithms) - это приближенные алгоритмы.
* Translated by Yuriy Litvinenko from P... |
/*
* SuperByteMatrixSingleTranspose
*/
package net.maizegenetics.util;
/**
*
* @author Terry Casstevens
*/
public class SuperByteMatrixTranspose implements SuperByteMatrix {
private final SuperByteMatrix myMatrix;
SuperByteMatrixTranspose(int rows, int columns) {
myMatrix = SuperByteMatrixBuild... |
package stock;
import java.util.HashMap;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import com.UBQGenericLib.BaseClassLoader;
import com.UBQGenericLib.ExcelLib;
/**
* @author Deepak
*
*/
@Listeners(com.UBQGene... |
package global.model;
/**
* 教学任务类
*
* @author zzt
*
*/
public class Teachingtask {
private int tt_id;
private String cou_id;
private int cou_theoryhour;
private int cou_experimentalhours;
private int cou_practicehour;
private String t_id;
private int sy_id;
private String multimedia;
private String m_i... |
/**
*
*/
package br.com.rpires.application.entity;
import java.io.Serializable;
import java.util.Date;
import br.com.rpires.application.utils.DateUtils;
/**
* @author Rodrigo Pires
*
*/
public class Corrida implements Serializable, Comparable<Corrida> {
private static final long serialVersionUID = 1243434666... |
package restAPI.clients;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import restAPI.models.CourseStudents;
@Component
@FeignClient("CourseStudent")
public interfac... |
package com.tt.rendezvous;
public interface SearchFacade {
public void getRelationsByTerms(String... terms);
public void getRelationsByQuery(String query);
public void getRealtionsByTermOrderBy(String orderBy, String...terms);
public void getRelationsByQueryOrderBy(String orderBy, String...terms)... |
package test;
import fello.controller.MemberManager;
import java.sql.SQLException;
public class test01 {
public static void main(String[] args) throws SQLException {
MemberManager memberManager = new MemberManager();
// memberManager.update();
}
}
|
package parameters;
import java.util.HashSet;
import java.util.Set;
/**
* Created by daniel on 8/12/14.
*/
public class RequestedTransfer {
int node_origin;
int node_destination;
int time_completion;
int data_amount;
Set<Rectangle> A;
public RequestedTransfer(int node_origin, int node_d... |
package jp.ac.hal.Model;
//個人注文クラス
public class IndividualOrder extends Order {
private String name; //氏名
private String phonetic; //フリガナ
private String postalCode; //郵便番号
private String address; //住所
private String phoneNumber; //電話番号
private String mailAddress; //メールアドレス
public String getName() {
retur... |
import java.io.Serializable;
public class User implements Serializable {
transient String username;
String email;
transient int password;
public User(String username, String email, int password) {
this.username = username;
this.password = password;
this.email = email;
... |
package se.kth.eh2745.moritzv.assigment1.exception;
public class InsertDataFailedException extends MysqlException {
private static final long serialVersionUID = 3588299366456202475L;
public InsertDataFailedException(Throwable cause){
super(cause);
}
}
|
package com.danielvizzini.util;
import java.lang.reflect.Constructor;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
impo... |
/*8. Implement a JAVA program to find the odd numbers between 0-100.*/
class OddNumbers{
public static void main(String args[]){
int i;
System.out.println("Odd numbers between 0-100 are: " );
for(i=0;i<=100;i++)
{
if(i%2!=0)
System.out.println(i);
}
}
}
|
/*
* Copyright (c) 2009, Julian Gosnell
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list ... |
package utilities;
public final class StringUtils {
private StringUtils() {}
static String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
static String alphabet2 = alphabet.toLowerCase();
public static Boolean isPalindrome(String s) {
int n = s.length();
for (int i = 0; i < (n / 2); ++i) {
if (s.charAt(i) != ... |
package ar.edu.unlam.pb2.ea1;
public class Hipertenso extends Paciente{
private Integer prensionMinima;
private Integer presionMaxima;
@Override
public void agregarDietaDiaria(DietaDiaria dieta) {
// Control de dieta para un Hipertenso
}
}
|
package com.slack.bot.services;
import me.ramswaroop.jbot.core.slack.Bot;
import me.ramswaroop.jbot.core.slack.SlackService;
import me.ramswaroop.jbot.core.slack.models.Event;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import org.springframework.boot.test.conte... |
package ElevatorDesign;
/**
* Created by FLK on 2019-04-06.
*/
public class ExternalRequest extends Request {
private final Direction direction;
public ExternalRequest(final int levelNumber,final Direction direction) {
super(levelNumber);
this.direction = direction;
}
public Direct... |
package com.aforo255.exam.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;... |
package rocks.zipcode.io.assessment4.fundamentals;
import java.util.HashSet;
import java.util.Set;
/**
* @author leon on 09/12/2018.
*/
public class StringUtils {
public static String capitalizeNthCharacter(String str, Integer indexToCapitalize) {
String[] strArray = str.split("");
strArray[in... |
package com.alibaba.druid.sql.parser;
import com.alibaba.druid.DbType;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLStatement;
import junit.framework.TestCase;
import org.junit.Assert;
/**
* @author gfChris
* @version 1.0
* @Description
* @date 2022/8/11 下午4:46
*/
public class Oracl... |
package com.huang.servlet;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Objects;
import java.util.Properties;
import com.huang.beans.FileBean;
import com.huang.common.Common;
import com.huang.server.Request;
import com.huang.server.Response;
public class Search... |
package view.component.button;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.SwingConstants;
import view.aConstant.ButtonConstant;
@SuppressWarnings("serial")
public class SelectButton extends BasicButton {
// Constructor
public SelectButton(String text, String actio... |
package com.Sanmina.BlackLabelWeb;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories... |
/*
* 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.globalcollect.infra2.landscapetool.model;
import org.neo4j.graphdb.RelationshipType;
/**
*
* @author cvugrine
*/
publ... |
package br.com.infoCenter.excecao;
public class CarrinhoException extends Exception {
private static final long serialVersionUID = 1L;
public CarrinhoException() {
super();
}
public CarrinhoException(String mensagem) {
super(mensagem);
}
}
|
package org.quickbundle.tools.support.cn2spell;
/**
* @(#)CnToSpellGUI.java
* kindani
* 2004-10-25??
* */
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.J... |
package com.example.demo.pojo;
import javax.persistence.*;
@Entity
@Table(name = "base_street")
public class BaseStreet{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String streetid;
private String street;
public Integer getId() {
return id;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.