text stringlengths 10 2.72M |
|---|
package jupiterpa;
import java.util.*;
import lombok.*;
import lombok.experimental.*;
import jupiterpa.util.*;
public interface ISales extends IService {
List<MProduct> getProducts();
MProduct getProduct(EID materialId) throws EconomyException;
EID postOrder(MOrder order) throws EconomyException;
... |
package com.jlgproject.activity;
import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.widget.AbsListView;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.handmark.pulltorefresh.li... |
package com.tencent.mm.ui.widget.snackbar;
import android.app.Activity;
import android.content.Context;
import android.os.Build.VERSION;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.vie... |
package com.hawk.application.web;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.sprin... |
package org.tibetjungle.misc.ocr;
import java.io.File;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.List;
import org.apache.commons.io.FilenameUtils;
import com.github.axet.lookup.common.ClassResources;
public class OCR extends com... |
package com.vapenation.twittermongo;
import org.apache.camel.CamelContext;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.Exchange;
import org.springframework.stereotype.Component;
import org.springframework.beans.factory.annotation.Autowired;
@Component
public class UserRoute extends RouteBu... |
package com.tencent.mm.plugin.freewifi;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.wifi.WifiManager;
import android.os.Looper;
import com.tencent.map.geolocation.TencentLocationListener;
import c... |
/**
* Javassonne
* http://code.google.com/p/javassonne/
*
* @author Adam Albright
* @date Jan 25, 2009
*
* Copyright 2009 Javassonne Team
* 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 co... |
package android.support.v4.app;
import android.support.v4.app.ac.b.a;
class z$f$a$1 implements a {
z$f$a$1() {
}
}
|
package com.paidaki.Greeklish;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Letter {
private String greek;
private List<String> english;
public Letter(String greek, String... english) {
this.greek = greek;
this.english = new ArrayList<>();... |
/**
*
*/
package org.rebioma.server.services;
import java.util.List;
import java.util.Set;
import org.apache.log4j.Logger;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Projections;
import org.rebioma.client.Occurrence... |
package de.jmda.app.xstaffr.common.domain;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Generatio... |
package com.tencent.mm.plugin.webview.ui.tools.fts;
import android.os.Bundle;
import com.tencent.mm.plugin.webview.ui.tools.fts.FTSSOSHomeWebViewUI.17;
import java.util.Map;
class FTSSOSHomeWebViewUI$17$1 implements Runnable {
final /* synthetic */ Bundle qah;
final /* synthetic */ Map qes;
final /* synth... |
package com.kerbii.undersiege;
public abstract class ArrowBase extends GameObject {
public static final int FLYING = 0, EMBEDDED = 1, BROKEN = 2, EFFECT = 3, TOCASTLE = 4;
public int state;
// public static final int GENERIC = 0, FIRE = 1, LIGHTNING = 2, ICE = 3, ARCHER = 4, MOB = 5;
public int arrowType;
pu... |
package com.tencent.mm.ui;
import android.content.Intent;
import com.tencent.mm.R;
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.modelsimple.ab;
import com.tencent.mm.plugin.account.ui.RegByMobileSetPwdUI;
import com.tencent... |
package javaapplication25;
import java.io.*;
import java.util.*;
public class itemService
{
item use = new item ();
public void add(String namee,int i)
{
item e=new item();
e.setName(namee,i);
}
public void remove(item e)
{
}
public void view()
{
}
}
|
package com.sharjeelhussain.smd_project;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.os.Bundle;
import android.view.View;
... |
package java1;
public class lastoccu {
public static void main(String[] args) {
String s= new String("CIVIC");
char[] ch =s.toCharArray();
char c='C';
int temp=0;
for(int i=0;i<ch.length;i++)
{
if(ch[i]==c)
{
temp=i;
... |
package com.darglk.todolist.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Controller;
import org.springfra... |
package com.smxknife.hbase.demo02;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.*;
import org.apache.hadoop.hbase.util.Bytes;
import org.junit.After;
import org.junit.Before;
import org.ju... |
package lambdaExpressions;
import java.time.LocalDate;
import java.time.chrono.IsoChronology;
import java.util.ArrayList;
import java.util.List;
public class Person {
public Person(String name, LocalDate birthday, Sex gender, String emailAddress) {
this.name = name;
this.birthday = birthday;
... |
package com.yoeki.kalpnay.hrporatal.Profile.Certification;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.yoeki.kalpnay.hrporatal.R;
import com.yoeki.kalpnay.hrporatal.setting.Textcl... |
package com.eres.waiter.waiter.adapters;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.util.DiffUtil;
import android.support.v7.util.ListUpdateCallback;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
impo... |
package pojo;
// Generated Mar 14, 2018 12:29:09 PM by Hibernate Tools 4.3.1
import java.util.HashSet;
import java.util.Set;
/**
* ProgramSubtitle generated by hbm2java
*/
public class ProgramSubtitle implements java.io.Serializable {
private Integer idProgramSubTitle;
private ProgramTitle programTitl... |
package negocio.excecao;
public class AnoNaoDeclaradoException extends Exception{
public AnoNaoDeclaradoException(){
super("Ano nao foi declarado");
}
}
|
package com.galvanize.carapp.repository;
import com.galvanize.carapp.model.RaceCar;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface RaceCarRepository extends JpaRepository<RaceCar, Long> {
}
|
package com.itheima.ssm.service;
import com.itheima.ssm.domain.Product;
import java.util.List;
/**
* 商品业务层实现类
*/
public interface ProductService {
//查询所有商品
public List<Product> findAll() throws Exception;
//保存商品
void save(Product product) throws Exception;
}
|
package cn.jk.mybatis.test;
import cn.jk.mybatis.config.JkConfiguration;
import cn.jk.mybatis.executor.CachingExecutor;
import cn.jk.mybatis.executor.Executor;
import cn.jk.mybatis.session.JkSqlSession;
public class BootStrap {
public static void main(String[] args) {
start();
}
private static v... |
package com.linkedbook.entity;
import java.io.Serializable;
import java.util.Objects;
public class PopularCategoryPK implements Serializable {
private static final long serialVersionUID = 1L;
private String bookId;
private int categoryId;
public PopularCategoryPK(){
}
public PopularCategor... |
package evm.dmc.api.model.account;
import java.time.Instant;
import java.util.Set;
import javax.persistence.Entity;
import evm.dmc.api.model.ProjectModel;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@Entity
@NoArgsConstructor
public class AccountExt extends Account{
/**
*
*/
private ... |
package psk.com.mediaplayerdemo.service;
import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.AudioManager;
import android.media.MediaPlayer;
import andro... |
package com.accp.service.impl;
import com.accp.entity.Stockapply;
import com.accp.dao.StockapplyDao;
import com.accp.service.IStockapplyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author ljq
* @since 2... |
package com.mx.profuturo.bolsa.model.reports.templates;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import com.mx.profuturo.bolsa.model.reports.vo.data.MotivosRechazoVO;
public class MotivosRechazoTemplate extends BaseTemplate {
//fecha candidato motivo etapa analista obser... |
package Pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class CustomiseStatementPage {
@FindBy(linkText = "Customised Statement")
public WebElement CustomizedStatementPageField;
@FindBy(name = "accountno")
public WebElement AccountNumberField;
@FindBy(nam... |
package tij.concurrents.part2;
import java.util.ArrayList;
import java.util.concurrent.*;
public class TaskWithResult implements Callable<String> {
private int id ;
public TaskWithResult(int id){
this.id = id;
}
@Override
public String call() throws Exception {
String str = "starti... |
package com.xiaoxiao.tiny.frontline.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.sun.org.apache.bcel.internal.generic.LADD;
import com.xiaoxiao.pojo.XiaoxiaoLabels;
import com.xiaoxiao.pojo.vo.XiaoxiaoLabelVo;
import com.xiaoxiao.tiny.frontline.feign.RedisCac... |
package com.deltastuido.nexus.application;
import java.sql.Timestamp;
import java.time.Instant;
import com.deltastuido.nexus.domain.Message;
import com.google.common.base.Preconditions;
public class MessageBuilder {
private Message message;
private MessageBuilder() {
this.message = new Message();
... |
package com.tencent.mm.plugin.appbrand.appcache;
import java.io.InputStream;
interface WxaCommLibRuntimeReader$c {
WxaPkgWrappingInfo abQ();
InputStream openRead(String str);
}
|
package uk.co.mobsoc.beacons.transientdata;
import java.util.ArrayList;
import org.bukkit.block.Block;
import uk.co.mobsoc.beacons.storage.TeamData;
public abstract class Event {
private int warmuptimer = 0;
private int maintimer = 0;
private int cooldowntimer = 0;
/**
* Sets the time - in ticks (i * 20) (sho... |
package baekjoon.numbertheory_combinatorics;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Test_11050 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new Inpu... |
package entities.components;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import utils.CommonFunctions;
import static org.testng.Assert.assertTrue;
public class SignInFormComponent extends BaseComponent {
private By forgotPassword = By.cssSelector("a.forgot-password-link");
private ... |
package org.switchyard.quickstarts.webservice.consumer2.ws;
import java.io.Serializable;
@SuppressWarnings("serial")
public class ProcessOrderRequest implements Serializable {
private Order order;
public Order getOrder() {
return order;
}
public void setOrder(Order order) {
... |
import static java.util.Arrays.asList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class SomeJavaCode {
{
}
public SomeJavaCode() {
super();
}
{
}
public static final List defaults = java.util.Arrays.asList(new Integer[]{Integer.val... |
package com.example.vjobanputra.simpletodo;
import android.provider.BaseColumns;
/**
* Created by vjobanputra on 8/12/15.
*/
public final class TodoDbContract {
public TodoDbContract() {}
public static abstract class Items implements BaseColumns {
public static final String TABLE_NAME = "items";
... |
package com.zadu.nightout;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
imp... |
package zomeapp.com.zomechat.adapters;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.Animatable;
import android.net.Uri;
import android.support.design.widget.Snackbar;
import android.support.v7.widge... |
package app.integro.sjbhs;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import java.util.ArrayLis... |
package com.tencent.mm.plugin.downloader.a;
public final class b {
public static int ibs = 0;
public static int ibt = 1;
public static int ibu = 2;
}
|
package sort_algorithm;
public class CountingSort {
public static void main(String[] args){
int[] intArray = {2, 5, 9, 8, 2, 8, 7, 10, 4, 3};
countingSort(intArray, 1, 10);
for(int i=0; i < intArray.length; i++){
if(i == intArray.length-1){
System.out.println(i... |
package com.paytechnologies.cloudacar.AsynTask;
import java.io.IOException;
import java.net.UnknownHostException;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.cli... |
public abstract class Veiculo{
//Atributos:
private String placa = "";
private String marca = "";
private String modelo = "";
private float velocMax = 0;
//Declaração e Instanciação
TstPlaca tst = new TstPlaca();
Motor mot = new Motor();
//Métodos Setters:
public void setPlaca(String placa){
... |
package com.example.myapplication.support_kt;
import kotlin.Function;
/**
* ******************************
*
* @author YOULU-wwb
* date: 2020/4/21 14:29
* description:
* ******************************
*/
public class SupportUtil {
}
|
package com.handsomedong.dynamic.datasource.spring.boot.autoconfigure;
import com.handsomedong.dynamic.datasource.aop.DynamicDataSourceAnnotationBeanPostProcessor;
import com.handsomedong.dynamic.datasource.aop.DynamicDataSourceAnnotationInterceptor;
import com.handsomedong.dynamic.datasource.helper.DynamicDataSourceC... |
package hirondelle.web4j.security;
import hirondelle.web4j.request.RequestParser;
/**
Determine if text is likely spam.
<P>See {@link hirondelle.web4j.BuildImpl} for important information on how this item is configured.
{@link hirondelle.web4j.BuildImpl#forSpamDetector()}
returns the configured imple... |
package uk.gov.ons.ctp.response.action.export.config;
import lombok.Data;
import net.sourceforge.cobertura.CoverageIgnore;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import uk.gov.ons.ctp.common.message.rabbit.Rabbitmq;
/** ... |
import java.util.Scanner;
public class P9 {
public static void main(String[] args) {
final int UNIT_LITER = 9;
Scanner sc = new Scanner(System.in);
System.out.println("Input the length");
while (!sc.hasNextLong()) {
sc.next();
System.out.println("Confirm y... |
/**
*
*/
package com.chengzhang.picturematching;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
/**
* @author Jackie
*
*/
public class Launcher extends Activity {
private Button _startButton, _exitBu... |
/*
* (C) Copyright 2012 Nuxeo SA (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.o... |
/*
* *********************************************************
* Copyright (c) 2019 @alxgcrz All rights reserved.
* This code is licensed under the MIT license.
* Images, graphics, audio and the rest of the assets be
* outside this license and are copyrighted.
* ***************************************************... |
/*
TODO: Understand concept of annonymous class.
*/
interface It
{
void at();
}
public class Annonymous
{
public static void main(String args[])
{
It e=new It()
{
public void at()
{
System.out.println("Annonymous define");
}
};
e.at();
}
} ... |
public class Wrapper {
int hops;
String url;
Wrapper(String url1, int d1)
{
hops=d1;
url= new String(url1);
}
public String getUrl()
{
return url;
}
public int getHops()
{
return hops;
}
}
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.09.... |
package xframe.example.pattern.observer;
public final class ContreteObserver implements Observer {//具体观察者
public void update(Observable observable, Object arg) {
System.out.println(this.toString() + " received notify.");
}
}
|
package cn.wzvtcsoft.validator.exceptions;
/**
* DomainRule 中的 rule 不符合规范,则抛出此异常
*/
public class DomainRuleCheckException extends RuntimeException {
public DomainRuleCheckException(String message) {
super(message);
}
}
|
/**
* This package contains the model for the management of CSARInstances.
*
* Copyright 2013 Christian Endres
*
* @author endrescn@fachschaft.informatik.uni-stuttgart.de
*
*/
package org.opentosca.model.csarinstancemanagement; |
package com.zpjr.cunguan.action.impl.investment;
import com.google.gson.JsonObject;
import com.zpjr.cunguan.action.action.investment.IInvestmentAction;
import com.zpjr.cunguan.common.base.BaseAction;
import com.zpjr.cunguan.common.retrofit.MyCallBack;
import com.zpjr.cunguan.common.retrofit.PresenterCallBack;
import c... |
package com.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dao.RoomMapper;
import com.model.Room;
import com.service.RoomService;
@Service
public class RoomServiceImpl implements Room... |
package com.kdp.wanandroidclient.ui.core.model;
import com.kdp.wanandroidclient.bean.Article;
import com.kdp.wanandroidclient.bean.Banner;
import com.kdp.wanandroidclient.bean.BaseBean;
import com.kdp.wanandroidclient.bean.HomeData;
import com.kdp.wanandroidclient.bean.PageListData;
import com.kdp.wanandroidclient.net... |
package JavaSE.OO.IO;
import java.io.*;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;
/*
* java.io.ObjectOutputStream;序列化java对象到硬盘(Serial)
* java.io.ObjectInputStream;将硬盘中的数据反序列化到jvm内存(DeSerial)
*/
public class ObjectOutputS... |
package gov.smart.health.activity.self.adapter;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
im... |
package AddressManage;
import Login.LoginPage;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import org.junit.Assert;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.concurr... |
package com.github.netudima.jmeter.junit.report;
import java.io.File;
public class TestUtils {
public static String getTestFilePath(String file) {
return TestUtils.class.getResource(file).getFile();
}
public static File getTestFile(String file) {
return new File(getTestFilePath(file))... |
package net.minecraft.network;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder;
import java.util.List;
import javax.crypto.Cipher;
import javax.crypto.ShortBufferException;
public class NettyEncryptingDecoder extends MessageToMessage... |
package org.sodeja.event;
import java.util.ArrayList;
import java.util.List;
public abstract class AbstractEventDispatcherEmitter implements EventDispatcher, EventEmitter {
private List<EventListener<?>> listeners;
public AbstractEventDispatcherEmitter() {
listeners = new ArrayList<EventListener<?>>(... |
package org.arthur.review.model;
public class SampleSolution {
int SID;
String Solution_Number;
String Problem_Name;
String Problem_Number;
String Problem_Solution_Pair;
String Upload_Location;
String Good_Apects;
String Bad_Aspects;
public int getSID() {
return SID;
}
public void se... |
package com.one.sugarcane.entity;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence... |
package org.training.issuetracker.pages;
/**
* Class that contains necessary info about Status Page:
* -page name;
* -all parameters that are available from this page;
* -all attributes that are provided for this page;
*
* @author Dzmitry_Salnikau
* @since 17.04.2014
*/
public class StatusPage extends Abs... |
package com.spintech.testtask.controller;
import java.util.Collections;
import java.util.List;
import java.util.StringTokenizer;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
imp... |
package datastructure.graph;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @Author weimin
* @Date 2020/10/20 0020 17:28
*/
public class Graph {
// 顶点
private List<String> nodes;
// 邻接矩阵
private int[][] edges;
// 边的数目
private int edgeCount;
private... |
package statement;
import infocontainer.GalaxyRomanInfo;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public abstract class StatementParser {
protected GalaxyRomanInfo galaxyRomanInfo;
private StatementParser nextHandler = null;
Pattern pattern;
Matcher matcher;
public Stateme... |
package com.pg.whatsstatussaver.LocalDatabase;
import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import java.io.Serializable;
@Entity
public class ImagesUrlTable implements Serializable {
@PrimaryKey(autoGenerate = true)... |
package com.kzw.leisure.model;
import com.kzw.leisure.bean.BookSourceRule;
import com.kzw.leisure.bean.Query;
import com.kzw.leisure.bean.SearchBookBean;
import com.kzw.leisure.contract.SearchBookContract;
import com.kzw.leisure.network.RetrofitHelper;
import com.kzw.leisure.rxJava.RxHelper;
import com.kzw.leisure.rxJ... |
package ru.otus.hw12.jetty.servlet;
import com.google.gson.Gson;
import ru.otus.hw12.hibernate.dbservice.DbServiceUser;
import ru.otus.hw12.model.User;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServlet... |
package com.example.demorestrepo.entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
@Entity
@EqualsAndHashCode(of = "id")
@Data
@NoArgsConstructor
public class CustomerGroup {
@Id
@GeneratedV... |
package server;
/*
* 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.
*/
import java.net.ServerSocket;
import java.net.Socket;
import java.util.LinkedList;
/**
*
* @author leo... |
package conferenceplanner;
import java.text.ParseException;
import java.util.Date;
/**
* Created by Victor on 18/05/14.
*/
public class Session {
private String title;
private Date startTime;
private Date endTime;
public Session(){}
public Session(String title, String startTimeInString, String... |
package com.abhi.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
@Entity
... |
package com.rc.frames;
import com.rc.app.Launcher;
import com.rc.components.*;
import com.rc.db.model.ContactsUser;
import com.rc.db.service.ContactsUserService;
import com.rc.entity.SelectUserData;
import com.rc.panels.SelectUserPanel;
import com.rc.res.Colors;
import com.rc.utils.FontUtil;
import javax.swing.*;
imp... |
package com.navin.melalwallet.ui.login;
public interface ILoginView<T> {
public void onUsernameError();
public void onPasswordError();
public void onFailureError(String reason);
public void onError(String reason);
public void onSuccess(T response);
public void showProgressBar();
p... |
package Manufacturing.ProductLine;
import Manufacturing.CanEntity.Can;
import Manufacturing.Ingredient.Ingredient;
import java.util.List;
/**
* 生产线总接口
*
* @author 孟繁霖
* @date 2021-10-25 15:06
*/
public interface ProductLine {
/**
* 获取具体生产线的名字(如appleLine,peachLine等)
* @return : java.lang.String
* @au... |
package com.diozero.internal.soc.amlogic;
/*-
* #%L
* Organisation: diozero
* Project: diozero - Core
* Filename: AmlogicS922XMmapGpio.java
*
* This file is part of the diozero project. More information about this project
* can be found at https://www.diozero.com/.
* %%
* Copyright (C) 2016 - 2023 d... |
package algorithms;
import structures.HashTable;
import java.util.Set;
import java.util.List;
import java.util.Arrays;
public class KnapsackDP {
private int max(int a, int b) { return (a > b) ? a : b; }
public Integer compute(int capacity, List<Integer> values, List<Integer> weights, Set<Integer> optimalSubse... |
package sunnyTestng;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class DatabaseConnectivity {
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
// This will load t... |
import java.util.*;
class Calculator{
public static void main(String args[]){
double income, spend;
Scanner scanner = new Scanner(System.in);
System.out.print("Enter the amount of income");
String tmp = scanner.nextLine();
income = Double.parseDouble(tmp);
System.out.print("Enter the amount s... |
package com.mideas.rpg.v2.game;
public enum ClassType {
DEATHKNIGHT,
GUERRIER,
HUNTER,
MAGE,
MONK,
PALADIN,
PRIEST,
ROGUE,
SHAMAN,
WARLOCK
}
|
package com.ljw.service;
import com.ljw.vo.ChemClassInfoVO;
import java.util.List;
/**
* @Description:
* @Author Created by liangjunwei on 2018/8/2 17:36
*/
public interface QueryGoodsService {
List<ChemClassInfoVO> queryAllChemClassInfo();
}
|
package com.booking.hotelapi.entity.assembler;
import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.*;
import org.springframework.hateoas.EntityModel;
import org.springframework.hateoas.server.RepresentationModelAssembler;
import org.springframework.stereotype.Component;
import com.booking.hotelapi... |
package com.mtsmda.tools.gui.util;
/**
* Created by c-DMITMINZ on 24.07.2015.
*/
public class StringUtil {
public static boolean stringIsNotNULLOrEmpty(String string) {
if (string != null && !string.trim().isEmpty()) {
return true;
}
return false;
}
}
|
package com.wangjing.po.qr;
public class TempQRTicketApply {
private String action_name = "QR_SCENE";
private int expire_seconds;
private TempQRScene action_info;
public String getAction_name() {
return action_name;
}
public int getExpire_seconds() {
return expire_seconds;
... |
/** ****************************************************************************
* Copyright (c) The Spray Project.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.