text
stringlengths
10
2.72M
package com.goldsand.collaboration.server_test.activity; import android.app.Activity; import android.content.ComponentName; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.os.Message; import android...
/* * 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 Interfaces; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JTable; import javax.swing.JTextField; i...
package lib.hyxen.gcm; import android.app.Activity; import android.content.Context; import android.content.DialogInterface; import android.content.SharedPreferences; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GoogleApiAvailability; import com.google.android.gms.common...
/* Test 18: * * Questo test controlla la deallocazione dalla symbol table dei parametri * formali. */ package packname; class s1 { void pippo(int a, int b, int c) {} void pluto(int a, int b) {} }
package br.com.moryta.myfirstapp.events; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import java.util.List; import br.com.moryta.myfirstapp.BaseViewHolder; import br.com.moryta.myfirstapp.C...
package com.example.pfweather.ui; import com.amap.api.location.AMapLocation; import com.amap.api.location.AMapLocationClient; import com.amap.api.location.AMapLocationClientOption; import com.amap.api.location.AMapLocationClientOption.AMapLocationMode; import com.amap.api.location.AMapLocationListener; import...
package kni.webstore.validator; import static org.junit.Assert.*; import java.util.List; import java.util.Random; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.springframework.validation.BindException; import org.springframework.validation.BindingResult; import org.sp...
// ChatLoginPanel.java // // Last modified 1/30/2000 by Alan Frindell // Last modified : Priyank Patel <pkpatel@cs.stanford.edu> // // GUI class for the login panel. // // You should not have to modify this class. package Chat; import java.awt.*; import java.awt.event.*; import javax.swing.*; @SuppressWarnings("...
package com.zhicai.byteera.activity; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import com.zhicai.byteera.R; import com.zhicai.byteera.activity.community.topic.actiivty.CommunityFragment; import com.zhicai.byteera.activity...
package com.needii.dashboard.model.form; public class ShipperTypeCommissionForm { private Integer idTypeCommisstion; private String typeCommision; private Integer typeHireCommission;//typeHireCommission : 1 --> combo, typeHireCommission: 2 --> day private Integer typeCombo;//typeCombo : 1 --> 7 nga...
import java.util.ArrayList; /** * Created by Abuser on 1/13/2017. */ public class OnePlus { public ArrayList<Integer> plusOne(ArrayList<Integer> a) { if (a.size() > 1) removeZeroes(a); if (a.get(a.size() - 1) != 9) { a.set(a.size() - 1, a.get(a.size() - 1) + 1); ...
package ru.otus.sua.L16.frontendservice; public interface FrontendService { }
/* * 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 jesk.desktopgui; import jesk.system.MouseButton; public interface IDraggable { public boolean canDrag(MouseButton button, int x, int y); public void dragBy(int x, int y); }
package liu.java.lang.Enums; public class Test { }
package com.birivarmi.birivarmiapp.data; import java.util.Date; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.Re...
package com.nitnelave.CreeperHeal.block; import org.bukkit.block.BlockState; import org.bukkit.block.Skull; /** * Skull implementation of CreeperBlock, to store and replace the orientation, * the owner, etc... * * @author nitnelave * */ class CreeperHead extends CreeperBlock { /* * Constructor. ...
package com.yujing.rxjava.activity; import android.annotation.SuppressLint; import com.blankj.rxbus.RxBus; import com.blankj.rxbus.RxBus.Callback; import com.yujing.rxjava.R; import com.yujing.rxjava.contract.RxBusMessage; import com.yujing.rxjava.databinding.ActivityMain2Binding; import com.yujing.utils.YShow; imp...
package com.tsystems.model; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persisten...
/* * 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 controller; import controller.exceptions.IllegalOrphanException; import controller.exceptions.NonexistentEntityExcepti...
package com.example.okta_cust_sign_in.base; import android.app.Activity; import android.content.Context; import androidx.fragment.app.Fragment; import com.example.okta_cust_sign_in.interfaces.AppLoadingView; import com.example.okta_cust_sign_in.interfaces.AppMessageView; import com.example.okta_cust_sign_in.interfa...
public class AutomobileVenduta { private String modello; private int cilind; private float prezzo; private final int CILMAX = 5000; private final int CILMIN = 500; public void AutomobileVenduta(String modello, int cilind, float prezzo){ this.modello = modello; if(cilind<=CILMAX ...
/* * Arrays.sort() * * array transfered by a copy or reference? * */ package Sort; import java.util.Arrays; /** * * @author YNZ */ public class ArraysSort { public static void main(String[] args) { int[] intArray = {20, 30, 40 ,65, 23, 12}; System.out.println(Arr...
package br.com.mixfiscal.prodspedxnfe.gui.job; import static org.quartz.JobBuilder.newJob; import static org.quartz.SimpleScheduleBuilder.simpleSchedule; import static org.quartz.TriggerBuilder.newTrigger; import java.util.HashMap; import java.util.Map; import javax.servlet.ServletContextEvent; import javax.servlet....
package duke; public class Task { public boolean isDone; public String eventName; public String eventType; public Task(boolean done, String eventName, String eventType) { this.isDone = done; this.eventName = eventName; this.eventType = eventType; } /** * This func...
package com.yifenqian; import android.app.Activity; import android.os.Bundle; import android.os.StrictMode; import android.widget.ImageView; import java.util.ArrayList; import java.util.List; public class Main extends Activity { @Override public void onCreate(Bundle savedInstanceState) { StrictMode.s...
package com.mingyin.serviceB; import com.mingyin.api.User; import com.netflix.discovery.converters.Auto; import feign.Param; import hello.MyApi; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("/ServiceB") pu...
package com.nitharshanaan.android.movieindex; import android.net.Uri; import android.util.Log; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.util.Arr...
package org.dbdoclet.test.option; import junit.framework.Test; import junit.framework.TestSuite; import org.dbdoclet.log.Logger; import org.dbdoclet.service.ExecResult; import org.dbdoclet.service.ExecServices; import org.dbdoclet.service.FileServices; public class UseAppendixTests extends OptionTestCase { priv...
package demo.apps.maptracker.common; import com.google.android.gms.maps.model.LatLng; public class Segment { public LatLng start; public LatLng finish; public double LengthInMeters; public Segment(LatLng start, LatLng finish, double len) { this.start = start; this.finish = finish; ...
package aula_0330.lista3; import java.util.ArrayList; public class LabirintoMain { public static void main(String[] args) { ArrayList<Sala> salas = new ArrayList<Sala>(); Sala sala1 = new Santuario(); sala1 = new CamaraGas(); Sala sala2 = new CamaraGas(); Sala sala3 = new ...
import java.util.*; class ques1d21 { public static void main(String args[]) { Scanner sc=new Scanner(System.in); System.out.print("Enter String S : "); String s=sc.nextLine(); Stack st=new Stack(); for(int i=0;i<s.length();i++) st.push(s.charAt(i)); s=""; ...
package com.bluetooth.iss.iss.listeners; /** * Created by Ilja Kosynkin on 10.01.2016. * Copyright */ public interface IDeviceChooser { void wasDeviceChosen(boolean isDeviceChosen); }
package com.zd.christopher.transaction; import java.util.ArrayList; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.zd.christopher.bean.Entity; import com.zd.christopher.dao.EntityDAO; import com.zd.christopher.reflector.Reflector; @Service public c...
import java.io.*; import java.util.*; public class Osero{ public static void main(String[] args){ int r=10, l=10, p=0, flag=3; Ban osero = new Ban(); System.out.println("---Osero game start!!---"); osero.initMap(); while(flag==3){ Scanner scan = new Scanner(System.in); System.out.println("you have "...
package com.pan.al.array; import org.junit.Test; import java.util.HashMap; import java.util.Map; /** * 数组中重复的数字 * 在一个长度为n的数组里面的所有数字都在0~n-1的范围里,找出重复的数字 * */ public class Duplication { /** * 交换俩个数 * @param arr * @param i * @param j */ public void swap(int[] arr, int i, int j) { ...
package com.yc.education.controller.customer; import com.github.pagehelper.PageInfo; import com.yc.education.controller.BaseController; import com.yc.education.controller.account.AccountInputInvoiceController; import com.yc.education.controller.account.AccountPayableController; import com.yc.education.controller.accou...
import java.util.*; import java.lang.Iterable; class Drawcards2 { //__Data member:__ int x=0; //used as a function return value int stop = 0; //if stop equals 1, the game will end. //Process of drawing cards (the process of the game) //__Class method:__ void drawingprocess(Player0 p0,Player1 p1,Player2 p2,Player3 p3,C...
package org.typhon.client.model; import java.util.*; import java.sql.Timestamp; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.typhon.client.service.*; public class Similarity { private static final Logger logger = LoggerFactory.getLogger(Similarity.class); private String name; private f...
package com.example.adnan.inventoryapp; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; import java.util.ArrayList; /** * Created by Adnan on...
package noiter.spring; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller @RequestMapping(value = "/") public class HomeController { @RequestMapping({"/", "/home"}) public String getContent() { return "first-page"; } }
package cn.com.signheart.component.core.core.service; import cn.com.signheart.component.core.core.model.TbPlatFormConfig; import java.sql.SQLException; import java.util.List; /** * Created by ao.ouyang on 16-1-11. */ public interface IPlatFormCfgService { /** * 查询所有配置 * @return * @throws SQLEx...
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.neuron.mytelkom.adapter; import android.app.Activity; import android.view.LayoutInflater; import android.view.View; import android.v...
package org.squonk.camel.processor; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.squonk.camel.CamelCommonConstants; import org.squonk.dataset.Dataset; import org.squonk.dataset.DatasetMetadata; import org.squonk.types.io.JsonHandler; import org.squonk.util.CommonMimeTypes; import ja...
package com.appfountain.external; import java.util.List; import com.appfountain.model.Question; /** * {"questions":[{"valid":true,"body":"body","created":"2013-10-04T17:29:43", * "category_id" * :1,"id":1,"user_id":1,"title":"\u305f\u3044\u308d\u3064","updated" * :"2013-10-04T17:29:43"}], "status":true} */ publ...
package com.qa.PetClinicJUnit; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; public class PetClinicOwnerInformation { @FindBy(xpath = "/html/body/app-root/app-owner-detail/div/div/h2[1]") private WebElement ownerInformationPageTitle; public String getOwnerInformationPageTitl...
package com.allstate; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; /** * Created by sameer on 2/1/17. */ public class QuoteTest { @Before public void setUp() throws Exception { } @After public void tearDown() throws Exception { ...
/* Copyright (c) 2019 FIRST. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaimer below) provided that * the following conditions are met: * * Redistributions of source code must retain the above cop...
package no.ntnu.stud.ubilearn.fragments; import java.util.HashMap; import no.ntnu.stud.ubilearn.R; import no.ntnu.stud.ubilearn.User; import no.ntnu.stud.ubilearn.db.TrainingDAO; import no.ntnu.stud.ubilearn.models.CasePatient; import no.ntnu.stud.ubilearn.models.CasePatientStatus; import android.annotation.SuppressL...
package com.java.domain; public class StuBean { private Integer id;//学号 private String name;//姓名 private String password;//密码 private String position;//位置 public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } publ...
package com.robin.springboot.demo.java_designPatterns.adapter; /** * 目标功能接口,所包含的方法都是或者大多数是目标方法 */ public interface B { void b(); }
package com.invillia.acme.persistence; import com.invillia.acme.persistence.custom.CustomOrderItemRepository; import com.invillia.acme.persistence.entity.OrderItem; import org.springframework.data.repository.PagingAndSortingRepository; public interface OrderItemRepository extends PagingAndSortingRepository<OrderItem,...
package com.flp.ems.view; import java.util.HashSet; import java.util.Scanner; import com.flp.ems.domain.Employee; public class BootClass { public static void main(String[] args) { int x=0; do{ System.out.println("Enter 1 to Create employee "); System.out.println("Enter 2 to Modify Employee Info"); System.out...
package com.scalefocus.java.domain.local; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.ManyToMany; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax...
package com.model.pojo; public class Friend { private int id; private String frindName; private int rationLevel; private String knowTime; private String knowWay; private String myname; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getFrindName...
package com.gxtc.huchuan.ui.circle.file.folder; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.support.v7.widget.LinearLayoutManager; import android.text.TextUtils; import android.util.Log; import android.view.Gravity; ...
package com.abd.zaher88.androidmovieapp.DataObject; /** * Created by Zaher on 2016-07-09. */ public class MovieAdapter { }
import edu.princeton.cs.algs4.StdRandom; public class HelloWorld { public static void main(String[] args) { int[] perm = StdRandom.permutation(5); for (int index: perm) { System.out.println(index); } int[][] m = {{0, 0, 0, 0}, {0, 0, 0, 0}, ...
package com.lasform.core.business.repository; import com.lasform.core.model.entity.LocationType; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface LocationTypeRepository extends JpaRepository<LocationType,Long> { }
/* * Created on 20/08/2008 * * To change the template for this generated file go to * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments */ package com.citibank.ods.modules.product.prodsubasset.valueobject; import java.math.BigInteger; import com.citibank.ods.common.dataset.DataSet; ...
package com.qumla.service.test; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.apache.ibatis.session.SqlSession; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.qumla.domain.PagingFilter; 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 controller; import model.Oogmeting; import model.oogmetingDao; import java.io.IOException; import java.io.PrintWriter; import ...
package com.mpls.v2.controller; import com.mpls.v2.dto.TechnologiesDto; import com.mpls.v2.model.Technologies; import com.mpls.v2.service.TechnologiesService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; impor...
package org.kuali.ole.describe.controller; import org.apache.log4j.Logger; import org.apache.solr.client.solrj.SolrServerException; import org.kuali.ole.OLEConstants; import org.kuali.ole.OleEditorResponseHandler; import org.kuali.ole.describe.bo.OleWorkBibDocument; import org.kuali.ole.describe.bo.OleWorkEHold...
package com.jd.jarvisdemonim.entity; import org.greenrobot.greendao.DaoException; import org.greenrobot.greendao.annotation.Entity; import org.greenrobot.greendao.annotation.Generated; import org.greenrobot.greendao.annotation.Id; import org.greenrobot.greendao.annotation.Keep; import org.greenrobot.greendao.annotatio...
import ServicesAndInfo.DinoDiet; import Attractions.Dinosaur; import ServicesAndInfo.TheatLevel; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; public class DinosaurTest { Dinosaur Herrerasaurus; Dinosaur Triceratops; @Before public void setup(){ ...
package com.model.data; import org.bson.types.ObjectId; import com.model.db.Column; public class Dict { private String name; protected ObjectId id; private String summary; @Column(name="dictType",linked=DictType.class) private DictType dictType; public String getName() { return name; } public void ...
package exemplos.aula10.dip.correto; /** * Exemplo retirado do artigo do Baeldung. * https://www.baeldung.com/solid-principles */ public class StandardKeyboard implements Keyboard{ }
package com.xh.repair; import com.xh.base.BaseApplication; import android.content.pm.PackageInfo; import android.content.res.AssetManager; import android.content.res.Resources; import android.content.res.Resources.Theme; import android.widget.Toast; /** * @version 创建时间:2017-12-14 上午11:14:35 项目:repair 包名:...
package prepare; import org.apache.commons.codec.binary.Base64; import org.apache.commons.httpclient.Header; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.PostMethod; import org.apache.commons.httpclient.methods.StringRequestEntity; import org.apache.commons.io.IOUtils; ...
package de.domistiller.vp.android; import java.util.ArrayList; import de.domistiller.vpapi.model.Vertretungsplan; public interface DataSource { public ArrayList<String> getDates() throws Exception; public Vertretungsplan getData(String date) throws Exception; }
package pro.likada.dao.daoImpl; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.MatchMode; import org.hibernate.criterion.Restrictions; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import pro.likada.dao.OrderPaymentTypeDAO; import pro.likada.model.OrderPaymentTyp...
package matrixstudio.ui; import fr.minibilles.basics.ui.Resources; public interface RendererContext { Resources getResources(); }
package kafka2kafka; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; import org.apache.flink.table.api.EnvironmentSettings; import org.apache.flink.table.api.java.StreamTableEnvironment; import org.apache.flink.types.Row; import io.confluent.kafka.serializers.KafkaAvroSerializer; import ...
package util; import dao.BlockWidthTypeDAO; import dao.DAO; import dao.ManualBlockDAO; import dao.ManualConfDAO; import dao.ManualDAO; import dao.ManualPageDAO; import dao.ManualRowDAO; import dao.TagDAO; import dao.UserDAO; import dao.UserInfoDAO; import dao.WidthTypeDAO; import hibernate.HibernateUtil; import java.l...
package dubstep; ////@Author - Anunay Rao import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import jav...
package demo.utility; import demo.domain.Ad; import demo.domain.AdRepository; import demo.domain.Campaign; import demo.domain.CampaignRepository; import java.io.IOException; import java.util.ArrayList; import java.util.HashSet; import java.util.List; public class AdsCampaignManager { private static AdsCampaignMa...
/* * Copyright 2002-2018 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.memory.platform.modules.system.base.service.impl; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashSet; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.fa...
/* * Copyright 2011 Matthew Precious * * 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 ...
package ua.siemens.dbtool.dao.hibernate; import org.springframework.stereotype.Repository; import ua.siemens.dbtool.dao.WorkPackageDAO; import ua.siemens.dbtool.model.entities.WorkPackage; import javax.persistence.Query; import java.util.Collection; /** * The impementation of {@link WorkPackageDAO} interface * * ...
/** * 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 agreed t...
package nbi.protocols; import java.util.List; import org.apache.commons.vfs2.FileSystemOptions; import org.apache.commons.vfs2.impl.StandardFileSystemManager; import org.slf4j.LoggerFactory;import org.slf4j.Logger; /** * @author robert.lee * @version $Revision: 1.0 $ */ public interface SFTPBehavior {...
package logic.bonus; import controller.Game; public class DropTargetBonus extends AbstractBonus { /** * When this bonus is triggered, a million points are added to the game and * all bumpers are upgraded. * * @param game the game controller object. */ @Override public void trigge...
package com.icanit.app.entity; // default package import java.util.Date; import java.util.HashSet; import java.util.Set; /** * AppMerchant entity. @author MyEclipse Persistence Tools */ public class AppMerchant implements java.io.Serializable { // Fields public Integer id; public AppMerchantType appMerchantTy...
import java.util.Arrays; import java.util.Scanner; public class DiceTest{ private static int N, numbers[], totalCnt; private static boolean[] isSelected; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); // 주사위 던진횟수 numbers = new int[N]; isSelected = new ...
package com.example.androidclient; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; public class Welcome extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCont...
package com.lessons.notes.note; import android.os.Bundle; import android.view.ContextMenu; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import a...
/** * */ package com.examples.androface; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.PointF; import android.graphics.Rect; import android.m...
package com.maxmind.geoip2.model; import com.fasterxml.jackson.annotation.JacksonInject; import com.fasterxml.jackson.annotation.JsonProperty; import com.maxmind.db.MaxMindDbConstructor; import com.maxmind.db.MaxMindDbParameter; import com.maxmind.db.Network; import com.maxmind.geoip2.record.City; import com.maxmind.g...
/* * 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.clothing.webservices.demo.request; /** * * @author Chanh Thanh */ public class LoginRequest { private String idTok...
package aaa.assignment2.tests; import aaa.*; import aaa.assignment2.algorithms.*; public class Test1 { public static final int TEST_NUM_RUNS = 1000; public static void main(String[] args) { for (float ALPHA: new float[] {0.1f, 0.2f, 0.3f, 0.4f, 0.5f}) { for (float GAMMA: new float[] {0.1f, 0.3f, 0.5f, 0.7...
package com.lagardien.plkviolation; /** * Ijaaz Lagardien * 214167542 * Group 3A * Dr B. Kabaso * Date: 13 March 2016 */ public class TestPLK { public static void main(String[] args) { // TODO Auto-generated method stub PLKDemo demo = new PLKDemo(); Order order = new Order(); demo.process(...
package com.redislabs.research; import java.util.*; /** * Created by dvirsky on 07/02/16. */ public class Spec { public enum IndexingType { FullText, Prefix, Geo, Numeric, } public static class Field { public String name; public IndexingType type; ...
package nathan.banking; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; public abstract class User implements Serializable { /** * */ private static final long serialVersionUID = -343937814567666796L; protected String username; protected String passwo...
package com.fest.pecfestBackend.entity; import lombok.*; import javax.persistence.*; import java.util.Date; import java.util.UUID; @Getter @Setter @Entity @NoArgsConstructor @AllArgsConstructor @Builder public class Confirmation { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long tokenId; @Co...
package za.ac.cput.chapter5assignment.abstractfactory; /** * Created by student on 2015/03/12. */ public class JustFruit implements FruitFactory { private static JustFruit fruit = null; private JustFruit(){ } public static JustFruit getInstance(){ if(fruit == null){ fruit = new...
package ru.malichenko.market.dto; import lombok.Data; import lombok.NoArgsConstructor; import ru.malichenko.market.entities.OrderEntity; import java.util.List; import java.util.stream.Collectors; @Data @NoArgsConstructor public class OrderDto { private List<OrderItemDto> items; private int price; privat...
/* * 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 com.beike.wap.dao.impl; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.jdbc.core.simple.ParameterizedRowMapper; im...