text stringlengths 10 2.72M |
|---|
package service;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.websocket.OnClose;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import javax.websocket.server.ServerEndpoint;
// 웹소켓 서버 클래스
@ServerEndpoint("/websocket")
pu... |
package org.icabanas.jee.api.integracion.dao;
import java.io.Serializable;
import java.util.List;
/**
* Patr�n Data Access Object (DAO): Nos abstrae de cualquier tipo de base de datos o mecanismo de
* persistencia. Proporciona operaciones sin exponer los detalles del mecanismo de persistencia.
* <br/>... |
/*
* 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.
*/
/**
*
* @author 500062053
*/
public class GarbageCollector
{
GarbageCollector()
{
System.out.println... |
package com.gzh.TestAnnotation;
public class TestClass {
@MyTest
public void test1(){
System.out.println("我自己的测试方法,测试成功");
}
}
|
package com.shopping.etrade.dto.base;
import java.math.BigDecimal;
import java.math.RoundingMode;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.shopping.etrade.exception.IncompatibleCurrencyExcepti... |
package com.example.vezbepredtest001.activities;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFact... |
// Make sure the downloaded jar file is in the classpath
import org.json.*;
public class UploadMediaFile
{
public static void main(String[] args_)
{
// Specify your login credentials
String username = "MyAfricasTalking_Username";
String apiKey = "MyAfricasTalking_APIKey";
// Sp... |
/*
* Copyright 2009 Kjetil Valstadsve
*
* 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 agre... |
package com.example.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annota... |
package com.naver.mapper;
import java.util.ArrayList;
import java.util.HashMap;
import org.apache.ibatis.annotations.Param;
public interface CommandMapper {
int deleteDateWords(@Param("usrid")long id, @Param("date")int date,
@Param("bottype") int bottype);
int deleteWords(@Param("usrid")long id, @Param("word")... |
import java.io.*;
public interface ICounter {
static int EOF = -1; //End of file
/**
* A method to read a file
* @param srcFilename
* @throws IOException
*/
public void readFile(String srcFilename) throws IOException;
/**
* A method that combines all counting steps by applying template design patte... |
package com.taller.concesionario.security.service;
import com.taller.concesionario.security.entity.Usuario;
import com.taller.concesionario.security.repository.UsuarioRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transaction.Tran... |
package com.voksel.electric.pc.configuration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.orm.jpa.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.d... |
package listadescanso.lista1.ex2;
public class Teste {
public static void main(String[] args) {
BoasVindas b = new BoasVindas();
b.setCurso("TDS");
// b.setDtNasc(1992,09,29);
// Não sei utilizar a Classe Calendar
b.setNome("Douglas");
b.setRm(73872);
System.out.println("Nome: " + b.getNome() + "\nC... |
package com.duofei.receiver;
import com.duofei.bindings.EchoTalk;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
... |
package com.hehe;
import com.hehe.mapper.UserMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj... |
package com.tencent.mm.vending.base;
import android.os.Handler;
import android.os.Looper;
import com.tencent.mm.vending.f.a;
public final class c {
private Handler mVendingHandler;
private Looper mVendingLooper;
private Looper uQt;
private Handler uQu;
byte[] uQv = new byte[0];
a uQw;
pub... |
package com.tencent.mm.model.gdpr.ui;
import android.os.Bundle;
import com.tencent.mm.ab.a;
import com.tencent.mm.ab.b;
import com.tencent.mm.plugin.webview.ui.tools.widget.e;
import com.tencent.mm.protocal.c.bly;
import com.tencent.mm.protocal.c.blz;
import com.tencent.mm.sdk.platformtools.bi;
class MPGdprPolicyUI$1... |
package com.debtrepaymentapp.model;
import javax.validation.constraints.Size;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotNull;
public class Debt {
private int userID;
@NotNull
@DecimalMax("999999999.99")
private Double payment;
@NotNull
@D... |
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package cn.jboa.entity;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
public class Department implements Serializable {
private static final long serialVersionUID = -43861593829... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
/*
This program will find out how many rolls it takes before a pair
of dice achieves snake eyes. The difference is that we will be
creating a new object using the PairOfDice class.
*/
public class PairOfDiceSnakeEyes {
/*
The main method will create the dice object and will call the class
until snake eyes is achi... |
package com.twu.biblioteca.services;
import com.twu.biblioteca.Movie;
import com.twu.biblioteca.services.CheckoutMovie;
import com.twu.biblioteca.database.MediaLibrary;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
impor... |
package zm.hashcode.design.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import zm.hashcode.design.softwaredesignprinciples.lsp.violation.Bird;
import zm.hashcode.design.softwaredesignprinciples.lsp.violation.Dove;
import zm.hashcode.design.sof... |
package com.espendwise.manta.util.validation.rules;
import java.util.Iterator;
import java.util.List;
import org.apache.log4j.Logger;
import com.espendwise.manta.dao.GroupDAO;
import com.espendwise.manta.dao.GroupDAOImpl;
import com.espendwise.manta.model.data.GroupAssocData;
import com.espendwise.manta.model.data.G... |
package Code.DSA;
/**
* This class is to query min or max in a given range when the range is
* always more than block size.
* if the range size is always equal to block size then querying can be done
* in constant time. for small block size it's better to use
* {@link SparseTable}.
*
* @author Ashok Rajpurohit ... |
package org.apache.maven.plugin.internal;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Li... |
package cn.itman.shop.product.action;
import java.util.List;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import cn.itman.shop.category.service.CategoryService;
import cn.itman.shop.category.vo.Category;
import cn.itman.shop.p... |
package com.sw_engineering_candies.yaca;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class YacaApplicationTests {
@Test
void contextLoads() {
}
}
|
package com.security.jwt;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/* exemple issue de
* https://www.javainuse.com/spring/boot-jwt
*
*
autre recherche
https://www.developpez.net/forums/d1729986/javascript/general-javascript/crypte... |
package com.duanxr.yith.easy;
/**
* @author Duanran 4/21/2020
*/
public class DecryptStringFromAlphabetToIntegerMapping {
/**
* Given a string s formed by digits ('0' - '9') and '#' . We want to map s to English lowercase characters as follows:
*
* Characters ('a' to 'i') are represented by ('1' to '9') ... |
package es.ujaen.ssmm.ssmm1718_practica01_g01;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.E... |
package com.storedata.com.createnote;
import android.util.Log;
import com.couchbase.lite.CouchbaseLiteException;
import com.couchbase.lite.Database;
import com.couchbase.lite.Document;
import com.couchbase.lite.Manager;
import com.couchbase.lite.android.AndroidContext;
import java.io.IOException;
import java.util.Ar... |
package org.lxy.utils;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ResourceBundle;
/**
* @author menglanyingfei
* @date 2017-4-27
*/
// 使用配置文件
public class JdbcUtils {
private static final String ... |
package com.tencent.mm.plugin.brandservice.ui.base;
import android.content.Context;
import android.text.SpannableString;
import android.util.AttributeSet;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.MotionEvent;
import android.view.View;
import android.view.Vie... |
package de.raidcraft.skillsandeffects.pvp.skills.weapons;
import de.raidcraft.RaidCraft;
import de.raidcraft.api.items.CustomItemStack;
import de.raidcraft.api.items.CustomWeapon;
import de.raidcraft.api.items.WeaponType;
import de.raidcraft.skills.api.combat.EffectType;
import de.raidcraft.skills.api.hero.Hero;
impor... |
/**
*
*/
package steamarbitrage.steamio;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import steamarbitrage.Logging;
import steamarbitrage.database.steam.Price;
import steamarbitrage.gui.MainWindow;
/**
* Updates the price of a listing.
* Usually invoked ... |
package com.android.mycourse.course;
import android.content.Context;
import com.android.mycourse.R;
public class CourseUtils {
/**
* 获取星期
* @param context 上下文
* @return 星期数组
*/
public static String[] getDays(Context context) {
return new String[]{
context.getStrin... |
/* A4 */
public class LightBoard
{
/** The lights on the board, where true represents on and false represents off.
*/
public boolean[][] lights;
/******************************** Part (a) ********************************/
/** Constructs a LightBoard object having numRows rows and numCols columns.
* P... |
/*
Purpose:
Description:
History:
2013/7/10, Created by dennis
Copyright (C) 2013 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.zss.app.ui.dlg;
import java.util.HashMap;
import java.util.Map;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.UiException;
import org.zkoss.zk.ui.eve... |
package com.trix.vtufinal;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AppCom... |
package com.osce.api.system.dic;
import com.osce.dto.system.dic.PfDicDto;
import com.osce.entity.SysDictionary;
import java.util.List;
/**
* @ClassName: PfDicService
* @Description: 字典服务
* @Author yangtongbin
* @Date 2017/10/9 17:28
*/
public interface PfDicService {
/**
* 获取字典分组总数
*
* @par... |
package com.translator.application;
import com.translator.domain.model.credits.Credits;
import com.translator.domain.model.material.Material;
import com.translator.domain.model.numeral.RomanNumeral;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class AnswerMaterialWorth... |
package model;
/*
Class representing a weapon of type Rocket launcher
*/
import ui.DeadAhead;
import java.util.Random;
public class RocketLauncher extends Weapon {
private Random rand = new Random();
public static final int MAX_AMMO_CAPACITY = 10;
// EFFECT: Creates a RocketLauncher with max ammo and ... |
/*
* 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 figurasgeometricas;
/**
*
* @author ESTUDIANTE
*/
public class Rectangulo extends Figura{
private in... |
package joinMethod;
public class JavaJoin {
public String join(Object... array){
String glue = array[0].toString();
StringBuilder result = new StringBuilder();
for (int i = 1; i<array.length; i++) {
result.append(array[i].toString()+glue);
}
return result.t... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package com.fanniemae.mcasrest.utilities;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Utils {
private static Utils ourInstance = new Utils();
public static Utils getInstance() {
return ourInstance;
}
private Utils() {}
public static Date stringToDa... |
package com.oumar.learn.model;
import org.springframework.data.annotation.Id;
public class Photo {
@Id
private String id;
private String name;
private int type;
private String album;
public String getId() {
return id;
}
public String getName() {
return name;
}
public int getType() {
return t... |
package com.enat.sharemanagement.agenda;
import com.enat.sharemanagement.attendance.AttendanceDTO;
import lombok.Data;
import java.io.Serializable;
@Data
public class AgendaVoteDTO implements Serializable {
private AgendaDTO agenda;
private AttendanceDTO attendance;
private int vote;
}
|
package com.dsajava;
import java.util.NoSuchElementException;
public class LinkedList {
private class Node {
private int value;
private Node next;
public Node(int value){
this.value = value;
this.next = null;
}
}
private Node first;
private No... |
package com.madhax.workoutwidget.model;
import javax.persistence.*;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
@Entity
public class Workout extends BaseEntity {
private String name;
private LocalDate date;
@ManyToMany(cascade = CascadeType.ALL, mappedBy = "workout")
... |
package com.example.demo.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
public class Projet {
@Id
... |
package org.murinrad.android.musicmultiply.tags;
/**
* Created by Radovan Murin on 11.4.2015.
*/
public class Constants {
public static final int DEVICE_ADVERTISEMENT_PORT = 14777;
public static final int QoS_PORT = 14778;
public static enum QoS_PACKET_TYPE {
STATISTICS_REPORT {
@O... |
package com.nationsky.vote.tasks.node;
import java.io.UnsupportedEncodingException;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ds.framework.task.BaseTask;
import com.ds.framework.task.TaskMsg;
import com.nationsky.vote.component.AppNestException;
... |
package SeleniumBasics;
import java.sql.SQLException;
public class RunnerClass {
public static void main(String[] args) throws SQLException {
// TODO Auto-generated method stub
//call setup method to create connection between selenium and databse
DBUtilities.SetupConnection();
DBUtilities.runQuery();
DBU... |
package com.ana.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class Button implements Serializable {
@SerializedName("_id")
@Expose
private String id;
@SerializedName("ButtonName")
@Expose
private Str... |
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.ArbeitsvorgangTypType;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.CHROMATIstdatenType;
import java.io.StringWriter;
import javax.xml.bind.JAXBElement;
import javax.xml.bind... |
package com.tt.option.d;
import android.content.Context;
import com.tt.miniapp.msg.download.DxppCallback;
import org.json.JSONArray;
import org.json.JSONObject;
public interface a {
void createDxppTask(Context paramContext, String paramString1, boolean paramBoolean, String paramString2, String paramString3,... |
package Graphic;
import static org.lwjgl.opengl.GL11.*;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.opengl.GL11;
import org.newdawn.slick.Color;
import Entities.Bacteria;
import Entities.IFN;
import Entities.LFS;
import Entities.Macrophage;
imp... |
public class Cruiser extends Ship{
@Override
public void setSize()
{
setSize(2);
}
} |
package com.example.fahad.csci342_assignment1;
import android.graphics.drawable.Drawable;
/**
* Name: Fahad Ur Rehman
* Sols: fur866
* ID: 4651960
*/
public class TileData {
private Drawable Image;
private int identifier;
//constructor
TileData(Drawable image, int id)
{
//check if ima... |
package com.cristovantamayo.ubsvoce.services.util;
/**
* A classes tem por objetivo dar suporte para o retorno lista menores a partir de uma lista maior.
* Classe Auxiliar da paginacao utilizada na classe de servico {@see GeocodingService} no metodo {@see retrieveNearUbs}
* Abordagem de Lista de Listas com {@code A... |
package edu.curtin.comp2008.mad2020assignment1;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import java.lang.Math;
/**
* FirstScreen activity class is the 'First Sc... |
/*
* 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... |
package store;
import model.Product;
public interface ProductStore {
void save(Product product);
Product load(long productId);
}
|
import java.util.Scanner;
public class Begin4
{
public static void main (String args [])
{
System.out.println("Уважаемый, введи диаметр окружности");
Scanner scan = new Scanner(System.in);
double L = scan.nextInt() * 3.14;
System.out.println("Уважаемый, длинна твоей окруж... |
package com.fluidobjects.drafttapcontroller;
import java.util.Date;
/**
* <h2>Equipment log object</h2>
* Object saved in database
*/
public class LogObj{
public Date date;
public int servedVolume;
public int pulseFactor;
public int cutVolume;
public LogObj(Date date, int servedVolume, int pul... |
/*
* 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 axc.g1l3.cliente;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.... |
public class Main {
public static void main(String[] args) {
Hero h1;
// new Hero()で新たなヒーローを作成 この時にメモリにh1用の場所が確保されます。
// h1という箱にはそのメモリの場所(アドレス)が入ります。
h1 = new Hero();
h1.hp = 100;
Hero h2;
// h2という箱にh1を入れています。
// h2の箱にはh1のために用意されたアドレスが入ります。
h2 = h1;
// h2のhpを見つけにいき値を... |
package util.impl;
import util.XMLConverter;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import java.io.*;
import java.util.logging.Logger;
public class XMLConverterImpl implements XMLConverter {
private static fina... |
package it.bad_request.hackaton.certificami.util;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
import it.bad_request.hackaton.certificami.dto.RagioniSpostamento;
import it.bad_request.hackaton.certificami.entity.Certificazione;
@Component
public class... |
package io.tjf.releasenotes.azure.payload;
/**
* Represents an Azure Git commit.
*
* @author Rubens dos Santos Filho
*/
public class Commit {
private final String commitId;
private final Author author;
private final Author commiter;
private String comment;
private final boolean commentTruncated;
private fi... |
package practice06;
public class Student extends Person{
private int class_num;
public Student(String _name, int _age, int _class) {
super(_name, _age);
this.class_num = _class;
}
public int getKlass() {
return class_num;
}
public String introduce() {
return "My name is "+super.getName()+". I am "+su... |
/*
* Huffman.java
*
* Created on May 21, 2007, 1:01 PM
*/
package compression;
import java.util.*;
import java.io.*;
/**
*
* @author Jin Chang & pbladek
*/
public class Huffman
{
public static final int CHARMAX = 128;
public static final byte CHARBITS = 7;
public static final short CHARBITMAX =... |
package com.gtfs.action;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.a... |
/**
*/
package ca.uwaterloo.gp.fmp.impl;
import ca.uwaterloo.gp.fmp.Featur;
import ca.uwaterloo.gp.fmp.Feature;
import ca.uwaterloo.gp.fmp.FmpPackage;
import ca.uwaterloo.gp.fmp.Project;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf... |
public class GreaterThanOpp extends ComparisonOpp {
public GreaterThanOpp() {
this.myName = ">";
}
}
|
public class FindBugs {
public static void main(String[] args) {
int x = 3;
// http://findbugs.sourceforge.net/bugDescriptions.html#UCF_USELESS_CONTROL_FLOW
// Self assignment of local variable
x = x;
// Double assignment of local variable
x = x = 17;
/... |
package com.example.libroapp;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andro... |
import java.net.*;
import java.io.*;
/**
* DgEchoClient. <p>
*
* Send datagrams to echo server. <p>
*
* @author Lloyd, Jed, Wayne and Mark
* @version $Revision: 1.0 $
*/
class DgEchoClient {
/**
* Main method for this class
*
* @param args holds command line arguments. -h host -p port
*
*/
p... |
package com.yfancy.web.weixin.vo.message;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;
@Data
@XStreamAlias("xml")
public class EventMessage extends BaseMessage {
@XStreamAlias("Event")
private String event;
@XStreamAlias("EventKey")
private String eventKey;
@XS... |
package com.hotv.springboot.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework... |
package com.test.book.controller;
import java.io.File;
import java.util.List;
import javax.annotation.Resource;
import javax.inject.Inject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.sprin... |
/*
* 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 JovesAJLabActivity102;
/**
*
* @author Alexandra
*/
public class JovesAJLabExer201 {
public static void mai... |
package com.yougou.merchant.api.taobao.enums;
/**
* 属性、属性值结果
* @author luo.hl
*
*/
public enum PropResult {
NOTFOUND(1,"没有找到相关属性"),NOTBIND(2,"属性没有绑定"),HAVEBIND(3,"属性已绑定");
private int type;
private String desc;
PropResult(int type,String desc) {
this.type = type;
this.desc = desc;
}
public int get... |
package stream.csv;
import java.util.Comparator;
public class SalarySort implements Comparator<Employee> {
@Override
public int compare(Employee o1, Employee o2) {
// TODO Auto-generated method stub
if(o1.getSalaryPerAnnum() < o2.getSalaryPerAnnum())
return 1;
return -1;
}
}
|
package ru.android.messenger.model.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNo... |
package shapes.squareness;
import java.awt.*;
public class Circle extends Ellipse {
public Circle() {
}
public Circle(Point theCenter, Point cornerPoint) {
super(theCenter, cornerPoint);
}
public Circle(Point theCenter, Point cornerPoint, int frameWidth, Color frameColor, Color fillColor) {
... |
package Ex1.SymbolTables;
import ast.*;
import java.util.HashMap;
public class SymbolTableBuilder{
private HashMap<AstNode, SymbolTable> astNodeToSymbolTable;
public SymbolTableBuilder(HashMap<AstNode, SymbolTable> astNodeToSymbolTable){
this.astNodeToSymbolTable = astNodeToSymbolTable;
}
... |
package real;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.openqa.selenium.WebDriver;
import old.DriverUtils;
public class MyBaseTest {
WebDriver driver;
@Before
public void setup() {
driver = DriverUtils.getDriver();
}
@After
public void clean() {
driver.c... |
package io.jenkins.plugins.credentials.secretsmanager;
import com.cloudbees.plugins.credentials.CredentialsUnavailableException;
import com.cloudbees.plugins.credentials.SecretBytes;
import com.cloudbees.plugins.credentials.common.StandardCertificateCredentials;
import com.cloudbees.plugins.credentials.impl.Certificat... |
import java.util.Arrays;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
class SimultaneousThreadStart {
public static <T extends Comparable<? super T>> void bubble(T[] a) throws InterruptedException {
for (int j = a.length - 1; j >= 1; j--) {
Syst... |
package dev.borowiecki.practices.day3.shapes;
public class Rectangle extends Shape {
private final int a;
private final int b;
public Rectangle(int a, int b) {
this.a = a;
this.b = b;
}
@Override
double area() {
return a*b;
}
@Override
double perimeter() {... |
package com.java.abs_fact;
public interface ILandAnimal extends IAnimal {
public IAnimal print();
}
|
package edu.gatech.cs2340.spacetraders.viewmodels;
import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.support.annotation.NonNull;
import java.util.List;
import edu.gatech.cs2340.spacetraders.entity.Planet;
import edu.gatech.cs2340.spacetraders.entity.Player;
import edu.gat... |
package samples.jsr305.nullness;
import javax.annotation.Nullable;
public class AnnotatedArgument {
public void methodWithNullableArgument(@Nullable Object value) {}
}
|
package Chapter4.TreesAndGraphs.Exercise4CheckBalanced;
import Chapter4.TreesAndGraphs.BinaryTreeNode;
/**
* Difference between two subtrees of any node never differ by more than one
*/
public class Solution {
/**
* O(n*Log(n) time complexity
* @param root
* @return
*/
private static int... |
import java.util.Scanner;
public class Recursion2 {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int num = scn.nextInt();
scn.close();
PDI(num);
}
public static void PDI(int n) {
if (n == 0) {
return;
}
System.out.println(n);
PDI(n-1);
Syst... |
package org.iptc.extra.core.es;
import java.util.ArrayList;
import java.util.List;
public class ElasticSearchResponse<K> {
private long found = 0;
private List<K> results = new ArrayList<K>();
public long getFound() {
return found;
}
public void setFound(long found) {
this.found = found;
}
public List... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.