text
stringlengths
10
2.72M
package co.sblock.events.listeners.player; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.World.Environment; import org.bukkit.block.Block; import org.bukkit.event.EventHandler; import org.bukkit.event.player.PlayerPortalEvent; import co.sblock.Sblock; import co.sblock.chat.Language; import...
package com.proky.booking.persistence.dao; import com.proky.booking.persistence.entities.Invoice; public interface IInvoiceDao extends IDao<Invoice> { }
package com.jeeconf.kafka.sample; import com.jeeconf.kafka.sample.configs.RouteConfiguration; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.kafka.KafkaConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; imp...
package com.agharibi.hibernate.demo; import com.agharibi.hibernate.inheritance.Instructor; import com.agharibi.hibernate.Utils; import com.agharibi.hibernate.inheritance.Student; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; public class SingleTableInheritance { ...
package fr.utt.if26.memoria; import androidx.annotation.NonNull; import androidx.room.ColumnInfo; import androidx.room.Entity; import androidx.room.PrimaryKey; @Entity(tableName = "times") public class TimeEntity { @PrimaryKey(autoGenerate = true) @NonNull @ColumnInfo(name = "id") private int id; ...
package pe.cibertec.dao.mysql; import com.sun.javafx.scene.control.skin.LabeledImpl; import pe.cibertec.dao.interfaces.UsuarioDao; import pe.cibertec.excepciones.ExcepcionGeneral; import pe.cibertec.modelos.Usuario; import java.sql.*; import java.util.ArrayList; import java.util.List; public class MySqlUsuario imple...
/** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); ...
/* * Created on Mar 29, 2007 * */ package com.citibank.ods.modules.product.player.functionality.valueobject; /** * @author atilio.l.araujo * */ public class PlayerListFncVO extends BasePlayerListFncVO { }
package com.eegeo.mapapi.widgets; import com.eegeo.mapapi.geometry.LatLng; import java.util.List; class RoutingPolylineCreateParams { public List<LatLng> path; public boolean isForwardColor; public String indoorMapId; public int indoorFloorId; public List<Double> perPointElevations; pub...
/** * */ /** * <!-- begin-UML-doc --> * <!-- end-UML-doc --> * @author sdownwar * @generated "UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)" */ import java.util.Date; public class ViewMarksControl { /** * <!-- begin-UML-doc --> * <!-- end-UML-doc --> * @generated "UML to J...
package uk.co.liammartin.cs2001_task1; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends AppCompatActivity { @Override protected ...
package com.sshfortress.common.enums; import org.apache.commons.lang.StringUtils; /** <p class="detail"> * 功能:这里写类描述 * </p> * @ClassName: RegCodeType * @version V1.0 */ public enum RegCodeType { REGIST("REGIST", "注册"), BACK_PASSWORD("BACK_PASSWORD", "找回密码"), BIND_PHONE("BIND_P...
package com.example.todo.note; import com.example.todo.user.UserEntity; import javax.persistence.*; @Entity(name="Note") public class NoteEntity { @Id @GeneratedValue private int id; private String note; private String color; @ManyToOne @JoinColumn private UserEntity user; public...
package com.paragon.utils.anim; /** * Created by Rupesh Saxena */ public interface SpringListener { /* * hits when Spring is Active * */ void onSpringStart(); /* * hits when Spring is inActive * */ void onSpringStop(); }
package com.capgemini.greatoutdoors.ui; import java.util.Scanner; import com.capgemini.greatoutdoors.dto.Address; import com.capgemini.greatoutdoors.dto.PlaceAnOrder; import com.capgemini.greatoutdoors.exception.InputMisMatchException; import com.capgemini.greatoutdoors.service.AddressService; import com.capg...
package Helpers; import javax.swing.*; import java.util.concurrent.ThreadLocalRandom; /** * La classe Presenter estente ogni file del package Presenter e contiene dei metodi comuni a tutti i file */ public class Presenter { public Presenter() { } /** * Il metodo è responsabile della visibilità d...
package com.cn.ouyjs.thread.lock.productAndCustomer; import java.math.BigDecimal; /** * @author ouyjs * @date 2019/8/9 10:48 */ public class Test { public static void main(String[] args) { Warehouse warehouse = new Warehouse(10); /*Producer producer = new Producer(warehouse); producer....
class Project { String name; Date startDate; Date endDate; String role; int res; String[] respon; Project(String n,Date sd,Date ed,String ro,int re,String[] rep) { name=n; startDate=sd; endDate=ed; role=ro; res=re; respon=new String[res]; for(int i=0;i<res;i++) { respon[i]=r...
package com.em.service; import java.io.Serializable; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.em.dao.DepartmentDaoInterface; import com.em.dto.DepartmentDto; @Service public class DepartmentServiceImpl implements DepartmentServiceInterf...
public class MaxProductionSubArray { public int maxProduct(int[] nums) { int length = nums.length; double[] maxPositive = new double[length]; double[] maxNegative = new double[length]; maxPositive[0] = maxNegative[0] = nums[0]; double max = nums[0]; for (int index = ...
/** * URL: https://www.hackerrank.com/challenges/ctci-merge-sort/problem */ package hackerrank.sorting; import java.io.IOException; import java.util.Scanner; public class CountingInversions { static long cntInv; // Complete the countInversions function below. static long countInversions(int[] arr) { ...
package org.squonk.core.camel; import org.apache.camel.component.servletlistener.CamelContextLifecycle; import org.apache.camel.component.servletlistener.ServletCamelContext; import org.apache.camel.impl.SimpleRegistry; /** * * @author timbo */ public class ServletCamelLifeCycle implements CamelContextLifecycle<Si...
package com.siokagami.application.mytomato.utils; import android.databinding.BindingConversion; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class DateParseUtil { public static final long minute = 1000 * 60; public static final ...
package com.twu.biblioteca; import org.junit.Before; import org.junit.Test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.io.PrintStream; import static org.junit.Assert.assertEquals; // Integration tests public class BibliotecaAppTest { publ...
package com.kess.redesnowapi.cmds; import com.kess.redesnowapi.others.Static; import org.bukkit.Bukkit; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class Fly implements CommandExecutor { ...
package filter; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.annotation.WebFilter; import javax.servlet.http.HttpServletRequest; import...
package elder.osm; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.w3c.dom.Element; /** * * Manages a collection of Open Street Map elements * * @param Type * of element managed by this library */ public abstract class OSMLibrary<T extends OSME...
package com.controller; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; imp...
package render; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Font; import java.awt.GridLayout; import javax.swing.BorderFactory; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JPanel; import javax.swing.ListCellR...
package net.nevinsky.core.app.repos; import net.nevinsky.global.entity.Employee; import org.springframework.data.jpa.repository.JpaRepository; /** * Created by inver on 22.06.14. */ public interface EmployeeRepository extends JpaRepository<Employee, Long> { }
package com.citibank.ods.entity.pl; import com.citibank.ods.common.entity.BaseODSEntity; import com.citibank.ods.entity.pl.valueobject.BaseTplClassCmplcEntityVO; // //©2002-2007 Accenture. All rights reserved. // /** * [Class description] * * @see package com.citibank.ods.entity.pl; * @version 1.0 ...
package northwind.dataAccess.concretes; import java.util.ArrayList; import java.util.List; import northwind.dataAccess.abstracts.CategoryRepository; import northwind.dataAccess.abstracts.ProductRepository; import northwind.entities.concretes.Category; public class CategoryDao implements CategoryRepository...
package com.designurway.idlidosa.model; import com.google.gson.annotations.SerializedName; public class DashComboModel { @SerializedName("combo_id") private String comboId; @SerializedName("combo_name") private String comboName; @SerializedName("image") private String comboImage; public...
package com.example.demo.WeatherObserver_jdk; public class Client { public static void main(String[] args) { ConcreateWeatherSubject subject = new ConcreateWeatherSubject(); ConcreateObserver girl = new ConcreateObserver(); girl.setObserverName("girl"); ConcreateObserver mum = n...
package com.example.core.threadImpl; import com.example.resource.Counter; import java.util.concurrent.atomic.AtomicInteger; import static java.lang.String.format; /** * email : s.lakhmenev@andersenlab.com * * @author Lakhmenev Sergey * @version 1.1 */ public class RunableImpl { private static Counter count...
package com.tony.pandemic.report; import java.util.Map; public interface IListItems { Map<String, String> listItens(); }
package view; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.layout.VBox; import javafx.stage.Stage; import model.Game; import java.util.Random; public class PlayerView { private ...
package com.mpls.v2.service; import com.mpls.v2.dto.MailBodyDTO; import com.mpls.v2.model.MailBody; import java.util.List; public interface MailBodyService { MailBody save(MailBody mailBody); MailBody update(MailBody mailBody); MailBody update(MailBodyDTO mailBodyDTO); List<MailBody> findAll(); ...
package com.eshop.controller.command; import java.util.List; import java.math.BigDecimal; import javax.servlet.http.HttpServletRequest; import com.eshop.model.dao.DBException; import com.eshop.model.service.ProductsService; import com.eshop.model.entity.Product; import com.eshop.model.entity.ProductState; import co...
package evolutionYoutube; import java.util.Arrays; import java.util.List; import com.vaadin.navigator.View; import com.vaadin.server.ExternalResource; import com.vaadin.ui.Button; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.UI; import database.BD_general; import database.Usuario_registrado; import da...
/* * package kr.or.ddit.controller.mypage; * * import java.net.URL; import java.util.ResourceBundle; import * javafx.event.ActionEvent; import javafx.fxml.FXML; import * javafx.scene.control.Button; import javafx.scene.control.Label; import * javafx.scene.control.TextField; import javafx.scene.input.MouseEvent; ...
package com.marijannovak.littletanks; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import java.util.ArrayList; /** * Created by marij on 20.4.2017.. */ public cl...
package com.novakivska.runners.lesson6; import com.novakivska.app.classwork.lesson6.ForLoop; /** * Created by Tas_ka on 3/24/2017. */ public class ForLoopRunner { public static void main (String[] args){ //ForLoop.decade(); int j = 0; for (int i = 0; i <= 10; i++) { if ((i%2...
package pt.tooyummytogo; import java.util.List; import java.util.Random; import Observables.Subject; public class Reserva{ private List<Encomenda> listaEncomendas; private double preco; private String codigo; public Reserva(List<Encomenda> le, double p) { this.listaEncomendas = le; this.preco = p; } p...
package com.ipincloud.iotbj.srv.domain; import java.io.Serializable; import java.math.BigDecimal; import java.sql.Time; import java.sql.Date; import java.sql.Timestamp; import com.alibaba.fastjson.annotation.JSONField; //(Visitperson) //generate by redcloud,2020-07-24 19:59:20 public class Visitperson implements Seri...
/* * 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 PPI.Vista; import PPI.Controladores.ControladorMisReservas; import PPI.Modelos.ModeloReserva; import PPI.Vistas.Interfaces.Int...
package com.dbs.portal.ui.expception; public class UpdateException extends Exception{ private Object errors; public UpdateException(Object errors){ this.errors = errors; } public Object getErrorMessage(){ return this.errors; } }
package domain; import java.util.Date; /** * Class which controls the in game clock. * * The in game clock is based on the realtime clock. When a new Clock is created * without any arguments the current time and a multiplier of 1 is used. The * multiplier defines the rate at which in game time advances...
package com.example.contactapp; import android.Manifest; import android.app.ProgressDialog; import android.content.ContentProviderClient; import android.content.ContentResolver; import android.content.ContentUris; import android.content.Intent; import android.content.pm.PackageManager; import android.database.Cursor; ...
package Recursion; import java.util.Scanner; public class Fibbonaci { static int fib(int n){ if(n==1) return 0; if(n==2) return 1; return fib(n-1)+fib(n-2); } public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Enter the value of n "); int n = in....
package adcar.com.network; import com.android.volley.AuthFailureError; import com.android.volley.DefaultRetryPolicy; import com.android.volley.NetworkResponse; import com.android.volley.Response; import com.android.volley.toolbox.StringRequest; import java.util.Collections; import java.util.Map; /** * Created by am...
package observe.weather.self.subject; import observe.weather.self.observer.Observer; /** * 主题接口 * * @author 金聖聰 * @version v1.0 * @email jinshengcong@163.com */ public interface Subject { /** * 注册观察者 * @param observer 需要注册的观察者 * @return void * @author 金聖聰 * @email jinshengcong@163....
package com.lemo.cmx.guanchazhe; /** * Created by 罗选通 on 2017/9/13. */ public class Client { public static void main(String[] args) { Subject subject=new SubjectImpl(); //创建微信用户 OBserver observer=new ObServerImpl("杨影枫"); OBserver observer2=new ObServerImpl("月眉儿"); OBserver observer3=new ObServe...
package use_collection.use_map; public class UseWeakHashMap { }
package com.bozuko.bozuko.map; import com.google.android.maps.GeoPoint; import com.google.android.maps.OverlayItem; public class MapItem extends OverlayItem{ GeoPoint mPoint; String mTitle; String mSnippet; Object mapObject; public MapItem(GeoPoint point, String title, String snippet) { super(point, title, ...
package com.invillia.acme.persistence; import com.invillia.acme.persistence.entity.Order; import org.springframework.data.repository.PagingAndSortingRepository; public interface OrderRepository extends PagingAndSortingRepository<Order, Long> { }
package com.example.tarena.protop.fragment; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.support.v4.app.Fragment; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearL...
package Graphic.editor; import java.awt.*; import java.awt.event.*; import java.util.ArrayList; import javax.swing.*; import javax.swing.event.*; import java.awt.MouseInfo; import java.awt.Frame; import java.awt.Label; import java.awt.Panel; import java.awt.TextArea; import java.awt.TextField; public class Project2 ...
/* Ara - capture species and specimen data * * Copyright (C) 2009 INBio (Instituto Naciona de Biodiversidad) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the Lice...
import java.util.Scanner; public class example32_01_5 {//ПРИМЕР 5 РАЗДЕЛ 1 последовательность Фибоначчи //ДОПОЛНЕНА РЕКУРСИВНЫМ ДЕРЕВОМ private static int step=0; //поле шага - глубина рекурсии public static int f(int n) { //метод вычисления числа Фибоначчи по заданному номеру в последовательности. int result...
package com.example.nene.movie20.data; /** * Created by nene on 2018/4/16. */ public class Video { private String img; private String name; private String number; public Video(String img, String name, String number){ this.img = img; this.name = name; this.number = number; ...
package com.siciarek.fractals.test.mocks; import com.siciarek.fractals.common.Drawable; public class TestCanvas implements Drawable { @Override public void init(String style) { // TODO Auto-generated method stub } @Override public float getWidth() { // TODO Auto-generated method stub return 0; } @Ove...
package com.miyatu.tianshixiaobai.http.api; import com.miyatu.tianshixiaobai.http.service.DemandService; import com.miyatu.tianshixiaobai.http.service.MemberService; import com.wzgiceman.rxretrofitlibrary.retrofit_rx.Api.BaseApi; import java.util.List; import java.util.Map; import okhttp3.MultipartBody; import okhtt...
/* * Copyright Verizon Media, Licensed under the terms of the Apache License, Version 2.0. See LICENSE file in project root for terms. */ package com.yahoo.cubed.model; import com.yahoo.cubed.json.filter.Filter; import com.yahoo.cubed.model.filter.PipelineFilter; import java.util.ArrayList; import java.util.List; i...
package at.fhv.teama.easyticket.server.security; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springfram...
package com.eshop.service; import com.eshop.domain.*; import org.springframework.ui.Model; import java.time.LocalDate; import java.util.List; public interface AdminService { LocalDate getStartDate(LocalDate start); LocalDate getFinishDate(LocalDate finish); String getMessage(LocalDate start, LocalDate ...
/* * 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.koshish.java.hibernate.ecommerce.controller; import com.koshish.java.hibernate.ecommerce.DAO.CategoryDAO; import com.koshi...
public class Pallet { private String id; private String cookie; private String delivered; private String customer; private String produced; private String blocked = "No"; public Pallet(String id, String cookie, String delivered, String customer, String produced, boolean blocked) { this.id = id; this.cookie...
package org.silverpeas.looks.aurora; import org.silverpeas.components.questionreply.model.Question; import org.silverpeas.core.util.URLUtil; import java.util.ArrayList; import java.util.List; /** * @author Nicolas Eysseric */ public class Questions { private List<Question> list = new ArrayList<>(); private bo...
////////////////////////////////////////////////////////////////////////////////////////// //Yulun Wu //CSE 002 Sec 110 //9/13/14 // // //Program #1 //Write a program that prompts the user to enter two digits, //the first giving the number of counts on a cyclometer //and the second giving the number of seconds during...
package com.datagraph.core.engine.scheduler; import com.datagraph.core.engine.job.JobManager; import com.datagraph.core.engine.job.Manager; import java.util.List; /** * Created by Denny Joseph on 6/4/16. */ public class Scheduler implements Runnable { private Manager manager; private volatile boolean stop...
package nz.co.zufang.service; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Sort; import org.springframework.stereotype.Service; import nz.co.zufang.controller.Inf...
//The program contains a graph for which critical path analysis has to be done. //The task is read one vertex at a time, calculated the earliest completion time and the latest completion time. //Slack time is calculated. And critical path is analysed. import java.util.*; //Author: Ashwin Ravishankar public...
package com.mhframework.gameplay.actor; import java.util.ArrayList; import java.util.Collections; import com.mhframework.core.math.MHVector; import com.mhframework.gameplay.tilemap.io.MHMapFileInfo; /****************************************************************************** * * @author Michael Henson * */ pu...
package ru.otus.sua.L13; import lombok.extern.slf4j.Slf4j; import java.util.Arrays; @Slf4j // for thread time and info print public class SorterImpl implements Sorter { @Override public int[] sort(int[] arr, int from, int to) { log.info("Sort start.["+from+","+to+"]"); Arrays.sort(arr,from,to...
package com.trump.auction.back.auctionProd.model; import java.math.BigDecimal; import java.util.Date; public class AuctionBidDetail { private Integer id; private String bidId; private Integer userId; private String userName; private Integer bidType; private Integer bidSubType; public...
package com.cryptocurrency.CryptoCrazy.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; @JsonIgnoreProperties(ignoreUnknown = true) public class XRP { @JsonProperty("USD") private double USD; public XRP() { // TODO Auto-generated constr...
/*import java.util.*; class Dupli { public static void removeDuplicateString2(final String input) { final Set<Character> set = new LinkedHashSet<>(); for (int i = 0; i < input.length(); i++) set.add(input.charAt(i)); final StringBuilder stringBuilder = new StringBuilder(set.size()); for (fin...
package java_learning; class Calc { int num1; int num2; int result; public void perform() { result = num1 + num2; } } public class ObjectDemo { public static void main(String[] args) { Calc obj=new Calc(); obj.num1=2; obj.num2=3; obj.perform(); System.out.println(obj.result)...
package com.online; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import javax.sql.DataSource; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; public class TestQuery { DataSource dataSource; JdbcTemp...
package com.xys.car.service; import com.xys.car.entity.Collection; import com.baomidou.mybatisplus.extension.service.IService; import com.xys.car.entity.Color; import com.xys.car.entity.RootEntity; /** * <p> * 服务类 * </p> * * @author zxm * @since 2020-12-04 */ public interface ICollectionService extends IServi...
package org.engine.test; import com.google.gson.Gson; import org.apache.commons.io.FileUtils; import org.cellcore.code.engine.page.extractor.AbstractEditionsExtractor; import org.cellcore.code.engine.page.extractor.CrawlConfiguration; import org.cellcore.code.engine.page.extractor.UnsupportedCardException; import org....
package com.mhframework.ui; import com.mhframework.MHScreen; import com.mhframework.MHScreenManager; import com.mhframework.core.math.MHVector; import com.mhframework.core.math.geom.MHRectangle; import com.mhframework.platform.MHPlatform; import com.mhframework.platform.event.MHKeyEvent; import com.mhframework.platfor...
package com.lesports.airjordanplayer.ui.data; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import com.lesports.airjordanplayer.ui.R; import java.text.SimpleDateFormat; 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 com.fastHotel.vista.disponibilidad; import FAST.com.botones.IU_Boton; import FAST.com.botones.IU_BotonCheckBox; impor...
/* * 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...
package TestClient; public class Threadable extends Thread { String name; SharedData theDemo; public Threadable(String name,SharedData theDemo) { this.theDemo = theDemo; this.name = name; start(); } @Override public void run() { ...
/** * */ package com.example.demo.service; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.ValueOperations; import org.springframework.stereotype.Service; import com.example.de...
package io.papermc.hangar.controller; import org.springframework.boot.web.servlet.error.ErrorController; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; imp...
package ffm.slc.model.enums; /** * Type of environment a user account could access */ public enum EnvironmentType { PRODUCTION("Production"), SANDBOX("Sandbox"); private String prettyName; EnvironmentType(String prettyName) { this.prettyName = prettyName; } @Override public String toString() { return p...
package com.zl.dao.front; import com.zl.pojo.client.Client; /** * 客户表实体类DAO层 * @author KINDER * */ public interface ClientDao { /** * 客户登录 */ public Client clientLogin(Client client); /** * 客户注册 */ public int clientRegister(Client client); /** * 修改绑定的手机号码 */ public i...
package com.example.hrmsEightDay.business.abstracts; import java.util.List; import com.example.hrmsEightDay.core.utilities.results.DataResult; import com.example.hrmsEightDay.core.utilities.results.Result; import com.example.hrmsEightDay.entities.abstracts.User; public interface UserService { Result add(User user);...
package utility; import org.checkerframework.checker.units.qual.A; import java.sql.*; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; public class DB_Utility { private static Connection con; private static Statement stm; private static ResultSet r...
package com.examples.io.designpatterns.strategy; public class Context { public Strategy strategy; public Context(Strategy strategy) { this.strategy = strategy; } public void doOperation(int num1,int num2) { strategy.performOperation( num1, num2); } public void changeStrategy(...
package com.dotech.core.db.model.dao; import com.dotech.core.db.DBHelper; import com.dotech.core.db.model.idao.IDao; import com.j256.ormlite.dao.Dao; import java.sql.SQLException; import java.util.Collection; import java.util.List; import java.util.Map; /** * Clase que implementa las funciones DAO y Operaciones CRU...
package com.vinodborole.portal.security.auth.jwt.extractor; import org.apache.commons.lang3.StringUtils; import org.springframework.security.authentication.AuthenticationServiceException; import org.springframework.stereotype.Component; /** * An implementation of {@link IPortalTokenExtractor} extracts token from * ...
package com.yoga.entity; /** * TbUserRole entity */ public class TbUserRole implements java.io.Serializable { // Fields private Integer id; private TbUser tbUser; private TbRole tbRole; // Constructors /** default constructor */ public TbUserRole() { } /** full constructor */ public TbUserRole(TbUser...
package com.jd.jarvisdemonim.ui.presenter; import com.jd.jdkit.IInterface.mvp.BaseViewImpl; import java.util.List; /** * Auther: Jarvis Dong * Time: on 2017/2/21 0021 * Name: * OverView:MVP NormalTestMvpActivity设置在presenter中控制activity中的view层的控制; * Usage: 可添加额外抽象方法; * * MVP主要是通过此接口将View设置数据; * * @see NormalT...
package com.example; import java.util.ArrayList; import java.util.List; public class SortEvenOdd implements ISortEvenOdd { /* * Time Complexity: O(2n) which is similar to O(n), * because constants are ignored in Big O notations * * Space Complexity: O(n) */ @Override public List<...
package aeroportSpring.model; import javax.persistence.Column; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; @Entity @DiscriminatorValue("CEI") @NamedQueries({ @NamedQuery(name="ClientEI.findAllClientEI", qu...