text stringlengths 10 2.72M |
|---|
package com.uit.huydaoduc.hieu.chi.hhapp.Framework.Direction;
import android.content.Context;
import android.util.Log;
import com.uit.huydaoduc.hieu.chi.hhapp.Common.Common;
import com.uit.huydaoduc.hieu.chi.hhapp.R;
import com.uit.huydaoduc.hieu.chi.hhapp.Remote.IGoogleAPI;
import com.google.android.gms.maps.model.L... |
/*
* Copyright 2002-2022 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... |
/*
* ModifyTBTHDF5Plugin
*/
package net.maizegenetics.analysis.gbs;
import cern.colt.list.IntArrayList;
import net.maizegenetics.dna.map.TagsOnPhysicalMap;
import net.maizegenetics.dna.tag.TagCounts;
import net.maizegenetics.dna.tag.Tags;
import net.maizegenetics.dna.tag.TagsByTaxa.FilePacking;
import net.maizegene... |
package com.durgesh.schoolassist.Adapters;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Spinner;
import android.widget.TextView;... |
package pl.edu.agh.to2.interpreter.expressions;
import pl.edu.agh.to2.commands.Command;
import java.util.Deque;
public class TerminalExpressionCOMMAND implements Expression {
@Override
public Command interpret(Deque<Expression> s) {
return null;
}
@Override
public String getRaw() {
... |
package egovframework.rte.ptl.mvc.bind;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.Calendar;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.mortbay.log.Log;
im... |
/*
* 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.common.error;
/**
*
* @author dangminhtien
*/
public class AddToCartError implements PresentableError {
private... |
package org.sunshinelibrary.turtle.utils;
import org.sunshinelibrary.turtle.models.WebApp;
import java.util.ArrayList;
import java.util.List;
/**
* User: fxp
* Date: 10/15/13
* Time: 3:49 PM
*/
public class DiffManifest {
public List<WebApp> newApps = new ArrayList<WebApp>();
public List<WebApp> deleted... |
/* Name : Poonam I. Patil
Roll_no : 08
Div : B
*/
import java.util.*;
abstract class shape
{
double dim1,dim2;
shape(double a, double b)
{
dim1=a;
dim2=b;
}
abstract void area();
}
class rectangle extends shape
{
rectangle(double a, double b)
{
... |
package com.cit360projectmark4.dao;
import com.cit360projectmark4.pojo.CapturedEntity;
import com.cit360projectmark4.pojo.ScabsEntity;
import com.cit360projectmark4.pojo.UsersEntity;
import com.cit360projectmark4.util.HibernateUtil;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.crit... |
package OnlinemusicstoreClasses;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;... |
package com.dq.police.controller.actions;
import com.dq.police.controller.Action;
import com.dq.police.helpers.ConstraintsUtil;
import com.dq.police.view.View;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public class ExitAction extends Action {
private View view;
@Override
public String execu... |
package termP;
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
public class termP {
public static void main(String[] args){
MainPanel mp = new MainPanel();
}
}
|
package instruments;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class SaxophoneTest {
Saxophone saxophone;
@Before
public void before(){
saxophone = new Saxophone("Very High", SaxophoneType.TENOR
, "brass", "woodwind", "Go... |
package pet_shop.negocio.beans;
import java.time.LocalDateTime;
public class Animal {
private static long proximoID = 1;
private long id;
private Pessoa dono;
private String nome;
private double peso;
private String especie;
private String raca;
private LocalDateTime dataNascimento;
pub... |
package 연습장;
import java.util.Scanner;
public class 사용자입력받기 {
public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
Scanner s = new Scanner(System.in);
System.out.println("아무 숫자나 입력하세요");
int userinput = s.nextInt();
System.out.println("한번 더 아무 숫자나 입력하세요");
int userinput1 = s.nextInt();... |
package com._520it.wms.web.action;
import com._520it.wms.query.ClientQueryObject;
import com._520it.wms.query.OrderBillChartQueryObject;
import com._520it.wms.query.SaleChartQueryObject;
import com._520it.wms.service.IBrandService;
import com._520it.wms.service.IChartService;
import com._520it.wms.service.IClientServi... |
package com.moviee.moviee.activities;
import android.animation.ValueAnimator;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.view.View;
import android.view.WindowManager;
import android... |
package com.novakivska.app.homework.homework15;
/**
* Created by Tas_ka on 5/9/2017.
*/
public class Furniture {
private int furnitureItems;
public Furniture (int furnitureItems){
this.furnitureItems = furnitureItems;
}
public int getFurnitureItems() {
return furnitureItems;
}
... |
package br.senac.rn.agenda.model;
import lombok.Data;
import javax.persistence.*;
@Entity
@Table(name = "tb_contatos")
@Data
public class Contato {
@Id
@Column(name = "con_id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "con_nome", nullable = false)
... |
package be.openclinic.pharmacy;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.text.SimpleDateFormat;
import java.util.Vector;
import net.admin.Service;
import be.mxs.common.util.db.MedwanQuery;
import be.mxs.... |
/**
* Created by Гамзат on 04.06.2017.
*
* Урок 47 - Идентификатор final
*/
public class Bender {
public static void main(String[] args) {
Fry finalObject = new Fry(1);
for (int i = 0; i < 50; i++) {
finalObject.add();
System.out.printf("%s", finalObject);
}
... |
package com.beike.util.luncene.rank;
import org.apache.lucene.index.FieldInvertState;
import org.apache.lucene.search.Similarity;
public class QPSimilarty extends Similarity{
/**
*
*/
private static final long serialVersionUID = 7558565500061194774L;
/* (non-Javadoc)
* @see org.apache.lucene.search.Simil... |
package com.encdata.corn.niblet.dto.keycloak.roles;
import java.util.List;
/**
* Copyright (c) 2015-2017 Enc Group
*
* @Description keycloak私有角色元素
* @Author Siwei Jin
* @Date 2018/10/25 15:48
*/
public class KeycloakClientRoleElementDto {
private String id;
private String client;
private List<Pub... |
package mb.tianxundai.com.toptoken.fgt;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import mb.tianxundai.com.toptoken.R;
import mb.tianxundai.com.toptoken.base.BaseFgt;
import mb.ti... |
package cmc.vn.ejbca.RA.service;
import cmc.vn.ejbca.RA.dto.respond.*;
import cmc.vn.ejbca.RA.response.ResponseObject;
import cmc.vn.ejbca.RA.response.ResponseStatus;
import cmc.vn.ejbca.RA.util.Units;
import org.bouncycastle.util.encoders.Base64;
import org.cesecore.keys.util.KeyTools;
import org.cesecore.util.CertTo... |
package com.huy8895.dictionaryapi.helper.imp;
import com.huy8895.dictionaryapi.helper.DictAbstract;
import com.huy8895.dictionaryapi.model.enums.HtmlTag;
import com.huy8895.dictionaryapi.model.rung.RungWord;
import com.huy8895.dictionaryapi.model.word.Category;
import com.huy8895.dictionaryapi.model.word.Part;
import ... |
package com.leviathan143.craftingutils.common.container;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
public class ContainerIngredientList extends Container
{
public ContainerIngredientList()
{
}
@Override
public boolean canInteractWith(EntityPlayer playerIn)
... |
package object.simulation;
import java.util.ArrayList;
import java.util.List;
public class ResultsData {
private List<List<ResultsDataEntry>> data;
private List<ResultsDataEntry> current_data;
ResultsData() {
this.data = new ArrayList<List<ResultsDataEntry>>();
this.current_data = new ArrayList<ResultsDataEn... |
public class alfavit {
public static void main(String[] args) {
char [] rus=new char [32]; //задание русского алфавита
char [] eng=new char [26]; //задание английского алфавита
char [] rusalf=new char [32]; //замена русского алфавита
char [] engalf=new char [26]; //замена английского алфавита
for (int i... |
/**
* Copyright (C) 2008 Atlassian
*
* 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... |
package morpion;
public class Partie {
BigMorpion m = new BigMorpion();
private int last;
public Partie() {
this.last = -1;
}
public void tour(Joueur j) {
int choix;
do {
System.out.println("Tour du joueur " + j.getNom());
if (last == -1 || m.getTotal()[last].isFini())
last = j.choixPlateau();
... |
package ru.shikhovtsev.core.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.shikhovtsev.cachehw.HwCache;
import ru.shikhovtsev.core.dao.UserDao;
import ru.shikhovtsev.core.model.User;
import ru.shikhovtsev.core.sessionmanager.SessionManager;
import java.util.Optional;
public class DbServi... |
package network.topdown.application.http.protocol;
public class GzipUtil {
}
|
package com.acompanhamento.api.service;
import com.acompanhamento.api.domain.Terapeuta;
import org.springframework.data.domain.Page;
public interface TerapeutaService {
Terapeuta cadastrarTerapeuta(Terapeuta terapeuta);
Terapeuta buscarTerapeutaPorNome(String nome) throws Exception;
Terapeuta buscarTera... |
package com.asky.backend.service.Iservice;
import com.asky.backend.entity.Content;
import java.util.List;
public interface IContentService {
public List<Content> getAllContent();
public Content getContentById(int contentId);
public Content insertContent(Content content);
public Content updateCont... |
package com.legaoyi.platform.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotat... |
package com.daz.common.publicDict.server;
import java.util.List;
import java.util.Map;
import com.daz.common.publicDict.pojo.publicDictPojo;
public interface IPublicDictServer {
public List<publicDictPojo> searchPublicDict(Map<String, Object> map)throws Exception;
public publicDictPojo searchOnePublicDict(Map<Stri... |
package enem;
public class TesteManipulador {
public static void main(String[] args) {
String path = "F:\\WorkSpace\\Brent\\aluno.db";
IFileOrganizer arq1;
//Passo1 - Construção do arquivo base
arq1 = new ManipuladorSequencial(path);
for (int i=10 ; i>=0; i--){
Aluno a = new Aluno(0, "Alun... |
package creational.prototype.bookcode.shape;
public class Main {
public static void main(String[] args) {
Circle c = new Circle();
c.x = 10;
c.y = 20;
c.color = "red";
c.radius = 2;
Circle copy = (Circle) c.clone();
System.out.println(c.equals(copy));
}
}... |
package com.swyrik.kalah.entity;
public enum Status {
PROCESSING, COMPLETED;
}
|
package org.artifact.security.intercept;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import org.artifact.security.domain.User;
/**
* 用于登陆成功后返回自定义数据,该接口的实现类须在spring-security.xml中进行配置才能生效
* <p>
* 日期:2015年10月30日
*
* @version 0.1
* @author Netbug
*/
public interface L... |
package Problem_15487;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Int... |
package org.usfirst.frc.team4632.robot;
import edu.wpi.first.wpilibj.SampleRobot;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Timer;
/**
*I LIEK ROBITS BRUHHHH!
*/
/*Me Like Robits as wall!!
*They yum yum!!
Me Likey!*/
public class Robot extends Sam... |
package com.group.weatherforecast;
import java.util.List;
import java.util.Map;
public class WeatherForecastItem {
int dt;
Map<String, Float> main;
List<Weather> weather;
Map<String, Float> clouds;
Map<String, Float> wind;
String dt_txt;
@Override
public String toString() {
re... |
package com.apktest;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.graphics.Color;
import android.graphics.PixelFormat;
import android.media.AudioManager;
import an... |
// Plugin: Gold2iConomy
// Author: EdTheLoon
// Date (last modified): 13/07/11 07:43 by EdTheLoon
// License : GNU GPL v3
package com.edtheloon.gold2economy;
import java.util.HashMap;
import org.bukkit.ChatColor;
import java.util.logging.Logger;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSend... |
package protocol;
import java.io.IOException;
import application.address.model.Sender;
import application.address.model.UserBTP;
import application.address.model.UserTCP;
import messageCenter.ReceiverBTP;
import messageCenter.ReceiverTCP;
public class TCP implements Back {
public UserTCP sourceUser;
public Thre... |
package mx.redts.adendas.dao;
import java.util.List;
import mx.redts.adendas.model.CClientes;
public interface IClientesDAO {
public List<CClientes> getCClientesList();
}
|
import static org.junit.Assert.*;
import org.junit.Test;
/** Perform tests of the Piece class
*/
public class TestBoard {
private Board board = new Board(true);
private Piece tester = new Piece(true, board, 0, 0, "pawn");
private Piece testerOOB = new Piece(true, board, 123, 15, "pawn");
private Piece te... |
package com.atguigu.java;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
public class ArrayToCollection {
/**
* 将数组转成集合
*/
@Test
public void test(){
String[] names = {"aa"};
// List asList = Arrays.asList("aa","cc","dd");
List asList = Arrays.asList(new String[]{"aa","bb","... |
package Assign7;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.*;
public class MyShopping {
private Hashtable < Customer, Order > a;
public void s... |
package com.artogrid.bundle.syncbond.service.impl;
import java.io.Serializable;
import java.util.List;
import org.springframework.orm.hibernate3.HibernateCallback;
import com.artogrid.bundle.syncbond.service.SyncBondService;
import com.artogrid.commons.response.Page;
import com.artogrid.commons.utils.Constants;
impo... |
package br.ufsc.ine5605.clavicularioeletronico.controladores;
import br.ufsc.ine5605.clavicularioeletronico.telasgraficas.TelaSistemaNew;
/**
* Controlador principal do sistema, controla o menu principal e
* chama os demais controladores
* @author Flávio
*/
public class ControladorSistema {
private static C... |
package com.imooc.ioc.demo1;
import org.junit.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springfram... |
/*
* Author: RINEARN (Fumihiro Matsui), 2020
* License: CC0
*/
package org.vcssl.nano.plugin.system.terminal;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.lang.reflect.InvocationTargetException;
import javax.swing.JFrame;
import j... |
package algo3.fiuba.vista.vista_tablero;
import algo3.fiuba.controladores.controladores_de_carta.ControladorCartaCampo;
import algo3.fiuba.controladores.controladores_de_carta.ControladorCementerio;
import algo3.fiuba.controladores.ControladorMazo;
import algo3.fiuba.modelo.jugador.Jugador;
import algo3.fiuba.utils.Ca... |
package com.contract.system.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table
public class Slot {
@Id
@GeneratedValue
private long slotid;
private String slotname;
private String startt... |
package a2;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.OutputStream;
class SymLit{
int addr;
String name;
SymLit(String n,int a){
name = n;
addr = a;
}
}
public class Pass2 {
public static... |
package com.rk.jarjuggler.gui;
import javax.swing.*;
import javax.swing.tree.TreeNode;
import com.intellij.util.ui.ColumnInfo;
import com.intellij.util.ui.treetable.ListTreeTableModelOnColumns;
import com.intellij.util.ui.treetable.TreeTableModel;
import com.rk.jarjuggler.model.DirNode;
import com.rk.jarjugg... |
package com.example.elearning.repositories;
import com.example.elearning.entities.Chapitre;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ChapitreRepository extends JpaRepository<Chapitre,Integer> {
}
|
package com.tvm.thread.exceptionHandler;
public class Task implements Runnable{
@Override
public void run() {
int i = Integer.parseInt("TTT");
//The below line of code will never be executed due to exception in the above line
System.out.println("Finished Thread Class execution"+i);
}
}
|
package com.akanar.dao;
import java.util.List;
import com.akanar.exceptions.BusinessException;
import com.akanar.model.AccountInfo;
import com.akanar.model.CustomerInfo;
import com.akanar.model.TransactionInfo;
import com.akanar.model.UserInfo;
public interface AkanarDAO {
// Get data
public CustomerInfo getAccou... |
package com.example.demo.web;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.example.demo.entity.Dictionary;
import com.example.demo.service.DictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stere... |
package br.com.estore.web.model;
public enum PersonTypeBean {
Individuals(1),LegalEntity(2);
private int value;
private PersonTypeBean(int value) {
this.setValue(value);
}
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
}
|
package tutuorial1;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
public class KeyInput extends KeyAdapter {
private Handler handler;
private boolean[] keyDown = new boolean[4];
public KeyInput(Handler handler){
this.handler=handler;
for(int i = 0; i < 4; i++){
keyDown[i] = false;... |
package com.lv.redis.rediscombat.util;
import org.springframework.stereotype.Component;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
import redis.clients.jedis.ScanResult;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
*... |
package anthonysierra.com.notificationchannels;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.... |
package seedu.project.logic.parser;
import static seedu.project.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.project.commons.core.Messages.MESSAGE_UNKNOWN_COMMAND;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import seedu.project.logic.commands.AddCommand;
import seedu... |
/*
* 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 Cafe;
/**
*
* @author renan
*/
public class SystemOut {
public void outPrintCoffeOrder(Order order, Calculate calculate)... |
package com.cn.ouyjs.RabbitMq;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.web.client.RestTemplate;
import java.util.concurrent.CountDownLatch;
/... |
package com.example.demo.mapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.example.demo.entity.Register;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
import java.util.M... |
package com.rengu.operationsoanagementsuite.Entity;
import java.io.Serializable;
import java.util.List;
public class DeployStatusEntity implements Serializable {
private String ip;
private boolean deploying = true;
private double progress = 0;
private double transferRate = 0;
private List<DeployLo... |
package nesto.base.util;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.media.MediaScannerConnection;
import android.net.Uri;
import android.os.Environment;
import android.os.Looper;
import android.support.annotation.IntDef;
import android.support.annotation.... |
package com.qf.demo.service.Impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.demo.dao.StuMapper;
import com.qf.demo.entity.Student;
import com.qf.demo.service.Stuservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;... |
package com.example.lamelameo.picturepuzzle.unused;
import android.content.Context;
import android.graphics.drawable.Drawable;
import androidx.core.view.GestureDetectorCompat;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Imag... |
/**
* WebSocket integration for Spring's messaging module.
*/
@NonNullApi
@NonNullFields
package org.springframework.web.socket.messaging;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;
|
public class ObjectParseParameter {
public ObjectParseParameter() {
String s = null;
Long number = null;
foo1(s, number);
System.out.println(s);
System.out.println(number);
}
private void foo(String s, Long number) {
s = "LTTD";
number = 1L;
}
private void foo1(Object s, Object number... |
package modele;
/**
* Créé par victor le 28/03/18.
*/
public class Case {
private Lien entree = Lien.NONE;
private Lien sortie = Lien.NONE;
public final int ligne;
public final int colonne;
public final int symbole;
private Chemin chemin;
Case(int ligne, int colonne, int symbole) {
... |
package com.nsi.clonebin.controller;
import com.nsi.clonebin.model.dto.UserRegistrationDTO;
import com.nsi.clonebin.model.entity.UserAccount;
import com.nsi.clonebin.service.UserAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.s... |
package com.example.zhengzeqin.mymessageboard.model;
import org.litepal.crud.DataSupport;
import java.io.Serializable;
/**
* Created by zhengzeqin on 2017/11/26.
*/
public class UserModel extends DataSupport implements Serializable {
/**/
private int id;
//用户名
private String userName;
/*账户*... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.vebo.util;
import java.text.DecimalFormat;
/**
*
* @author mohfus
*/
public class DoubleUtil {
private DecimalFormat formatador;
public DoubleUtil() {
formatador = new DecimalFormat... |
package controllers;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.List;
import model.ProductNODATABASE;
import play.libs.Json;
import play.mvc.BodyParser;
import play.mvc.Controller;
import play.mvc.Result;
/**
* CONTROLLER
*/
public class ProductsNODATABASE extends Controller{
// das NEU... |
package basis.chapter01;
/**
* Created by Administrator on 2015/4/11.
*
*/
public class SleepTest{
public static void main (String[] args){
String[] arg = {"one","two","three","four"};
long start = System.nanoTime();
for (int i=0; i<arg.length;i++){
try {
Sys... |
package com.rcmapps.viperonandroid.di;
import android.content.Context;
import com.rcmapps.viperonandroid.repository.SharedPreferenceRepo;
import com.rcmapps.viperonandroid.repository.impls.SharedPreferenceRepoImpl;
public class AppModuleImpl implements AppModule {
private final SharedPreferenceRepoImpl sharedPr... |
package main.java.oop.static3;
public class Test03 {
public static void main(String[] args) {
// Static Method 는 객체 생성 없이 접근 가능하다.
long totla = Calculator.plus(10L, 20L);
System.out.println(totla);
}
}
|
import java.io.*;
import java.util.*;
import java.util.function.*;
import java.util.stream.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
static String isValid(String s){
Map<Long, Long> frequencyMap = s.chars().
box... |
/*
* ResultXML.java
* TODO writer,reader
*/
package Graph;
import java.lang.reflect.*;
import java.util.Vector;
import org.graphstream.graph.Graph;
import org.graphstream.graph.implementations.DefaultGraph;
import org.graphstream.stream.file.FileSource;
import org.graphstream.stream.file.FileSourceFactory;
impo... |
class LFUCache {
PriorityQueue<Node> q = new PriorityQueue<>();
int cap;
HashMap<Integer, Node> map = new HashMap<>();
int time = 0;
public LFUCache(int capacity) {
cap = capacity;
}
public int get(int key) {
if(!map.containsKey(key))return -1;
Node n = map.get(... |
package com.masters.controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.spring... |
package com.pitang.business;
import java.util.LinkedHashMap;
import java.util.Map;
public class Environment {
private String name;
private ResourcePool pool;
private Map<String, Property> properties;
private Environment() {
super();
this.properties = new LinkedHashMap<>();
}
public... |
package com.grandsea.ticketvendingapplication.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.w... |
/*
* 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 com.bionic.bibonline.entitiesbeans.authors;
import com.bionic.bibonline.entitiesbeans.AbstractFacade;
import com.bionic.bibon... |
package com.example.Web.Model.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
public class KorisnikTreninziDTO {
private Long idKorisnika;
public KorisnikTreninziDTO(){}
}
|
public class Scoreboard implements ScoreboardADT {
//create a jobList called list
private JobList list;
//iterator to get through list
private java.util.Iterator<Job> jItr;
public Scoreboard(){
//Initialize list to a job list
list = new JobList();
}
@Override
public int getTotalScore() {
//Startin... |
package com.xmcc.service;
import com.xmcc.common.JsonData;
import com.xmcc.entity.ProductCategory;
import java.util.List;
public interface ProductCategoryService {
//获取商品类目列表
public JsonData list();
}
|
package by.belotserkovsky.dao;
import by.belotserkovsky.pojos.User;
/**
* Created by K.Belotserkovsky
*/
public interface IUserDao extends IDao<User> {
User getByUserName(String userName);
}
|
package util;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class Dbutil {
//连接数据库
private String JDBC_DRIVER = "com.mysql.cj.jdbc.Driver";
private String DB_URL = "jdbc:mysql://localhost:3306/db_dorm?useUnicode=true&characterEncoding=utf8&useSSL=... |
package dao;
import app.BaseDao;
import model.Item;
import org.sql2o.Connection;
import java.util.List;
public class InventoryDao extends BaseDao{
public List<Item> getAllItems(){
String sql = "SELECT inv.id, inv.name, cat.name category, stock, price " +
"FROM inventory in... |
package org.wuxinshui.boosters.designPatterns.singleton;
/**
* Copyright [2017$] [Wuxinshui]
* <p>
* 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
* <p>
* http://www.apache.org/licenses... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.