text
stringlengths
10
2.72M
/* * 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 algo; import jdk.nashorn.internal.objects.Global; import model.Location; import model.Vehicle; /** * * @author Team Foufou ...
/* * Merge HRIS API * The unified API for building rich integrations with multiple HR Information System platforms. * * The version of the OpenAPI document: 1.0 * Contact: hello@merge.dev * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.te...
package pushMessage; import lombok.Data; /** * @program: left-box * @description: * @author: Payton Wang * @date: 2019-10-03 14:17 **/ @Data public class Content { private String value; public Content() { } public Content(String value) { this.value = value; } }
package com.example.pfweather.ui; import java.util.Timer; import java.util.TimerTask; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; import android.view.animation.AlphaAnimation; public class LoginActi...
//https://leetcode.com/problems/largest-number-at-least-twice-of-others/ public class LargestTwice{ public int dominantIndex(int[] nums) { int maxIndex = 0 ; //In this pass find the pos where the max element is present in the array for(int i=0;i<nums.length;i++) if(nums[i]>num...
package tp.rest; import javax.xml.ws.Endpoint; import tp.model.City; import tp.model.CityManager; public class MyServiceTP{ public MyServiceTP() { CityManager cityManager = new CityManager(); cityManager.addCity(new City("Rouen",0,0,"France")); Endpoint.publish("http://127.0.0.1:8084/citym...
package us.team7pro.EventTicketsApp.Models; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import org.springframework.format.annotation.DateTimeFormat; import lombok.Data; import java.util....
package at.ac.tuwien.sepm.groupphase.backend.unittests; import at.ac.tuwien.sepm.groupphase.backend.basetest.TestData; import at.ac.tuwien.sepm.groupphase.backend.entity.Cart; import at.ac.tuwien.sepm.groupphase.backend.entity.CartItem; import at.ac.tuwien.sepm.groupphase.backend.repository.CartItemRepository; import ...
package com.hopu.bigdata.controller; import com.hopu.bigdata.model.Userinfo; import com.hopu.bigdata.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.stereotype.Controller; import org.spri...
package com.lenovohit.hwe.pay.support.acctpay.balance.transfer; public class RestEntityResponse<T> extends RestResponse { public RestEntityResponse(){ super(); } public RestEntityResponse(RestResponse reponse){ super(); if(null == reponse){ return; } this.setSuccess(reponse.getSuccess()); this.setM...
/* * Maze.java∑≠“Ž * * Created on __DATE__, __TIME__ */ package maze; import java.awt.Color; import java.awt.Window; import javax.swing.JPanel; /** * * @author __USER__ */ public class Maze extends javax.swing.JFrame { /** Creates new form Maze */ public Maze() { initComponents(); ...
package com.app.eslamhossam23.testceihm; import android.animation.AnimatorSet; import android.animation.ValueAnimator; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import ...
package Problem_14494; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String buf = br.readLine(); int N = Integ...
package entities; import graphics.Sprite; import java.util.ArrayList; public class Bomber extends GameCharacter { public static final double BOMBER_SPEED = 2.8; private static int BOMB_AMOUNT = 1; public static int FLAME_SIZE = 1; private int availableBomb = BOMB_AMOUNT; public Bomber(double x,...
package com.pim.controller; import com.pim.model.SkuModel; import com.pim.repository.domain.SkuInfo; import com.pim.service.CatalogService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpMethod; import org.springframework.http.HttpStatus; import org.springframework.h...
package com.energytrade.app.model; import java.io.Serializable; import javax.persistence.*; import java.math.BigDecimal; import java.util.Date; /** * The persistent class for the all_forecasts database table. * */ @Entity @Table(name="all_forecasts") @NamedQuery(name="AllForecast.findAll", query="SELECT a FROM A...
package hangers; import edu.wpi.first.wpilibj.CANTalon; import edu.wpi.first.wpilibj.Solenoid; import edu.wpi.first.wpilibj.hal.PDPJNI; import utilities.Controllers; import utilities.RobotDashboard; public class HangerIO { private static HangerIO hangerIO; private Solenoid hangerSolenoid; private CANTalon hangerMo...
package com.capgemini.Resource_Management.service; import java.util.List; import com.capgemini.Resource_Management.model.UserRegistration; //@Service(name="UserService") public interface UserService { public void register(UserRegistration registration); public List<UserRegistration> getAllUser(...
package com.example.user15.batteryapp; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.BatteryManager; import android.os.Bundle; import android.widget.ImageView; import android.w...
package com.legaoyi.protocol.messagebody.decoder; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.stereotype.Component; import com.legaoyi.protocol.exception.IllegalMessageException; import com.legaoyi.protocol.message.MessageBody; import ...
package org.aksw.autosparql.client.controller; import org.aksw.autosparql.client.AppEvents; import org.aksw.autosparql.client.view.ApplicationView; import org.aksw.autosparql.client.view.LoadedQueryView; import com.extjs.gxt.ui.client.Registry; import com.extjs.gxt.ui.client.event.EventType; import com.extjs.gxt.ui.cl...
package com.gaoshin.cloud.web.vm.bean; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class Pod { private Long id; private Long dataCenterId; private String name; private String gateway; private String description; private AllocationState allocationState; private Boolean...
package com.example.suigeneris; import com.google.firebase.firestore.DocumentReference; import com.google.firebase.firestore.FirebaseFirestore; import java.text.SimpleDateFormat; import java.time.LocalDate; import java.time.LocalTime; import java.time.format.DateTimeFormatter; import java.util.Calendar; import java.u...
package com.tch.test; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class ThreadPoolStopTest { public static void main(String[] args) throws InterruptedException { ExecutorService threadPool = Executors.newFixedThreadPool(1); threadPool.execute(new Runnable(...
package com.liziyi.exam224; /** * @version 1.0 * @Description * @Author liziyi * @CreateDate 2021/1/17 10:32 * @UpdateUser * @UpdateDate * @UpdateRemark */ public class Solution5653 { public int countGoodRectangles(int[][] rectangles) { //正方形最长边 int longRec = 0; //当前正方形的边 in...
package com.ryancobbproductions.vault; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.EditText; import java.io.FileNotFoundExceptio...
package apiAlquilerVideoJuegos.basedatos; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import apiAlquilerVideoJuegos.modelos.Ciudad; @Repository public interface CiudadBD extends CrudRepository<Ciudad, Long>{ }
package com.gaoshin.coupon.dao; import com.gaoshin.coupon.bean.CategoryList; public interface CategoryDao extends GenericDao { CategoryList listTopCategories(); }
package com.intel.realsense.librealsense; import android.hardware.usb.UsbDeviceConnection; class UsbDesc { public UsbDesc(String n, int d, UsbDeviceConnection c) { name = n; descriptor = d; connection = c; } String name; int descriptor; UsbDeviceConnection connection; }
package br.com.douglastuiuiu.biometricengine.integration.creddefense.dto.request.entity.viewdata; import java.io.Serializable; /** * @author douglas * @since 20/03/2017 */ public class ViewDataRequestDTO implements Serializable { private static final long serialVersionUID = -6002594667423536871L; private...
package com.shilong.jysgl.pojo.vo; import java.util.Date; import java.util.List; import com.shilong.jysgl.pojo.po.Project; import com.shilong.jysgl.utils.MyUtil; public class ProjectCustom extends Project { private List<TeacherCustom> teachers; private String lxsjstr; private String jxsjstr; private String x...
package com.krc.cloud.serevice; import com.krc.cloud.entity.Student; /** * @Author Rongcai Kang * @Time 2018/12/9 * @Description */ public interface StudentService { public Student findById(Integer id); }
package edu.nmsu.agents.MGM; import edu.nmsu.Home.Home; import edu.nmsu.Home.LocalSolver.CPSolver; import edu.nmsu.Home.LocalSolver.RuleSchedulerSolver; import edu.nmsu.Home.LocalSolver.RulesSchedule; import edu.nmsu.kernel.AgentActions; import edu.nmsu.kernel.AgentState; import edu.nmsu.problem.Pair; import edu.nmsu....
package com.alibaba.druid.bvt.filter.wall; import junit.framework.TestCase; import org.junit.Assert; import com.alibaba.druid.wall.WallConfig; import com.alibaba.druid.wall.WallUtils; public class StrictSyntaxCheckTest extends TestCase { public void test_syntax() throws Exception { Assert.assertFalse(Wa...
package com.algo; import org.junit.Test; import java.util.Map; import java.util.TreeMap; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; public class KComplementaryTest { private final Solution solution = new Solution(); @Test public void name() throws Exception ...
package nl.hva.ict.ds; import org.junit.Before; import org.junit.Test; import java.security.SecureRandom; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; /** * This class con...
package com.sky.design.strategy.base; //抽象方法类 定义所有算法支持的公共接口 public abstract class Strategy { //算法方法 public abstract void AlgorithmInterface(); }
package com.wenyuankeji.spring.service; import java.util.List; import com.wenyuankeji.spring.model.BaseBusinessareaModel; import com.wenyuankeji.spring.model.BaseCityModel; import com.wenyuankeji.spring.model.BaseConfigModel; import com.wenyuankeji.spring.model.BaseProvinceModel; import com.wenyuankeji.spring.util.Ba...
package com.example.widgettest4; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.EditText; public class MainActivity extends AppCompatActivity { final static String TAG = "MainActivity"; EditText mInputEditTex...
package com.mingrisoft; import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.Insets; import java.awt.LayoutManager; public class CircleLayout implements LayoutManager { @Override public void addLayoutComponent(String name, Component comp) { } ...
package com.techboon.repository; import com.techboon.domain.CaseItem; import com.techboon.domain.PersistentAuditEvent; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Repository; import org.springframework.data.jpa.repository.*; impo...
/****************************************************************************** * __ * * <-----/@@\-----> * * <-< < \\// > >-> * ...
/* * Copyright (c) 2014 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.engine; import java.util.Collection; import org.apache.ibatis.session.SqlSession; import org.springframework.beans.factory.annotation.Autowired; import org.springfra...
package cn.novelweb.tool.upload.fastdfs.protocol.storage.response; import cn.novelweb.tool.upload.fastdfs.model.MateData; import cn.novelweb.tool.upload.fastdfs.protocol.BaseResponse; import cn.novelweb.tool.upload.fastdfs.utils.MetadataMapperUtils; import java.io.IOException; import java.io.InputStream; import java....
package exam.iz0_803; public class Exam_066 { } /* The catch clause argument is always of type __________. A. Exception B. Exception but NOT including RuntimeException C. Throwable D. RuntimeException E. CheckedException F. Error Answer: C */
package kr.co.flyingturtle.repository.vo; import java.util.Date; public class VideoCom { private int comNo; private int videoNo; private int memberNo; private Date regDate; private String comContent; private String id; public String getId() { return id; } public void setId(S...
/** Start of LinkedList Cycle (medium) 计算入环节点 */ class ListNode { int value = 0; ListNode next; ListNode(int value) { this.value = value; } } public class LinkedListCycleStart { public static ListNode findCycleStart(ListNode head) { ListNode nodeInCycle = findOneNodeInCycle(head); int length =...
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.sdk.metrics.data; /** An {@link ExemplarData} with {@code long} measurements. */ public interface LongExemplarData extends ExemplarData { /** Numerical value of the measurement that was recorded. */ long ...
package com.amundi.tech.onsite.db; import com.amundi.tech.onsite.db.model.RestaurantDefinition; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; public interface RestaurantDefinitionRepository extends JpaRepository<RestaurantDefinition, Long> { List<RestaurantDefinition> find...
package br.com.mixfiscal.prodspedxnfe.domain.nfe; import java.io.Serializable; import java.util.Objects; public abstract class ICMS implements Serializable{ private static final long serialVersionUID = -7327132501215844194L; private int CST; private String origem; public int getCST() { ...
package com.designpattern.dp11decoratorpattern.Demo; /** * 装饰器类的抽象类 * 继承于被装饰类的抽象类 * 是可有可无的,具体可以根据业务模型来选择。 */ public abstract class BattercakeDecorator extends Battercake{ // 静态代理 委派 private Battercake battercake; // 持有一个被装饰类的引用 public BattercakeDecorator(Battercake battercake){ this.battercake ...
/** * com.swordfish.net.SpiderFactory.java@com.tax.splider */ package com.rednovo.tools.web; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; /** * * @author Yongchao.Yang@2013年1...
/* * Copyright 2002-2021 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.metoo.manage.admin.action; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.lang.reflect.Field; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import javax.se...
/** * MIT License * <p> * Copyright (c) 2019-2022 nerve.network * <p> * 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...
package com.yc.cinema.util; import static org.junit.Assert.*; import java.sql.Connection; import org.junit.Test; public class MyBatisUtilTest { @Test public void testGetSession() { Connection conn = MyBatisUtil.getSession().getConnection(); assertNotNull("数据库连接失败!",conn); } }
package com.bwie.juan_mao.jingdong_kanglijuan.widget; import android.content.Context; import android.graphics.Color; import android.support.annotation.Nullable; import android.util.AttributeSet; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; import android.widget.TextView; ...
package com.getkhaki.api.bff.web.models; import lombok.Getter; import lombok.Setter; import lombok.experimental.Accessors; @Setter @Getter @Accessors(chain = true) public class UserProfileResponseDto extends PersonDto { private String companyName; private String department; }
package nightgames.skills; import nightgames.characters.Attribute; import nightgames.characters.Character; import nightgames.characters.Emotion; import nightgames.characters.Trait; import nightgames.combat.Combat; import nightgames.combat.Result; import nightgames.global.Global; import nightgames.stance.Behind; import...
package jp.ac.kyushu_u.csce.modeltool.dictionary.dialog; import java.text.MessageFormat; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import jp.ac.kyushu_u.csce....
package com.senac.millanches.Modelos; import java.sql.SQLClientInfoException; import java.util.ArrayList; import java.util.List; import java.util.Locale; public class Gerador { private String cliente; private int quantidade; private List<Lista> fakes; public Gerador (String cliente, int quantidade) { ...
/* * Copyright 2002-2017 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.zc.pivas.drugDamage.service; import com.zc.base.orm.mybatis.paging.JqueryStylePaging; import com.zc.base.orm.mybatis.paging.JqueryStylePagingResults; import com.zc.base.sys.modules.user.entity.User; import com.zc.pivas.drugDamage.bean.DrugDamageBean; import com.zc.pivas.drugDamage.bean.DrugDamageProb...
package com.estsoft.mysite.controller; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import ...
package com.memory.platform.modules.system.base.datalink; import java.util.HashMap; import java.util.Map; import com.memory.platform.modules.system.base.model.SystemDept; import com.memory.platform.modules.system.base.model.SystemRole; import com.memory.platform.modules.system.base.model.SystemUser; public class Bas...
/* * Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved. * * 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 ...
/* * Copyright (C) 2020 The Android Open Source Project * * 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 app...
package cl.sportapp.evaluation.entitie; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Data; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Join...
package pos.hurrybunny.appsmatic.com.hurrybunnypos.FCM; /** * Created by Eng Ali on 9/9/2018. */ public class Notification_activity { }
package at.ac.tuwien.infosys; /** * Created by lenaskarlat on 4/18/17. */ public class ModelAttributes { public static final String RECEIVED_DATA_TIMESTAMPS_FORM = "receivedDataTimeStampsForm"; public static final String OBJECT_LIST = "objectList"; private ModelAttributes() { } }
package com.gxtc.huchuan.ui.deal.liuliang.dispatchOrder; import com.gxtc.commlibrary.BasePresenter; import com.gxtc.commlibrary.BaseUserView; import com.gxtc.commlibrary.data.BaseSource; import com.gxtc.huchuan.bean.CopywritingBean; import com.gxtc.huchuan.http.ApiCallBack; import java.util.List; /** * Created by S...
package bspq21_e4.ParkingManagement.Server; import static org.junit.Assert.*; import java.awt.HeadlessException; import org.apache.log4j.Logger; import org.junit.Before; import org.junit.Test; import bspq21_e4.ParkingManagement.Windows.AuthWindowTest; import bspq21_e4.ParkingManagement.client.gui.AuthWindow; import...
package com.fruit.crawler.task.config; /** * Created by vincent * Created on 16/2/2 13:54. */ public class ProxyConfig { private String type ; public String getType() { return type; } public void setType(String type) { this.type = type; } }
package br.com.alura.gerenciador.servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; //@WebServlet(urlPatte...
//designpatterns.adapter.AmbulanceSound.java package designpatterns.adapter; //救护车声音类,充当适配者 public class AmbulanceSound { public void alarmSound() { System.out.println("发出救护车声音!"); } }
package com.qa.util; import com.qa.base.Testbase; public class TestUtil extends Testbase { public static long PAGE_LOAD_TIMEOUT=40; public static long IMPLICIT_WAIT=40; public void switchToframe() { driver.switchTo().frame(""); } }
package net.ckj46.springdataapp; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import org.springframework.data.domain.AuditorAware; import org.springframework.data.jpa.repository.config.EnableJ...
package modul.systemu.asi.frontend.model; import javax.persistence.*; import java.util.ArrayList; import java.util.Date; import java.util.List; @Entity @Table(name = "Task") public class Task { @Id @Column(unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.IDENTITY) private lo...
package classes; import interfaces.Command; import interfaces.Invoker; /** * @author dylan * */ public class CreateTableCommand implements Command { private Invoker invoker; /** * @param invoker */ public CreateTableCommand(Invoker invoker) { super(); this.invoker = invoker; } ...
package com.zhangdxchn.web.api; import com.zhangdxchn.dao.UserDaoImpl; import com.zhangdxchn.web.test.TestController; import org.apache.commons.collections.map.HashedMap; import org.junit.Before; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.Mockito; import org.mock...
package com.bongda.model; public class SanDau { }
package buttley.nyc.esteban.magicbeans.model.boards.beanography; /** * Created by Tara on 12/30/2014. */ public class BeanographyPost { private int mName; private int mType; private int mHome; private int mLikes; private int mDislikes; private int mQuotes; private int mSnapshot; pub...
package com.rt.video.decode.glcustom; import android.graphics.SurfaceTexture; import android.opengl.GLES11Ext; import android.opengl.GLES20; import com.gensee.utils.GenseeLog; import com.rt.video.decode.GlRender; import javax.microedition.khronos.egl.EGLContext; import static javax.microedition.khronos.egl.EGL10.EG...
package com.oaec.control; import java.io.IOException; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax...
public class SignIn{ private int id; private String name; private String saveTime; public void sign(){ System.out.println(saveTime); } }
package cyfixusBot.gui; import java.awt.Color; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.font.TextAttribute; import java.util.Map; import javax.swing.JPanel; import cyfixusBot.gui.components.CyLabel; public class AlertPanel extends JPanel { protected ...
package structural.composition.my.nodedemo; public class ElementNode implements Node{ private String name; public ElementNode(String name) { this.name = name; } @Override public void print() { System.out.println("元素节点: " + name); } @Override public void add(Node node) ...
package com.sky.design.strategy; public class CashContext { private CashSuper cashSuper; //策略 public CashContext(CashSuper cashSuper){ this.cashSuper=cashSuper; } //策略与简单工厂结合 public CashContext(String type){ switch (type) { case "正常收费": cashSuper=new CashNormal(); break; case "满300返100": cashSu...
package com.example; import java.util.ArrayList; import java.util.List; import java.util.Random; /** * Simple class that provides jokes */ public class Joker implements JokeProvider { /** * Return random joke from jokes base * @return Joke */ @Override public synchronized String getJoke(...
package com.db.server.security; import org.apache.log4j.Logger; import org.springframework.security.authentication.AuthenticationProvider; import org.springframework.security.authentication.BadCredentialsException; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.sprin...
package dao; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class TExecutor { public <T> T execQuery(Connection connection, String query, TResultHandler<T> handler) throws SQLException { Statement stmt = connection.createStatement(); ...
package de.fraunhofer.iese.ids.odrl.policy.library.model.enums; public enum PolicyType { OFFER("ids:ContractOffer"), REQUEST("ids:ContractRequest"), AGREEMENT("ids:ContractAgreement"); String stringRepresentation; PolicyType(String s) { this.stringRepresentation = s; } public ...
package com.zxt.compplatform.workflow.service.impl; import java.util.Calendar; import java.util.List; import com.zxt.compplatform.workflow.dao.LogWorkFlowDao; import com.zxt.compplatform.workflow.entity.WorkFlowDataStauts; import com.zxt.compplatform.workflow.service.LogWorkFlowService; public class LogWorkFlowServi...
package com.sapl.retailerorderingmsdpharma.activities; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.SwitchCompat; import android.text.TextUtils; import android.vi...
package com.medic.medicapp; import android.app.Activity; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuInflater; import android.view.M...
package com.beike.wap.service.impl; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.beike.wap.dao.MTagDao; import com.beike.wap.entity.MTag; import com.beike.wap.service.MTagService; /** * Title : MTagServiceImpl * <p/> * De...
package jianzhioffer; import jianzhioffer.utils.TreeNode; /** * @ClassName : Solution28 * @Description : 判断俩二叉树是否对称 * @Date : 2019/9/16 14:38 */ public class Solution28 { public boolean isSymmetrical(TreeNode root1, TreeNode root2){ if (root1==null && root2==null) return true; if ...
package com.legaoyi.file.message.handler; import io.netty.channel.Channel; import io.netty.channel.ChannelHandlerContext; import java.util.List; import org.springframework.stereotype.Component; import com.legaoyi.file.message.codec.MessageEncoder; import com.legaoyi.file.server.util.Constants; import com.legaoyi.pro...
package com.limefriends.molde.menu_magazine; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.View...
package ru.yurima.customthreadlocal; import java.util.Collections; import java.util.Map; import java.util.WeakHashMap; /** * Я не являюсь крупным специалистом в concurrency. Но в чем проблема использовать такую простую реализацию? * Заранее благодарен за разъяснения. * */ public class CustomThreadLocal<T> implem...