text stringlengths 10 2.72M |
|---|
package com.smartsampa.busapi;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Created by ruan0408 on 12/04/2016.
*/
public abstract class Stop {
private Integer id;
private String name;
private String address;
private String reference;
private Double latitude;
private Double... |
package com.hhdb.csadmin.plugin.type_create.component;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt... |
package com.ms.module.wechat.clear.activity.clear;
import android.view.View;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.entity.node.BaseNode;
import com.cha... |
package com.thepoofy.website_searcher;
import java.io.IOException;
import java.util.regex.Pattern;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.core.Response;
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;
import... |
package sch.frog.calculator.compile.syntax;
import sch.frog.calculator.compile.semantic.result.IResult;
import sch.frog.calculator.compile.semantic.IExecuteContext;
import sch.frog.calculator.compile.semantic.exec.IExecutor;
/**
* abstract node, 提供一些公共的逻辑, 所有的node都应继承这个抽象类, 而不应该继承ISyntaxNode接口
*/
public abstract cl... |
package week3day1;
public class CompareStrings {
public static void main(String[] args) {
//Write a Java program to compare a given string to another string, ignoring case considerations.
//String 1="I am Learning Java"
//String 2="I am learning java?
//Explore with == operator
// ... |
package com.sendit_app.sendit;
import java.io.File;
public class FileSystemItem {
private final String path;
private final String name;
private final String ext;
private final boolean isDir;
public FileSystemItem(String path) {
this.path = path;
File f = new File(path);
this.name = f.getName... |
package Database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.sql.SQLException;
public class UserDAO {
private SQLiteDatabase database;
private Database dbHelper;
private String[] allColum... |
/**
* This program simulates a battle between krogg and boss
*
* @author Muhammad Faizan Ali(100518916)
* @version 1.0
*/
public class Battle {
public static void main(String[] args) {
//variables for krogg stats
double kroggAttack = 38.5;
double kroggDefense = 20.0;
double kroggHP = 200;
... |
package com.dora.web.rest;
import com.dora.DoraApp;
import com.dora.domain.ItensPedido;
import com.dora.domain.Produto;
import com.dora.repository.ItensPedidoRepository;
import com.dora.service.ItensPedidoService;
import com.dora.repository.search.ItensPedidoSearchRepository;
import com.dora.service.dto.ItensPedidoDT... |
package com.joalib.board.svc;
import com.joalib.DAO.DAO;
import com.joalib.DTO.BoardDTO;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
public class MyBoardViewService{
public ArrayList[] myBoardPost(String member_id) {
DAO dao = DAO.getinstance();
List list = dao.m... |
/*
* 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 library;
/**
*
* @author PhiLong
*/
import java.awt.BorderLayout;
import java.awt.Cursor;
import java.awt.Insets;
import ja... |
public class LightOffCommand implements Command {
Light light;
public LightOffCommand(Light light) {
this.light = light;
}
// LightOffCommand는 리시버를 다른 메소드(off()메소드)하고 결합시킨다는 점을 제외하면 LightOnCommand하고 똑같은 식으로 작동
public void execute() {
light.off();
}
}
|
package persistance.dao;
import persistance.model.Team;
import java.util.List;
/**
* Created by tkachdan on 04-Dec-14.
*/
public interface TeamDAO {
public void saveTeam(Team team);
public Team getTeam(int id);
public List<Team> getAllTeams();
public void updateTeam(Team Team);
public void... |
package bis.project.controllers;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.P... |
package com.exam.connection_pool;
import com.exam.util.ExceptionalConsumer;
import lombok.Getter;
import lombok.SneakyThrows;
import lombok.extern.log4j.Log4j;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
impor... |
package jesk.desktopgui.item;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.geom.Rectangle2D;
import java.io.File;
import ... |
package cpup.poke4j.ui;
public interface UI {
public abstract SplitUI splitH();
public abstract SplitUI splitV();
public abstract UI duplicate();
public abstract void startup();
public abstract void cleanup();
public abstract void replace(UI rep);
// Getters and Setters
public abstract PokeUI getPokeUI();
pu... |
package dev.liambloom.softwareEngineering.chapter16;
import java.util.Collection;
import java.util.List;
import java.util.Iterator;
import java.util.ListIterator;
import java.util.Comparator;
import java.lang.reflect.Array;
import java.util.NoSuchElementException;
public abstract class AbstractLinkedList<E, N extends... |
package org.minbox.framework.little.bee.core.jvm.option;
import org.minbox.framework.little.bee.core.jvm.AbstractJvmOption;
import org.minbox.framework.little.bee.core.jvm.JvmOptionType;
/**
* The "-client" jvm option
* <p>
* Use example:
* <pre>
* public static void main(String[] args){
* String cl... |
package faker;
import model.Location;
import model.Temperature;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.HashSet;
import java.util.UUID;
public class DataFaker {
/**
* Build a fake dataset
* @param size
* @return HashSet<Temperature> set of random temperatur... |
package com.huy8895.dictionaryapi.config.aop;
import org.springframework.core.annotation.Order;
import java.lang.annotation.*;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Order(0)
public @interface RedisCache {
String value() default "";
String cacheName() default "";
... |
package solid.pattern;
import shop.customers.Customer;
import shop.customers.Order;
import solid.templater.EmailMessageSendTemplater;
import solid.templater.RusMessageOrderTemplater;
import solid.templater.SMSMessageSendTemplater;
import solid.templater.api.IMessageOrderTemplater;
import solid.templater.api.IMessageSe... |
package mine.fan;
import mine.exceptions.AlreadyRunning;
import mine.exceptions.AlreadyStopped;
public class StartStopExceptionDecorator extends StartStopDevice {
private StartStopDevice instance;
private boolean isRunning;
public StartStopExceptionDecorator(StartStopDevice instance) {
this.inst... |
package logicaJuego;
import java.io.Serializable;
public class Bloque extends Entidad implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
//tipos de bloques
private String tipoBloque;
private int id;
public Bloque(String tipo,int x, int y) {
super(x,y);
... |
package com.icanit.app_v2.entity;
// default package
import java.util.HashSet;
import java.util.Set;
public class AppCommunity implements java.io.Serializable {
// Fields
public int longitudeE6,latitudeE6,flag;
public String commName,location,id,areaId;
} |
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
import org.testng.Assert;
import java.util.List;
import java.util.concurrent.TimeUnit;
public class HomePage extends Util1 {
private By _registerbutton = By.linkText("Register");
private By _Co... |
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.text.SimpleDateFormat;
import java.util.Date;
public class LogWriter {
public final static String path = "data/log.csv";
private BufferedWriter writer;
public LogWriter(){
}
public void write(int size, int... |
package com.housesline.controller;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping... |
package ideablog.service.impl;
import ideablog.dao.IStatisticDao;
import ideablog.model.Statistic;
import ideablog.service.IStatisticService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service("statisticService")
public class StatisticServiceImpl implements IStatisticService {
... |
package IteratorPattern;
import java.util.ArrayList;
import java.util.Iterator;
public class MenuByArrayList extends MenuComponent{
private ArrayList<MenuComponent> list;
private String name;
private String description;
public MenuByArrayList(String name,String description) {
super();
this.list = new ArrayL... |
/*
SQL Schema Migration Toolkit
Copyright (C) 2015 Cédric Tabin
This file is part of ssmt, a tool used to maintain database schemas up-to-date.
The author can be contacted on http://www.astorm.ch/blog/index.php?contact
Redistribution and use in source and binary forms, with or without
modification, are p... |
package upenn.cis550.groupf.client;
import java.util.List;
import upenn.cis550.groupf.shared.Content;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.Image;
public class H... |
package domain;
import java.io.Serializable;
import java.util.List;
import domain.interfaces.HasJSON;
import domain.interfaces.IsPostable;
public abstract class AbstractApiObject implements Serializable, HasJSON<AbstractApiObject>,
IsPostable
{
private static final long serialVersionUID = 2033325648556071101L;
p... |
package resources;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.Status;
import com.aventstack.extentreports.reporter.ExtentSparkReporter;
public class ExtendReports {
public static void main(String[] args) {
String pa... |
package com.git.cloud.resmgt.network.model.vo;
import com.git.cloud.common.model.base.BaseBO;
public class RmNwCclassFullVo extends BaseBO implements java.io.Serializable{
private static final long serialVersionUID = 6997663773772673432L;
private String cclassId;
private String platformId;
private Strin... |
package org.giddap.dreamfactory.leetcode.onlinejudge;
/**
* <a href="http://oj.leetcode.com/problems/longest-palindromic-substring/">Longest Palindromic Substring</a>
* <p/>
* Copyright 2013 LeetCode
* <p/>
* <p/>
* Given a string S, find the longest palindromic substring in S. You may
* assume that the maximu... |
/**
* @Author: Mahmoud Abdelrahman
* Authentication Exception class is where all AuthenticationException specifications are declared.
*/
package com.easylearn.easylearn.jwt.resource;
public class AuthenticationException extends RuntimeException {
public AuthenticationException(String message, Throwable cause) {... |
package com.example.sypark9646.item02.service;
import com.example.sypark9646.item02.model.NutritionFactsBuilderPattern;
import com.example.sypark9646.item02.model.NutritionFactsConstructorPattern;
import com.example.sypark9646.item02.model.NutritionFactsJavaBeansPattern;
import lombok.extern.slf4j.Slf4j;
import org.sp... |
/*
* Copyright © 2018 huiyunetwork.com All Rights Reserved.
*
* 感谢您加入辉娱网络,不用多久,您就会升职加薪、当上总经理、出任CEO、迎娶白富美、从此走上人生巅峰
* 除非符合本公司的商业许可协议,否则不得使用或传播此源码,您可以下载许可协议文件:
*
* http://www.huiyunetwork.com/LICENSE
*
* 1、未经许可,任何公司及个人不得以任何方式或理由来修改、使用或传播此源码;
* 2、禁止在本源码或其他相关源码的基础上发展任何派生版本、修改版本或第三方版本;
* 3、无论你对源代码做出任何修改和优化,版权都归辉娱... |
package com.cn.ouyjs.jvmTest;
/**
* @author ouyjs
* @date 2019/7/31 14:59
*/
public class SubTest extends ParentTest {
private static int B = A;
/*
静态变量和静态代码块运行顺序只和代码编写顺序有关.
为了符合思维,先声明再计算的方式 静态变量应该放在前面
*/
public static void main(String[] args) {
System.out.println(SubTest.B... |
package cn.bdqn.stumanage;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MgrSurveyServiceApplication {
public static void main(String[] args) {
SpringApplication.run(MgrSurveyServiceApplication.class, arg... |
package thundercode.entrenamentFinal;
import java.io.IOException;
import java.util.ArrayList;
//https://github.com/sweed33/AceptaElReto/blob/master/470%20Montando%20Semaforos
public class SP09 {
static ArrayList<Character> a = new ArrayList<>();
static int can;
public static void main(String[] args) throw... |
package com.youma;
/**
* A Camel Application
*
* @author czq
*/
public class MainApp {
/**
* A main() so we can easily run these routing rules in our IDE
*/
public static void main(String... args) throws Exception {
Circle c = new Circle(1);
c.new Draw().drawSahpe();
Syst... |
package ALIXAR.U5_HERENCIA.T1.A3;
import ALIXAR.U5_HERENCIA.T1.A1.horas;
public class HoraExacta extends horas {
// Atributos
public int segundos;
// Metodos
public HoraExacta (int hora, int minutos, int segundos) {
super(hora, minutos);
this.segundos=0;
setSegundos(segundos)... |
package com.example.parstagram;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
public class LaunchScreen extends AppCompatActivity {
private static int SPLASH_TIME = 2000;
@Override
protected void onCreate(... |
/*
* Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.server.authn.remote;
import pl.edu.icm.unity.server.authn.SandboxAuthnContext;
/**
* Stores full information on the remote sandboxed authentication.
* Either {@li... |
/*
* Copyright 2002-2023 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.movietime.oauth2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.core.Authentication;
import org.springf... |
package com.esum.framework.security.auth;
public class HTTPAuthInfo {
private String authInfoId = null;
private String id = null;
private String password = null;
private boolean useVirtualID = false;
private String privatePKIAlias = null;
private String partnerPKIAlias = null;
public HTTPAuthInfo(String a... |
/*
* 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 DAO;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
i... |
package com.wangcheng.lambda;
/**
* 只要满足FunctionalInterface的条件,即使没有@FunctionalInterface注解,编译器会自动将其作为函数式接口FunctionalInterface
*
* @author WangCheng
* create in 2020-06-23 14:31
*/
@FunctionalInterface
public interface FunctionalInterfaceTest {
void test();
}
|
package com.android.abhishek.wirelessdisplay;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.Toast;
public cla... |
package com.ihoment.photo.editor;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.... |
package de.varylab.discreteconformal.unwrapper.quasiisothermic;
import static de.jtem.halfedge.util.HalfEdgeUtils.isBoundaryVertex;
import static java.lang.Math.PI;
import static java.lang.Math.abs;
import static java.lang.Math.atan;
import static java.lang.Math.log;
import static java.lang.Math.sin;
import ... |
package dbutil;
import entities.Comments;
import entities.Goods;
import entities.Users;
import java.sql.*;
import java.text.DateFormatSymbols;
import java.util.ArrayList;
import static java.lang.Integer.parseInt;
import static java.lang.Integer.valueOf;
public class DBUtil {
private Connection connection;
... |
/*
* Copyright 2002-2023 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... |
/*
* Copyright 2015 Arie Timmerman
*/
package com.passbird.helpers;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.util.Base64;
import android.util.Log;
import org.json.JSONException;
import o... |
package com.tibco.as.util.convert.impl;
import com.tibco.as.util.convert.ConverterFactory;
import com.tibco.as.util.convert.IConverter;
public class DynamicConverter implements IConverter {
private ConverterFactory factory;
private Class<?> to;
public DynamicConverter(ConverterFactory factory, Class<?> to) {
t... |
/**
* @file XListViewHeader.java
* @create Apr 18, 2012 5:22:27 PM
* @author Maxwin
* @description XListView's header
*/
package walke.base.widget.xlist;
import android.content.Context;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.widget.LinearL... |
/*
* Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
/*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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... |
package io.github.cottonmc.libcd.impl;
import net.minecraft.class_1799;
import net.minecraft.class_1856;
import net.minecraft.class_2960;
import net.minecraft.class_3972;
public interface CuttingRecipeFactoryInvoker<T extends class_3972> {
T libcd$create(class_2960 id, String group, class_1856 input, class_1799 outp... |
package br.com.filemanager.web.utils;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
public class FormChild {
private FacesContext facesContext;
private FacesMessage facesMessage;
public void addMsgError(String msg, String detail) {
facesContext = FacesContext.ge... |
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
import java.util.regex.Pattern;
public class VM {
private int pc = 0;
private Pattern cmmdPattern;
List<Command> program;
Map<String, Integer> myProgram;
private int c... |
package br.com.zup.kafka.consumer;
import java.util.regex.Pattern;
public class TestConfigs {
public static final String KAFKA_BOOTSTRAP_SERVERS = "localhost:9092";
public static final String KAFKA_DEFAULT_GROUP_ID = "zup_kafka_group_1";
public static final Pattern KAFKA_DEFAULT_TOPIC_PATTERN = Pattern... |
package com.zxt.compplatform.authority.action;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONObje... |
package tr.com.indbilisim;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
impor... |
package MachineLearningAnalyse;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
public class AttributeResults {
public static void main(String ar... |
import static org.junit.Assert.*;
import org.junit.Test;
public class PostItTest {
@Test
public void testPostIt() {
String taskName = "Finir projet de CLean Architecture";
AppTime dateTime = new AppTime("2020-03-14 15:33");
PostIt postIt = new PostIt(taskName, dateTime);
assert... |
import java.util.ArrayDeque;
public class TestaArray {
public static void main(String[] args) {
int[] arrayDeIdades = new int[5];
arrayDeIdades[0]=25;
arrayDeIdades[1]=35;
arrayDeIdades[2]=15;
arrayDeIdades[3]=45;
arrayDeIdades[4]=12;
for (int i = 0; i < arrayDeIdades.length; i++) {
... |
package com.daydvr.store.presenter.game;
/*
* Copyright (C) 2017 3ivr. All rights reserved.
*
* @author: Jason(Liu ZhiCheng)
* @mail : jason@3ivr.cn
* @date : 2017/12/29 11:00
*/
import android.content.Context;
import com.daydvr.store.base.IBasePresenter;
import com.daydvr.store.base.IBaseView;
import com.day... |
package ru.job4j.models;
import java.util.Objects;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import org.junit.Before;
import org.junit.Test;
/**
* Класс BrandTest тестирует класс Brand.
*
* @author Goureev Ilya (mailto:ill-jah@yandex.ru)
* @version 2019-05-30
* @sinc... |
import java.util.Scanner;
class apples{
public static void main(String args[]){
int age;
age = 7;
switch (age){
case 1:System.out.println("You can crawl");
break;
case 2:System.out.println("You can talk");
break;
case 3:System.out.println("You can get in trouble");
break;
default:System.out.pri... |
package org.androidpn.server.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.zhku.my21days.base.AbstractExample;
/**
* <p>系统名称: <b>NETARK-通用网管平台V1.0</b></p>
* <p>公司: 中通服软件科技有限公司</p>
... |
package com.zheng.thread.masterworker;
import java.util.Optional;
/**
* 进行立方运算
*
* @Author zhenglian
* @Date 2018/6/25 21:01
*/
public class PowerWorker extends Worker {
@Override
protected Object handle(Object obj) {
if (!Optional.ofNullable(obj).isPresent()) {
return null;
}... |
/*
* 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 model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
*
... |
/*
* 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 dictionary;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file... |
package objetos.aeronaves.enemigos;
import java.util.ArrayList;
import movimiento.Posicion;
import objetos.aeronaves.FabricaAeronaves;
import ar.uba.fi.algo3.titiritero.ObjetoVivo;
/*
* Clase que modela un grupo de cazas enemigos.
* La cantidad de cazas en el grupo se setea cambiando cantidadCazas.
*/
... |
package com.project.services.distributionstrategies;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import com.project.entities.Order;
import com.project.entities.OrderStatus;
import com.project.entities.User;
//take the courier found in the same city as the order, with the l... |
package com.xys.car.controller;
import com.xys.car.entity.Brand;
import com.xys.car.entity.RootEntity;
import com.xys.car.service.IBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.Req... |
package com.union.express.web.freightrates.service;
import com.union.express.commons.query.BaseJpaService;
import com.union.express.web.freightrates.dao.ValueAddedServiceRepository;
import com.union.express.web.freightrates.model.ValueAddedService;
import org.springframework.beans.factory.annotation.Autowired;
import ... |
package com.bwie.juan_mao.jingdong_kanglijuan;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.FragmentManager;
import android.view.View;
import android.widget.ImageView;
import com.bwie.juan_mao.jingdong_kanglijuan.base.BaseActivity;
import com.bwie.juan_mao.jingdong_kang... |
/**
* This class is generated by jOOQ
*/
package schema.tables;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq... |
package com.datalinks.restwsexample.services;
import static org.junit.Assert.*;
import javax.ws.rs.core.MediaType;
import org.junit.Test;
import com.sun.jersey.api.client.Client;
public class HelloWorldServiceTest {
private static String TST_URL = "http://localhost:9090/RestWSExample/rest/hello/chris";
@Test
... |
/*
* Copyright 2002-2023 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 mockito;
import java.util.ArrayList;
import java.util.List;
public class MockIns {
public List<String> getList(String name, int age) {
// do something code
return new ArrayList<>();
}
}
|
/**
* 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 com.naruto.demo.dao;
import java.util.List;
import com.naruto.demo.model.Student;
public interface StudentDao {
public void add(final Student student);
public void edit(final Student student);
public void delete(final Student student);
public Student getStudent(final int studentId);
public List... |
package com.example.daraz_application.Prevalent;
import com.example.daraz_application.Model.Users;
public class Prevalent {
// From this class we will be working on the forget password
// Remember me
// Type of features
// This package is created to get the current user who are using the app
priv... |
package org.sky.sys.model;
public class SysArea {
private String id;
private String name;
private String pid;
private String disorder;
private String procode;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}... |
package com._520it.web;
import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse... |
package am.bizis.stspr.po;
import am.bizis.stspr.IC;
import am.bizis.stspr.IPodnik;
import am.bizis.stspr.OsobaTyp;
import am.bizis.stspr.fo.Adresa;
public class Podnik implements IPodnik {
public Podnik() {
// TODO Auto-generated constructor stub
}
@Override
public IC getIC() {
// TODO Auto-generated metho... |
package com.nfet.icare.pojo;
//延保上门套餐数量
public class WarrantyCount {
private String name;
private int value;
private String payAmts;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getValue() {
return value;
}
public void setValue(int value) ... |
package com.kc.springmicroservice.employeeservice.exception;
import java.util.Date;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.BindException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframewo... |
package com.stanislavmachel.shop.services;
import com.stanislavmachel.shop.api.v1.mappers.CustomerMapper;
import com.stanislavmachel.shop.api.v1.model.CustomerDto;
import com.stanislavmachel.shop.domain.Customer;
import com.stanislavmachel.shop.repositories.CustomerRepository;
import org.junit.Before;
import org.junit... |
/*
* Dados dois vetores A e B de mesma dimensão, fazer um programa que calcule e
* imprima o produto de cada elemento de A pelo correspondente elemento de B.
* O resultado deve ser armazenado em um vetor C.
*/
package Lista4;
import AP03_04.Exercico7;
import java.util.Scanner;
public class Exercicio... |
package com.netcracker.app.domain.tariffs.services;
import com.netcracker.app.domain.tariffs.repositories.TariffRepository;
import com.netcracker.app.domain.tariffs.entities.Tariff;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;
... |
package com.cninnovatel.ev.db;
import com.cninnovatel.ev.db.DaoSession;
import de.greenrobot.dao.DaoException;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
/**
* Entity mapped to table "MEETING_USER_".
*/
public class MeetingUser_ {
private Long id;
priv... |
package kr.co.ca;
import java.util.List;
import javax.inject.Inject;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import kr.co.dao.BoardDAO;
import kr.co.dao.R... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.