text
stringlengths
10
2.72M
package com.lxn.job.view; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.Po...
/** * OpenKM, Open Document Management System (http://www.openkm.com) * Copyright (c) 2006-2015 Paco Avila & Josep Llort * * No bytes were intentionally harmed during the development of this application. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GN...
package pl.rogalik.environ1.game_map.map_objects.tiles; public class GroundTile extends Tile{ private static final long serialVersionUID = 1L; public GroundTile(){ super(); this.type = Type.GROUND; } @Override public String toString() { if (this.getEntity().isPresent()) { if (this.getEntity().get()....
package am.main.data.jaxb.log4jData; /** * Created by ahmed.motair on 11/17/2017. */ import javax.xml.bind.annotation.*; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> ...
package Inerfaces; public class Person implements Student, Youtuber { public static void main(String[] args) { Person p = new Person(); p.study(); p.makevideos(); } @Override public void study() { System.out.println("student is studying"); } @Override public void makevideos() { System.o...
package com.wq.newcommunitygovern.mvp.ui.activity.main; import android.content.Intent; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentTransactio...
package com.tencent.mm.ui; import android.view.View; import android.view.View.OnClickListener; class HomeUI$24 implements OnClickListener { final /* synthetic */ HomeUI tjS; final /* synthetic */ boolean tjW; HomeUI$24(HomeUI homeUI, boolean z) { this.tjS = homeUI; this.tjW = z; } ...
package services.repository; import model.domain.Attachment; import org.springframework.data.repository.CrudRepository; import java.util.List; public interface AttachmentRepository extends CrudRepository<Attachment, Long> { List<Attachment> findAllByIsDirectoryAndParent(Integer isDirectory, Integer parent); ...
package com.wlc.ds.tree; public class GetNearestAncestor { /* * 返回两个节点的最低公共祖先 解法1:如果一个在左子树,一个在右子树,那么node就是公共结点 如果都在左(右)子树,那么递归到左(右)子树 * 解法2:从根节点分别遍历到n1和n2,使用list来保存两条路径,再依次逆序比较两条路径, 第一个相同的结点就是最近的公共结点 */ public static TreeNode getNearestAncestorHelper(TreeNode node, TreeNode n1, TreeNode n2) { if (node == ...
package com.abraham.dj.service.impl; import java.util.List; import javax.annotation.Resource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Repository; import org.springframework.stereotype.Service; import com.abraham.dj.dao.UserDao; import com.abraham.dj.model.User; ...
package pharmacy_java; import java.sql.*; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; import net.proteanit.sql.DbUtils; public class Company extends javax.swing.JFrame { public Company() { initComponents(); SelectMed(); } Connection Con = null; Statemen...
/** * Common Package. <br> */ package com.conn.request; /** * <p>Wrapping Request Data formmed Byte Array.</p> * * @since 1.00 */ public class RequestData { private boolean asyncMode; private boolean printImmediate; private byte[] requestData; private boolean encryptMode; public RequestData(byte [] request...
package tachyon.master; import java.io.DataOutputStream; import java.io.IOException; import com.fasterxml.jackson.databind.ObjectWriter; import com.google.common.base.Throwables; /** * Class implemented this interface will be able to write image file. */ public abstract class ImageWriter { /** * Write image t...
// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package ad.joyplus.com.myapplication.compoment; import android.content.Context; import android.util.AttributeSet; import ad.joyplus.com.myapplication.entity.ImageViewModel; import ad.joyplus.com.myapplication.man...
package persistence; // Code partly taken from JsonSerializationDemo import org.json.JSONObject; //Represents interface return this as a Json Object public interface Writable { // EFFECTS: returns this as JSON object JSONObject toJson(); }
package com.jtmelton.testme; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class TestmeApplication { public static void main(String[] args) { SpringApplication.run(TestmeApplication.class, args); } }
package de.zarncke.lib.util; import java.util.Locale; /** * Declare the Locale of an Object. * * @author Gunnar Zarncke */ public interface HasLocale { Locale getLocale(); }
public class Main { public static void main(String[] args) { LinkedList list = new LinkedList(); list.addFirst(3); list.addLast(2); list.insert(5, 1); list.insert(1, 1); list.removeFirst(); list.remove(2); list.insert(3,2); list.addLast(44);...
package formulaio_mercadinho; import javax.swing.JPanel; import javax.swing.JLabel; import java.awt.Font; import javax.swing.JTextField; import javax.swing.JScrollBar; import javax.swing.JComboBox; import javax.swing.JTable; import javax.swing.JTextArea; public class Principal extends JPanel{ public static Object ve...
package org.springframework.boot.autoconfigure.bootswaggermvc; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.springframework.context.annotation.Import; ...
package gil.action; import bol.BOLObject; import gil.MainFrame; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class ButGeneration implements ActionListener { private BOLObject obj; private MainFrame frame; public ButGeneration(BOLObject obj, MainFrame mainFrame) { ...
package com.filiereticsa.arc.augmentepf.adapters; import android.content.Context; import android.content.SharedPreferences; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.TextV...
package com.quizcore.quizapp.util; public enum UserAction { START_QUIZ, SUBMIT_QUIZ, UPLOAD_VIDEO, PAYMENT_DONE }
package com.ddt.bean; import java.util.HashSet; import java.util.Set; /** * Course entity. @author MyEclipse Persistence Tools */ public class Course implements java.io.Serializable { // Fields private Integer eid; private String ename; private String tname; private Integer zyid; private Set scores = new H...
package Lesson8; class Wall implements Obstacles { int height; public Wall(int height) { this.height = height; } public int getHeight() { return height; } @Override public boolean toRun(int maxLength) { return false; } @Override public boolean toJump(...
package ar.edu.ucc.arqSoft.rentService.test.dao; import java.util.List; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUni...
package so.ego.space.domains.project.application; import lombok.RequiredArgsConstructor; import org.apache.tomcat.jni.Local; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import so.ego.space.domains.project.application.dto.ProjectRegisterRequest; import...
/* * 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 Vista; import Modelo.Grupo; import Negocio.ControladorGrupo; import java.awt.event.KeyEvent; import java.util.List; import jav...
package com.koreait.bbs.model; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class GoInsertBBSPage implements Action { @Override public String command(HttpServletRequest request, HttpServletResponse response) { return "bbs/insert_page.jsp"; } ...
package cr.ulacit.dao; import org.appfuse.dao.BaseDaoTestCase; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; public class DishDaoTest extends BaseDaoTestCase { //mvn test -Dtest=PersonDaoTest @Autowired private DishDao dishdao; @Test public void testCreateDish() thro...
/* * [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 te...
package testSel.testSelVal; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.ie.InternetExplorerDriver; public class callIEBrowser { public static void main(String[] args) { WebDriver driver; System.setProperty("webdriver.ie.dr...
package com.minipg.fanster.armoury.fragment; import android.annotation.TargetApi; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.ColorStateList; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.annotation.Nulla...
package jp.personal.server.web.form.user; import javax.validation.constraints.NotNull; import javax.validation.constraints.Pattern; import javax.validation.constraints.Size; import jp.personal.server.data.BaseVisitor; import jp.personal.server.utils.Msg; import jp.personal.server.utils.Regex; public class UserForm e...
package com.choosedormitory; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.text.TextUtils; import android.view.KeyEvent; import android.view.View; import android.view.View.OnClickListener; import android.view.inputmethod.EditorInfo; import and...
package com.buildbooster.inventory.transformer;
package my; public class Company { private String companyName; private String type; private Worker[] workers; private double sumSalaryOfWorkersInThatCompanyIs; private double arithmeticalMeanOfSalaryOfWorkersInThatCompanyIs; public void changeMinAndMax() { int iMax = 0, iMin = 0; ...
package com.infotec.ses; import java.util.List; import java.util.Properties; import java.util.ArrayList; import java.io.IOException; import java.io.InputStream; import java.sql.*; public class RolRepositorio { Connection con = null; public RolRepositorio(){ Properties prop= new Properties(); S...
package com.ajay.TIAA; import java.util.Arrays; public class ShiftingOfArray { public static void main(String[] args) { int[] arr = { 1, 2, 3, 4, 5 }; int n = 2; shiftToRight(arr, n); } private static void shiftToRight(int[] arr, int n) { int rot = 0; while (rot != n) { int element = arr[0]; fo...
package com.tencent.mm.ui.chatting.viewitems; import android.support.design.a$i; import android.view.ContextMenu; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import com.tencent.mm.R; import com.tencent.mm.ak.a.a.c; import com.tencent.mm.bg.d; import com.tencent.mm.g.a.dj...
package com.moneymanager.model; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; import java.util.List; @Document(collection = "customer") public class Customer { @Id private String id; private String name; private String username; pri...
package instructable.server.dal; import instructable.server.ccg.CcgUtils; import instructable.server.ccg.ParserSettings; import instructable.server.hirarchy.EmailInfo; import instructable.server.senseffect.IIncomingEmailControlling; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; i...
package LeetCode.ArraysAndStrings; import java.util.HashMap; public class ConfusingNumber { HashMap<Integer, Integer> map = new HashMap<>(); int res; public int confusingNumberII(int N){ res = 0; map.put(0, 0); map.put(1, 1); map.put(6, 9); map.put(8, 8); map.put(9, 6); helper(N, 0...
package com.wxapp.bean; import java.util.List; /** * 朋友圈对象 * * { * * "type": 0, * * "blackList": [ * * "string" * * ], * * "withUserList": [ * * "string" * * ], * * "mediaInfos": [ * * { * * "url": "string", * * ...
//import org.junit.Before; //import org.junit.Test; //import servlet.HelloServlet; // //import javax.servlet.ServletException; //import java.io.IOException; // ///** // * Created by employee on 11/14/16. // */ //public class MainTest { // @Test // public void main() throws Exception { // // } // private MyS...
package com.ds.weatherapp.bean; import com.ds.json.JsonModel; public class Weather { private JsonModel data=null; public Weather(String json) { data =new JsonModel(json); } }
package boj; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class BOJ_2869_달팽이는_올라가고_싶다 { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); St...
package sarong; import sarong.util.CrossHash; import java.io.Serializable; import java.util.*; import static sarong.NumberTools.intBitsToFloat; /** * A wrapper class for working with random number generators in a more friendly way. * Implements {@link IRNG}, which covers most of the API surface, but RNG implement...
package info.pablogiraldo.servicio; import java.util.List; import info.pablogiraldo.modelo.Bebida; public interface BebidaServicio { public List<Bebida> getLista(); public Bebida getBebida(int i); }
/* * 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.project.homes.app.user.feedback.mapper; import java.util.List; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; import com.project.homes.app.common.image.dto.ImageDto; import com.project.homes.app.common.info.dto.InfoDto; import com.project.homes.app.common....
package com.tencent.mm.plugin.profile.ui; import com.tencent.mm.R; import com.tencent.mm.model.s; import com.tencent.mm.ui.base.l; import com.tencent.mm.ui.base.n.c; class c$19 implements c { final /* synthetic */ c lVT; c$19(c cVar) { this.lVT = cVar; } public final void a(l lVar) { ...
package com.passing.struts.action; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import com.passi...
package com.janfranco.datifysongbasedmatchapplication; import android.annotation.SuppressLint; import android.content.Context; import android.graphics.Typeface; import android.text.format.DateFormat; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Imag...
package com.nvilla.house.entities; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import org.hibernate.annotations.ForeignKey; public class Room...
package com.mrice.txl.appthree.bean; import android.text.TextUtils; import com.mrice.txl.appthree.http.ParamNames; import java.io.Serializable; /** * Created by company on 2017/8/8. */ public class AoMenBean implements Serializable { /** * appInfo : {"id":"10","appname":"测试游戏hhh","version":"1.0","jumpl...
package com.yixin.dsc.dto.query; /** * @author YixinCapital -- chenjiacheng * 2018年08月23日 16:35 **/ public class DscPaymentErrorDto { /** * 申请编号 */ private String applyNo; /** * 所属资方 */ private String financialCode; /** * 发起请款时间 */ private String createTime; /** * 银行返回信息 */ priv...
package com.rc.portal.payplugin.pay99billplugin; import java.math.BigDecimal; import java.text.SimpleDateFormat; import java.util.Date; import java.util.LinkedHashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang.StringUtils; import com.rc.commons.util.InfoUtil;...
package laioffer.June23th; import java.util.LinkedList; import java.util.List; /** * Created by mengzhou on 6/24/17. */ public class CombinationOfCoins { public List<List<Integer>> combinations(int target, int[] coins) { List<List<Integer>> res = new LinkedList<>(); if(target < 0 || coins.lengt...
package task345; import common.Utils; import common.Watch; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import java.util.List; /** * @author Igor */ public class Main345 { private static final HashMap<Key, Integer> cache = new HashMap<>(); // --------------------------- main...
package com.meridal.example.twitter.domain.api; import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonNaming; import com.meridal.example.twitter.domain.UserProfile; @JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) public class User extends co...
package com.sm.report.rpc.scan; import com.sm.report.rpc.param.Scan; import com.sm.report.rpc.pojo.Player; import com.sm.report.rpc.rpc.RpcBean; import org.junit.Test; import java.lang.reflect.Method; import java.util.List; import java.util.Map; /** * @author likangning * @since 2018/5/30 上午8:52 */ public class S...
package com.bespinglobal.alertnow.client; import com.bespinglobal.alertnow.config.Options; import java.util.concurrent.atomic.AtomicReference; import java.util.function.UnaryOperator; public class ClientFactory { private static final AtomicReference<Client> client = new AtomicReference(); private final Optio...
/** * */ package com.goodhealth.thread.Thead; /** * @author 24663 * @date 2018年11月17日 * @Description */ public class MyThreadLocal { private static final ThreadLocal<String> classmate=new ThreadLocal<>(); public void set(String name){ classmate.set(name); } public String get(){ return cla...
package com.gtfs.service.interfaces; import java.io.Serializable; import java.util.List; import com.gtfs.bean.BranchMst; public interface BranchMstService extends Serializable{ List<BranchMst> findAll(); BranchMst findById(Long id); }
package br.com.ecommerce.config; import static br.com.ecommerce.config.DriverFactory.getDriver; import static br.com.ecommerce.config.DriverFactory.resetDriver; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.rules.Tes...
package structure; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.json.JSONArray; import org.json.JSONObject; import communication.RepositoryInterface; public class Project implements StructureComponent { private String name; private List<Package> packages; public Pro...
import java.io.IOException; 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 com.bookshelf.implementations.BooksDAOImpl; import com.bookshelf.mo...
package com.slort.model; import java.util.List; import java.util.Set; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.hibernate.LockMode; import org.springframework.context.ApplicationContext; import org.springframework.orm.hibernate3.support.HibernateDaoSupport; /** *...
package com.landofoz.commonland.navigation; import com.landofoz.commonland.domain.GraphNode; import com.landofoz.commonland.domain.Location; import com.landofoz.commonland.persistence.GraphNodeDAO; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Created by ericm on 10/17/2015....
package largestsubmatrixsum; public class Solution { public int largest(int[][] matrix) { // Write your solution here. int N = matrix.length; int M = matrix[0].length; int result = getsumNumber(matrix, N, M); return result; } private int getsumNumber(int [][] matrix, int n, int m){ in...
package ru.otus.atmdepartment.atm.storage; import ru.otus.atmdepartment.atm.FaceValue; import ru.otus.atmdepartment.atm.MoneyCell; import ru.otus.atmdepartment.atm.MoneyCellImpl; import java.util.*; public class CellStoreImpl implements CellStore { private final Map<Integer, MoneyCell> cellStore = new...
package cn.canlnac.onlinecourse.presentation.internal.di.modules; import cn.canlnac.onlinecourse.domain.executor.PostExecutionThread; import cn.canlnac.onlinecourse.domain.executor.ThreadExecutor; import cn.canlnac.onlinecourse.domain.interactor.GetDocumentsInCourseUseCase; import cn.canlnac.onlinecourse.domain.intera...
package com.ibeiliao.trade.impl.mq; import com.baidu.disconf.client.common.annotations.DisconfFile; import com.baidu.disconf.client.common.annotations.DisconfFileItem; import com.ibeiliao.pay.common.utils.cfg.AesPropertiesEncoder; import org.springframework.context.annotation.Scope; import org.springframework.stereoty...
package models; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.OneToMany; import play.db.jpa.Model; @Entity public class Company extends Model { @Column(length = 30, nullable = false) public String name; @Column(length = 8, nullable = false) ...
package com.authenticationservice.cache.configuration; import lombok.Data; import lombok.extern.log4j.Log4j2; import org.springframework.beans.factory.annotation.Value; import org.springframework.cache.CacheManager; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Confi...
package amazon.com.qa.util; public class TestUtil { public static int PAGE_LOAD_TIMEOUT=30; public static int IMPLICIT_WAIT=20; }
package com.jpa.operator; public enum FilterOperator { EQUAL, LIKE, LEFTLIKE, RIGHTLIKE, GT, GE, LT, LE, BETWEEN, ISNULL, ISNOTNULL, NOTEQUAL, NOTLIKE, IN; private FilterOperator() { } }
package com.beiyelin.addressservice.service; import com.beiyelin.addressservice.entity.Country; import lombok.extern.slf4j.Slf4j; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import or...
/** * */ public class Main { public static void main(String[] args) throws Exception { /* Create and display the form */ java.awt.EventQueue.invokeLater(() -> { new MainPage().setVisible(true); }); } }
package com.javarush.task.task18.task1817; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.FileInputStream; import java.io.IOException; import java.io.*; import java.util.ArrayList; /* Пробелы */ public class Solution { public static void main(String[] args) { String fileN...
package jp.co.worksap.oss.findbugs.guava; import static org.mockito.Mockito.never; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.verify; import org.junit.Before; import org.junit.Test; import com.h3xstream.findbugs.test.BaseDetectorTest; import com.h3xstream.findbugs.test.EasyBugReporter; ...
package com.bolly.controller; import java.util.List; import org.slf4j.Logger; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.Request...
package ar.com.corpico.appcorpico.orders.presentation; import android.Manifest; import android.content.pm.PackageManager; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; import android.view.LayoutInflate...
/* * 版权声明 . * 此文档的版权归通联支付网络服务有限公司所有 * Powered By [Allinpay-Boss-framework] */ package com.allinpay.its.boss.system.permission.action; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereot...
package com.msir.pojo; import java.util.Date; /** * Created by Fantasy on 2017/8/7. */ public class LocationDO { private int id; private int count; private String n; private String pinyinFull; private String pinyinShort; private Date gmtCreate; private Date gmtModified; public int g...
package DSArraypack; public class DoubleCircularLinkedList { Node start; class Node { int data; Node next; Node prev; } void insertEnd(int value) { if(start==null) { Node newNode=new Node(); newNode.data=value; newNode.next=newNode.prev=newNode; st...
package com.smxknife.flink.networkflowanalysis.pageview; /** * @author smxknife * 2020/8/27 */ public class PageView { }
package dev.schoenberg.kicker_stats.core.helper; import static org.assertj.core.api.Assertions.*; import org.junit.Before; import org.junit.Test; import dev.schoenberg.kicker_stats.core.domain.Credentials; public class Sha3BouncyCastlePasswordHasherTest { private Sha3BouncyCastlePasswordHasher tested; @Before p...
package ua.training.model.entity; import java.util.ArrayList; import java.util.List; /** * Represents a question in a test. * It may have a link to the first answer. */ public class Question { private static final String TAB = " "; private static final String EOL = System.lineSeparator(); private static fin...
package com.noteshare.user.controller; import java.io.File; import java.io.IOException; import java.util.Date; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.stereotype.Controller; import org.springframework.web.bind.a...
package com.xkzhangsan.time.test; import com.xkzhangsan.time.holiday.Holiday; import org.junit.Assert; import org.junit.Test; import java.time.LocalDate; import java.util.HashMap; import java.util.Map; /** * 节假日测试类 * @author xkzhangsan */ public class HolidayTest { /** * 公历节日,母亲节 */ @Test public void loca...
package com.catnap.demo.core.exception; /** * Created with IntelliJ IDEA. * * @author gwhit7 */ public class ProductNotFoundException extends RuntimeException { public ProductNotFoundException(String id) { super("The product [" + id + "] cannot be found."); } }
/* * 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 PRO1041.DAO; /** * * @author tienp */ public class KhachHangDAO { public String MaKH; public String TenKH; publ...
// default package // Generated Mar 2, 2017 1:23:57 PM by Hibernate Tools 5.2.1.Final package model; import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.ManyToMany; imp...
package compiler; public enum ConstantType { CLASS((byte) 7), FIELDREF((byte) 9), METHODREF((byte) 10), INTEGER((byte) 3), NAMEANDTYPE((byte) 12), UTF8((byte) 1); private byte value; ConstantType(byte value) { this.value = value; } public byte getValue() { re...
package com.freejavaman; import java.util.Locale; import android.app.Activity; import android.os.Bundle; import android.speech.tts.TextToSpeech; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; public class mySpeech extends Activity { //語音元件 private...
package com.tencent.mm.plugin.exdevice.f.a; import com.tencent.mm.network.q; import com.tencent.mm.plugin.exdevice.a.a; import com.tencent.mm.plugin.exdevice.a.b; import com.tencent.mm.plugin.exdevice.model.ad; import com.tencent.mm.protocal.c.bw; import com.tencent.mm.protocal.c.bx; import com.tencent.mm.protocal.c.x...
package org.alienideology.jcord.handle.channel; /** * IAudioChannel - A channel that contains audio connection. Such as {@link IVoiceChannel} or {@link IPrivateChannel}. * * @author AlienIdeology */ public interface IAudioChannel extends IChannel { }
package cn.wzd.junitTest; import java.io.InputStream; import java.util.List; import org.apache.ibatis.io.Resources; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactoryBuilder; import org.junit.Before; import or...