text stringlengths 10 2.72M |
|---|
package com.meehoo.biz.core.basic.util;
//import com.alibaba.fastjson.JSON;
import com.meehoo.biz.common.io.JsonUtil;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
/**
* @author zc
* @date 2019-08-02
*/
@Service
public class RedisTemplateService {
... |
package br.imd.visao;
import java.awt.Container;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.Map;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swi... |
class Ani2
{
public void prt(){System.out.println("ani2 prt!!");}
}
class Dog2 extends Ani2
{
public void view() {System.out.println("view");}
}
public class ClassCastTest1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
//Ani2 ins=new Dog2();
Ani2 ins = new Dog2();
Dog2 ins... |
//package StepDef;
//
//import java.util.concurrent.TimeUnit;
//import org.apache.logging.log4j.LogManager;
//import org.apache.logging.log4j.Logger;
//import org.junit.Assert;
//import org.openqa.selenium.OutputType;
//import org.openqa.selenium.TakesScreenshot;
//
//import Base.WebDriverFactory;
//import io.cucumber.... |
package com.k2data.k2app.utils;
import com.k2data.k2app.exception.K2Exception;
/**
* 类相关的工具类
*
* @author lidong9144@163.com 17-3-10.
*/
public class ClassUtils {
/**
* 判断是否是基本类型或其包装类型
*
* @param clazz 要判断的类
* @return true 如果是基本类型或包装类型
*/
public static boolean isPrimitiveOrWrapper... |
package org.firstinspires.ftc.teamcode.opmodes;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.util.ElapsedTime;
import org.firstinspires.ftc.teamcode.base_cl... |
package iofilestest.cheese;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.util.ArrayList;
import java.util.List;
import static org.junit.jupi... |
package com.flowedu.error;
public enum FlowEduErrorCode {
NOT_AUTHENTICATE(401, "Not authenticated"),
NOT_AUTHORIZED(403, "Not authorized"),
INTERNAL_ERROR(500, "Internal server error"),
BAD_REQUEST(400, "Bad request, parameter not accepted"),
NOT_ALLOW_FILE_NAME_KOREAN(901, "not allow korean name"),
C... |
package main.java.controller;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;
import java.awt.Shape;
import java.awt.geom.GeneralPath;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Rectangle2D;
import java.awt.BasicStroke;
import main.java... |
package yinq.situation.dataModel;
/**
* Created by YinQ on 2018/11/30.
*/
public class SleepSituationModel extends SituationModel {
private SleepSituationDetModel det;
public SleepSituationModel(){
}
public SleepSituationDetModel getDet() {
return det;
}
public void setDet(SleepS... |
package com.xianzaishi.wms.tmscore.vo;
import java.io.Serializable;
import java.util.Date;
import com.xianzaishi.wms.common.vo.QueryVO;
public class WaveQueryVO extends QueryVO implements Serializable {
private Long agencyId = null;
private Short single = null;
private Long operator = null;
private Integer p... |
package edu.lewis.ap.newbold.griffin;
import edu.jenks.dist.lewis.ap.*;
public class HighSchoolClass extends AbstractHighSchoolClass{
public HighSchoolClass(Student[] students){
super(students);
}
public Student[] getValedictorian(){
double highestGPA = 0;
int arrayPosition = 0;
for(int i = 0;... |
package com.mindtree.spring.dao;
import java.util.List;
import com.mindtree.spring.entity.Project;
public interface ProjectDAO {
public List<Project> getProjectData();
}
|
package com.beike.action.booking;
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logg... |
public class NestedTc
{
public static void main(String[] args)
{
try // Nested try block
{
System.out.println("Nested try-catch");
try
{
int a = 20, b = 0, c;
c = a/b;
System.out.println(c)... |
package com.class3601.social.models;
import com.class3601.social.common.Messages;
public class GameOwner {
private String gameownerIdPrimarKey;
private String username;
private String gametitle;
public GameOwner() {
setUsername(Messages.UNKNOWN);
setGametitle(Messages.UNKNOWN);
}
public void updateFromG... |
/*
* 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 servlet;
import Model.StAmFileList;
import Model.StAssignmentFile;
import com.crocodoc.Crocodoc;
import com.crocodoc.CrocodocE... |
package com.example.HeavyArtillery;
import android.content.Context;
import android.content.DialogInterface;
import android.view.View;
/**
* Created by Tim on 20-2-14.
*
*/
public class OnClickListenerWithString implements View.OnClickListener {
String variable;
Context context;
View v;
public OnCl... |
import java.util.ArrayList;
import java.util.Iterator;
public class MyQueue<T> implements Iterable{
private static int count = 0;
public ArrayList<T> list;
/***
* Constructs a new queue
*/
public MyQueue() {
list = (ArrayList<T>) new ArrayList<T>();
}
/***
* Checks if... |
package com.gsccs.sme.plat.svg.dao;
import com.gsccs.sme.plat.svg.model.SorderT;
import com.gsccs.sme.plat.svg.model.SorderTExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SorderTMapper {
int countByExample(SorderTExample example);
int deleteByExample(SorderTExample ex... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cput.codez.angorora.eventstar.model;
/**
*
* @author allen
*/
public final class Transport {
private String id;
private String eventId;
private String providerName;
private String providerCont... |
package edu.cb.gabriel.mitchell;
import edu.jenks.dist.cb.*;
public class ArrayTester implements TestableArray{
public ArrayTester(){
}
public int[] getColumn(int[][] arr2D, int c){
int[] vals = new int[arr2D[0].length + 1];
int index = 0;
for (int row = 0; row < arr2D[0].length + 1... |
package com.example.applligent.clouds;
import android.app.Activity;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.ut... |
package art4muslim.macbook.rahatydriver.session;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.util.Log;
import art4muslim.macbook.rahatydriver.LoginActivity;
import art4muslim.macbook.rahatydri... |
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Q118_PascalsTriangle {
// Method 1 1ms 95.26%
public List<List<Integer>> generate(int numRows) {
List<List<Integer>> res = new ArrayList<>();
if (numRows == 0) {
return res;
}
re... |
package cn.edu.cqut.controller;
import cn.edu.cqut.entity.Customer;
import cn.edu.cqut.service.ICustomerService;
import cn.edu.cqut.util.CrmResult;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
... |
package org.usfirst.frc.team1306.robot.subsystems;
import org.usfirst.frc.team1306.robot.RobotMap;
import edu.wpi.first.wpilibj.Talon;
import edu.wpi.first.wpilibj.command.Subsystem;
/**
* @Intake
*
* Subsystem that controls our intake mechanism which we use to take in and spit out boulders,
* from the robot. Al... |
package AStarSearch.tiles;
import AStarSearch.Tile;
import java.awt.*;
/**
* waterCounter -> quantos tile desse tipo existem no meu mapa
* cost -> custo associado ao tile
* code -> caracter associado ao tile
*/
public class WaterTile extends Tile {
public static int waterCounter = 0;
public static int c... |
package ua.edu.npu.controller;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.CheckBox;
import javafx.scene.control.Label;
public class MainController {
@FXML
Label labelHello;
@FXML
CheckBox checkboxAgree;
@FXML
But... |
/*
* Created By Liang Shan Guang at 2019/4/22 23:30
* Description : 工厂模式
*/
package 第4到27章_23大设计模式.第05章_工厂模式; |
/*
* MIT License
*
* Copyright (c) 2019-2022 nerve.network
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... |
package hp.Seals.GetSolutionApiVsDB;
import com.google.common.base.Objects;
public class SolutionPojo {
private String event_code;
private String insert_ts;
private String short_description;
// public getter and setter methods
public String getEvent_code() {
return event_code;
}
public void setEvent_cod... |
package indi.jcl.magicblog.service.impl;
import indi.jcl.magicblog.mapper.UserMapper;
import indi.jcl.magicblog.service.IUserService;
import indi.jcl.magicblog.vo.User;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
imp... |
package coals_crafting.fuel;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraft.item.ItemStack;
import coals_crafting.item.NetheriteCoalItem;
import coals_crafting.CoalsCrafti... |
package mobileappdevelopment.fhcampuswien.mad_ragetimer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageSwitcher;
import android.widget.ImageView;
import android.widget.Toast;
import android.widget.ViewSwitch... |
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.border.EmptyBorder;
import java.awt.CardLayout;
import java.awt.Font;
i... |
package com.dexter.myhome.model;
import java.util.Date;
public class Issue {
private String title;
private String description;
private Date issueDate;
private String raisedBy;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = ti... |
package com.citibank.ods.persistence.pl.dao;
import java.math.BigInteger;
import com.citibank.ods.common.dataset.DataSet;
import com.citibank.ods.entity.pl.BaseTplCurAcctPrmntInstrEntity;
import com.citibank.ods.entity.pl.TplCurAcctPrmntInstrMovEntity;
//
//©2002-2007 Accenture. All rights reserved.
//
/... |
/*
* 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 org.bytecode.magtimus.controller;
import org.bytecode.magtimus.service.ImagenService;
import org.springframework.beans.factory... |
/**
* COPYRIGHT (C) 2013 KonyLabs. All Rights Reserved.
*
* @author rbanking
*/
package com.classroom.services.web.security.permissions.expression;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler;
import org.spr... |
package com.praktyki.log.app.data.converters;
import com.praktyki.log.app.data.entities.ScheduleCalculationEventEntity;
import com.praktyki.log.web.message.models.ScheduleCalculationEventModel;
import org.springframework.stereotype.Component;
@Component
public class ScheduleCalculationEventConverterImpl implements Sc... |
package com.lsm.springboot.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.spri... |
//java NullPointerException when null is passed in method argument
class Temp
{
public static void main(String[]args)
{
foo(null);
}
public static void foo(String s)
{
System.out.println(s.toLowerCase());
}
}
|
/*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.test.base;
import com.test.SolutionA;
import junit.framework.TestCase;
public class Example extends TestCase
{
private SolutionA solution;
@Override
protected void setUp()
throws Exception
{
super.setUp();
}
public void testSolutionA()
{
solut... |
package db;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
* The <b>DBI</b> class provides static utility methods for accessing a DBMS.
*/
public class DBI
{
private static OracleAPI api = new OracleAPI();
pri... |
package br.microgamr.microgames.util;
/**
* Um observador do estado de um microgame. É implementado pela
* {@link br.microgamr.screens.GameScreen}, que precisa ser notificada quando o jogo é pausado,
* resumido, quando o tempo está acabando e quando seu estado
* {@link br.microgamr.microgames.util.MicroGameState} ... |
package com.wangyang.user.model;
public class Student {
private int id;
private String username;
private String password;
private int classname;
private int schoolname;
private int collegename;
private int ybid;
private int studentid;
private int state;
private int identity;
... |
package com.ajhlp.app.integrationTools.services;
import org.springframework.dao.DataAccessException;
import com.ajhlp.app.integrationTools.model.DBConnection;
public interface IDBConnectionEditService extends IBasicService {
public void saveDBConn(DBConnection conn) throws DataAccessException;
}
|
package org.exoplatform.management.idm.tasks;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.zip.ZipOutputStream;
import org.apache.commons.compress.utils.IOUtils;
import org.exoplatform.platform.organizat... |
package apache_math_cluster;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.ml.distance.DistanceMeasure;
public class HaversineDistance extends Object implements DistanceMeasure {
private static final long serialVersionUID = 1L;
@Override
public double compu... |
package com.gaoshin.cj.api;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "cj-api")
public class AdvertiserLookupResponse {
private Advertisers advertisers;
@XmlElement(name="advertisers")
public Advertisers getAdvertisers() {
... |
package com.vastrak.datetime;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.when;
import java.sql.Timestamp;
import java.time.Clock;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime... |
package org.epigeek.lguhc;
import org.bukkit.GameMode;
import org.bukkit.attribute.Attribute;
import org.bukkit.entity.Player;
import org.bukkit.potion.PotionEffect;
import org.epigeek.lguhc.roles.A_Role;
import org.epigeek.lguhc.roles.State;
public class LgPlayer {
private Player player;
private A_Role role;
p... |
package com.sirma.itt.javacourse.objects.task2.shapes.polyline;
import com.sirma.itt.javacourse.objects.task2.shapes.Figure;
import com.sirma.itt.javacourse.objects.task2.shapes.Point;
/**
* Segment class AKA Line.
*
* @author simeon
*/
public class Segment extends Figure {
private Point a;
private Point b;
... |
package com.developworks.jvmcode;
/**
* <p>Title: newarray</p>
* <p>Description: 创建一个数组</p>
* <p>Author: ouyp </p>
* <p>Date: 2018-05-20 16:12</p>
*/
public class newarray {
public void newarray() {
int[] arr = new int[10];
}
}
/**
* public void newarray();
* Code:
* 0: bipush ... |
package com.skfeng.gradesign;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.wid... |
package se.rtz.beans;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import org.junit.Assert;
import org.junit.Test;
public class BeanFactoryTest {
@Test
public void testNormal() {
TestBean testBean = BeanFactory.createBean(TestBean.class);
Assert.assertNull(testBean.getA())... |
package com.spring.professional.exam.tutorial.module03.question26.service;
import java.sql.Date;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spring.professional.exam.tutorial.module03.question26.dao.... |
package props;
public interface PersistentProps {
public PersistentProps copy(String name);
public boolean equals(Object obj);
public String getName();
public void setName(String name);
public String getProp();
public void setProp(String value);
public void deleteProp();
}
|
package com.esum.common.soappull.message;
import java.io.Serializable;
public class PullConstants implements Serializable {
/** NameSpace 2*/
public static String NS2 = "ecvan";
/** NameSpace 2 의 URL */
public static String NS2_URL = "http://soap.esumtech.com/xsd/ecvan";
/** NameSpace 2 의 스키마 저장... |
package com.gxjtkyy.standardcloud.api.service;
import com.gxjtkyy.standardcloud.common.constant.DocTemplate;
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.dat... |
package com.globalmediasoft.android.core;
import android.app.Activity;
import android.content.SharedPreferences;
import android.content.res.Resources;
public class GMSCoreSettings {
protected static Activity activity;
protected static String appSIDSettings;
protected static SharedPreferences getSettingsPreferenc... |
/*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.example.demo.security;
public class IncorrectUsernameOrPasswordException extends RuntimeException{
public IncorrectUsernameOrPasswordException() {
super("Incorrect username or password");
}
}
|
package com.actionModeViewModel.recyclerFragment;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.actionmode.viewmodel.R;
import com.actionModeViewModel... |
package ResponseTimeBenchmarking;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.time.Instant;
import javax.swing.JTextArea;
public class Connection extends Thread {
private final String url;
private final int id;
p... |
package com.szakdolgozat.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.util.Pair;
... |
/*
* Copyright (c) 2018, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you 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
... |
/**
* Copyright (C) 2015-2016, Zhichun Wu
*
* 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 pageObjects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class LandingPage {
public WebDriver driver;
By signin = By.xpath("/html/body/header/div[1]/div/nav/ul/li[4]/a/span");
By title = By.xpath("//*[@id='content']/div/div/h2");... |
package cn.test.enumTest.strategyEnum;
import lombok.extern.slf4j.Slf4j;
/**
* Created by xiaoni on 2019/4/26.
* 策略模式枚举类:更加安全,更加灵活;比switch case书写麻烦。
*
* 根据天计算加班工资(1.5倍正常工资),周一到周五是8小时外的时间,周末都算加班。
*/
@Slf4j
public enum PayrollDay {
MONDAY(PayType.WEEKDAY),
TUESDAY(PayType.WEEKDAY),
WEDNESDAY(PayType.WE... |
package Problem_2109;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.PriorityQueue;
public class Main {
static class data implemen... |
public class WordSearch2 {
static String[] words = {"india", "china"};
static char[] ch1 = words[0].toCharArray();
static char[] ch2 = words[1].toCharArray();
static char[][] myChars = { {'i','a','d','c','a'},
{'n','i','a','h','j'},
{'d','d','i','i','e'},
{'i','n','d','n','a'},
{'... |
package com.gjm.file_cloud.service;
import com.gjm.file_cloud.entity.File;
import org.springframework.data.domain.Page;
import javax.validation.Valid;
import java.util.List;
public interface FileService {
void addFile(@Valid File file);
Page<File> getFiles(int pageNumber);
List<String> getFileNames();
... |
import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
Persona cristina = new Persona(1L, "Cristina", "Lopez", 21);
Persona juan = new Persona(2L, "Juan", "Fernandez", 25);
Persona pedro = new Persona(3L, "Pedro... |
package com.aaront.java.clone;
/**
* @author tonyhui
* @since 16/7/18
*/
public class Email implements Cloneable {
public String content;
public String title;
public Email(String title, String content) {
this.title = title;
this.content = content;
}
public String getContent() {... |
package dw2.projetweb.servlets;
import dw2.projetweb.beans.User;
import dw2.projetweb.forms.FormUser;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
i... |
package pl.edu.pw.elka.minedBlocks.dtos;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Json... |
/***********************************************************
* @Description :
* @author : 梁山广(Liang Shan Guang)
* @date : 2020/5/16 23:52
* @email : liangshanguang2@gmail.com
***********************************************************/
package 第03章_简单工厂模式.第3节_简单工厂模式结构与实现;
public class Client {
... |
/*
* Created on 2004. 5. 24.
*/
package com.esum.ebms.v2.transaction;
import java.io.Serializable;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.ObjectMessage;
import javax.xml.soap.SOAPException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;... |
package com.esum.comp.nckims;
import com.esum.framework.core.component.code.ComponentCode;
/**
* UA Dacom Error Codes.
*/
public class NcKimsCode extends ComponentCode {
public static final String ERROR_RECEIVE_WS_MESSAGE = "NCKIMS1";
public static final String ERROR_SEND_COMPLETE_MSG = "NCKIMS2";
}
|
package com.sotrust.calculator;
public class Calculator {
public static void someMethod () {
System.out.println("someMethod works perfectly");
}
public void anotherMethod () {
System.out.println("anotherMethod works perfectly too");
}
public static void main(String[] args) {
... |
package co.jijichat.vcard;
public class UserProfile {
private String nickname = null;
private String bio = null;
private long memberSince;
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public String getBio() {
... |
package com.company.iba.ialeditor.model;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;
import java.util.HashMap;
import java.util.Map;
/**
* <p>
* This class is a wrapper for {@link Language}.
* </p>
*
* @author Brian Wing Shun Chan
* @see Language
* @generated... |
package com.esum.comp.smail.pop3;
import java.io.File;
import java.util.Iterator;
import java.util.List;
import javax.mail.Flags;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Store;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.es... |
package commands;
import items.Item;
import org.newdawn.slick.command.BasicCommand;
import actionEngines.ActionEngine;
import actionEngines.MenuActionEngine;
public class MenuEquipItemCommand extends BasicCommand implements GenericCommand {
private Item item;
public MenuEquipItemCommand(Item item) {
super("Eq... |
package gameobjects;
import javax.media.opengl.GL;
import java.awt.Color;
public class GameObject implements Drawable {
public Color rgb;
public Point position;
public Point velocity;
public boolean isFilled;
public int lineWidth;
/**
* A parent class of all the game objects used in thi... |
package com.hef.com;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import Dao.StudentDao;
public class EditServlet extend... |
package com.xwj.service;
import com.xwj.entity.Role;
public interface RoleService {
Role getRole(int id);
}
|
package com.networks.ghosttears.activities;
import android.content.Intent;
import android.os.Build;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.... |
/*
* Fazer uma função que tem como parâmetro de entrada três números inteiros
a, b, c e devolve (retorna) menor dentre os três números.
*/
package Lista3;
import java.util.Scanner;
public class Exercicio1 {
static Scanner input = new Scanner(System.in);
static int entrada(){
int ... |
/** https://codeforces.com/problemset/problem/81/A #deque #implementation */
import java.io.*;
import java.util.Deque;
import java.util.LinkedList;
public class Plugin {
public static void main(String[] args) {
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in)); // faster than scan... |
package com.krt.gov.strategy.constant;
public class StrategyConst {
public static final int STRATEGY_MANUAL = 1;
public static final int STRATEGY_TIME = 2;
public static final int STRATEGY_CONDITION = 3;
public static final String FULL_WEEK = "1,2,3,4,5,6,7";
public static final int STRATEGY_E... |
package tj.teacherjournal;
/**
* Created by risatgajsin on 19.04.2018.
*/
public class Protection {
}
|
package structural.proxy.my;
public class ProxyImage implements Image{
private RealImage realImage;
private String fileName;
public ProxyImage(String fileName) {
this.fileName = fileName;
}
@Override
public void display() {
// 延迟初始化
if (realImage == null) {
... |
package co.simplon.hote.model;
import java.util.ArrayList;
public class ReservationManager {
private final static ReservationManager INSTANCE = new ReservationManager();
private ArrayList<Client>infoResa = new ArrayList<Client>();
public ReservationManager() {
}
public ArrayList<Client> getInfoResa() {
... |
package org.opencv.samples.tutorial3;
import android.app.Activity;
import android.os.Bundle;
public class ImageGrid extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.image_grid_v... |
package org.seforge.monitor.web;
import java.util.Date;
import java.util.Set;
import javax.persistence.TypedQuery;
import org.seforge.monitor.domain.Resource;
import org.seforge.monitor.domain.ResourceGroup;
import org.seforge.monitor.extjs.JsonObjectResponse;
import org.springframework.http.HttpStatus;
imp... |
package com.fiona.test;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
public class TestKeyBoard {
@Test
public void test1() {
int[] input = new int[]{2, 3};
KeyBoard keyBoard = new KeyBoard();
List<String> list = keyBoard.doConvert(input);
KeyBoard sec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.