text stringlengths 10 2.72M |
|---|
package com.per.iroha.service.impl;
import com.per.iroha.mapper.UserMapper;
import com.per.iroha.model.User;
import com.per.iroha.service.UserService;
import com.per.iroha.util.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import redis.client... |
package com.gmail.fedmanddev;
import org.bukkit.inventory.ItemStack;
public final class VillagerTrade
{
private ItemStack item1;
private ItemStack item2;
private ItemStack rewardItem;
public VillagerTrade(ItemStack item1, ItemStack item2, ItemStack rewardItem) {
this.item1 = item1;
this.item2 = item2... |
package dev.soapy.worldheightbooster.mixin.worldgen;
import dev.soapy.worldheightbooster.WorldHeightBooster;
import net.minecraft.world.level.levelgen.carver.CaveWorldCarver;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import java.util.Random;
@Mixin(CaveWorldCarver.class)... |
package com.arkinem.libraryfeedbackservice.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.arkinem.libraryfeedbackservice.dao.FeedbackDao;
import com... |
package com.tencent.mm.plugin.webview.ui.tools;
import com.tencent.mm.plugin.webview.ui.tools.WebViewUI.23;
import com.tencent.mm.sdk.platformtools.x;
class WebViewUI$23$25 implements Runnable {
final /* synthetic */ int Xt;
final /* synthetic */ 23 pZM;
WebViewUI$23$25(23 23, int i) {
this.pZM =... |
package capstone.abang.com.Car_Renter.Home;
import android.content.Intent;
import android.support.v4.app.NotificationCompat;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.support.v7.wid... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot;
import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.cameraserver.CameraServer;
import edu.... |
package com.smxknife.java.ex11;
/**
* @author smxknife
* 2018/11/16
*/
public class NewIntegerTest {
public static void main(String[] args) {
System.out.println(Integer.valueOf(0x80000000));
}
}
|
package p3.factory;
import p3.logic.game.Game;
import p3.logic.objects.*;
/** Class "ZombieFactory":
*
* creates zombies.
* works as "PlantFactory"
*
* */
public class ZombieFactory {
private static Zombie[] avaliableZombies = {
new ZNormal(),
new ZAthlete(),
new ZBucket()
};
... |
package com.ross.spark.api.transform;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.function.FlatMapFunction;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.u... |
package vanadis.objectmanagers;
/**
* Information about an expose point.
*
* @see ObjectManager#getExposedServices()
* @see ObjectManager#getInjectedServices()
* @see ObjectManager#getConfigureSummaries()
*/
public interface ExposedServiceSummary extends ManagedFeatureSummary {
}
|
package com.chris.projects.fx.ftp.config;
import com.chris.projects.fx.ftp.core.SpotOrderBookService;
import com.chris.projects.fx.ftp.core.SpotOrderController;
import com.chris.projects.fx.ftp.core.SpotOrderProcessor;
import com.chris.projects.fx.ftp.fix.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
imp... |
/*
Initialize mid element as head and initialize a counter as 0.
Traverse the list from head, while traversing increment the
counter and change mid to mid->next whenever the counter is odd.
So the mid will move only half of the total length of the list.
*/
package LinkedList.SinglyLinkedList.MiddleOfLinkedList;
... |
/*
* *********************************************************
* 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.
* ***************************************************... |
package com.example.bonboru.nfc2eth;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.app.Fragment;
import andro... |
package com.tencent.tencentmap.mapsdk.a;
import com.tencent.tencentmap.mapsdk.a.sf.1;
public final class ub {
private 1 a;
public ub(1 1) {
this.a = 1;
}
public final void a(int i) {
this.a.b(i);
}
public final void a(boolean z) {
this.a.d(z);
}
public final... |
package com.tencent.mm.pluginsdk.ui.tools;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnPreparedListener;
class VideoSurfaceView$2 implements OnPreparedListener {
final /* synthetic */ VideoSurfaceView qUd;
VideoSurfaceView$2(VideoSurfaceView videoSurfaceView) {
this.qUd = vid... |
package br.com.tela.cadastro;
import javax.swing.JPanel;
import java.awt.Frame;
import javax.swing.JDialog;
import java.awt.Dimension;
import java.awt.Color;
import javax.swing.JLabel;
import java.awt.Rectangle;
import javax.swing.SwingConstants;
import java.awt.Font;
import javax.swing.I... |
package com.ericlam.mc.minigames.core.gamestats;
/**
* 可編輯的遊戲玩家資料容器接口
*/
public interface GameStatsEditor extends GameStats {
/**
* 設置殺敵數
*
* @param kills 殺數
*/
void setKills(int kills);
/**
* 設置死亡數
* @param deaths 死數
*/
void setDeaths(int deaths);
/**
*... |
package LC0_200.LC50_100;
import org.junit.Test;
public class LC91_Decode_Ways {
@Test
public void test() {
//System.out.println(numDecodings("123123"));
//System.out.println(numDecodings("1201234"));
//System.out.println(numDecodings("1212"));
//System.out.println(numDecoding... |
package com.tdd.model;
/**
*
* @author teyyub Mar 25, 2016 5:17:51 PM
*/
public class King extends Piece {
static final String KING = "k";
private static final String WHITE_COLOR = "WHITE";
private static final String BLACK_COLOR = "BLACK";
public King() {
}
public static King createK... |
package com.findbank.c15.validacionForm;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
import com.findbank.c15.model.Usuario;
public class UsuarioValidator implements Validator{
@Override
public boo... |
package com.classcheck.panel;
import java.awt.Cursor;
import java.awt.FlowLayout;
import java.awt.Font;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swi... |
/** Ben F Rayfield offers this software opensource GNU GPL 2+ */
package ufnode;
import java.util.Arrays;
import util.MathUtil;
import util.Text;
import util.Time;
/** Ufnode (unified merkle forest) is for gaming low lag number crunching in blockchains and sidechains.
Executable binary forest data
structure where ever... |
package com.takshine.wxcrm.domain;
import com.takshine.wxcrm.model.PartnerModel;
/**
* 合作伙伴的domain
* @author dengbo
*
*/
public class Partner extends PartnerModel {
private String viewtype;
private String customername;//合作伙伴名称
private String phoneoffice;//电话号码
private String customerid;//客户ID
private Stri... |
package com.myreceiver;
import android.content.*;
import android.widget.Toast;
public class PowerReceiver2 extends BroadcastReceiver {
//接收到廣播的訊息
public void onReceive(Context context, Intent intent) {
Toast.makeText(context, "電源事件發生", Toast.LENGTH_LONG).show();
//開啟Activity, 以進行通知工作
Int... |
package example.api.v1;
import javax.validation.constraints.NotBlank;
/**
* @author sdelamo
* @since 1.0
*/
public class HealthStatus {
private String status;
public HealthStatus(String status) {
this.status = status;
}
protected HealthStatus() {
}
@NotBlank
public String get... |
package com.example.retail.repository.vegetables;
import com.example.retail.models.vegetables.Vegetables;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.reposit... |
import java.sql.*;
public class ex_8_1s {
static String driverClassName = "org.apache.derby.jdbc.ClientDriver" ;
static String url = "jdbc:derby://localhost:1527/dblabs" ;
static Connection dbConnection = null;
static String username = "euclid";
static String passwd = "tbd... |
package api.longpoll.bots.model.events.messages;
import api.longpoll.bots.adapters.deserializers.PayloadDeserializer;
import api.longpoll.bots.model.events.EventObject;
import com.google.gson.JsonElement;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
/**
* Action ... |
package LeetCode.ArraysAndStrings;
import java.util.ArrayList;
import java.util.List;
public class KidsWithCandies {
public List<Boolean> kidsWithCandies(int[] candies, int extracandies){
int max = Integer.MIN_VALUE;
List<Boolean> res = new ArrayList<>();
for(int i : candies) max = Math.max(max, i);
... |
package graph;
public class GraphUtil {
public static int degree(Graph g, int v) {
int degree = 0;
for(int w : g.adj(v))
degree++;
return degree;
}
public static int maxDegree(Graph g) {
int max = 0;
int degree = 0;
for(int i =0; i < g.V(); i++) {
degree = degree(g, i);
if(degree > max)
... |
package org.alienideology.jcord.event.guild.role.update;
import org.alienideology.jcord.event.guild.role.GuildRoleUpdateEvent;
import org.alienideology.jcord.internal.object.IdentityImpl;
import org.alienideology.jcord.internal.object.guild.Guild;
import org.alienideology.jcord.internal.object.guild.Role;
/**
* @aut... |
package com.tencent.mm.plugin.appbrand.jsapi.bluetooth.ble.sdk.scan;
import com.tencent.mm.plugin.appbrand.jsapi.bluetooth.ble.sdk.c.d;
import com.tencent.mm.plugin.appbrand.jsapi.bluetooth.ble.sdk.d.a;
class a$2 extends e {
final /* synthetic */ a fMV;
public a$2(a aVar) {
this.fMV = aVar;
}
... |
import java.util.*;
public class Solution {
public static void main(String [] args) {
// Declare variables
Scanner scan = new Scanner(System.in);
int t = 0;
ArrayList<AbstractMap.SimpleEntry<Integer, Integer>> pairs = new ArrayList<AbstractMap.SimpleEntry<Integer, Integer>>();
// The previous variable pairs... |
package ua.project.protester.repository.result;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.cor... |
package sessionbean;
import entidade.Produto;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
/**
*
* @author wender
*/
@Stateless
public class ProdutoSBean {
@PersistenceCon... |
package com.zs.util;
import javax.servlet.http.HttpServletRequest;
/**
* @Created by IDEA
* @author:LiuYiBo(小博)
* @Date:2018/7/29
* @Time:20:24
*/
public class CodeUtil {
public static boolean checkVerifyCode(HttpServletRequest request) {
String verifyCodeExpected = (String)request.getSession().get... |
class Solution {
public String simplifyPath(String path) {
String[] components = path.split("/");
Stack<String> stack = new Stack<>();
for (String comp : components) {
if (comp.equals(".") || comp.length() == 0) continue;
else if (comp.equals("..")) {
... |
import java.util.*;
public class MinimumHeightTrees {
//https://leetcode.com/problems/minimum-height-trees/submissions/
public static List<Integer> findMinHeightTrees(int n, int[][] edges) {
if (edges.length == 0) {
List<Integer> list = new ArrayList<>();
list.add(0);
... |
package cn.canlnac.onlinecourse.domain;
/**
* 回复评论.
*/
public class Reply {
private int id;
private long date;
private SimpleUser toUser;
private SimpleUser author;
private String content;
public int getId() {
return id;
}
public void setId(int id) {
this.id = i... |
package com.tencent.mm.plugin.brandservice.ui.timeline;
import android.content.ClipboardManager;
import android.content.Intent;
import android.view.MenuItem;
import com.tencent.mm.ac.z;
import com.tencent.mm.bg.d;
import com.tencent.mm.kernel.g;
import com.tencent.mm.model.s;
import com.tencent.mm.model.u;
import com.... |
package it.cinema.multisala;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.ArrayList;
/**
* Classe <code>Programmazione</code> contiene informazioni inerenti la
* programmazione dei film nei cinema.
*
* @version 1.00 05 Gen 2018
* @author Matteo Borghese
*
*/
public class Progra... |
package com.workshops.database;
import com.workshops.database.WS_PURCHASE_TRANSACTION;
import java.io.Serializable;
import java.util.List;
public class WS_SHOP implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private int ITEM_ID;
private String ITEM_NAME;
pr... |
package zomeapp.com.zomechat.utils;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.IntentSender;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.graphics.Bitmap;
import a... |
package TriangleUtilitiesPkg;
public class TriangleUtilities {
public static String getRow(int width) {
String s = "";
for(int i = 0; i < width; i++ ){
s += "*";
}
return s;
}
public static String getTriangle(int numberOfRows) {
String s ="";
for... |
package gr.athena.innovation.fagi.core.function.property;
import gr.athena.innovation.fagi.core.function.IFunction;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.Property;
import org.apache.jena.rdf.model.RDFNode;
import org.apache.jena.rdf.model.ResourceFactory;
import org.apache.jena.rdf.m... |
package com.hcl.service;
import com.hcl.entity.Category;
import com.hcl.entity.Products;
import com.hcl.entity.Users;
import java.util.List;
import java.util.Set;
import com.hcl.dao.UserDAO;
public class UserService {
public boolean validateUser(String email,String password)
{
UserDAO edao=new UserDAO();
r... |
package ProjectPersonal.Thethreecarddealer;
import javafx.util.Pair;
import java.util.Scanner;
public class CardGuess {
String[] card = {"A","1","2","3","4","5","6","7","8","9","10","J","Q","K"};
//constructor
CardGuess(){}
//find a card value.
int FindCard(int lowerbound, int upperbound, int curr... |
package com.heartmarket.model.dto.response;
import lombok.AllArgsConstructor;
import lombok.Getter;
// 검색 결과 표시를 위한 response
@Getter
@AllArgsConstructor
public class OtherTrade {
int tradeNo;
String tTitle;
String tArea;
int pPrice;
String uImg;
}
|
package com.bucares.barcode.model;
import java.util.Date;
public class PeriodoDTO {
private String name;
private Date dateInicio;
private Date dateFinal;
public PeriodoDTO(){}
public String getName() {
return name;
}
public Date getDateFinal() {
return dateFinal;
}
... |
package com.ehootu.park.dao;
import java.util.List;
import com.ehootu.park.model.PublicInformationEntity;
import org.springframework.stereotype.Repository;
@Repository
public interface PublicInformationDao {
int save(PublicInformationEntity publicInformation);
List<PublicInformationEntity> selectOne(String diz... |
package com.meihf.mjoyblog.service.error;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import com.meihf.mjoyblog.bean.ErrorCode;
import com.meihf.mjoyblog.dao.ErrorCodeDao;
import com.meihf.mjoyblog.util.Glo... |
class Coinchange{
private static int findNumberOfWays(int[] arr, int m, int n){
if(n==0){
return 1;
}
if(n<0){
return 0;
}
if(m<=0 && n>=1){
return 0;
}
return findNumberOfWays(arr,m-1,n)+findNumberOfWays(arr,m,n-arr[m-1]);
}
public static void main(String args[]){
int[] arr = {1,2,3};
in... |
/*
* Copyright 2008 University of California at Berkeley
*
* 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 appl... |
package com.notet.activity;
import android.app.ActionBar;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.... |
package com.flute.atp.core;
public interface Visitor {
}
|
package pl.norbgrusz.ui.di;
import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import com.google.inject.Singleton;
import pl.norbgrusz.keyfinder.KeyFinder;
import pl.norbgrusz.keyfinder.StructureProperties;
import pl.norbgrusz.keyfinder.analyzer.AnalyzerResults;
import pl.norbgrusz.keyfinder.m... |
/*
* Copyright (C) 2001 - 2015 Marko Salmela, http://fuusio.org
*
* 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 ... |
package com.tencent.mm.ui.chatting.viewitems;
import com.tencent.mm.pluginsdk.ui.applet.e.a;
import com.tencent.mm.storage.bd;
import com.tencent.mm.ui.chatting.viewitems.p.c;
import com.tencent.mm.ui.chatting.viewitems.p.j;
import com.tencent.mm.y.m;
class p$j$1 implements a {
final /* synthetic */ bd dAs;
f... |
package com.tencent.mm.plugin.account.ui;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.kernel.a;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.account.a.j;
import com.tencent.mm.ui.base.h;
class EmailVerifyUI$3 implements OnClickListener {
final /* synth... |
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2016.05.11 u... |
package models;
import java.io.Serializable;
public abstract class SportsClub implements Serializable {
private String clubName;
private Address clubLocation;
private int numOfWins;
private int numOfDraws;
private int numOfDefeats;
private int points;
private int numOfMatchPlayed;
priv... |
package com.figureshop.springmvc.dataAccess.dao.impl;
import com.figureshop.springmvc.dataAccess.dao.PurchaseDAO;
import com.figureshop.springmvc.dataAccess.repository.PurchaseRepository;
import com.figureshop.springmvc.dataAccess.util.EntityMapper;
import com.figureshop.springmvc.model.Purchase;
import org.springfram... |
package com.uinsk.mobileppkapps.ui.binaan;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.navigation.NavController;
import androidx.navigation.Navigation;
... |
package in.conceptarchitect.collections;
import java.util.Iterator;
public class LinkedList<X> implements IndexedList<X>, Iterable<X>{
public static <E> LinkedList<E> create(E ... values){
LinkedList<E> newList=new LinkedList<>();
for(E value :values)
newList.add(value);
return newList;
}
cl... |
//package java.lang;
//
//// Error:(1, 1) java: 程序包已存在于另一个模块中: java.base
//public class String {
// @Override
// public String toString() {
// return "String{}";
// }
//
// public static void main(String[] args) {
// String str = new String();
// System.out.println(str.getCla... |
package ledcontrol.serialcomm.processor;
import ledcontrol.serialcomm.model.*;
import org.apache.camel.EndpointInject;
import org.apache.camel.ProducerTemplate;
import java.util.ArrayList;
import java.util.List;
public class SerialDataSender {
@EndpointInject(uri = "direct:sendSerialData")
private ProducerT... |
import com.itextpdf.text.Document;
import com.itextpdf.text.Element;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
import java.awt.event.WindowEvent;
import java.sql.Connection;
import java.sql.PreparedStatemen... |
package ru.android.messenger.model.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import java.util.concurrent.TimeUnit;
public class DateUtils {
private static final int USER_ONLINE_DELAY_SECONDS = 180;
private DateUtils() {
}
@SuppressWarnings("SimpleD... |
package org.lvzr.fast.java.patten.create.singleton;
/**
* 3、单例模式(Singleton)
单例对象(Singleton)是一种常用的设计模式。在Java应用中,单例对象能保证在一个JVM中,
该对象只有一个实例存在。这样的模式有几个好处:
a、某些类创建比较频繁,对于一些大型的对象,这是一笔很大的系统开销。
b、省去了new操作符,降低了系统内存的使用频率,减轻GC压力。
c、有些类如交易所的核心交易引擎,控制着交易流程,如果该类可以创建多个的话,系统完全乱了。
(比如一个军队出现了多个司令员同时指挥,肯定会乱成一团),所以只有... |
package com.tencent.mm.plugin.webview.model;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.tencent.mm.modelvoice.q;
public class WebViewJSSDKVoiceItem extends WebViewJSSDKFileItem {
public static final Creator<WebViewJSSDKVoiceItem> CREATOR = new Creator<WebViewJSSDKVoiceItem>() {
... |
package five;
/**
* static:
* 修饰成员变量的时候,表示静态成员表变量或者叫类变量
* 普通变量在使用的时候,必须通过对象名进行调用;:
* 类变量或者静态变量可以使用对象名调用,也可以使用类名进行调用
* 修饰方法的时候,表示静态方法或者叫类方法
* 注意:
* 1、 静态变量,在创建对象之前被初始化,或者说类在载入之前进行初始化
* 2、 静态变量被所有的对象所共享,属于公共变量 ,对象和类都可以直接调用
* 3、 成员变量放在堆中,而静态变量放在方法区中静态区;
* ... |
package fi.jjc.graphics.vertex;
/**
* Enumeration of all vertex types.
*
* @author Jens ┼kerblom
*/
public enum VertexMetaData
{
/**
* 2D position.
*/
V2(2, 0, false, false),
/**
* 2D position and 1D texture coordinate.
*/
V2_T1(2, 1, false, false),
/**
* 2D position and 2D texture coordinate.
*/... |
package com.hiwes.cores.thread.thread3.Thread0218;
/**
* 假死。线程进入Waitting等待状态,如果所有线程都进入等待状态,程序就不再执行任何业务功能。
* 出现假死的主要原因:有可能是因为连续唤醒同类。
*/
public class MyThread14 extends Thread {
private P14 p;
public MyThread14(P14 p) {
super();
this.p = p;
}
@Override
public void run() {
... |
package com.fleet.restdocs.controller;
import com.fleet.restdocs.entity.User;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/user")
public class UserController {
@CrossOrigin
@RequestMapping(value = "/insert")
public boolean insert(@RequestBody User user) {
re... |
package com.vilio.fms.fileLoad.controller;
import com.vilio.fms.fileLoad.service.FileUploadService;
import com.vilio.fms.util.CommonUtil;
import com.vilio.fms.util.ReturnCode;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;... |
/*
* Copyright 2013 Cloudera Inc.
*
* 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 in... |
package model.cursor;
import java.awt.AWTException;
import java.awt.Point;
import java.awt.Robot;
import java.awt.event.InputEvent;
import model.Calibration;
import model.platform.Blob;
import model.platform.PlatformReader;
public class MouseCursor extends Cursor {
private boolean seen = false;
private Robot rob... |
package com.rx.rxmvvmlib.ui.base;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Window;
import com.rx.rxmvvmlib.R;
public class RxBaseLoadingDialog extends Dialog {
public Context context;
private int layoutId;
public RxBaseLoadingDialog(Conte... |
package com.akhil.todo.controllers;
import com.akhil.todo.models.ToDo;
import com.akhil.todo.services.NotificationService;
import com.akhil.todo.services.ToDoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.ann... |
package org.alienideology.jcord.event.message.dm;
import org.jetbrains.annotations.NotNull;
import org.alienideology.jcord.handle.channel.IPrivateChannel;
import org.alienideology.jcord.internal.object.channel.PrivateChannel;
/**
* @author AlienIdeology
*/
public interface IPrivateMessageEvent {
@NotNull
I... |
package com.xxzp.xxzp.service.yearofholiday;
import com.xxzp.xxzp.common.utils.DateUtils;
import com.xxzp.xxzp.entities.YearOfHolidayEntity;
import com.xxzp.xxzp.model.HolidayBO;
import com.xxzp.xxzp.repositories.YearOfHolidayRepository;
import com.xxzp.xxzp.rpc.GetHolidayRpc;
import java.sql.Timestamp;
import java.ti... |
package com.saven.batch.domain.util;
import com.saven.batch.domain.Column;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
/**
* Created by nrege on 1/30/2017.
*/
public class ColumnUtils {
public static double getD... |
package cn.tedu.search.controller;
import cn.tedu.search.service.IndexService;
import com.jt.common.pojo.MyOrder;
import com.jt.common.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation... |
package pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
import wdMethods.ProjectMethods;
public class MyLeadpage extends ProjectMethods {
public MyLeadpage() {
PageFactory.in... |
import java.util.ArrayList;
/**
* Used by requirements to store the framework for a Literal.
* For checking against a WorldLiteral requires pairing up the
* placeholder actors with actual actors.
* @author cdgira
*
*/
public class RequirementLiteral
{
/**
* The id should match the WorldLiteral Id it is ... |
package com.tencent.xweb.x5;
import android.webkit.JavascriptInterface;
import java.util.HashMap;
import java.util.concurrent.atomic.AtomicInteger;
public class h$a {
private static final AtomicInteger vDJ = new AtomicInteger(1);
HashMap<Integer, byte[]> geu = new HashMap();
@JavascriptInterface
publ... |
package com.ioc.annotations;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @author Ashutosh Bane
*
*/
public class SpringMainApp {
/**
* @param args
*/
public static void main(String[] args) {
// load the spring configuration file
ClassPathXmlApplicationContext contex... |
package com.example.john.proxie.LoginActivities;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.... |
package com.example.fireapp;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
im... |
package test.main;
public class MainClass04 {
public static void main(String[] args) {
// new int[5] 가 뭐지요? => {0,0,0,0,0}
int[] nums=new int[5];
// new String[3] ? => {null, null, null}
String[] names=new String[3];
//미리 만들어진 배열에 item 저장하기
nums[0]=10;
nums[1]=20;
nums[2]=30;
names[0]="김... |
package RetailStore;
public class Goods {
public String goodsId;
public String goodsName;
public int goodsQuantity;
public double goodsPrice;
public void addGoods()
{
}
public void removeGoods()
{
}
public void orderGoods()
{
}
public void updateGoods()
{
}
}
|
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
import java.util.stream.Stream;
import java.util.*;
public class Assignment4Q3 {
static void modifyValue(String name){
System.out... |
package de.zarncke.lib.progress;
/**
* Indicates progress, both relative and absolute.
*/
public interface Progress {
/**
* @return number of items processed so far, always <= {@link #getTotal()}
*/
int getCount();
/**
* @return total number of items to process
*/
int getTotal();
/**
... |
package com.awsec2;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
@ContextConfiguration(locations={"/config/spring/applicationContext.xml"})
public class BaseJunitTest extends AbstractTransactionalJUnit... |
import java.util.ArrayList;
import javafx.application.Platform;
import javafx.event.EventHandler;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.Pane;
import javafx.scene.shape.Rectangle;
public class GameControlle... |
package seng301.convert;
import android.test.ActivityInstrumentationTestCase2;
import android.widget.EditText;
import android.widget.TextView;
import com.robotium.solo.Solo;
import java.text.DecimalFormat;
public class ExtensiveTest extends ActivityInstrumentationTestCase2 {
private Solo solo;
public Extens... |
package dev.federicocapece.jdaze;
import javax.swing.event.MouseInputListener;
import java.awt.event.*;
import java.util.HashSet;
/**
* <pre>
* Input manager for the game engine
* </pre>
*/
public final class Input {
//#region Private status data
/**
* The set of keys that are currently pressed,
... |
package com.example.demo.reviewimage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
@Service
public class ReviewimageService {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.