text stringlengths 10 2.72M |
|---|
package com.train.ioc;
import org.springframework.stereotype.Component;
@Component("knife")
public class Knife implements Weapon {
public void attack() {
System.out.println("提着大刀向敌人劈去");
}
}
|
package com.tencent.mm.plugin.game.gamewebview.e;
import android.content.Intent;
import com.tencent.mm.plugin.game.gamewebview.ipc.CommonLogicTask;
import com.tencent.mm.plugin.game.gamewebview.ipc.GameWebViewMainProcessService;
import com.tencent.mm.plugin.webview.ui.tools.jsapi.b;
import com.tencent.mm.pluginsdk.d;
... |
package ch.fhnw.edu.cpib.cst;
import ch.fhnw.edu.cpib.cst.interfaces.IParam;
import ch.fhnw.edu.cpib.cst.interfaces.IParamNTS;
import ch.fhnw.edu.cpib.scanner.interfaces.IToken;
import java.util.ArrayList;
// paramNTS ::= COMMA param paramNTS
public class ParamNTS extends Production implements IParamNTS {
protec... |
package com.mobfox.rtree.model;
import com.mobfox.rtree.entity.TrainingSample;
import com.mobfox.rtree.function.LeafFitter;
import com.mobfox.rtree.function.NodeSplitter;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
public class RTreeFactory {
private final NodeSplitter nodeSplitter;
pr... |
package com.tencent.mm.plugin.scanner.ui;
import android.os.Message;
import com.tencent.mm.model.au;
import com.tencent.mm.sdk.platformtools.ag;
class o$1 extends ag {
final /* synthetic */ o mLe;
o$1(o oVar) {
this.mLe = oVar;
}
public final void handleMessage(Message message) {
if ... |
class Solution {
public boolean backspaceCompare(String s, String t) {
Stack<Character>st1=new Stack();
Stack<Character>st2=new Stack();
for(int i=0;i<s.length();i++){
if(s.charAt(i)!='#'){
st1.push(s.charAt(i));
}else if(!st1.empty()){
... |
package com.nks.whatsapp.protocol.handlers;
import java.io.IOException;
public interface Handler {
public void process() throws IOException;
}
|
package pages;
import core.BasePageObject;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class SignUpPage extends BasePageObject {
WebDriver driver;
public SignUpPage(WebDriver driver) {
su... |
package com.incuube.bot.messagehandling;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.telegram.telegrambots.bots.TelegramLongPollingBot;
import org.telegram.telegrambots.meta.TelegramBotsApi;
import org.telegram.telegrambots.meta.api.objects.U... |
package com.bright.website.util;
import java.io.Serializable;
import java.util.List;
import org.apache.poi.ss.formula.functions.T;
/**
* 分页对象
* @author gcg
*
* 2017年4月14日 下午4:15:17
*/
public class BootstrapPage<T> implements Serializable {
/**
*
*/
private static final long serialVers... |
package com.lxy.JUnit;
import junit.framework.Assert;
import org.junit.Test;
public class Demo {
public int add(int x, int y) {
return x + y;
}
@Test
public void test() {
int num = add(4, 5);
Assert.assertEquals(9, num);
}
}
|
package com.sapient.springboot;
import org.springframework.boot.test.context.SpringBootTest;
import com.sapient.springboot.config.DepartmentCountApi;
@SpringBootTest(classes = DepartmentCountApi.class)
class DepartmentCountApiTests {
}
|
package com.utpol.utpol;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Point;
import android.support.constraint.ConstraintLayout;
import android.support.v4.content.LocalBroadcastManager;
import andro... |
package com.example.mac.swinedu.Models;
import java.util.HashMap;
import java.util.Map;
/**
* Created by mac on 11/5/17.
*/
public class Classroom
{
private String subject;
private int numofmembers;
private String teacher;
private HashMap<String, Boolean> students = new HashMap<>();
private Str... |
package com.momori.wepic.model.response;
/**
* Created by sec on 2015-03-21.
*/
public class ResCommonModel {
private String result ;
private String msg ;
public String getResult() {
return result;
}
public void setResult(String result) {
this.result = result;
}
... |
package exercicios;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Ex05 ex = new Ex05();
ex.executa();
}
}
|
package com.box.androidsdk.content.utils;
import com.box.androidsdk.content.listeners.ProgressListener;
import java.io.IOException;
import java.io.OutputStream;
/**
* An {@link java.io.OutputStream} that can report the progress of writing to another OutputStream to a
* {@link com.box.androidsdk.content.listeners.P... |
package com.cz.android.simplehttp.downlaod;
import java.io.*;
import java.net.*;
import java.nio.ByteBuffer;
import java.nio.channels.*;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.*;
/**
* The simplest http server. Only support the method: GET.HE... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.onlineshopping.order;
/**
*
* @author deepak
*/
public class orderBean {
int orderid;
String orderdate;
int customerid;
float orderamount;
String paymentreceived;
public orderBean()... |
package br.inf.ufg.mddsm.controller.manager;
public class HandlingResult {
private boolean handled;
private Object result;
public static final HandlingResult NOT_HANDLED = new HandlingResult();
public HandlingResult(boolean handled, Object result) {
this.handled = handled;
thi... |
package com.ibm.jikesbt;
/*
* Licensed Material - Property of IBM
* (C) Copyright IBM Corp. 1998, 2003
* All rights reserved
*/
/**
* @author IBM
**/
public abstract class BT_ClassFormatRuntimeException extends BT_RuntimeException {
BT_ClassFormatRuntimeException() {}
BT_ClassFormatRuntime... |
package com.android.yinwear.core.network.model.response;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.room.Entity;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
@Entity
public class DeviceRespObj implements Parcelable {
public DeviceRespObj() {
}... |
package lesson18.Ex1;
public class Ex1_Bird extends Ex1_Animal {
private String color; //màu lông
private String food; //thức ăn
private float wingspan; //độ rộng sải cánh
public Ex1_Bird(String name, String species, float hight, float weight, String habitat, String reproduction,
St... |
package sping.cloud.samples.oauth2.sso.resource;
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@EnableOAuth2Sso
@RestController
public class SampleContr... |
package com.goldgov.gtiles.module.user.client;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.Action;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
... |
package edu.uoc.arbolgenealogico.controller.arbol;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.... |
package com.taikang.healthcare.cust.controller;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotat... |
package org.search.flight.model;
public class Airport {
private String IATACode;
private String city;
public Airport(String iATACode, String city) {
IATACode = iATACode;
this.city = city;
}
public Airport(){
IATACode="";
city="";
}
/**
* @return the iATACode
*/
public String getIATACode() {
... |
class Solution {
public int[] twoSum(int[] numbers, int target) {
int front = 0;
int [] answer = new int[2];
int back = numbers.length - 1;
int cur = numbers[front] + numbers[back];
while(front < back) {
if(cur == target)
{
a... |
package JZOffer;
/**
* @author: zdefys
* @date: 2020/7/4 12:15
* @version: v1.0
* @description:
* 输入一个链表,反转链表后,输出新链表的表头。
*/
public class JZ15 {
public ListNode ReverseList(ListNode head) {
if (head == null) {
return null;
}
if (head.next == null) {
return head;... |
package com.mediacom.tools;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Hashtable;
import java.util.Map.Entry;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.mediacom.security.DBAuthenticationProvider;
pub... |
package com;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import org.json.JSONException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.j... |
import java.util.Scanner;
class check
{
private String date;
private int dd, mm, yyyy;
check(String date)
{
this.date = date;
}
String calculate()
{
String date_english = new String();
int i, pos1 = 0, pos2 = 0;
for(i=0;i<date.length();i++)
{
if(date.charAt(i) == '/')
{
pos1 = i;
brea... |
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class ModuleTest {
private static UniqueSymbolsCounter uniqueSymbolsCounterInstance;
private static HorseMove horseMoveInstance;
private static AreaOfTriangle areaOfTriangleInstance;
private static ParenthesesChe... |
package com.danih.instrumentosmusicales;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androi... |
package com.jinlin.mytopbar;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
/**
* Created by... |
package fr.univavignon.pokedex.core;
import fr.univavignon.pokedex.api.IPokedexFactory;
import fr.univavignon.pokedex.api.IPokedexFactoryTest;
import fr.univavignon.pokedex.api.PokedexException;
public class PokedexFactoryTest extends IPokedexFactoryTest {
@Override
public void setUp() throws PokedexExcepti... |
package com.av.acciones;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.av.exceptions.AvException;
import com.av.rmi.Parametro;
public abstract class BaseAccion {
private static ApplicationContext ctx;
publi... |
package smart.repository;
import smart.entity.CategoryEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface CategoryRepository extends JpaRepository<CategoryEntity, Long> {
long countByParentId(long parentId);
... |
package com.bloomberg.server.arithmeticservice.businesslogic;
import com.bloomberg.server.arithmeticservice.businesslogic.exceptions.ExpressionSolverException;
import com.bloomberg.server.arithmeticservice.businesslogic.interfaces.IExpressionSolver;
import net.objecthunter.exp4j.ExpressionBuilder;
import org.springfra... |
package it.polimi.ingsw.GC_21.CLIENT;
import java.util.ArrayList;
import java.util.Scanner;
import it.polimi.ingsw.GC_21.VIEW.CreatePlayerInput;
import it.polimi.ingsw.GC_21.VIEW.InputForm;
import it.polimi.ingsw.GC_21.VIEW.LobbyInput;
public class CheckLoginMessage extends MessageToClient {
private ArrayList<Strin... |
package se.kb222vt.logic;
public class WordUtils {
/**
* Returns an array of words, splits content by white space
* @param content
* @return
*/
public static String[] getArrayOfWords(String content) {
content = content.replaceAll("\\s+", ",");
return content.split(",");
}
} |
package server;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
@Entity
public class BookingBody {
@Id
private String bookingId;
@NotNull(message = "Plate number required")
private String plateNumber;
@NotNull(message = "Pickup date is re... |
package com.supconit.kqfx.web.xtgl.services;
import hc.base.domains.Pageable;
import hc.base.services.EntityBaiscOperator;
import java.util.List;
import java.util.Set;
import com.supconit.kqfx.web.xtgl.entities.ExtDepartment;
/**
*
*
* @author shenxinfeng
*
*/
public interface ExtDepartmentService extends En... |
class Solution {
public int findMin(int[] nums) {
//https://leetcode.com/explore/learn/card/binary-search/126/template-ii/937/
//advanced binary search template
int left = 0, right = nums.length - 1;
while (left < right) {
//prevent the numeric overflow issue, sinc... |
package com.catnap.core.query.model;
/**
* Created by Woody on 1/11/14.
*/
public interface Operator
{
public String getNotation();
}
|
package com.polsl.edziennik.desktopclient.view.admin;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import com.polsl.edziennik.delegates.AdminDelegate;
import com.polsl.edziennik.delegates.DelegateFactory;
import com.p... |
package com.spring.domain;
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="sme_ftp_server_details")
public class SME_FTPServe... |
/*******************************************************************************
* Copyright 2020 Grégoire Martinetti
*
* 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://ww... |
package com.mxf.course.entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "yz_jxgl_class")
public class ClassEntity {
@Id
private int id;
private String classname;
private String sketch;
private int readsortid;
private int stugroupid;
private int teacherids;
private in... |
package com.tencent.mm.plugin.webview.fts.a.a;
public abstract class a {
public abstract String bTM();
public abstract String getName();
}
|
package Logic;
import Entities.Bacteria;
import Entities.IFN;
import Entities.LFS;
import Entities.Macrophage;
import Entities.NKCell;
import Entities.Neutrophil;
import Entities.Soma;
import Entities.TNF;
import Entities.Virus;
/**
*
* Collision class.
*
* @author Cowteriyaki
* @author K*
*/
public class Co... |
package com.te.springrest.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Pat... |
package com.mystudy.proxy;
public interface IActor {
/**
* 基本演出
* @param money
*/
void basicAct(float money);
/**
* 危险演出
* @param money
*/
public void dangerAct(float money);
}
|
package com.salesforce.cdp.queryservice.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import java.util.List;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class DataspaceResponse {
List<DataSpaceAttributes> records;
Integer totalSize;
Boolean done;
} |
package Task3;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Regular {
public Path filePath() {
ClassLoader classLoader = getClass().getClassLoader();
File file = new File(classLoader.getReso... |
package week3.day2homework;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
public class Maximumvalue {
public static void main(String[] args) {
Map<String, Integer> bat = new HashMap<String, Integer> ();
bat.put("MRF", 100);
bat.put("S... |
package com.bhcj.edu.films.controller;
import com.bhcj.edu.films.entity.User;
import com.bhcj.edu.films.result.Result;
import com.bhcj.edu.films.result.ResultFactory;
import com.bhcj.edu.films.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.Au... |
package com.perhab.napalm;
import lombok.Getter;
import lombok.Setter;
import com.perhab.napalm.statement.BaseStatement;
public class Result {
private static int nextId = 0;
@Getter(lazy = true)
private final int id = getNextId();
private synchronized int getNextId() {
return nextId++;
}
@Getter
private... |
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 requi... |
import java.util.Scanner;
class BinarySearch{
public static void binarySearch(int arr[], int first, int last, int key){
int mid = (first + last)/2;
while( first <= last ){
if ( arr[mid] < key ){
first = mid + 1;
}else if ( arr[mid] == key ){
System.out.println("E... |
package com.rishi.baldawa.iq;
import org.junit.Test;
import static com.rishi.baldawa.iq.model.TreeNodeDataFactory.t;
import static org.junit.Assert.assertEquals;
public class MinDepthTest {
@Test
public void minDepth() throws Exception {
assertEquals(new MinDepth().minDepth(t(t(2), 1, t(3))), 2);
... |
package com.tencent.mm.g.c;
import android.content.ContentValues;
import android.database.Cursor;
import com.tencent.mm.sdk.e.c;
import com.tencent.tmassistantsdk.storage.table.DownloadSettingTable$Columns;
public abstract class dd extends c {
private static final int cKc = "pkgMd5".hashCode();
public static ... |
package net.sssanma.mc.firework;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.inventory.meta.FireworkMeta;
public final class NormalFirework extends Firework {
private String name;
private FireworkMeta meta;
public NormalFirework(String name, FireworkMeta meta) {
this.m... |
package chapter05;
import java.util.Scanner;
public class Exercise05_19 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter the number: ");
int number = input.nextInt();
for (int row = 1; row <= number; row++) {
for (int space = 1; space... |
package com.projects.android.articlesummarizer.response;
/**
* Created by lkjjkl97 on 3/26/2016.
*/
public class SummarizerDoc
{
private String id;
private String title;
private String sizeFormat;
private String error;
private String url;
private String size;
public String getId ()
... |
package ru.aahzbrut.reciperestapi.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ru.aahzbrut.reciperestapi.domain.entities.Step;
@Repository
public interface StepRepository extends JpaRepository<Step, Long> {
}
|
package com.nosuchteam.controller;
import com.nosuchteam.bean.Product;
import com.nosuchteam.bean.RequestList;
import com.nosuchteam.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Pa... |
package com.vesakha.vesakhaindonesia.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerVi... |
package com.ibm.jikesbt;
/*
* Licensed Material - Property of IBM
* (C) Copyright IBM Corp. 1998, 2003
* All rights reserved
*/
import java.io.DataOutputStream;
import java.io.IOException;
import com.ibm.jikesbt.BT_BytecodeException.BT_InvalidInstructionException;
/**
Represents an opc_tableswitc... |
package com.wonders.task.doneRecord.model.bo;
import com.wonders.task.todoItem.util.DateUtil;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
/**
* Created with IntelliJ IDEA.
* User: zhoushun
* Date: 2015/1/4
* Time: 10:49
* To change this template use File | Settings | File Temp... |
package net;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.SocketAddress;
/**
* ClientListener
* created: 10-12-2020 - 0:21
* project: 09.ChatApplication
*
* @author dinar
* @version v0.1
*/
publi... |
package testk;
import java.io.File;
import org.apache.commons.logging.impl.Log4JLogger;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.spi.Configurator;
import org.openqa.selenium.By;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDrive... |
package it.unica.pr2.biblioteca;
import it.unica.pr2.biblioteca.libreria.Libro;
import java.util.HashSet;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.stream.Collectors;
import java.util.Iterator;
public class Biblioteca extends ArrayList<Libro> {
private Strin... |
package util;
import static org.junit.Assert.*;
import java.util.Calendar;
import java.util.Date;
import model.DateUsed;
import model.Days;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class TestsDateUtil {
@Before
public void setUp() throws Exception {
}
@After
public void... |
package com.scf.skyware.main.controller;
import java.util.List;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... |
/*
* Copyright 2014 JBoss 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 i... |
package com.mycompany.formationspring.demo.controller;
import com.mycompany.formationspring.demo.entity.Contact;
import com.mycompany.formationspring.demo.repository.ContactRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.s... |
package main.java.heap;
import main.java.objects.CachedObject;
/**
* Данный класс предназначен для реализации кучи (так как не нашла реализации)
* Реализация кучи будет через массив.
* <p>
* Каждый узел кучи будет хранить два параметра: объект и приоритет.
* При этом куча будет отсортирована по приоритету таким... |
package com.schremser.spring.jersey.rest;
import com.schremser.spring.jersey.domain.Message;
import com.schremser.spring.jersey.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.M... |
/*
* 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 Entidades;
import java.util.List;
/**
*
* @author rosemary
*/
public class entCabeceraPoda
{
private int id_cabe... |
package testCommands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
public abstract class Executor {
private boolean hasToBePlayer, adminOnly;
private String[] permissions;
public Executor(boolean hasToBePlayer, boolean adminOnly, String... permissions) {
this.hasToBePl... |
package com.example.demo.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;... |
package br.com.jdrmservices.controller;
import static br.com.jdrmservices.util.Constants.INFORMACOES_SALVAS_SUCESSO;
import static br.com.jdrmservices.util.Constants.VIEW_PESQUISAR_SECRETARIA;
import static br.com.jdrmservices.util.Constants.VIEW_SECRETARIA_NOVO;
import static br.com.jdrmservices.util.Constants.VIEW_S... |
package com.espendwise.manta.web.resolver;
import com.espendwise.manta.util.validation.resolvers.AbstractDistributorConfigurationUpdateExceptionResolver;
public class DistributorConfigurationWebUpdateExceptionResolver extends AbstractDistributorConfigurationUpdateExceptionResolver {
}
|
package com.swh.spring3.chapter02;
import com.swh.spring3.chapter01.HelloApi;
import com.swh.spring3.chapter01.HelloImpl;
/**
* 静态工厂
* @author law
*
*/
public class HelloApiStaticFactory {
public static HelloApi newInstance()
{
//返回需要的Bean实例
return new HelloImpl();
}
}
|
package collisionengine;
public class Sphere extends ThreeDObject
{
int radius;
Sphere( int argradius)
{
super();
radius = argradius;
buildSpace();
}
@Override
void buildSpace(){
int dist = 0;
boolean hasSphere = false;
objectSp... |
package com.example.shiro.demo9.web;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping(value = "/userInfo")
public class UserInfoController {
@RequestMapping(va... |
import java.util.Arrays;
/**
* 313. Super Ugly Number
* Medium
*/
public class Solution {
public int nthSuperUglyNumber(int n, int[] primes) {
int i = 1, len = primes.length;
int[] uglys = new int[n + 1];
int[] idx = new int[len]; // currnet ugly idx of primes[i]
int[] min = new... |
package com.basepackage.bean;
public class Csv {
private int EmployeeId;
private String EmployeeName;
private String Job_Status;
private int DeptId;
private String DeptName;
private double Salary;
private String JobLocation;
public Csv(int EmployeeId, String EmployeeName, String Job_Status,int DeptI... |
package Sem1.HomeWork.Sorts;
/**
* Created by skima on 18.11.2016.
*/
public class Student {
private String name;
private int age;
private int generalScore;
public Student(String name, int age, int generalScore) {
this.name = name;
this.age = age;
this.generalScore = generalS... |
/*
* Copyright 2019 iserge.
*
* 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 w... |
package net.sf.ardengine.renderer.opengl.legacy;
import javafx.scene.paint.Color;
import net.sf.ardengine.Core;
import net.sf.ardengine.renderer.opengl.lib.text.STBFont;
import net.sf.ardengine.renderer.opengl.lib.text.WrappedText;
import net.sf.ardengine.renderer.opengl.lib.textures.Texture;
import net.sf.ardengine.r... |
package WxAPIClientUtils;
// -----( IS Java Code Template v1.2
import com.wm.data.*;
import com.wm.util.Values;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;
// --- <<IS-START-IMPORTS>> ---
import java.util.Random;
// --- <<IS-END-IMPORTS>> ---
public final class utils
{
// -... |
public class dispoverload1ext {
public static void main(String[] args) {
dispoverload1 obj= new dispoverload1();
obj.disp('a');
obj.disp(10);
}
}
|
package com.lbsp.promotion.coreplatform.job;
import com.lbsp.promotion.core.service.task.TaskQueueService;
import com.lbsp.promotion.core.service.task.TaskService;
import com.lbsp.promotion.coreplatform.annotation.TaskAnnotation;
import com.lbsp.promotion.entity.model.*;
import com.lbsp.promotion.entity.query.GenericQ... |
package ru.android.messenger.model.api;
import com.google.gson.Gson;
import okhttp3.ResponseBody;
import ru.android.messenger.model.Model;
public class ApiUtils {
private static final Gson GSON = Model.createGson();
private ApiUtils() {
}
public static <T> T getJsonFromResponseBody(ResponseBody r... |
public class SecondClass {
public static void main(String[] args) {
// comments
System.out.println("hi everyone");
// System.out.println("hi everyone");
// System.out.println("hi everyone");
}
}
//what;s git punching strategy in my team |
package com.example.hospitalmanagementapp;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import a... |
package test;
import util.Fecha;
import modelo.Correo;
import modelo.Direccion;
import modelo.Nif;
import modelo.Persona;
public class PersonaTest2 {
private Persona persona1;
private Persona persona2;
private Persona persona3;
private Persona persona4;
public PersonaTest2(){
testSet();
testGet();
tes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.