text
stringlengths
10
2.72M
package com.nag.android.kurikuri; import java.util.HashMap; import java.util.Map; import com.nag.android.kurikri.R; import android.content.Context; import android.media.AudioManager; import android.media.SoundPool; public class AppPlayer { private static final int NUM_OF_SOUND = CONTENTSID.values().length; privat...
package net.imglib2.trainable_segmention.pixel_feature.filter; import net.imglib2.trainable_segmention.pixel_feature.filter.dog2.DifferenceOfGaussiansFeature; import net.imglib2.trainable_segmention.pixel_feature.filter.gauss.GaussianBlurFeature; import net.imglib2.trainable_segmention.pixel_feature.filter.gradient.G...
/* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be use...
package adapter; import java.util.Enumeration; import java.util.Iterator; public class IterationAdapter<T> implements Enumeration<T> { Iterator<T> myiterator; public IterationAdapter(Iterator<T> myiterator) { this.myiterator=myiterator; } @Override public boolean hasMoreElements() { // TODO Auto-g...
package pojo.DAO; import org.junit.Test; import pojo.valueObject.domain.ProjectVO; import pojo.valueObject.domain.StudentVO; import pojo.valueObject.domain.TeacherVO; import tool.BeanFactory; import static org.junit.Assert.*; /** * Created by geyao on 2017/3/2. */ public class ProjectDAOTest { @Test public...
package com.dassa.controller.driver; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.s...
package com.qunli.network; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import com.bcq.oklib.base.BaseActivity; public class TestFragmentActivity extends BaseActivity { @Override public int setLayoutId() { return R.layout.activity_fragment_lay; ...
// ********************************************************** // 1. 제 목: // 2. 프로그램명: SulmunSubjUserBean.java // 3. 개 요: // 4. 환 경: JDK 1.3 // 5. 버 젼: 0.1 // 6. 작 성: Administrator 2003-08-18 // 7. 수 정: // // ********************************************************** package com.ziaan.res...
package Topic20Enum; import java.util.Scanner; public class EnumApp { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { System.out.println("Możesz wybrać z poniższych mozliwości"); for (Enum e: Enum.values()){ System.out.println(e.nrkoloru); ...
package com.pwq.DesignPatterns.SimpleFactory.BuildePattern; /** * @Author:WenqiangPu * @Description * @Date:Created in 14:55 2017/9/19 * @Modified By: */ public class Meal { private String food; private String drink; public String getFood() { return food; } public void setFood(String...
package hanoiTower; import java.util.LinkedList; import java.util.List; import java.util.Optional; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Consumer; public class MovesExecutor { private List<String> movesHistory = new LinkedList<>(); public boolean moveDisk(Peg source, P...
import java.awt.*; import java.awt.event.*; import java.applet.*; public class FirstProgram extends Applet implements ActionListener { TextField t1 = new TextField(10); TextField t2 = new TextField(10); TextField t3 = new TextField(10); Label l1 = new Label("First Number:"); Label ...
package com.weathair.service; import static org.assertj.core.api.Assertions.assertThat; import java.time.LocalDateTime; import java.util.List; import com.fasterxml.jackson.core.JsonProcessingException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.MethodOrderer; import org.junit.jupiter.api.Order; ...
/* * 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.mycompany18424021_Baitap; /** * * @author WINPC */ public class Users { protected String _USER; protected Strin...
package de.csiebmanns.graphqlexample.data; public class Comment implements HasAuthorName { private String authorName; private String content; private long timestamp; public Comment() { } public Comment(CommentData data) { this.authorName = data.getAuthorName(); this.conten...
/* * 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 alien4cloud.component.repository.exception; /** * Exception thrown when trying to store an existing version of a CSAR * * @author 'Igor Ngouagna' * */ public class CSARVersionAlreadyExistsException extends RepositoryFunctionalException { private static final long serialVersionUID = -782528172091141...
package com.alibaba.druid.bvt.sql.mysql; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.alibaba.druid.DbType; import com.alibaba.druid.sql.ast.expr.SQLMethodInvokeExpr; import junit.framework.TestCase; import org.junit.Assert; import com.alibaba.druid.sql.SQLUtils; import com...
package com.heihei.scoket; public class WebSocketClientOther { //public class WebSocketClientOther extends Service implements WebSocketListener { // // private static final int CONNECT_TO_WEB_SOCKET = 1; // private static final int SEND_MESSAGE = 2; // private static final int CLOSE_WEB_SOCKET = 3; // private static f...
/* * 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 org.exolin.sudoku.solver; /** * * @author Thomas */ public interface SudokuListener { public void onStateChanged(Sudok...
/* * 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 programa; /** * * @author laura */ import java.time.LocalDateTime; import javax.swing.JOptionPane; public class aspiradora...
package com.symphox.framework.utils; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.itextpdf.text.Document; import com.itextpdf.text.pdf.PdfWriter; import com.symphox.framework.dao.AbstractPdfView; /** * Reference * http:/...
package com.example.qunxin.erp; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.text.TextUtils; import android.util.Log; import android.widget.TextView; import android.widget.Toast; import com.example.qunxin.erp.activit...
package com.Action; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import java.io.Serializable; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import org.apache.struts2.ServletActionCont...
package com.example.sudheep; import java.util.List; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import...
package com.example.weatherapp.data; import android.accounts.NetworkErrorException; import android.util.Log; import com.example.weatherapp.config.WeatherApiConfig; import com.example.weatherapp.models.Weather; import com.example.weatherapp.models.WeatherModel; import retrofit2.Call; import retrofit2.Callback; import...
package org.squonk.rdkit.db; /** * Created by timbo on 13/12/2015. */ public enum MolSourceType { MOL("mol_from_ctab(%s)", "qmol_from_ctab(%s)"), SMILES("mol_from_smiles(%s)", "qmol_from_smiles(%s)"), SMARTS("mol_from_smarts(%s)", "mol_from_smarts(%s)"); public String molFunction; public String qmolFun...
package leetCode.exercise; import java.util.ArrayList; import java.util.List; /** * 6. Z字形变换 * 将字符串 "PAYPALISHIRING" 以Z字形排列成给定的行数: P A H N A P L S I I G Y I R 之后从左往右,逐行读取字符:"PAHNAPLSIIGYIR" 实现一个将字符串进行指定行数变换的函数: string convert(string s, int numRows); 示例 1: 输入: s = "PAYPALISHIRING", numRows =...
package arraysnstrings; import java.util.ArrayList; import java.util.Arrays; public class Pair { public int a; public int b; public Pair(int a, int b) { this.a = a; this.b = b; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + a; result = prime * ...
import java.util.*; class reverse_words { static String reverse(String s) { int space=s.indexOf(" "); if(space!=-1) reverse(s.substring(space+1,s.length())); if(space==-1) System.out.print(s.substring(0,s.length())); else System.out.print(s.substring(0,space+1)); return s; } public static void main...
package com.atomix.fragments; import com.atomix.adapter.MainMenuAdapter; import com.atomix.sidrapulse.R; import android.app.Activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; ...
package org.bootcamp.service; import org.bootcamp.model.Person; import java.util.List; public interface PersonService { void addPerson(Person p); void updatePerson(Person p); List<Person> listPerson(); Person getPersonById(int id); void removePerson(int id); }
package com.bag.pin.service; import com.bag.pin.model.Pin; import com.bag.pin.service.handler.CrawlerPinFailureHandler; import com.bag.pin.service.handler.CrawlerPinSuccessHandler; import com.bag.utils.crawler.htmlParser.PinParser; import com.bag.utils.crawler.htmldownloader.HttpClientHtmlDownloader; import org.jsoup....
package Classes; import java.io.File; import java.net.URL; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Date; import java.util.ResourceBundle; import Model.MergeTask; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Alert...
package com.deity.design.decorator; /** * 接口 * Created by Deity on 2017/2/13. */ public interface IMan { /**帅哥总是和身价挂钩的*/ long worth(); /**描述*/ String description(); }
package com.mtp.model; /** * @author jlamby * */ public class VigilanceMessage extends BaseInstruction { private String message; public VigilanceMessage(String message) { this.message = message; } public String getMessage() { return message; } public void setMessage(Strin...
package com.mridul.customretrofitlibrary.Network; import android.content.Context; import android.util.Log; import com.mridul.customretrofitlibrary.BaseApplication; import com.mridul.customretrofitlibrary.R; import org.json.JSONException; import org.json.JSONObject; import retrofit2.Call; import retrofit2.Callback; ...
package org.aksw.autosparql.tbsl.gui.vaadin.model; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java....
package com.gy.service.impl; import com.gy.entity.Car; import com.gy.mapper.CarMapper; import com.gy.service.CarService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * @Author: liumin * @Description: * @Date: Created in 20...
package me.jcomo.slimtwitter.utils; import java.util.Map; import java.util.Scanner; import java.util.concurrent.ConcurrentHashMap; import java.util.regex.Pattern; /** * A class used to scan strings for words with certain character prefixes. When a word with a * registered character prefix is found, the appropriate ...
package com.example.sqlshop; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.text.TextUtils; import android.util.Log; import android.view.View; impo...
package raft.server.storage; /** * Author: ylgrgyq * Date: 18/6/10 */ public enum RecordType { // Zero is reserved for preallocated files kZeroType((byte)0), kFullType((byte)1), // For fragments kFirstType((byte)2), kMiddleType((byte)3), kLastType((byte)4), // EOF kEOF((byte)5...
package com.gmail.filoghost.holograms.api; import org.bukkit.Location; import org.bukkit.World; @Deprecated public abstract interface Hologram { @Deprecated public abstract boolean update(); @Deprecated public abstract void hide(); @Deprecated public abstract void addLine(String paramString); @...
package lab.nnverify.platform.verifyplatform.services; import lab.nnverify.platform.verifyplatform.mapper.VerificationMapper; import lab.nnverify.platform.verifyplatform.models.Verification; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util....
package com.imooc.ioc.com.imooc.ioc.beanlifecycle; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanNameAware; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; import org.springframework.context.ApplicationC...
package com.portware.FIXCertification; public class Test { public static void main(String a[]) { new Property(); System.out.println(Property.getGlobalProp("RunType")); } }
package com.project.alex.ServiceDiscipline; import lombok.Data; import org.springframework.stereotype.Component; import javax.persistence.*; @Data @Entity public class HoursZCE { @Id @GeneratedValue(strategy= GenerationType.AUTO, generator = "hoursZ") private int id; private int hoursCourse; priv...
package DataStructures.arrays; import java.util.ArrayList; /** * Created by senthil on 20/8/16. */ public class PascalsTriangle { /*public List<Integer> getRow(int rowIndex) { ArrayList<Integer> result = new ArrayList<Integer>(); if (rowIndex < 0) return result; result.ad...
package com.melodygram.fragment; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.os.SystemClock; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; import android.support.v4.view.ViewPager; import android.util.Log; 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 bbdd; /** * * @author JD */ public class pruebaEntradas { /** * @param args the command line arguments */ ...
package data; import engine.DataProcessor; import lombok.Data; import lombok.Getter; import lombok.Setter; import pojo.Board; import pojo.Player; import java.util.*; @Getter @Setter public class StateData { private int hash; private Board board; private boolean isWhiteTurn; private boolean isEnd; ...
package com.ramonmr95.app.entities; import java.io.Serializable; import java.util.Date; import java.util.UUID; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table...
package com.example.fiorella.gastoapp.Controllers; import android.content.ContentValues; import android.content.Intent; import android.database.sqlite.SQLiteDatabase; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widg...
package com.moped.snake.view; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.util.AttributeSet; import android.view.MotionEvent; import android.widget.LinearLayout; import com.moped.snake.model.F...
package com.example.praty.githubrepo.viewmodel; import android.arch.lifecycle.MutableLiveData; import android.arch.lifecycle.ViewModel; import com.example.praty.githubrepo.model.Repositories; import com.example.praty.githubrepo.repository.RepoRepository; import java.util.List; //viewmodel class for MainActivity pub...
package com.xiezh.findlost.activity; import android.app.Service; 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.util.Log; import android.view.View; import andro...
/* $Id$ */ package djudge.swing; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing...
package Test; import org.junit.Test; import static junit.framework.Assert.assertEquals; /** * Created by nschell on 3/12/14. */ public class TestLogin { }
import java.util.*; public class Main{ public static int Solution(int[] arr,int n,int m){ int result=0; int start =0; int end = Arrays.stream(arr).max().getAsInt(); while (start<=end){ int sum=0; int mid = (start+end)/2; for(int num: arr){ ...
package com.tpg.brks.ms.expenses.persistence.integration; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class Pair<T, U> { private T first; private U second; }
package com.cognixia.jump.djk.firstjavaproject.inputs; import com.cognixia.jump.djk.firstjavaproject.data.RecordWithId; import com.cognixia.jump.djk.firstjavaproject.functionalInterfaces.DataRecordInHandler; import com.cognixia.jump.djk.firstjavaproject.functionalInterfaces.Executor; import java.util.Collection; impo...
package com.ads.utils; public class NetworkConfParser { }
package org.andrill.conop.core.solver; import org.andrill.conop.core.Dataset; import org.andrill.conop.core.Solution; /** * Defines a simple interface for solver components to publish results from the * solver run. * * @author Josh Reed (jareed@andrill.org) */ public interface SolverContext { /** * Gets the...
/* * 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 dream */ public class Hunter extends MovablePiece implements CalcEatingMoves,CalcStraightMoves,CalcDiagon...
package vnfoss2010.smartshop.serverside.database.entity; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import vnfoss2010.smartshop.webbased.share.WMedia; @PersistenceCapable...
package com.paypal.bfs.test.employeeserv.util; import java.time.format.DateTimeFormatter; /** * The Class Constants. */ public class Constants { public static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("dd-MM-yyyy"); }
public class LinkedList<T> { private LinkedListNode<T> head; private LinkedListNode<T> tail; /** * Returns the head value of the list. Returns null if the head is null. * @return */ public T getHeadValue() { if(head == null) return null; return head.getData(); } public void removeHead() { if(head...
package fr.skytasul.quests.utils.compatibility; import java.lang.reflect.Field; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.stream.Collectors; import org.bukkit.Bukkit; import org.bukkit....
/*4. Implement a JAVA program to find the square of the number. */ class SquareNumber{ public static void main(String args[]) { int num = 25; num *= num; System.out.println("Square of given number is " + num); } }
package com.rafael.personalitytest.ui.splash; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import com.rafael.personalitytest.App; import com.rafael.personalitytest.R; import com.rafael.personalitytest.ui.login.LoginActivity; import com.rafael.personalitytes...
package dados; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import beans.Funcionario; import excepti...
package com.atlassian.theplugin.idea.action.issues.oneissue; import com.atlassian.theplugin.idea.IdeaHelper; import com.intellij.openapi.actionSystem.AnActionEvent; /** * User: jgorycki * Date: Dec 29, 2008 * Time: 12:59:35 PM */ public class RefreshCommentsAction extends AbstractEditorIssueAction { public void ...
package com.limefriends.molde.menu_mypage; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.TextView; import com...
package com.proba.proba12.repositories; import com.proba.proba12.models.User; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import java.util.List; public interface UserRepository extends JpaRepository<User,Long> { }
package io.mosip.tf.t5.cryptograph.idrepo.dto; import java.util.List; import io.mosip.tf.t5.cryptograph.dto.Documents; import lombok.Data; /** * The Class ResponseDTO. * * @author M1048358 Alok */ @Data public class ResponseDTO { /** The entity. */ private String entity; /** The identity. */ private Objec...
package com.github.spocot.mythra; import java.awt.Color; public class BlockGrass extends Block{ public BlockGrass(int x, int y) { super(false, Color.green, x, y); } }
package com.mc.library.constants; /** * Created by dinghui on 2016/10/14. */ public class UMengConstants { }
import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.StringWriter; import java.io.UnsupportedEncodingException; import java.net.HttpURLConnection; import java.net....
/* * Origin of the benchmark: * repo: https://github.com/diffblue/cbmc.git * branch: develop * directory: regression/cbmc-java/multinewarray * The benchmark was taken from the repo: 24 January 2018 */ class Main { public static void main(String[] args) { int[][][] some_a = new int[4][3][2]; ...
/* * 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 OnlineRetailer; import java.io.*; import java.util.ArrayList; /** - Main file that runs the system. @Justin Ho Shue **/ public class Main { public static void main(String[] args) throws IOException{ BufferedReader key = new BufferedReader(new InputStreamReader(System.in)); Games minecraft = ...
package com.trump.auction.reactor.bid; import com.trump.auction.reactor.api.model.BidRequest; import com.trump.auction.reactor.api.model.BidResponse; /** * 出价处理 * * @author Owen * @since 2018/1/16 */ public interface BidHandler { BidResponse handleRequest(BidRequest bidRequest); boolean support(BidRequ...
/****************************************************************************** * __ * * <-----/@@\-----> * * <-< < \\// > >-> * ...
package com.capstone.videoeffect; import android.Manifest; import android.app.Activity; import android.app.AlertDialog; import android.content.ContentResolver; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Bitmap; import android...
package com.bistel.mq.impl; import java.util.HashMap; import java.util.Map; import java.util.StringTokenizer; import org.atmosphere.cpr.Broadcaster; import org.atmosphere.cpr.BroadcasterFactory; import com.bistel.configuration.ConfigConstants; import com.bistel.configuration.ConfigurationManager; import com.bistel.m...
/* * 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 RecursionTest; /* * 递归方法的使用(了解) * 1.递归方法:一个方法体内调用它自身。 * 2. 方法递归包含了一种隐式的循环,它会重复执行某段代码,但这种重复执行无须循环控制。 * 递归一定要向已知方向递归,否则这种递归就变成了无穷递归,类似于死循环。 * */ public class RecursionTest { public static void main(String[] args) { RecursionTest test=new RecursionTest(); int sum1=test.getsum(100); ...
package com.junzhao.base.base; import com.junzhao.base.http.MLConstants; import com.junzhao.rongyun.service.RongContext; import com.junzhao.shanfen.model.PHUserData; import com.junzhao.shanfen.model.SmallComPanyData; /** * Created by Administrator on 2016/5/19. */ public class APPCache { //token public sta...
package com.telekomatrix.hadoop.solution.mr; import java.net.URI; import org.apache.hadoop.fs.FileSystem; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; import org.sprin...
package com.restcode.restcode.resource; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; public class SaveProductResource { @NotNull @NotBlank @Size(max=100) private String name; private String description; ...
package controller2.ScannerFiles; import java.util.*; import java.io.*; public class PersonTest { public static void main( String[] args ) { Formatter output = null; try{ output = new Formatter( "E:/imtiaz/client.txt" ); }catch( FileNotFoundException e ) { e...
package com.gome.manager.domain; import java.io.Serializable; /** * * 评论实体类. * * <pre> * 修改日期 修改人 修改原因 * 2015年11月6日 caowei 新建 * </pre> */ public class ReadingSupport implements Serializable { /** * */ private static final long serialVersionUID = -3576016565013678112L; //ID private...
/** * Annotations denoting the roles of types or methods in the overall architecture * (at a conceptual, rather than implementation, level). * * <p>Intended for use by tools and aspects (making an ideal target for pointcuts). */ @NonNullApi @NonNullFields package org.springframework.stereotype; import org.springf...
package ca.l5.expandingdev.jsgf; import java.util.*; public class Sequence implements Expansion, Collection { private List<Expansion> exp; public Sequence(Expansion... e) { exp = Arrays.asList(e); } public Sequence() { exp = new ArrayList<>(); } @Override public boolean ...
package com.meehoo.biz.core.basic.ro.bos; import lombok.Data; import java.util.List; /** * 中间表设置 * @author zc * @date 2019-09-03 */ @Data public class BatchUpdateRO { private String mainId; private List<String> subIds; }
package com.ibm.apt.sba_back.domain; import javax.persistence.*; import java.sql.Date; @Entity @Table(name = "users", schema = "sba", catalog = "sba") public class Users { private Integer userId; private String userName; private String password; private int roleId; private int active; private ...
package com.chaojicode; public interface Shell { void color(); }
class Solution { HashMap<Integer,List<Integer>> map = new HashMap<>(); HashSet<Integer> set = new HashSet<>(); List<Integer> ans = new ArrayList<>(); boolean impossible = false; public int[] findOrder(int numCourses, int[][] prerequisites) { for(int i=0;i<numCourses;i++){ map.put...
package com.xld.common.validator; import com.baidu.unbiz.fluentvalidator.Validator; import java.lang.reflect.Constructor; import java.util.HashMap; /** * 简易 校验器工厂 */ public class SimpleValidatorFactory { /** * 简易匹配规则 */ private static HashMap<Class, Class> validatorMap; static { vali...
package PageObjectRepository; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; public class POM_HomePage { WebDriver brows; @FindBy (id = "srchword" ) WebElement Textbox_search; @FindBy (class...