text
stringlengths
10
2.72M
package com.ulman.currencyrate.preference; import android.content.SharedPreferences; import com.ulman.currencyrate.CurrencyRateApplication; import com.ulman.currencyrate.CurrencyRateConstant; public class CurrencyRatePreference { private SharedPreferences sharedPreferences; public CurrencyRatePreference(...
package avatar.com.mymvptestone.java.mvp.base; import java.lang.ref.WeakReference; /** * $desc$ * * @author Frank * email xiong.fu@avatarmind.com * created 19-4-4 下午1:26. */ public abstract class BasePresenter<M extends Model, V extends View> implements Presenter<V,M> { protected M model; protected We...
package memoryPlay.GCAndMalloc; public class FinalizeEscapeGC { public static FinalizeEscapeGC SAVE_HOOK=null; public void isAlive(){ System.out.println("I am still alive"); } protected void finalize() throws Throwable{ super.finalize(); System.out.println("finalize method executed!"); Fi...
package controllers.mappers; /** * Mapper for participation JSON */ public class ParticipationJSON { private int id; private String role; public int getId() { return id; } public String getRole() { return role; } }
package avex.models; public class AthleteWINS { private String wins; private String wins48; public String getWins48() { return wins48; } public void setWins48(String wins48) { this.wins48 = wins48; } public String getWins() { return wins; } public void setWins(String wins) { this.wins = wins; }...
import java.util.*; public class Tree<v> { Node<v> root; public Tree() { root = new Node<v>(); } public Tree(ArrayList<Pair<v>> pairsIn) { root = new Node<v>(); for (int i = 0; i < pairsIn.size(); i++) { insert(pairsIn.get(i).key, pairsIn.get(i).val); } } public void insert(Integer ...
/* * Copyright (C) 2011-2014 Aestas/IT * * 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 ...
package com.qcwp.carmanager.enumeration; /** * Created by qyh on 2017/6/6. */ public enum LoadDataTypeEnum { dataTypedrive (0), dataTypeTijian (1), dataTypeTest (2), dataTypeClearErr (3), dataTypeReConnection (100), dataTypeDisConnected (-1); private final int value; LoadDataTypeEnu...
// ********************************************************************** // This file was generated by a TAF parser! // TAF version 3.2.1.6 by WSRD Tencent. // Generated from `/data/jcetool/taf//upload/kesenhu/AppPituWnsInterface.jce' // ********************************************************************** package P...
package com.hqb.patshop.mbg.model; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * pms_product_category * @author */ @Data public class PmsProductCategory implements Serializable { /** * 分类id */ private Long id; /** * 创建日期 */ private Date gmtCreat...
package cn.ehanmy.hospital.di.component; import com.jess.arms.di.component.AppComponent; import com.jess.arms.di.scope.ActivityScope; import cn.ehanmy.hospital.di.module.HGoodsConfirmModule; import cn.ehanmy.hospital.mvp.ui.activity.HGoodsConfirmActivity; import dagger.Component; @ActivityScope @Component(modules = ...
package br.com.allerp.allbanks.view.cadastros.panels; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.spring.injection.annot.SpringBean; import br.com.allerp.allbanks.service.GenericS...
package org.team3128.common.util.enums; /** * Direction enum used for turns. * @author Jamie * */ public enum Direction { RIGHT, LEFT; }
package components; import javafx.scene.layout.StackPane; import javafx.scene.paint.Color; import javafx.scene.text.Font; import javafx.scene.text.Text; import library.Dc; public class Label extends StackPane { private Dc pos; public Label(String text, Color color, int fontSize, int x, int y) { pos =...
/* * LumaQQ - Java QQ Client * * Copyright (C) 2004 luma <stubma@163.com> * * 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 2 of the License, or * (at your option) any lat...
package com.elepy.dao; import com.elepy.Resource; import com.elepy.exceptions.ElepyException; import com.elepy.http.HttpContext; import com.elepy.http.Request; import com.elepy.http.Response; import com.elepy.models.FieldType; import org.junit.jupiter.api.Test; import java.util.HashMap; import java.util.List; import ...
package com.example.userportal.configuration; import com.example.userportal.security.CustomUserDetailsService; import com.example.userportal.security.jwt.JwtAuthenticationEntryPoint; import com.example.userportal.security.jwt.JwtAuthenticationFilter; import lombok.RequiredArgsConstructor; import org.springframework.co...
/* * [y] hybris Platform * * Copyright (c) 2000-2016 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * li...
package org.sagebionetworks.object.snapshot.worker.utils; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.ArgumentMatchers.anyList; import static org.mockito.Ar...
package com.sage.rpg.component; import java.awt.BasicStroke; import java.awt.Color; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.geom.Rectangle2D; import com.sage.rpg.Game; public class MenuButton extends Component { private Interface parent; pr...
package com.tencent.mm.plugin.nearby.ui; import android.view.View; import com.tencent.mm.ui.base.MMSlideDelView.c; class NearbySayHiListUI$7 implements c { final /* synthetic */ NearbySayHiListUI lCB; NearbySayHiListUI$7(NearbySayHiListUI nearbySayHiListUI) { this.lCB = nearbySayHiListUI; } ...
import java.io.*; import java.util.*; class Node { Node next; int data; public void setData(int data) { this.data=data; } public int getData() { return data; } public boolean append(Node node) { if(node != null) { next= node; return true; ...
package com.thoughtworks.tw101.exercises.exercise9; import java.util.List; import java.util.ArrayList; // If a node has a left node, check left node // If left node has a left node check // If child of left node has a left node check // If child of let node has a right node check // Els...
package com.smxknife.java3._01_runtimecreateobject; /** * @author smxknife * 2019/12/24 */ public class _01_Cglib_Demo { }
package ship.section; import ship.ammunition.Ammunition; import ship.hardpoint.*; import ship.hardpoint.weapon.Weapon; import java.util.ArrayList; // hardpoint sections are sections which store weapons and contain ammunition for those weapons public class HardpointSection extends Section{ // hardpoint structures...
package demo; import java.util.Comparator; import java.util.TreeSet; public class TreeSetDemo2 { public static void main(String[] args) { TreeSet t= new TreeSet(new MyComparator()); t.add(10); t.add(0); t.add(15); t.add(5); t.add(20); t.add(20); System.out.println(t); } } class MyCo...
package com.thomaster.ourcloud.auth; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import javax.servlet.http.HttpServletRequest; import java.io.IOException; import java.util.Map; import java.util.stream.Collectors; public class ReqBodyToUsernamePwd { ...
package com.sda.javagdy5.quiz; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; public class Main { ...
/* * Copyright (C) 2013 Square, Inc. * * 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 agree...
import java.util.Vector; import java.util.Set; public class MemoryConsumer { //private static float CAP = 0.8f; // 80% private static float CAP = 0.7f; // 70% private static int ONE_MB = 1024 * 1024; private static long SLEEP_TIME=2000; private static Vector cache = new Vector(); public s...
package com.youthchina.service.recommendation; import com.youthchina.dao.jinhao.RecommendMapper; import com.youthchina.domain.jinhao.BriefReview; import com.youthchina.domain.jinhao.Label; import com.youthchina.domain.jinhao.Question; import com.youthchina.domain.qingyang.Company; import com.youthchina.domain.qingyang...
package com.tencent.mm.ui.voicesearch; class a$a { public CharSequence nickName; final /* synthetic */ a uFB; public CharSequence uop; public CharSequence uoq; public int uor; private a$a(a aVar) { this.uFB = aVar; } /* synthetic */ a$a(a aVar, byte b) { this(aVar); ...
package entity; public class Kullanici { private int kul_id; private String kul_adi; private String kul_sifre; private String eski_sifre; public Kullanici() { } public Kullanici(int kul_id, String kul_adi, String kul_sifre) { this.kul_id = kul_id; this.kul...
package controllers; import dao.ProfesionDAO; import entity.Personal; import entity.Profesion; import services.serviceImpl.PersonalServiceImpl; import services.serviceInterface.PersonalService; import transaction.TransactionManager; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; im...
import java.util.ArrayList; /** * Created by tmjon on 6/20/2017. */ public abstract class Exercise { double mets; private double caloriesBurned; int durationMinutes; int intensity; int reps; ArrayList<String> name = new ArrayList<String>(); public int getDuration() { return durat...
package ro.ase.cts.clase; public class MedicamentAdapter implements IMedicament{ private Medicament medicament; public MedicamentAdapter(Medicament medicament) { super(); this.medicament = medicament; } @Override public void vindeMedicament() { this.medicament.achizitioneazaMedicament(); } }
package com.zhowin.miyou.recommend.adapter; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com.zhowin.miyou.R; import java.util.List; /** * author : zho * date :2020/9/19 ...
package MMediator; public class MediatorTest { public static void main(String[] args) { DispatcherMediator dispatcher = new ConcreteDispatcherMediator(); Aircraft lightA = new LightAirplane("Sesna", 4000, dispatcher); Aircraft lightB = new LightAirplane("An-2", 8000, dispatcher); A...
package br.com.lucasfaria.comuns.enums; import android.support.annotation.NonNull; import java.util.ArrayList; import java.util.List; public enum DiasDaSemana { DOMINGO("Domingo"), SEGUNDA("Segunda-feira"), TERCA("Terça-feira"), QUARTA("Quarta-feira"), QUINTA("Quinta-feira"), SEXTA("Sexta-fei...
package com.takshine.wxcrm.controller; import java.awt.Image; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.InputStream; import javax.imageio.ImageIO; import javax.imageio.stream.ImageOutputStream; import javax.servlet.http.HttpServletRe...
package pl.edu.agh.iosr.controller; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.springframework.amqp.core.AmqpTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import ...
package io.summer; import java.io.IOException; import java.io.PrintWriter; import jakarta.servlet.ServletException; import jakarta.servlet.annotation.WebServlet; import jakarta.servlet.http.HttpServlet; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; /** * Servlet im...
/** * Created by dietaschuelter on 4/13/16. */ public class TestString { public static void main(String[] args) { int myInt = 7; String myText = "grizzliwutz"; System.out.println(myText); } }
package exer; import java.util.Scanner; /** * @author menglanyingfei * @date 2017-7-18 */ public class Main12_Divide { /** * @param args */ public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); boolean flag = true; int temp = n; for (int i = 2; i <= te...
package com.tencent.mm.plugin.fav.ui; import com.tencent.mm.plugin.fav.ui.a.a; class FavBaseUI$8 implements Runnable { final /* synthetic */ FavBaseUI iYp; FavBaseUI$8(FavBaseUI favBaseUI) { this.iYp = favBaseUI; } public final void run() { a aMc = this.iYp.aMc(); aMc.aMD(); ...
package MiddleClass; import facing.KMP; /** * @author renyujie518 * @version 1.0.0 * @ClassName xuanZhuanCi.java * @Description * *如果一个字符串为str, 把字符串str前面任意的部分挪到后面形成的字符串叫 作str的旋转词。 * 比如str="12345", str的旋转词有"12345"、 "23451 " 、 "34512"、 "45123"和"51234"。 * 给定两个字符串a和b, 请判断a和b是否互为旋转 词。 * 比如: a="cdab", b="abcd",...
package app.controllers; import app.algorithm.Move; import app.election.ElectionData; import app.enums.Metric; import app.enums.Parties; import app.enums.Property; import app.json.PropertiesManager; import app.state.District; import app.state.Precinct; import app.state.State; import org.springframework.beans.factory.a...
package be.spring.app.service; import be.spring.app.form.AccountProfileForm; import be.spring.app.form.ActivateAccountForm; import be.spring.app.model.Account; import org.springframework.transaction.annotation.Transactional; import org.springframework.validation.Errors; import java.util.List; import java.util.Locale;...
import java.util.ArrayList; import java.util.Scanner; /** * sub-class for the pawn piece */ public class Pawn extends Piece{ /** * constructor for the pawn object based on the location of the piece and the player's number * @param locationToInsert tuple of x and y spots * @param givenPlayerNumber...
package com.example.shop_app.controller; import com.example.shop_app.domain.Purchase; import com.example.shop_app.repo.PurchaseRepo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; @RestController @RequestMapping("list_view") pub...
package com.espendwise.manta.web.tags; import org.apache.log4j.Logger; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; import javax.servlet.jsp.tagext.TagSupport; public class TabRowTag extends TagSupport { private static final Logger logger = Logger.getLogger(TabRowTag.c...
package com.uptc.prg.maze.model.data.mazegraphlist; import com.uptc.prg.maze.model.data.graphlist.EdgeType; import com.uptc.prg.maze.model.data.graphlist.list.LinkedList; import java.awt.*; public class MazeGraph extends LinkedList<MazeVertex> { public MazeGraph(MazeVertex startMazeVertex) { super(start...
package hackerrank; import java.util.Arrays; public class BubbleSortSimplyDemo { public static int[] bubbleSort (int[] array) { boolean isSorted = false; // int lastUnsorted = array.length - 1; while(!isSorted) { isSorted = true; for(int i = 0; i < array.length - 1...
package jpamock.reflection; public interface PropertyCallBack { void propertyCallBack(PropertyDescription propertyDescription); }
package sellwin.gui; import javax.swing.*; import sellwin.domain.*; import sellwin.utils.*; // SellWin http://sourceforge.net/projects/sellwincrm //Contact support@open-app.com for commercial help with SellWin //This software is provided "AS IS", without a warranty of any kind. /** * this class implements a pop up...
package com.hpg.demo.service.impl; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.hpg.demo.bean.Merchant; import com.hpg.demo.dao.MerchantMapper; import com.hpg.demo.service.MerchantService; @Service("merchantServiceImpl") public class MerchantServ...
package com.passing.spring.service.impl; import java.util.ArrayList; import java.util.List; import com.passing.spring.service.SearchJpToCn; import com.passing.hibernate.beans.Jpword; import com.passing.hibernate.dao.JPwordDao; public class SearchJpToCnBean implements SearchJpToCn { private JPwordDao jpwor...
package com.fleet.axis2.services.service; import com.fleet.axis2.services.entity.User; /** * @author April Han */ public interface UserService { User get(Long id); String getName(Long id); }
package entity.particle; import entity.minion.Minion; import entity.particle.base.Bullet; import gui.Sprite; import logic.DamageType; import logic.Vector2; /** * The CannonBullet class represents {@link Bullet Bullets} fired from {@link entity.tower.CannonTower Cannon Towers}. */ public class CannonBullet extends B...
package com.grability.test.dlmontano.grabilitytest.model; /** * Created by Diego Montano on 02/06/2016. */ public class Artist extends CommonData { private long appId; private String href; public Artist() { } public Artist(long appId, String label, String href) { this.appId = appId; ...
package com.hawk.application.web; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import static org.spri...
package com.example.windows10now.muathe24h.model; /** * Created by Windows 10 Now on 11/14/2017. */ public class Card { private String namePrice; private int price; public Card() { } public Card(String namePrice, int price) { this.namePrice = namePrice; this.price = price; ...
package com.programacion.movil.estemanp.androidmvcapplication.View; 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.Toast; import com.programacion.movil.estemanp.androidmvcapplicat...
package com.pkjiao.friends.mm.adapter; import java.util.ArrayList; import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; impo...
import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; public class Main { public static void main(String[] args) throws IOException { String origin = "music.mp3"; String dest = "...
package com.javakc.ssm.modules.system.home.entity; import com.javakc.ssm.base.entity.BaseEntity; public class HomeEntity extends BaseEntity<HomeEntity>{ }
/* * File Name :InitServlet.java * Create Date:2012-11-6 上午12:06:17 * Author :woden */ package com.riversoft.nami; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import com.riversoft.c...
/* * 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 jframework.ui.student; import static data.Constants.*; import data.db.DBPerson; import data.core.api.ApiDate; import data.core...
/* * Copyright (C) 2023 Hedera Hashgraph, LLC * * 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 la...
/* * 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. */ /** * * @author win10 */ public interface Pizza { float checkCrust(); float hasVegetable(); //float hasCheese(); fl...
package com.kingbbode.bot.common.base.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.jedis.JedisConnectionFactory; import org.springframework.data.redis.core.StringRedisTemplate; /** * Created b...
package gisviewer; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.GridLayout; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.BorderFactory; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.border.E...
package es.uma.sportjump.sjs.service.services; import java.util.List; import es.uma.sportjump.sjs.model.entities.Coach; import es.uma.sportjump.sjs.model.entities.ExerciseBlock; import es.uma.sportjump.sjs.model.entities.Training; public interface TrainingService { /** * Creates a new training with the data ...
/** * This code illustrates use of Stack * @author java * */ import java.util.Stack; public class StackTest { public static void main(String[] args) { Stack<String> stack = new Stack<>(); stack.push("hello"); stack.push("Toroto"); stack.push("Ontario"); stack.push("Canada"); wh...
package com.jiw.dudu; import com.jiw.dudu.service.user.UserRegisterService; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import javax.annotation.Resource; /** * @Description LogRecord...
package com.samsung.object; /** * Created by SamSunger on 5/14/2015. */ public class Dealer { private String PKID; private String DealerName; private String Distric; private String City; private String Adress; private String Latitud; private String LongGitude; private String Status; ...
package org.webmaple.admin.controller; import org.webmaple.admin.service.SpiderManageService; import org.webmaple.admin.view.JDSpiderView; import org.webmaple.common.model.Result; import org.webmaple.common.model.SpiderDTO; import org.webmaple.common.util.UrlUtil; import org.webmaple.common.view.SpiderView; import org...
package com.example.fibonacci; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; import android.widget.ScrollView; import android.widget.TextView; public class Mai...
package com.zitiger.plugin.xdkt.setter.generator; import com.intellij.psi.PsiVariable; import org.jetbrains.annotations.NotNull; public interface SetterGenerator { void generate(@NotNull PsiVariable element); }
package views; import java.awt.Color; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.BufferedReader; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; i...
package com.wapa5pow.freettsplugin; import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.speech.tts.TextToSpeech; import android.speech.tts.UtteranceProgressListener; import android.text.TextUtils; import android.util.Log; import com.unity3d.player.UnityPlayer; ...
package com.supconit.kqfx.web.service.data; import hc.business.dic.services.DataDictionaryService; import java.util.Date; import java.util.HashMap; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework...
package Building; public interface Floor { public int getNumberOfSpaces(); public int getNumberRoomsOfSpaces(); public double getTotalArea(); public Space[] getSpacesArray(); public Space getSpaceByNum(int number); public void changeSpace(int number, Space newSpace); public void addNewSpace(int n...
package com.gabriel.paiva.cursomc.cursomc.services; import com.gabriel.paiva.cursomc.cursomc.domains.*; import com.gabriel.paiva.cursomc.cursomc.enums.EstadoPagamento; import com.gabriel.paiva.cursomc.cursomc.exceptions.AuthorizationException; import com.gabriel.paiva.cursomc.cursomc.exceptions.ObjectNotFoundException...
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the ter...
package com.companyname.bank; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public App...
package com.uwetrottmann.trakt5.entities; import com.uwetrottmann.trakt5.enums.Rating; import org.threeten.bp.OffsetDateTime; import javax.annotation.Nonnull; import java.util.ArrayList; import java.util.List; public class SyncSeason { public Integer number; public List<SyncEpisode> episodes; public Of...
package com.jokeit.domain; import javax.persistence.*; @Entity @Table(name = "feedback") public class Feedback { @Id @GeneratedValue private Integer id; @Column(name = "assessment") private Integer assessment; @Column(name = "comment") private String comment; @ManyToOne @JoinCol...
import java.util.LinkedList; import java.util.Queue; public class TestQueueException { public static void main(String[] args) throws IllegalStateException { Queue<Integer> queue = new LinkedList<>(); queue.add(753434); queue.add(435343); queue.add(2147483647); try{ ...
package Tests; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; import dataStructures.*; class StackTest { private Stack<Integer> stack; private void setupEscenario() { stack = new Stack<Integer>(); Node q1 = new Node(1); Node q2 = new Node(2); Node q3 = new Node(3)...
package ru.ermakovis.simpleStorage.client; import io.netty.handler.codec.serialization.ObjectDecoderInputStream; import io.netty.handler.codec.serialization.ObjectEncoderOutputStream; import java.io.IOException; import java.net.Socket; public class Network { private final Socket socket; private fin...
package com.jlgproject.model; import com.google.gson.annotations.SerializedName; import java.io.Serializable; import java.util.List; /** * Created by sunbeibei on 2017/6/27. */ public class Share_Informations implements Serializable { /** * state : ok * message : 查询股权成功 * data : {"pageNum":1,...
package com.gtfs.service.impl; import java.io.Serializable; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Service; import com.gtfs.bean.DesignationMst; import com.gtfs.dao.interfaces.Des...
package com.io.spring; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; @Document(collection="student") public class Student { @Id private int id; private String age; private String name; private String phoneNo; public int getId() { ...
package edu.mayo.cts2.framework.webapp.rest.controller; import java.util.Map; public interface UrlTemplateBinder<R> { public Map<String,String> getPathValues(R resource); }
package com.yorkwang.model; import com.jfinal.plugin.activerecord.Model; public class UploadImage extends Model<UploadImage>{ public static final UploadImage dao = new UploadImage().dao(); public static final int TYPE_COMPANY_INFO = 1; public static final int TYPE_TEMP = -1; private boolean sele...
package com.design.pattern.observer; /** * @author zhangbingquan * @desc 观察者接口 * @time 2019-09-14 18:53 */ public interface Observer { void update(); }
package org.sagebionetworks.table.cluster.search; import java.util.List; import java.util.stream.Collectors; import org.apache.commons.lang3.StringUtils; import org.json.JSONArray; import org.sagebionetworks.table.query.util.ColumnTypeListMappings; import org.sagebionetworks.util.ValidateArgument; import org.springfr...
package pl.edu.agh.to.lab4.searching; import pl.edu.agh.to.lab4.suspects.Suspect; public interface SearchStrategy { boolean filter(Suspect suspect); }
package com.lec.ex1_inputStreamOutputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; //1. stream객체 생성(inputStream,outputStream) 2.읽고쓰기(반복) 3.stream닫기 public class Ex05_fi...