text stringlengths 10 2.72M |
|---|
/*
* Copyright (C) 2012~2016 dinstone<dinstone@163.com>
*
* 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 require... |
package test;
public enum SUIT {
SPADES, DIAMONDS, CLUBS, HEARTS
}
|
package leader.view.component;
import leader.view.ViewUtil;
import javax.swing.*;
public class TitleLabel extends JLabel {
public TitleLabel(String text){
super(text);
setFont(ViewUtil.TITLE_FONT);
}
}
|
package com.example.demo.pay.service.impl;
import com.example.demo.pay.model.WxTrade;
import com.example.demo.pay.model.WxpayParam;
import com.example.demo.pay.service.WxPayService;
import com.example.demo.pay.service.WxTradeService;
import com.github.wxpay.sdk.WXPay;
import com.github.wxpay.sdk.WXPayUtil;
import org.... |
package solution.step04;
public class Sulfuras implements Item {
private int quality;
private int daysRemaining;
@Override
public void initialize(int quality, int daysRemaining) {
this.quality = quality;
this.daysRemaining = daysRemaining;
}
@Override
public int getQu... |
package com.encdata.corn.niblet.domain;
/**
* @Author: jinsi
* @Date: 2019/7/17 09:21
* @Description: 客户列
*/
public class Customer {
private Long id;
private String username;
private Integer deposit;
public Long getId() {
return id;
}
public void setId(Long id) {
this.i... |
package com.example.myresumeapp;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.AdapterView.AdapterContextMenuInfo;
public class MainActivity extends Activity {
@Ove... |
public class PostIt {
public PostIt(String backgroundColor, String text, String textcolor){
}
public static void main(String[] args) {
PostIt exampleOne = new PostIt("Orange", "Idea 1","blue");
PostIt exampleTwo = new PostIt("Pink", "Awesome","black");
PostIt exampleThree = new Pos... |
package ru.alexside.mapper;
import ma.glasnost.orika.MapperFacade;
import ma.glasnost.orika.MapperFactory;
import ma.glasnost.orika.MappingContext;
import ma.glasnost.orika.converter.BidirectionalConverter;
import ma.glasnost.orika.converter.builtin.PassThroughConverter;
import ma.glasnost.orika.impl.DefaultMapperFact... |
package cn.hassan.spi;
/**
* Created with idea
* Author: hss
* Date: 2019/7/17 8:45
* Description:
*/
public interface Printer {
void print();
}
|
package com.fxn.stash;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import jav... |
package mx.infotec.inflector.web;
/**
* Wrapper for the result of processing with Inflector
* @author Roberto Villarejo Mart�nez <roberto.villarejo@infotec.mx>
*
*/
public class Response {
/**
* The analyzed word itself
*/
private String word = "";
/**
* Language in which word was analyzed
*/
privat... |
class Solution {
public int repeatedNTimes(int[] A) {
HashMap<Integer,Integer> map=new HashMap<>();
for(int i=0;i<A.length;i++){
if(map.containsKey(A[i])){
int v=map.get(A[i])+1;
map.put(A[i],v);
}else{
map.put(A[i],1);... |
package util;
import java.util.ArrayList;
import java.util.List;
public class Chart {
private List<List<String>> rows;
public Chart() {
rows = new ArrayList<>();
}
public Chart(String s) {
this();
fromString(s);
}
public String toString() {
StringBuilder sb = new StringBuilder();
for (List<String... |
/*
* EduVersionDaoImplJDBC.java
*
* Created on 2008Äê3ÔÂ5ÈÕ, ÏÂÎç2:43
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package tot.dao.jdbc;
import tot.dao.AbstractDao;
import tot.dao.DaoFactory;
import tot.db.DBUtils;
import tot.util.StringUtils;
import tot... |
package com.zd.christopher.dao;
import java.util.List;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Repository;
import com.zd.christopher.bean.Faculty;
@Repository
public class FacultyDAO extends EntityDAO<Faculty> implements IFacultyDAO
{
@PostConstruct
public void init()
{
ent... |
package kr.or.ddit.user.repository;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import kr.or.ddit.common.model.PageVo;
import kr.... |
package com.stk123.model.bo;
import com.stk123.common.util.JdbcUtils.Column;
import java.io.Serializable;
import com.stk123.common.util.JdbcUtils.Table;
@SuppressWarnings("serial")
@Table(name="STK_DICTIONARY")
public class StkDictionary implements Serializable {
@Column(name="TYPE")
private Integer type;
... |
/*
* 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 interfazGrafica;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.ArrayList;
import javax.s... |
package com.getkhaki.api.bff.web;
import com.getkhaki.api.bff.domain.models.PersonDm;
import com.getkhaki.api.bff.domain.services.PersonService;
import com.getkhaki.api.bff.web.models.PersonDto;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewor... |
package chapter_one.arrays_and_strings;
/**
* Date 20/05/20.
*
* 1.5 Implement a method to perform basic string compression using the counts of repeated characters.
* For example, the string aabcccccaaa would become a2b1c5a3. If the "compressed" string would not
* become smaller than the original string, your met... |
package com.pelephone_mobile.songwaiting.ui.fragments;
import android.content.Context;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import ... |
package ru.steagle.datamodel;
import android.sax.Element;
import android.sax.RootElement;
import android.sax.StartElementListener;
import android.util.Xml;
import org.xml.sax.Attributes;
import java.util.StringTokenizer;
import ru.steagle.protocol.request.ChangeNotifyFlagCommand;
import ru.steagle.protocol.responce... |
package com.barnettwong.view_library.util;
import android.content.res.ColorStateList;
/**
* Generate thumb and background color state list use tintColor
*/
public class ColorUtils {
private static final int ENABLE_ATTR = android.R.attr.state_enabled;
private static final int CHECKED_ATTR = android.R.attr.st... |
package presentation.webmanager.view;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import presentation.webmanager.MainAPP;
import util.CustomerType;
import vo.CustomerVO;
import vo.ManagerVO;
/**
* Created by 曹利航 on 2016/11/26 12:23.
*/
public class CustomerInf... |
package revolt.backend.dto;
import lombok.*;
import lombok.experimental.FieldDefaults;
@Builder
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
public class SignInFormDto {
String login;
String password;
} |
package com.testFileUpload.common.error.client;
import com.testFileUpload.common.error.common.ErrorCode;
import org.springframework.http.HttpStatus;
/**
* 集成ErrorCode,定性为客户端校验性异常
* @author CAIFUCHENG3
*/
public interface ClientError extends ErrorCode {
@Override
default HttpStatus httpStatus() {
... |
package com.redsun.platf.web.tag;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.Tag;
import java.io.IOException;
import java.io.Serializable;
/**
* Created with IntelliJ IDEA.
* User: Administrator
* Date: 2012... |
package crushstudio.crush_studio.repository;
import crushstudio.crush_studio.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.time.LocalDate;
import java.util.Optional;
@Repository
public interface UserRepository extends ... |
package com.memory.platform.web.web.controller;
import java.util.List;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf... |
package com.example.mealprep;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class HomeScreenActivity extends Activity implements OnFragmentInteractionListener{
private ... |
package com.example.snake;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;
public class Board {
final int rowCount, colCount;
private List<List<Cell>> cells;
public Board(int rowCount, int colCount) {
this.rowCount = rowCount;
this.colCount = colCount;
cells = ... |
package com.cninnovatel.ev.db;
import android.database.sqlite.SQLiteDatabase;
import java.util.Map;
import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.AbstractDaoSession;
import de.greenrobot.dao.identityscope.IdentityScopeType;
import de.greenrobot.dao.internal.DaoConfig;
import com.cninnovatel.ev.db.R... |
package com.qac.nbg_app.services;
import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;
import com.qac.nbg_app.entities.Basket;
import com.qac.nbg_app.managers.BasketManager;
@Stateless
public class BasketService {
@Inject
private BasketManager basketManager;
public List<Basket> find... |
package com.inventorystock.dao;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* Implementation class for Enterprise Inventory Stock management using DAO
*
* @author (M1035775) Kotra Thirumala
*
*/
public class InventoryStockImpl {
/**
* Scanner class for getting inputs fr... |
/*
* 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;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Iterator;
import java.u... |
// https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/solution/
class Solution {
public boolean isValidSerialization(String preorder) {
int slots = 1;
int n = preorder.length();
for(int i = 0; i < n; ++i) {
if (preorder.charAt(i) == ',') {
--... |
package cn.mccreefei.zhihu.service.vo;
import lombok.Data;
/**
* @author MccreeFei
* @create 2018-01-22 9:46
*/
@Data
public class TextVo {
private Integer articleId;
private Integer questionId;
private Integer answerId;
private String content;
private Integer textType;
}
|
package com.sshfortress.common.model;
public class DstListByAssetId {
private Long dstId;
private String dstName;
private String dstPassword;
public Long getDstId() {
return dstId;
}
public void setDstId(Long dstId) {
this.dstId = dstId;
}
public String getDstName() {
return d... |
/*
* 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.shinchan.hql_sample_app;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.Session;
impo... |
package pers.mine.scratchpad.base.generics;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@TestAnn("test")
public class AnnotationValueEdit {
}
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNT... |
package com.grocery.codenicely.vegworld_new.sub_category.view;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.Tab... |
package cn.itcast.core.controller;
import cn.itcast.core.pojo.entity.EchrtsResult;
import cn.itcast.core.pojo.entity.PageResult;
import cn.itcast.core.pojo.entity.Result;
import cn.itcast.core.pojo.order.Order;
import cn.itcast.core.pojo.order.OrderItem;
import cn.itcast.core.service.ShopOrdersService;
import com.alib... |
/**
* project name:cdds
* file name:ExceptionHandle
* package name:com.cdkj.asset.common.exception
* date:2018/3/17 上午10:34
* author:bovine
* Copyright (c) CD Technology Co.,Ltd. All rights reserved.
*/
package com.cdkj.common.exception;
import com.cdkj.common.constant.ResultCode;
import com.cdkj.util.Result;
i... |
package servlet;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import co... |
package com.globalmediasoft.android.http;
import java.net.URL;
import org.json.JSONException;
import com.globalmediasoft.android.parser.GMSParserJSON;
import android.graphics.Bitmap;
public class GMSHttpResponse {
protected String content;
protected Bitmap bm;
protected URL url;
public GMSHttpResponse() {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.davivienda.multifuncional.diarioelectronico.formato;
/**
* TituloLogGeneral - 15/09/2008
* @author AA.Garcia
* Davivienda 2008
*/
public class TituloDiarioMultifuncionalGeneral {
public static Stri... |
package com.example.ecommerce_application.controllers;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import com.example.ecommerce_application.TestUtils;
import com.example.ecommerce_application.model.persistence.Cart;
import com.example.ec... |
package exercise3;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
public class InvocationHandlerCalculator implements InvocationHandler {
private Object obj;
private Map<Integer, Integer> map = new HashMap<>();
public Invocati... |
package com.openfarmanager.android.fragments;
import android.support.v4.app.DialogFragment;
import android.util.DisplayMetrics;
import android.view.WindowManager;
import com.openfarmanager.android.App;
import com.openfarmanager.android.utils.SystemUtils;
/**
* Base Dialog Fragment.
*
* @author Vlad Namashko
*/
pu... |
package com.fanfte.myannotation.test;
import com.fanfte.myannotation.annotation.UseCase;
/**
* Created by dell on 2018/5/22
**/
public class PasswordUtil {
@UseCase(id = 99, description = "password ")
public String encodePassword(String password) {
return new StringBuffer(password).toString();
... |
package com.developworks.jvmcode;
/**
* <p>Title: invokedynamic</p>
* <p>Description: 调用动态方法</p>
* <p>Author: ouyp </p>
* <p>Date: 2018-05-19 23:15</p>
*/
public class invokedynamic {
public void invokedynamic(Object[] args) {
Runnable r = () -> {};
}
}
/**
* public void invokedynamic(java.lang... |
package com.cn.ouyjs.thread.modelTest;
/**
* @author ouyjs
* @date 2019/7/4 10:49
*/
public class ConsumerTest extends Thread{
private static final int SIZE = 20;
private Goods goods;
public ConsumerTest(Goods goods) {
this.goods = goods;
}
@Override
public void run() {
whil... |
package br.com.douglastuiuiu.biometricengine.serializer;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
import java.t... |
package Articles;
import Attributes.Attribute;
import Attributes.WebpageTag;
import Utils.Data;
import java.util.ArrayList;
public class Webpage extends Article{
WebpageTag tag;
String url;
public Webpage(){super(new ArrayList<>());}
public Webpage(ArrayList<Attribute> a) {super(a);}
public Webpa... |
package irix.measurement.service;
import irix.measurement.structure.Measurement;
public interface MeasurementsImp {
Measurement getMeasurement();
}
|
package aquarium.jellies;
public class Jelly {
}
|
package com.maxmind.geoip2.model;
import com.fasterxml.jackson.annotation.JacksonInject;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.... |
package com.lsjr.zizisteward.activity.home.presenter;
import com.lsjr.zizisteward.http.callback.SubscriberCallBack;
import com.lsjr.net.DcodeService;
import com.lsjr.zizisteward.activity.home.view.IHomeView;
import com.ymz.baselibrary.mvp.BasePresenter;
import com.ymz.baselibrary.utils.L_;
import com.ymz.baselibrary.u... |
package com.pce.BookMeTutor.Repo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.pce.BookMeTutor.Model.Dao.AddressEntity;
@Repository
public interface AddressRepo extends JpaRepository<AddressEntity, Long> {
}
|
package GUI.controller;
import java.io.IOException;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.sce... |
/*
* 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.example.correccion.Repository;
import com.example.correccion.Model.Empleado;
import org.springframework.data.jpa.repositor... |
package framework;
import org.web3j.abi.TypeReference;
import org.web3j.abi.datatypes.Function;
import org.web3j.abi.datatypes.Type;
import org.web3j.abi.datatypes.Utf8String;
import org.web3j.abi.datatypes.generated.Uint256;
import org.web3j.crypto.Credentials;
import org.web3j.protocol.Web3j;
import org.web3j.protoc... |
import java.util.Arrays;
/**
* AP CS MOOC Term 2 - Assignment 2, Part 1: Boxcar A class which represents a
* single car on a freight train.
*/
public class Boxcar {
// Variables that will be initialized in the Boxcar constructors.
private String cargo = "";
private int numUnits;
private boolean rep... |
package com.bnrc.http;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.GZIPInputStream;
import org.apache.http.entity.HttpEntityWrapper;
import org.apache.http.HttpEntity;
/**
* 漏 2012 amsoft.cn
* 鍚嶇О锛欰bGzipDecompressingEntity.java
* 鎻忚堪锛欻ttp瑙e帇鍐呭
*
* @author 杩樺涓�姊︿腑
* @version v1... |
package pt.utl.ist.bw;
import java.util.ArrayList;
import pt.utl.ist.bw.utils.CaseReceiver;
import pt.utl.ist.bw.worklistmanager.WorklistManager;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.terminal.UserError;
import com.vaadin.ui.Accordion... |
import java.util.*; //Import all the classes in the java.util package was//
public class Main { //Defined Main class//
private static Scanner sc; //sc variable was created in the class to read the user.//
public static void main(String args[])
{
int k; //Generated in integer variables//
int i = 0;
int val... |
package network.nerve.converter.model.txdata;
import network.nerve.converter.utils.ConverterUtil;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
public class WithdrawalTxDataTest {
WithdrawalTxData withdrawalTxData;
... |
package logic;
public class Map {
private int width, height;
private Robot robot;
private GameObj target;
public Map(int width, int height) {
this.width = width;
this.height = height;
}
public void update() {
robot.update(this);
}
protected int getWidth() {
... |
/*
* LcmsSeqObjectivesServiceImpl.java 1.00 2011-09-05
*
* Copyright (c) 2011 ???? Co. All Rights Reserved.
*
* This software is the confidential and proprietary information
* of um2m. You shall not disclose such Confidential Information
* and shall use it only in accordance with the terms of the license ag... |
package com.github.mistertea.html5animator.service;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
im... |
package com.zxt.compplatform.authority.dao.impl;
import java.util.List;
import com.zxt.compplatform.authority.dao.UserLevelDao;
import com.zxt.compplatform.authority.entity.UserLevel;
import com.zxt.compplatform.formengine.entity.view.UserBasic;
import com.zxt.compplatform.formengine.entity.view.UserLevelBasic;
impor... |
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class ChessPane extends JPanel{
//Properties
//Piece array is same as one in main program
piece[][] pieceArray = new piece[8][8];
//blnMovement will be activated if a piece is clicked upon
boolean b... |
package com.android.wendler.wendlerandroid.di.module;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.android.wendler.wendlerandroid.main.model.User;
import com.google.gson.Gson;
import javax.inject.Singleton;
import dagger.Module;
im... |
package com.flavio.android.petlegal.model;
public class Usuario {
private int idPessoa;
private int tipo;
private int cpf;
private String senha;
private int status;
//Construtor completo
public Usuario(int id,int tipo, int cpf, String senha,int status){
this.idPessoa = id;
... |
package com.nowcoder.community.service;
import com.nowcoder.community.dao.AlphaDao;
import com.nowcoder.community.dao.DiscussionPostMapper;
import com.nowcoder.community.dao.UserMapper;
import com.nowcoder.community.entity.DiscussPost;
import com.nowcoder.community.entity.User;
import org.springframework.beans.factory... |
package com.tugofwar;
import java.util.TreeSet;
import java.util.function.Supplier;
import java.util.stream.Collectors;
public class Player {
private String name;
private int score;
private int id;
private FriendsList friendslist;
public Player(String name, int score, int id, FriendsList f) {
this.name = name... |
import java.util.Arrays;
/*
* @lc app=leetcode.cn id=57 lang=java
*
* [57] 插入区间
*/
// @lc code=start
class Solution {
public int[][] insert(int[][] intervals, int[] newInterval) {
int index = -1;
int[][] res = new int[intervals.length + 1][2];
int i = 0;
// 将newInterval开始前的的in... |
package com.zantong.mobilecttx.weizhang.dto;
/**
* 43.生成违章缴费订单
*/
public class ViolationPayDTO {
private String carnum;//车牌号
private String usernum;//安盛用户ID(rsa加密)
private String peccancynum;//违章单号
private String peccancydate;//违章日期
private String orderprice;//罚款金额
private String enginenum;//... |
package Vorlesung02;
public class FlensGreeter extends Greeter {
public FlensGreeter(String name) {
//ruft den Konstruktor von Greeter auf
super(name);
}
@Override
public String getMessage() {
return "Moin" + getName();
}
}
|
/**
* Sencha GXT 3.0.1 - Sencha for GWT
* Copyright(c) 2007-2012, Sencha, Inc.
* licensing@sencha.com
*
* http://www.sencha.com/products/gxt/license/
*/
package com.sencha.gxt.explorer.client.layout;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gw... |
package product3;
public class ProductC1 implements ProductC{
}
|
package tree.bst;
import java.util.*;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class BSTree {
public final Logger logger = LoggerFactory.getLogger(BSTree.class);
final static class TreeNode<E extends Comparable>{
E element;
TreeN... |
package com.delrima.webgene.server.configuration;
import java.util.HashMap;
import java.util.Map;
import org.aspectj.lang.Aspects;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect;
import org.springframework.context.annotati... |
package com.choupies.fdj.fdjback.service.mapper.impl;
import com.choupies.fdj.fdjback.dto.option.ConsulterOptionDtoOut;
import com.choupies.fdj.fdjback.dto.option.CreerOptionDtoIn;
import com.choupies.fdj.fdjback.model.Option;
import com.choupies.fdj.fdjback.service.mapper.OptionConverter;
import org.springframework.s... |
package Model;
public class Uitgeleend implements MateriaalState {
private Materiaal materiaal;
public Uitgeleend(Materiaal materiaal){
setMateriaal(materiaal);
}
@Override
public void verwijder() {
System.out.println("product kan niet verwijderd worden als het uitgeleend zijn");
... |
package ggboy.study.java.sort;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
public class SortMethods {
public static void main(String[] args) {
Random r = new Random();
int[] data = new int[100000];
for (int i = 0; i < data.length; i++) {
... |
package ro.ase.csie.cts.g1093.mironcristina.assignment4.exceptions;
public class WrongProductNameException extends Exception {
}
|
package com.splwg.cm.domain.batch;
import java.io.File;
import java.io.FilenameFilter;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List... |
package cn.edu.cqut.controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.anno... |
package swivl.demo.entities.responses;
import lombok.Data;
import swivl.demo.entities.BrowserContent;
import java.util.List;
@Data
public class ImageRequestResponse {
private boolean valid;
private List<BrowserContent> browserContent;
}
|
package otf.gui.screens;
import java.sql.Timestamp;
import java.util.Collections;
import bt.gui.fx.core.annot.FxmlElement;
import bt.utils.NumberUtils;
import javafx.application.Platform;
import javafx.beans.property.ReadOnlyStringWrapper;
import javafx.beans.value.ObservableValue;
import javafx.scene.Scene;
import j... |
/*
* 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.pmm.sdgc.converter;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
/**
*
* @author... |
/*
* 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 controllers;
import static services.UserService.getUserByStudentNumber;
import static spark.Spark.*;
import controllers.utils.Request;
import controllers.utils.Response;
import services.UserService.*;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import static services.... |
package com.article.service;
import com.article.entities.Article;
import com.article.repository.ArticleRepository;
import org.jsoup.Jsoup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.util.ArrayList;
import java.u... |
package me.itzg.ghrelwatcher.model;
import lombok.Data;
/**
* @author Geoff Bourne
* @since Jul 2018
*/
@Data
public class ValueHolder<T> {
T value;
public static <T> ValueHolder<T> of(T data) {
final ValueHolder<T> response = new ValueHolder<>();
response.setValue(data);
return re... |
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
只有两种情况:
Case 1:p和q在两棵不同的子树 => 返回current root node
Case 2:p和q在同侧(p在q的子树或q在p的子树)=> 先遇到p就返回p,先遇到q就返回q
*/
class Solution {
public Tree... |
package com.esum.web.apps.dbc.dao;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
imp... |
package com.github.andlyticsproject.util;
import android.os.AsyncTask;
public abstract class DetachableAsyncTask<Params, Progress, Result, Parent> extends
AsyncTask<Params, Progress, Result> {
protected Parent activity;
public DetachableAsyncTask(Parent activity) {
this.activity = activity;
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.