text
stringlengths
10
2.72M
package com.kun.security.web.filter; import javax.servlet.*; import java.io.IOException; /** * @author CaoZiye * @version 1.0 2017/11/12 14:53 */ public class TimeFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ServletException { System.out.println("time...
package game; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; import java.awt.Point; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import static game.GameOfLife.CellState.*; public clas...
package rocks.zipcode.stringsgalore; import java.util.Arrays; import java.util.HashSet; public class ArraysTheory { // // public static void main(String[] args) { // // String[] arrayStr = { "Java", "Python", "PHP", "C#", "C Programming", "C++" }; // // int[] arrayInt = {1789, 2035, 1899, 1456, ...
package cn.sabotage.util; import org.omg.CORBA.Object; import java.util.Map; /** * Created by yxjr-jwh on 2016/5/16. */ public class Command { private Map state; public Object execute() { System.out.println("execute Command : " + this); return null; } public Map getState() { ...
package com.examples.io.strings; public class SubstringTest { public static void main(String[] args) { String s = "abba"; int start = 0; int end = 4; System.out.println(s.substring(start,start+end)); } }
package com.game4u.arwinebottle.bean; /** * Created by walke.Z on 2017/11/11. */ public class RegisterResult { /** * result : {"func":"register","servertime":"2017-11-11 17:13:48","status":1} * userInfo : {} * code : 1 * desc : 注册成功! */ private ResultBean result; ...
package com.gxtc.huchuan.pop; import android.app.Activity; import android.support.v7.widget.LinearLayoutManager; import android.view.View; import com.gxtc.commlibrary.base.BasePopupWindow; import com.gxtc.commlibrary.recyclerview.RecyclerView; import com.gxtc.commlibrary.utils.EventBusUtil; import com.gxtc.commlibrar...
package edu.uha.miage.core.service; import edu.uha.miage.core.entity.Services; import edu.uha.miage.core.entity.Categorie; import java.util.List; import java.util.Optional; /** * * @author victo */ public interface ServiceService { Services save(Services entity); void delete(Long id); List<Services> ...
package com.hlx.view.option; import com.hlx.model.Setting; import com.hlx.service.SettingService; import com.hlx.service.RouteService; import com.hlx.service.SoundService; import com.hlx.view.common.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Componen...
/* * Ara - Capture Species and Specimen Data * * Copyright © 2009 INBio (Instituto Nacional de Biodiversidad). * Heredia, Costa Rica. * * 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, ...
/* * Created by Angel Leon (@gubatron), Alden Torres (aldenml) * Copyright (c) 2011-2014, FrostWire(R). All rights reserved. * * 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 versio...
package com.git.cloud.resmgt.compute.model.vo; import java.util.List; /** * * @author git * jqGrid返回信息Vo * */ public class JqGridJsonVo { private Integer page; private Integer total; private Integer record; private String sord; private String sidx; private String search; private List <Sca...
package com.zaxxer.sansorm.internal; import org.junit.Test; import javax.persistence.Column; import javax.persistence.Table; import static org.junit.Assert.*; /** * @author Holger Thurow (thurow.h@gmail.com) * @since 17.04.18 */ public class FieldColumnInfoTest { @Test public void getFullyQualifiedTableNa...
package algorithms.graph.practice.weighted.digraph; import java.util.BitSet; import java.util.Deque; import java.util.LinkedList; import algorithms.graph.DirectedEdge; import algorithms.graph.EdgeWeightedDigraph; /** * Created by Chen Li on 2018/5/23. */ public class DepthFirstWeightedDigraphCycleDetection { pr...
package com.github.egnaf.springHibernateExample.models.manyToOne; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; @Entity @Table(name = "cars") @Data @NoArgsConstructor public class Car { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long id; priva...
package com.example.user.airport2; import java.util.Calendar; public class Absen { private String waktu; private String tag; public Absen() { } public String getWaktu() { return waktu; } public void setWaktu(String waktu) { this.waktu = waktu; } public String g...
package com.brainacademy.singleton; public class Main { public static void main(String[] args) { SingleObject singleObject1 = SingleObject.getInstance(); SingleObject singleObject2 = SingleObject.getInstance(); // Оба объекта равны, то есть ссылаются на один и тот же исходный объект ...
/* * 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.liyang.gys.service; import com.liyang.commons.Factory; import com.liyang.gys.entity.City; import com.liyang.gys.entity.Gys; import com.liyang.gys.entity.GysExample; import com.liyang.gys.entity.Province; import com.liyang.gys.mapper.CityMapper; import com.liyang.gys.mapper.GysMapper; import com.liyang.gys....
package com.eu.front.dao; import java.util.List; import java.util.Map; public interface AllFrontDao { /** * 查询创课点击次数 * */ List<Map<String,String>> tronClass(); List<Map<String,String>> queryStudentInfo(); }
package com.debugger.car.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; import org.springframework.core.Paramet...
package com.seva.entity; import java.io.Serializable; import javax.persistence.*; /** * The persistent class for the printer_group_printers database table. * */ @Entity @Table(name="printer_group_printers") @NamedQuery(name="PrinterGroupPrinter.findAll", query="SELECT p FROM PrinterGroupPrinter p") ...
package BuilderPattern06.exercise.controller; import BuilderPattern06.exercise.builder.VideoInterfaceBuilder; import BuilderPattern06.exercise.entity.VideoInterface; public class VideoInterfaceController { public VideoInterface construct(VideoInterfaceBuilder VID){ VID.buildCollectList(); VID.bui...
package org.dbdoclet.tidbit.perspective.docbook.wordml; import java.awt.Component; import java.io.IOException; import java.net.URL; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JPanel; import javax.swing.JSplitPane; import javax.swing.JTabbedPane; import org.dbdoclet.jive.Anchor; import ...
package flyingsaucer.demo; import java.io.File; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; public class CommonUtils { public static String getAbsolutePathByClassLoader(String path) { URL url = ClassLoader.getSystemResource(path); URI uri; try { uri = url.toURI(); } catc...
/* * 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.citibank.ods.modules.client.customerprvt.form; import java.util.ArrayList; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionMapping; import com.citibank.ods.common.dataset.DataSet; import com.citibank.ods.common.f...
package com.soa.dao; import com.soa.domain.Film; import org.mongodb.morphia.Datastore; import org.mongodb.morphia.dao.BasicDAO; public class FilmDao extends BasicDAO<Film, Long> { public FilmDao(Datastore ds) { super(ds); } }
package com.gs.tablasco.spark; import com.gs.tablasco.VerifiableTable; import com.gs.tablasco.adapters.TableAdapters; import com.gs.tablasco.verify.*; import com.gs.tablasco.verify.indexmap.IndexMapTableVerifier; import org.apache.spark.api.java.Optional; import org.apache.spark.api.java.function.Function; import org....
package pdp.uz.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import pdp.uz.entity.USSDCodes; import java.util.List; import java.util.Optional; @Repository public interface USSDRepo extends JpaRepository<USSDCodes, Long> { Optional<USS...
package ch.mitti.methoden_polymorphie; public class Operation { protected double result; protected double term1; protected double term2; public Operation(){ } public double getResult(){ return result; } public void setTerm1(double term){ this.term1 = term; } public void setTerm2(double term){ ...
package com.example.forcatapp.Main; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebChromeClient; import android.webkit.WebSettings; import android.webkit.WebView; imp...
package cn.fungo.service; import java.util.List; import java.util.Map; import cn.fungo.domain.W12WorkFlowSet; public interface WorkFlowService { /** * 查询 * @param map * @return */ public List<W12WorkFlowSet> findAllWorkFlow(Map<String,String> map); /** * 新增 * @param workflow * @return */ public...
package org.scoalaonline.api.service; import org.scoalaonline.api.model.Department; import org.scoalaonline.api.repo.DepartmentRepo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.NoSuchElementException; import java...
package pl.coderslab.dice; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { System.out.println("The result is: " + dice(parseInfo())); } /** * store input value */ private static String input ...
package com.test.proxy.statics; import com.test.proxy.dynamic.DynamicAgent; /** * Created with IntelliJ IDEA. * User: wuzbin * Date: 13-4-27 * Time: 下午11:18 * To change this template use File | Settings | File Templates. */ public class RentHouse { public static void main(String[] args) { HouseRente...
/** * Copyright 2017 伊永飞 * * 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 to ...
package com.tvm.ImportAndMixConfiguration; public class UserService { public void createUser(){ System.out.println("Creating user in User Service"); } }
package com.shiyanlou.mybatis.mapper; import com.shiyanlou.mybatis.model.User; import jdk.nashorn.internal.runtime.ECMAException; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Options; import org.apache.ibatis.annotations.Param; import org...
package arcs.android.demo.service; import android.content.ClipboardManager; import android.content.ClipboardManager.OnPrimaryClipChangedListener; import android.content.Context; import android.util.Log; import java.util.function.Consumer; import javax.inject.Inject; import arcs.android.api.Annotations.AppContext; i...
package com.arquitecturajava.aplicacion.dao; import com.arquitecturajava.aplicacion.bo.Categoria; import com.arquitecturajava.aplicacion.bo.Libro; import java.util.List; /** * Created by admuser on 16/04/17. */ public interface LibroDao extends GenericDao<Libro,String> { List<Libro> buscarPorCategoria(Categor...
package com.melhamra.schoolAPI.repositories; import com.melhamra.schoolAPI.models.Groups; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface GroupsRepository extends JpaRepository<Groups, Long> { }
package introexception; import org.junit.Test; import static org.junit.Assert.assertEquals; public class PatientTest { @Test public void validSsn() { Patient patient = new Patient("John Doe", "123456788", 2000); assertEquals("John Doe", patient.getName()); assertEquals("123456788", p...
package com.example.demo.entity; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableField; import java.io.Serializable; import lombok.Data; import lombok.EqualsAndHa...
package com.oracle.curd.test; import com.oracle.curd.bean.Manager; import com.oracle.curd.dao.ManagerMapper; import org.apache.ibatis.session.SqlSession; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.Conte...
package Es11; import prog.io.*; /** * Questo programma è un grado di parsare un numero intero * inserito dall'utente sotto forma di stringa. * Il numero può essere negativo e la stringa può avere * spazi in testa o in coda. */ public class String2Int { public static void main(String[] args) { ConsoleInputMan...
package com.yevhenchmykhun.controller; import com.yevhenchmykhun.cart.ShoppingCart; import com.yevhenchmykhun.entity.Book; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.H...
package com.mybatis.service; import java.util.List; import org.apache.ibatis.session.SqlSession; import com.mybatis.dao.TopicDao; import com.mybatis.util.MybatisUtil; import com.news.pojo.Topic; public class TopicServicesImpl implements TopicServices { @Override public List<Topic> getAllTopic() { SqlSession sq...
package com.loneless.controller; enum CommandName { ADD_TRANSACTION, AUTHORISE_USER, DELETE_TRANSACTION, UPDATE_TRANSACTION,WRONG_REQUEST, RECEIVE_ALL_TRANSACTION, CALCULATE_CURRENT_SUM, RECEIVE_PLANNED_TRANSACTION, FIND_OLL_TRANSACTION_TO_CURRENT_DATE, FIND_OLL_TRANSACTION_IN_INTERVAL, SAVE_TRANSACTIONS }...
package com.lwc.user.service; import com.lwc.user.entity.Role; import com.baomidou.mybatisplus.core.metadata.IPage; import java.util.List; /** * <p> * 角色 服务类 * </p> * * @author Li * @since 2019-07-29 */ public interface RoleService { Role doQuery(Long id) throws Exception; int doRemove(Long id) throw...
package br.com.zup.treinocasadocodigo.controllers; import br.com.zup.treinocasadocodigo.entities.estado.Estado; import br.com.zup.treinocasadocodigo.entities.estado.EstadoNovoRequest; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.*; import javax.persistence.EntityManager; ...
/* * 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 DataObjects; import java.util.Date; /** * * @author Shivam Patel */ public class Project_Details_Object { private int P...
package com.gaoshin.sorma.examples.addressbook; import com.gaoshin.sorma.annotation.Table; @Table( name="contact", keyColumn="id", autoId=true, create="create table if not exists contact (" + " id INTEGER primary key autoincrement" + ", firstName text" + ", lastName text" + ", married tinyint" + "...
package cn.jesse.extrasample; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.graphics.PixelFormat; import android.util.Log; import...
package com.jic.libin.leaderus.study006; import java.util.List; import java.util.Map; import java.util.concurrent.CountDownLatch; /** * Created by andylee on 17/1/18. */ public class ReadThread implements Runnable{ Map<String,SalaryGroup> stringSalaryGroupMap; List<Salary> salaries; CountDownLatch count...
package com.youthlin.example.chat.protocol.request; import com.youthlin.example.chat.model.User; import com.youthlin.example.chat.protocol.Command; import com.youthlin.example.chat.protocol.Packet; import lombok.Data; import java.util.List; /** * 创建: youthlin.chen * 时间: 2018-11-14 10:10 */ @Data public class Quit...
package com.yf.accountmanager.util; import android.content.SharedPreferences.Editor; public class SharePrefUtil { public static final String RESERVED_DIMEN="reserved_dimen"; public static boolean saveFileEditorTextsize(int textsize){ return putReservedDimen("fileEditorTextsize",textsize); } pu...
package lab4; public class Vanilla extends IceCream { public Vanilla() { description= "Vanilla"; } @Override public double cost() { // TODO Auto-generated method stub return 0; } }
class InfluentableItem extends AbstractItem { public InfluentableItem(String name, int price) { super(name, price); } }
package programa2; /* Exemplo de programa onde uma variável é compartilhada entre duas Threads e o resultado final não é o esperado. Responder: Qual o valor que deveria ser impresso? Qual o valor que foi impresso? Por que o valor impresso não foi o esperado? Fazer: tirar o comentário da palavra syn...
package com.aotuhome.web.controller; import com.aotuhome.dto.RequestBean; import com.aotuhome.dto.RequestParams; import com.aotuhome.dto.ResponseParam; import com.aotuhome.service.RealNameService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; im...
package br.com.cast.scc.util; public class UtilString { private UtilString() { // Somente metodos estaticos } public static boolean isStringVazia(String valor) { return valor == null || valor.equals(""); } }
package ru.ugame.core; import ru.ugame.objects.Board; import javax.swing.*; public class View extends JFrame { private final static String APP_NAME = "UntitledGame"; private static final int WIN_WIDTH = 250; private static final int WIN_HEIGHT = 350; private static final int GRID_SCALE = 15; B...
package domain; import static org.junit.Assert.assertTrue; import java.io.File; import java.net.URL; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.List; import org.junit.Test; import exceptions.MiddlewareException; import middleware.MiddlewareFacade; import midd...
package com.zhongyp.spring.demo.factory; public class Dog implements Being { private String msg = null; public void setMsg(String msg){ this.msg = msg; } @Override public void testBeing() { // TODO Auto-generated method stub System.out.println("��" + msg); } }
/* * Copyright (c) 2013-2014, Neuro4j.org * * 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 applicab...
// // Decompiled by Procyon v0.5.36 // package com.davivienda.sara.tablas.transacciontemp.servicio; import javax.persistence.Query; import java.util.logging.Level; import com.davivienda.utilidades.conversion.Fecha; import com.davivienda.sara.base.exception.EntityServicioExcepcion; import java.util.Map; import java....
package ru.client.model.tasks; /** * Created by User on 5/15/2016. */ public class Task8 { private String surname; private String name; private String brigadeName; public Task8(String surname, String name, String brigadeName) { this.surname = surname; this.name = name; this.b...
import java.util.Calendar; public class User { public static final String USER_DEFAULT_FIRSTNAME= "NONE"; public static final String USER_DEFAULT_LASTNAME= "NONE"; public static final int USER_DEFAULT_AGE=0; public static final String USER_DEFAULT_EMAIL= "example@domain.com"; public static f...
package br.com.zup.treinocasadocodigo.entities.compra; import br.com.zup.treinocasadocodigo.entities.compra.itemcompra.ItemCompra; import br.com.zup.treinocasadocodigo.entities.cupom.Cupom; import br.com.zup.treinocasadocodigo.entities.estado.Estado; import br.com.zup.treinocasadocodigo.entities.pais.Pais; import br.c...
package org.peterkwan.udacity.mysupermarket.service; import android.app.IntentService; import android.content.Intent; import android.os.Bundle; import android.os.Message; import android.os.Messenger; import android.os.RemoteException; import android.util.Log; import com.google.android.gms.location.Geofence; import co...
package labrom.litlbro.widget; import labrom.litlbro.R; import android.app.Dialog; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.preference.PreferenceManager; import android.view.View; import android.widget.TextView; ...
public abstract class AClass { int number; public abstract void todoMethod(); @Override public String toString() { this.todoMethod(); return "" + this.number; } }
package de.mineyannik.earthhour; import java.util.Calendar; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerLoginEvent; import org.bukkit.plugin.java.JavaPlugin; /** * * @author mineyannik */ pub...
/* * 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 byui.cit260.LehisDream.view; import byui.cit260.LehisDream.control.GameControl; import byui.cit260.LehisDream.model.Pl...
package pt.utl.ist.bw.conditionsinterpreter; import java.util.HashMap; import java.util.concurrent.ConcurrentHashMap; import org.yawlfoundation.yawl.util.PasswordEncryptor; @SuppressWarnings("serial") public class SessionHandler extends ConcurrentHashMap<String, Session>{ private HashMap<String, Client> validUsers...
package dev.liambloom.softwareEngineering.chapter14; import java.util.Collections; import java.util.LinkedList; import java.util.Stack; import java.util.Queue; import dev.liambloom.tests.Tester; import dev.liambloom.tests.bjp.*; // Do 7 public class Exercises { @SuppressWarnings("unchecked") public static vo...
public class AverageCmd{ public static void main(String [] args){ int bigNum = 0; int smallNum = 2^31; int sum = 0; for(String i : args){ int j = Integer.parseInt(i); if(j > bigNum){ bigNum = j; sum += j; } else if(j < smallNum){ smallNum = j; sum += j; } else{ su...
package com.team2915.POWER_UP.TrajectoryGeneration; import com.team2915.POWER_UP.Robot; import jaci.pathfinder.Pathfinder; import jaci.pathfinder.Trajectory; import jaci.pathfinder.Waypoint; public class TrajectoryGenerator { public TrajectoryGenerator(){ } public Trajectory generateTrajectory(){ ...
class Solution { public int[] countBits(int num) { int[] res = new int[num + 1]; for(int i = 0 ; i <= num; i++){ String number = Integer.toBinaryString(i); int counter = 0; for(int j = 0; j < number.length(); j++){ if(number.charAt(j) == '1') count...
/** * @author Johnny Bac * @version 3 * Last updated by: Johnny Bac * Last Date Changed: 4/17/2016 * * Encryption class provides the encrypt and decrypt methods for its subclasses * and allows the user to get and set both the encrypted and unencrypted message. */ public abstract class Encryption { ...
package com.github.fierioziy.particlenativeapi.core; import com.github.fierioziy.particlenativeapi.api.*; import com.github.fierioziy.particlenativeapi.api.utils.ParticleException; import com.github.fierioziy.particlenativeapi.core.asm.ContextASM; import com.github.fierioziy.particlenativeapi.core.asm.mapping.SpigotCl...
/* * Copyright 2002-2021 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...
/* SelectEvent.java Purpose: Description: History: Thu Jun 16 18:05:51 2005, Created by tomyeh Copyright (C) 2005 Potix Corporation. All Rights Reserved. {{IS_RIGHT This program is distributed under LGPL Version 2.1 in the hope that it will be useful, but WITHOUT ANY WARRANTY. }}IS_RIGHT */ package ...
package test; // VO 용도 : 북 클래스에서 다른 클래스들과 메인으로 입력된 값을 출력해주는 용도 public class Book { private String title; private String author; private int page; // 북 클래스에서 사용할 변수를 프라이빗으로 선언 public Book() { super(); } // 북 디폴트 생성자 public Book(String title, String author, int page) { super(); this.title = title; th...
/* * 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 planetsw; import java.util.Scanner; /** * * @author maria */ public class VoucherController { public voi...
package org.antran.saletax.internal; import org.antran.saletax.api.IAmount; import org.antran.saletax.api.ICart; import org.antran.saletax.api.ICartCalculator; import org.antran.saletax.api.ICartItem; public class MerchandiseTotalCalculator implements ICartCalculator { public IAmount calculate(ICart cart) ...
/* * Licensed to DuraSpace under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. * * DuraSpace licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file excep...
package br.com.rdtecnologia.kafka.producer; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.ProducerConfig; import org.apache.kafka.clients.producer.ProducerRe...
package de.scads.gradoop_service.server.helper.constructor; import java.util.List; import java.util.Map; import java.util.Objects; import javax.ws.rs.core.Response; import org.gradoop.flink.model.api.epgm.GraphCollection; import org.gradoop.flink.model.api.epgm.LogicalGraph; import org.gradoop.flink.model.impl.funct...
package lib.hyxen.ui; import android.content.Context; import android.graphics.Bitmap; import android.os.Handler; import android.os.Looper; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; 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 recursividad; import java.util.ArrayList; /** * * @author Pablo */ public class Ejemplos { public static void Re...
package seedu.project.logic.commands; import static seedu.project.logic.commands.CommandTestUtil.VALID_NAME_CP2106; import static seedu.project.logic.commands.CommandTestUtil.VALID_TAG_CP2106; import static seedu.project.logic.commands.CommandTestUtil.VALID_TAG_CS2101; import static seedu.project.logic.commands.Comman...
package ejercicio07; import java.io.*; /** * * @author Javier */ public class Ejercicio07 { public static void main(String[] args) { File archivo = new File("texto.txt"); String texto = null; FileReader fr = null; try { fr = new FileReader(archivo); ...
package de.fhdortmund.swt2.pruefungsmeister.Model; import com.google.gson.annotations.Expose; /** * Created by jonas on 22.05.17. */ public class Map { @Expose private MapField[] fields; @Expose private Knot[] knots; @Expose private Edge[] edges; public Map() { fields = new Map...
package com.esum.comp.tcpip.outbound; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.esum.comp.tcpip.TCPIPCode; import com.esum.framework.core.component.listener.channel.ChannelMessageListener; import com.esum.framework.core.event.log.ErrorInfo; import com.esum.framework.core.event.message.Messa...
package math; public interface Vec<T extends Vec<T>>{ }
package com.example.BankOperation.service; import com.example.BankOperation.model.Card; import com.example.BankOperation.model.Payment; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.validation.Errors; import org.springframework....
package com.gezhiwei.projectstart.controller; import com.alibaba.fastjson.JSONObject; import com.gezhiwei.projectstart.common.DirConfig; import com.gezhiwei.projectstart.common.TemplateConfig; import com.gezhiwei.projectstart.controller.vo.ProjectInfoVo; import com.gezhiwei.projectstart.service.ICreateProjectService; ...
public class BinarySearchTree { public static void main(String[] args){ BinaryTree tree = new BinaryTree(); tree.insert_node(5); tree.insert_node(10); tree.insert_node(2); tree.insert_node(-2); tree.insert_node(3); tree.insert_node(7); tree.insert_n...