text stringlengths 10 2.72M |
|---|
package Models;
/**
* Interface será implementada em usuario, para autenticar o login
*/
public interface Autentica {
public void login(String nome, String email, int senha);
}
|
/*
* TASSEL - Trait Analysis by a aSSociation Evolution & Linkage
* Copyright (C) 2003 Ed Buckler
*
* This software evaluates linkage disequilibrium nucletide diversity and
* associations. For more information visit http://www.maizegenetics.net
*
* This software is distributed under GNU general public lic... |
package zda.task.webchat.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zda.task.webchat.model.ChatMessage;
import zda.task.webchat.repository.ChatMessageRepository;
import java.util.Collections;
import java.util.List;
/**
* Service for ... |
package controllers;
import play.Logger;
import play.Play;
import play.data.DynamicForm;
import play.mvc.Controller;
import play.mvc.Result;
import com.typesafe.plugin.*;
public class Mail extends Controller {
public static Result send() {
DynamicForm form = form().bindFromRequest();
String email = form.ge... |
package com.ssm.service;
import java.util.List;
import com.ssm.entity.User;
public interface UserService {
public User findUserById(Integer id);
public void insert(User user);
public List<User> findAll(int offset,int limit);
}
|
package com.itinerary.resort.ws;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.ResponseBuilder;
import org.easymock.EasyMock;
import org.junit.Test;
//import org.junit.runner.RunWith;
import org.powermock.api.easymock.PowerMock;
import org.power... |
package pro.likada.bot.orders.utils;
/**
* Created by Yusupov on 3/31/2017.
*/
public class LikadaOrdersBotUtils {
public static final Integer LIK_ORDERS_BOT_ID = 370148039;
public static final String LIK_ORDERS_BOT_USERNAME = "lik_orders_bot";
public static final String LIK_ORDERS_BOT_TOKEN = "37014803... |
package uk.kainos.seleniumframework.properties;
public class BrowserstackProperties {
public static final String BROWSERSTACK_USERNAME = "browserstack.username";
public static final String BROWSERSTACK_ACCESS_KEY = "browserstack.access.key";
public static final String BROWSERSTACK_LOGGING = "browserstack.... |
import java.util.*;
public class SudokuContainer {
private int solutionnumber = 0;
private LinkedList<int[][]> sudokulist = new LinkedList<int[][]>();
private Iterator <int[][]> it = sudokulist.iterator();
public void addSolution(int[][] sol){
if(sol == null){
throw new NullPointerEx... |
package demo.dubbo.provider;
/**
* Created by Bennett Dong <br>
* Date : 2018/1/27 <br>
* Mail: dongshujin.beans@gmail.com <br> <br>
* Desc:
*/
public interface DemoService {
void sayHi();
}
|
package com.example.hyunyoungpark.addressbookdemo.Data;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
// this class creates and upgrade the database
public class AddressBookDatabaseHelper extends SQLiteOpenHelper {
// create a dat... |
/**
*
*/
package ua.epam.course.java.project01;
import java.util.ArrayList;
import ua.epam.course.java.project01.tools.TrackContainer;
/**
* Program view class
* @author pipich3
* @version 1.0
* @since 09.11.2015
*/
public class CDBurnerView {
/**
* string error messages
*/
private final String TOTA... |
package com.github.emalock3.websocket;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context... |
/*
* Copyright (C) 2008-2010 Martin Riesz <riesz.martin at gmail.com>
* Copyright (C) 2016-2017 Joaquin Rodriguez Felici <joaquinfelici at gmail.com>
* Copyright (C) 2016-2017 Leandro Asson <leoasson at gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of th... |
package kr.or.ddit.profile_file.service;
import java.util.List;
import java.util.Map;
import kr.or.ddit.vo.ProfileFileVO;
public interface IProfileFileService {
public ProfileFileVO selectProfileFileInfo(Map<String, String> params) throws Exception;
public void insertProfileFileInfo(ProfileFileVO profileInfo) thro... |
package service;
import javax.crypto.spec.SecretKeySpec;
import java.security.Key;
import java.util.Base64;
import java.util.Date;
import java.util.Map;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.JwtBuilder;
import io.jsonwebtoken.SignatureAlgorithm;
public class JWT {
private static String SECRET_KEY... |
package gr.uoa.di.dbm.webapp.controller;
import gr.uoa.di.dbm.webapp.entity.AppUser;
import gr.uoa.di.dbm.webapp.entity.AuditLog;
import gr.uoa.di.dbm.webapp.service.ServiceRequestServiceImpl;
import gr.uoa.di.dbm.webapp.service.UserDetailsServiceImpl;
import gr.uoa.di.dbm.webapp.utils.WebUtils;
import org.springframe... |
/*
* Copyright 2002-2023 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 PACKAGE_NAME;
public class IllegalAgeException {
}
|
package com.esum.comp.socket.packet;
import com.esum.comp.socket.SocketException;
/**
* 송수신한 Packet을 읽어서 <code>ReaderableMessage</code> 객체를 생성한다.
*
* 다양한 포맷의 Packet를 수신할 수 있으며, 수신한 메시지의 규격에 의해 파싱하고, 그 결과로 ReaderableMessage를 생성한다.
*/
public interface PacketReader {
public ReaderableMessage readPacket(byte[] pa... |
package main.employees;
public class Contractor extends Employee {
public Contractor(String firstName, String lastName, int fixedPay) {
super(firstName, lastName, fixedPay);
}
@Override
public void applyForLeave(int days) throws UnsupportedOperationException {
throw new UnsupportedOpe... |
package lab6;
import java.util.Scanner;
public class SV {
String hoten;
double tb;
public String name;
public String getHoten() {
return hoten;
}
public void setHoten(String hoten) {
this.hoten = hoten;
}
public double getTb() {
return tb;
}
public void setTb(double tb) {
this.tb = tb;
}
pub... |
/*
* Copyright 2002-2023 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 trabalhotheobaldo;
public class Main {
public static void main(String[] args) {
CadastroCliente c =new CadastroCliente();
c.setVisible(true);
}
}
|
package com.lidaye.shopIndex.service;
import com.lidaye.shopIndex.domain.vo.CategoryVo;
import com.lidaye.shopIndex.domain.vo.ShopVo;
import com.lidaye.shopIndex.utils.IndexHeadRes;
import java.util.List;
public interface ListService {
List<ShopVo> getShopFoCate(int cid);
List<ShopVo> getShopToSearch(String ... |
package br.com.leandrocolevati.bancodedados;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public... |
/*
* 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.victuxbb.javatest.security.service;
import com.victuxbb.javatest.model.role.RoleEnum;
import com.victuxbb.javatest.model.u... |
package ru.sgu.csit.csc.graphs.labeled;
import ru.sgu.csit.csc.graphs.Graph;
public interface EdgeLabeledGraph<L> extends Graph {
boolean addEdge(int from, int to, L label);
Iterable<Edge<L>> getNeighborEdges(int vertex);
public static class Edge<L> {
private final int to;
private final ... |
package patterns.structure.flyweight;
/**
* 享元模式(共享对象模式):运用共享技术有效地支持大量细粒度的对象
*/
public class Client {
public static void main(String[] args) {
FlyweightFactory flyweightFactory = new FlyweightFactory();
Flyweght flyweght1 =flyweightFactory.getFlyweight("aa");
Flyweght flyweght2 = flywe... |
package com.metoo.module.app.view.web.action;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;... |
package ntou.cs.java2021.hw1;
import java.util.Scanner;
/*
* by 00857005 周固廷
* */
public class PalindromeTest {
public static void main(String[] args) {
Palindrome palindrome = new Palindrome();
Scanner scanner = new Scanner(System.in);
while (true) {
System.out.print("\nEnter ... |
package com.xnarum.thonline.recon.entity;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Table;
@Table(name="thijari_unrecon_trans")
public class THIJARI_UNRECON_TRANS {
@Column(name="BUSINESS_DATE", length=4)
private Date businessDate;
@Column(name... |
package jesk.desktopgui.item;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import jesk.Jesk;
import jesk.desktopgui.DesktopObject;
import jesk.desktopgui.Menu;
import jesk.system.MouseButton;
import jesk.system.OperatingSystem;
i... |
/*
* Welcome to use the TableGo Tools.
*
* http://vipbooks.iteye.com
* http://blog.csdn.net/vipbooks
* http://www.cnblogs.com/vipbooks
*
* Author:bianj
* Email:edinsker@163.com
* Version:5.8.0
*/
package com.lenovohit.hcp.base.model;
import java.math.BigDecimal;
import javax.persistence.Column;
import ja... |
package com.asiainfo.worktime.entity;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
* T... |
package CollectionProgram;
import java.util.ArrayList;
import java.util.Collections;
public class SwapTwoElementsInAArrayList {
public static void main(String a[])
{
ArrayList<String> ArrList = new ArrayList<String>();
ArrList.add("Item 1");
ArrList.add(... |
package com.rengu.operationsoanagementsuite.Utils;
import com.rengu.operationsoanagementsuite.Entity.ResultEntity;
import com.rengu.operationsoanagementsuite.Entity.UserEntity;
import org.springframework.http.HttpStatus;
import java.security.Principal;
public class ResultUtils {
// 创建ResultEntity
public sta... |
package de.trispeedys.resourceplanning.delegate.requesthelp;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import de.trispeedys.resourceplanning.datasource.Datasources;
import de.trispeedys.resourceplanning.delegate.requesthelp.misc.RequestHelpNotificationDelegate;
import de.trispeedys.resourceplann... |
package com.pelephone_mobile.mypelephone.ui.activities;
import android.view.View;
import android.view.Window;
import android.webkit.WebView;
import android.widget.ImageButton;
import com.pelephone_mobile.R;
/**
* Created by Gali.Issachar on 17/09/13.
*/
public class TermsOfUseActivity extends MPBaseActivity {
... |
package com.arquitecturajava.app1;
import java.util.Arrays;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.securi... |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... |
package videopoker.model;
import java.io.FileNotFoundException;
import java.io.IOException;
public class App {
public static void main(String[] args) throws FileNotFoundException, IOException{
Deck deck = new Deck("C:\\Users\\Bruno\\workspace\\VideoPoker\\src\\card-file.txt");
}
}
|
package Dico;
public class Levenshtein {
private String mot1;
private String mot2;
private int distance;
public Levenshtein(String mot1, String mot2) {
this.mot1 = mot1;
this.mot2 = mot2;
distance = 0;
}
private void swap(){
String tmp;
tmp = mot1;
... |
package com.example.tddfpcrud;
import org.springframework.data.mongodb.core.mapping.Document;
@Document
public class Person {
private String id;
private String nombre;
public Person() {
}
public Person(String nombre) {
this.nombre = nombre;
}
public Person(String id, String nomb... |
package com.test.proxy.dynamic;
import com.test.proxy.statics.Renter;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
/**
* Created with IntelliJ IDEA.
* User: wuzbin
* Date: 13-5-6
* Time: 下午10:30
* To change this template use File | Settings | File Templates.
*/
public class Agen... |
package com.example.van.baotuan.VP.act.launch.page1;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.LinearLayoutCompat;
import android.support.v7.widget.Li... |
package 设计模式.工厂模式.简单工厂.披萨店.订购;
import 设计模式.工厂模式.简单工厂.披萨店.披萨.CheesePizza;
import 设计模式.工厂模式.简单工厂.披萨店.披萨.GreekPizza;
import 设计模式.工厂模式.简单工厂.披萨店.披萨.Pizza;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
//普通的方法
public class OrderPizza {
//构造器
public OrderPizza(SimpleFa... |
package com.github.dongchan.scheduler.testhelper;
import com.github.dongchan.scheduler.Clock;
import java.time.Instant;
/**
* @author DongChan
* @date 2020/10/22
* @time 11:22 PM
*/
public class SettableClock implements Clock {
public Instant now = Instant.now();
public void setNow(Instant now) {
... |
/*
* Copyright 2002-2020 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.brainacademy.threads;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
public class ThreadPoolTest {
private static final ExecutorService EXECUTOR_SERVICE = Executors.newFixedThreadPool(2);
public static void main(String[] ... |
package com.zzh.cloud;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("com.zzh.cloud.mapper.**")
public class MysqlMybatisApplication {
public static void m... |
package com.javarush.test.level07.lesson08.Example02;
/*
* Reading list of numbers from keyboard, even numbers are added to the end of list,
* odd numbers are added to be beginning of list.
*/
import java.io.*;
import java.util.ArrayList;
public class Example
{
public static void main(String[] args) throws IO... |
/*
* 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 bioskop;
import java.io.Serializable;
/**
*
* @author satria
*/
public class film_booking implements Serializ... |
package com.altmedia.billboard.entity;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBDocument;
@DynamoDBDocument
public class UserInfo {
private String firstName;
private String lastName;
private String emailAddress;
... |
/**
* Represents the progress made in the current game.
*
*/
public class Progress {
static final int nHighScores = 10;
static final String filename = "score.cfg";
static int levelsCompleted = 0;
static int levelScore[][] = new int[Levels.nLevels][nHighScores];
static {
load();
}
public static void... |
package ua.siemens.dbtool.dao;
import ua.siemens.dbtool.model.auxilary.JobType;
/**
* The DAO interface for {@link JobType}
*
* @author Perevoznyk Pavlo
* creation date 29 August 2017
* @version 1.0
*/
public interface JobTypeDAO extends GenericDAO<JobType, Long> {
}
|
package com.git.cloud.common.support;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class TimeUtils {
public static long formatDateStringToInt(String strDate, String _format) {
Date time;
SimpleDateFormat format = new SimpleDateFormat(_format, Locale.getDefaul... |
package rs2.model;
/**
* Represents a single skill belonging to the player.
*
* @author Jake Bellotti
* @since 1.0
*/
public class Skill {
/**
* The level that the level is currently at, which may be affected by combat effects, potions,
* etc., for example a Player may have reached level 99 in prayer, but ... |
package org.wanholi.erw.excel;
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Element;
import org.wanholi.erw.pub.XXML;
public class Sheet extends XXML{
String path="xl"+File.... |
package uk.co.mtford.jalp;
import org.apache.commons.io.FileUtils;
import org.apache.log4j.*;
import uk.co.mtford.jalp.abduction.AbductiveFramework;
import uk.co.mtford.jalp.abduction.Result;
import uk.co.mtford.jalp.abduction.logic.instance.*;
import uk.co.mtford.jalp.abduction.logic.instance.constraints.ChocoConstra... |
package org.wso2.carbon.identity.recovery.endpoint;
import org.wso2.carbon.identity.recovery.endpoint.dto.*;
import org.wso2.carbon.identity.recovery.endpoint.CaptchaApiService;
import org.wso2.carbon.identity.recovery.endpoint.factories.CaptchaApiServiceFactory;
import io.swagger.annotations.ApiParam;
import org.ws... |
package com.gxjtkyy.standardcloud.common.domain;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
import java.util.List;
/**
* 分页对象模型
* @Package com.gxjtkyy.domain
* @Author lizhenhua
* @Date 2018/5/29 15:36
*/
@Setter
@Getter
@ToString
public class Page<T> implem... |
package juegovectores;
import java.util.Scanner;
public class Juegovectores {
public static void main(String[] args) {
// TODO code application logic here
Scanner Entrada=new Scanner(System.in);
System.out.print("Ingrese canticad de jugadores ");
int x =Entrada.nextInt();
... |
/*
* Copyright (c) 2009-2010 Granite Kirill Grouchnikov. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
* ... |
package com.ConfigPoste.RecetteCuisine.RecetteCuisine.services;
public class MyFileNotFoundException extends Exception {
public MyFileNotFoundException(String s) {
super(s);
}
}
|
package com.designpatterns.pwdp.strategy;
public class SecondOperation implements Strategy {
@Override
public int doOperation(int x, int y) {
return x-y;
}
}
|
package com.mycompany.myapp.web.rest;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.Matchers.hasItem;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
import co... |
package hu.lamsoft.hms.nutritionist.service.nutritionist.impl;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;
import hu.lamsoft.hms.common.service.mapper.ModelMapper;
im... |
public class insertIntoBST {
/*
You are given a pointer to the root of a binary search tree and values to be inserted into the tree.
Insert the values into their appropriate position in the binary search tree and return the root of the updated
binary tree. You just have to complete the func... |
package io.jrevolt.sysmon.agent;
import java.util.Set;
/**
* @author <a href="mailto:patrikbeno@gmail.com">Patrik Beno</a>
* @version $Id$
*/
public class DnsReport {
}
|
package com.trump.auction.activity.service;
import com.cf.common.utils.ServiceResult;
import com.trump.auction.activity.model.ActivityUserModel;
/**
* 活动用户相关
* @author wangbo 2018/1/11.
*/
public interface ActivityUserService {
/**
* 初始化活动用户
* @param activityUserModel 活动用户信息
* @return 受影响的行数
... |
/**
* Copyright (C) Alibaba Cloud Computing, 2012
* All rights reserved.
*
* 版权所有 (C)阿里巴巴云计算,2012
*/
package com.aliyun.oss.common.auth;
import static com.aliyun.oss.common.utils.CodingUtils.assertParameterNotNull;
/**
* 表示用户访问的授权信息。
*
*/
public class ServiceCredentials {
private String accessKeyId;
... |
package io.github.satr.aws.lambda.bookstore.ask.handlers;
// Copyright © 2020, github.com/satr, MIT License
import io.github.satr.aws.lambda.bookstore.services.ServiceFactory;
import io.github.satr.aws.lambda.bookstore.strategies.intenthandler.IntentHandlerStrategyFactory;
import org.slf4j.Logger;
public class AskReq... |
package com.core.common;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.http.HttpException;
import java.io.IOException;
import java.net.URISyntaxException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.ConcurrentH... |
package com.seven.contract.manage.service.impl;
import com.seven.contract.manage.dao.LabelDao;
import com.seven.contract.manage.model.Label;
import com.seven.contract.manage.service.LabelService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
imp... |
package it.greenvulcano.util.remotefs.hdfs.utility;
public interface HDFSParamsKey {
public String deleteSource = "dfs.file.delete-source";
public String useRawLocalFileSystem = "dfs.file.raw-local-filesystem";
public String bufferSize = "dfs.stream-buffer-size";
public String overwrite = "dfs.file.overwrite";
p... |
package java.com.eq.domain.core;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* TextFilterModel
*/
public class TextFilterModel implements FilterModel {
private String fieldName = null;
@Json... |
package singletonDPpackage;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
class testStaticGlobalSetting {
@Test
void testVisibility() {
//System.out.println();
// StaticGlobalSettings have a private constructor
// cannot instantiate an object
StaticGlobalSettin... |
package concurrent;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public class FutureDemo {
public static void main(String[] args) throws Exception {
long start = System.currentTimeM... |
/*
* 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 org.abrahamalarcon.datastream.dom.response;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
public class BaseResponse implements Serializable {
BaseError baseError;
@JsonProperty("error")
public BaseError g... |
package com.edasaki.rpg.spells;
import java.util.function.IntToDoubleFunction;
import com.edasaki.rpg.spells.alchemist.Bomb;
import com.edasaki.rpg.spells.alchemist.Gravitron;
import com.edasaki.rpg.spells.alchemist.HeatWall;
import com.edasaki.rpg.spells.alchemist.Minefield;
import com.edasaki.rpg.spells.alchemist.M... |
package github.dwstanle.tickets.model;
import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
@Getter
@Setter
@RequiredArg... |
package com.prenevin.application.service.api
;
import com.prenevin.library.crud.service.api.BaseCrudService;
import com.prenevin.application.domain.Person;
public interface PersonService extends BaseCrudService<Person> {
}
|
package com.flyusoft.apps.jointoil.entity;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "FLY_TWO_SCREW_MACHINE")
public class TwoScrewMachine extends CompressorMD {
private Double oilPressure;// 机油压力,
private Double exhaustPressure;// 排气压力,
private Double outScr... |
package com.db.retail.exception;
/**
* Error codes to be thrown along with exception
* @author RD00488188
*
*/
public enum ErrorCodes {
UNKNOWN_ERROR("system error"),
NO_SHOP_IN_THE_SYSTEM("no shop is available in the system"),
INSUFFICIENT_SHOP_INFO("mandatory shop info missing in input request"... |
/*
* Copyright 2002-2023 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 ro.ase.csie.g1093.testpractice.command;
import java.util.ArrayList;
public class TaskManager {
ArrayList<TaskAsyncAbstract> tasks = new ArrayList<>();
public void adaugaTask(TaskAsyncAbstract task) {
tasks.add(task);
}
public void executaTask() {
if(this.tasks.size() > 0) {
TaskAsyncAbstract ... |
package pageTests;
import java.util.List;
import org.testng.Assert;
import org.testng.annotations.Test;
import pageObjects.FlightResultPage;
import pageObjects.FlightHomePage;
import seleniumTests.BaseTestUsingTestNG;
public class FlightHomePageTest extends BaseTestUsingTestNG {
FlightHomePage flightHomePage;
F... |
package com.melodygram.model;
import java.io.Serializable;
import java.util.Comparator;
import java.util.Random;
import android.graphics.Bitmap;
/**
* Created by LALIT on 15-06-2016.
*/
public class ContactsModel implements Serializable {
public static final int aItem = 0;
public static final int aSection = 1;
... |
package com.programapprentice.app;
/**
* User: program-apprentice
* Date: 8/8/15
* Time: 5:22 PM
*/
public class StrStr_28 {
// brute force solution
public int strStr(String haystack, String needle) {
if(needle.length() == 0) {
return 0;
}
if(needle.length() > haystack.l... |
package com.tw;
import com.sun.org.apache.xerces.internal.impl.xpath.regex.Match;
import java.io.*;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
public class ... |
package uk.co.onehp.btcirl;
import uk.co.onehp.btcirl.domain.Transaction;
public interface IrlService {
void setIrl(Transaction transaction, int place);
}
|
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;;
public class SolutionTest {
@Test
public void test() {
char c = 'e';
String s = "loveleetcode";
int[] sol = {3, 2, 1, 0, 1, 0, 0, 1, 2, 2, 1, 0};
assertArrayEquals(sol, new Solution().shortestToChar(s,c)... |
package se.arvidbodkth.laboration2;
import android.content.Context;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
/**
* @author Jonas Wåhslén, jwi@kth.se.
* Revise... |
package espm_algoritmos.lista_exerc2;
import java.util.Scanner;
public class Exerc03_a {
public static void main(String[] args) {
double x, y;
Scanner sentinela = new Scanner(System.in);
System.out.print("Insira o valor de 'x': ");
x = sentinela.nextDouble();
System.out.print("Insira o valor de 'y': ");... |
package com.xrlj.configserver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boo... |
package com.uchain.core;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.Maps;
import com.uchain.common.Serializabler;
import com.uchain.cryptohash.Crypto;
import com.uchain.cryptohash.Fixed8;
import com.uchain.cryptohas... |
package com.example.sourabh.bookmyticket;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Imag... |
package com.test.billing.dao;
import com.test.billing.dao.mapper.BalanceHistoryMapper;
import com.test.billing.dao.model.BalanceHistory;
import org.skife.jdbi.v2.sqlobject.Bind;
import org.skife.jdbi.v2.sqlobject.BindBean;
import org.skife.jdbi.v2.sqlobject.SqlQuery;
import org.skife.jdbi.v2.sqlobject.SqlUpdate;
impor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.