text stringlengths 10 2.72M |
|---|
/**
*
*/
package com.shubhendu.javaworld;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
/**
* @author ssingh
*
*/
public class LFUCache {
private int maxCapacity;
private Map<Integer, Integer> valuesMap;
private Map<Integer, Integer> frequencyMap;
private Map<Integer, Link... |
package com.tencent.mm.plugin.sns.model;
import com.tencent.mm.bt.h.d;
import com.tencent.mm.plugin.sns.storage.o;
class af$36 implements d {
af$36() {
}
public final String[] xb() {
return o.diD;
}
}
|
package com.uptc.prg.maze.model.data.mazegraphlist;
import com.uptc.prg.maze.model.data.graphlist.EdgeType;
public class MazeEdge {
private MazeVertex mTargetVertex;
private int mEdgeWeight;
private EdgeType mEdgeType;
public MazeEdge(MazeVertex targetVertex, int edgeWeight, EdgeType edgeType) {
... |
package udacity.project.lynsychin.popularmovies.database;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;
import java.util.List;
@Dao
public interf... |
package filters;
public class EmptyFilter implements Filter
{
@Override
public String execute(String password) throws Exception
{
return password;
}
}
|
package com.hqb.patshop.mbg.model;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* ums_member
* @author
*/
@Data
public class UmsMember implements Serializable {
private Long id;
private Long memberLevelId;
/**
* 用户名
*/
private String username;
/**
... |
package lesson29.Ex5;
import java.util.Date;
public class Manager extends Employee {
private Date startDay;
private Date endDay;
public Manager() {
}
public Manager(Date startDay, Date endDay) {
this.startDay = startDay;
this.endDay = endDay;
}
public Manager(Employee em... |
/*
* Copyright 2015 Eduard Scarlat
*
* 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 in writing... |
package com.example.demo.services;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import com... |
/**
* @Title: ListUtils.java
* @package com.rofour.baseball.tools
* @Project: axp-tools
* @Description: (用一句话描述该文件做什么)
* @author wjj
* @date 2016年4月2日 下午10:38:14
* @version V1.0
* ──────────────────────────────────
* Copyright (c) 2016, 指端科技.
*/
package com.rofour.baseball.common;
import java.io.ByteArrayInputSt... |
/*******************************************************************************
* Besiege
* by Kyle Dhillon
* Source Code available under a read-only license. Do not copy, modify, or distribute.
******************************************************************************/
package kyle.game.besiege.party;
... |
package com.demo.controller;
import com.demo.entity.Weather;
import com.demo.model.WeatherSummary;
import com.demo.repository.IWeatherRepository;
import com.demo.service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org... |
package com.sysh.mapper;
import com.sysh.entity.helpmea.EcologicalPovertyDD;
public interface EcologicalPovertyDDMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TBL_ECOLOGICAL_POVERTY
*
* @mbg.generated
*/
int deleteByPrim... |
package com.jk.jkproject.net.im;
import android.util.Log;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.handler.codec.oneone.OneToOneEncoder;
public class ... |
package com.example.administrator.hyxdmvp.ui.presenter.login;
import com.example.administrator.hyxdmvp.bean.LoginBean;
public interface ILoginPresenter {
void success(LoginBean bean);
void fail(String s);
void goRequest(String userName , String pws );
void onDestroy();
}
|
/*
* 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 sketchit;
import javafx.scene.shape.Line;
import javafx.scene.shape.Shape;
/**
*
* @author Mason
*/
public class LineBrush... |
import javax.swing.*;
public class Main extends JFrame implements Constans {
public Main(){
setDefaultCloseOperation(EXIT_ON_CLOSE);
setVisible(true);
setSize(BOARD_HEIGHT, BOARD_WIDTH);
setResizable(false);
add(new Board());
}
public static void main(String[] args)... |
package skiplist;
import java.lang.reflect.Array;
import java.lang.IllegalStateException;
import java.util.AbstractList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.Random;
/**
* Implements the List interface as a skiplist so t... |
package searchcodej.util;
import static org.junit.Assert.*;
import org.junit.Test;
public class RegexMatchTest {
@Test
public void testMatchInsideOtherMatch() throws Exception {
//when both are equals
RegexMatch match1 = new RegexMatch(1, 2);
RegexMatch match2 = new RegexMatch(1, 2);
assertT... |
package pl.edu.pw.mini.gapso.optimizer.move;
import org.junit.Assert;
import org.junit.Test;
import pl.edu.pw.mini.gapso.configuration.MoveConfiguration;
import pl.edu.pw.mini.gapso.function.ConvexSquareFunction;
import pl.edu.pw.mini.gapso.function.Function;
import pl.edu.pw.mini.gapso.function.FunctionWhiteBox;
impo... |
package pl.java.scalatech.lifecycle.handler;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ResourceLoaderAware;
import org.springframework.core.i... |
package com.tencent.mm.g.a;
public final class kf$a {
public int type;
}
|
package io.fab.connector.processors;
import org.springframework.stereotype.Component;
import io.fab.connector.data.CatalogEventMessage;
@Component
public class OrderDelayEventProcessorStrategy implements CatalogEventProcessorStrategy {
@Override
public void processCatalogEvent(final CatalogEventMessage message) ... |
package com.tencent.mm.protocal;
import com.tencent.mm.protocal.c.awe;
import com.tencent.mm.protocal.k.c;
import com.tencent.mm.protocal.k.e;
public final class s {
public static class b extends e implements c {
public awe qWX = new awe();
public final int G(byte[] bArr) {
this.qWX ... |
package edu.uci.ics.sdcl.firefly.storage;
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.util.ArrayList;
import edu.uci.ics.sdcl.firefly.report.analysis.FilterContent;
im... |
package info.rothem.sales.salesbackend.controller;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
... |
/* -*- Mode:jde; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2015 Regents of the University of California
*
* This file is part of NFD (Named Data Networking Forwarding Daemon) Android.
* See AUTHORS.md for complete list of NFD Android authors and contributors.
*
* NFD Android is free sof... |
package sosis.AndroidApps.HoManager;
import android.content.ContentProviderOperation;
import android.content.ContentProviderResult;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.OperationApplicationException;
import android.graphics.Color;
i... |
package com.advancetopics.testcases;
import java.io.FileReader;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import org.testng.annotations.Test;
import com.opencsv.CSVReader;
public class ReadCSVFile {
@Test
public void readCSVData() throws Exception{
CS... |
package com.starry.mandarine.biz.domain;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
@Data
public class FileBrowser implements Serializable {
private static final long serialVersionUID = -7973229445635808764L;
List<ViewDirectory> viewDirectoryList;
List<ViewFile> viewFi... |
package Lab02.Zad2;
public class DolbyProLogic implements Codec{
public void codec(){
System.out.println("DolbyProLogic sound");
}
}
|
package gretig.datastructuur;
/**
* Created by brent on 10/8/16.
*/
public class Boog {
private int id;
private Top t1;
private Top t2;
public Boog(int id, Top t1){
this.id=id;
this.t1 = t1;
}
/**Notify beide partijen dat ze er een buur bijhebben.
* @param t2: buurman
... |
package com.kenan;
//interface (Product)
public interface Logger {
public void log( String message );
} |
package org.codejudge.sb.enums;
public enum Location_type {
country,city,zip;
}
|
package com.example.network;
import java.util.ArrayList;
import com.example.network.adapter.FriendExpandAdapter;
import com.example.network.bean.Friend;
import com.example.network.bean.FriendGroup;
import com.example.network.bean.FriendResp;
import com.example.network.task.QueryFriendTask;
import com.example.network.... |
package LC200_400.LC350_400;
import LeetCodeUtils.MyGraph;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
/**
* 2020-09-28 10:11 AM at Hangzhou
*/
public class LC399_Evaluate_Division {
public double[] calcEquation(List<List<Str... |
package gov.virginia.dmas.dao;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import gov.virginia.dmas.entity.AssignmentEntity;
import gov.virginia.dmas.entity.RequestorInternalEntity;
public interface AssignmentRepository extends JpaRepository<AssignmentEntity, Long>{
publi... |
package tema13.estrutura;
import tema13.estrutura.contatoDependencies.Email;
import tema13.estrutura.contatoDependencies.SMS;
import tema13.interfaces.IContato;
import java.util.Optional;
public class Contato implements IContato {
private String nome;
private Optional<SMS> telefone;
private Em... |
package zystudio.cases.javabase.clsload.case3;
import zystudio.mylib.utils.LogUtil;
/**
* Created by zylab on 2017/12/3.
*/
public class BaseClass {
private int num=1;
public BaseClass(){
print();
}
public void print(){
//是0额,是0额,父类的构造函数调用时,子类的成员变量还没初始化呢,所以连1都不是,是0
LogUti... |
package com.rca_gps.app.util;
/**
* 类名: com.rca_gps.app.util.AppUrl
* 作者: yanhao
* From:
* 功能 :
* 创建日期: 2016-10-27 21:14
* 修改日期: 2016-10-27 21:14
*/
public class AppUrl {
//测试地址
// public static final String BASE_URL = "http://ras-dev.rcaservice.com.cn";
public static final String BASE_URL = "https... |
package com.hp.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.hp.entity.Provider;
import com.hp.entity.UserContactus;
import com.hp.repository.UserContactusRepository;
@Component
pu... |
package net.minecraft.advancements;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Sets;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonObject;
import com.google.gson.JsonSyntaxException;
import java.io.IOException;
impor... |
package com.acme.storeserver.model;
import lombok.*;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "store")
public class Store implements Seri... |
package ciclo3.retos.backend.repositorios;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import ciclo3.retos.backend.crudrepositorio.ClientCrudRepository;
import ciclo3.retos.backend.entidades.Client;
... |
import java.util.HashMap;
import java.util.Map;
public class Tap_Code {
public static Map<String, Character> DECODE = new HashMap<>();
static {
//ENCODE HashMap
DECODE.put(". .", 'a');
DECODE.put(". ..", 'b');
DECODE.put(". ...", 'c');
DECODE.put(". ....", 'd');
... |
package cn.bs.zjzc.div;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.util.AttributeSet;
import android.view.View;
/**
* Created by Ming on 2016/5/30.
*/
public class DashLine extends View {
public DashLine(Context context) {
this(context, null);
}
publ... |
package com.av.payment.repository.persistor;
import com.av.payment.model.SubscriptionRequest;
import org.springframework.stereotype.Component;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Aman Verma on 18/03/2018.
*
* Persister class can be switched based on <link... |
package com.google.android.gms.common.api;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.signin.internal.AuthAccountResult;
import com.google.android.gms.signin.internal.b;
import java.lang.ref.WeakReference;
class m$a extends b {
private final WeakReference<m> aLb;
m$a... |
package gui;
import control.WireSensorTFake;
import control.WirelessSensorT;
import control.WirelessSensorTFake;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class RoomMonitorPage extends Thread implements ActionListener {
private CWFram... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.devtools_bridge.gcd;
import android.util.JsonReader;
import android.util.Log;
import org.chromium.components.devtools_br... |
/*
* datosreg_qualitas.java
*
* Created on 10 de enero de 2008, 17:24
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package herramientas;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql... |
package com.tencent.mm.plugin.sns.ui;
import android.view.View;
class bh$a {
View nid = null;
String ntR;
final /* synthetic */ bh ohO;
public bh$a(bh bhVar, String str, View view) {
this.ohO = bhVar;
this.ntR = str;
this.nid = view;
}
}
|
package net.suntrans.haipopeiwang.bean;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Looney on 2018/3/5.
* Des:
*/
public class TenDevice {
public List<TenSwitchItem> datas = new ArrayList<>();
TenDevice() {
for (int i=0;i<=10;i++){
TenSwitchItem item = new Ten... |
package com.b12.inventory.inventoryService.service;
import java.util.List;
import com.b12.inventory.inventoryService.model.Inventory;
public interface InventoryService {
public List<Inventory> getAllProducts();
public Inventory getProductByName(String name);
public List<Inventory> getProductByGro... |
package com.example.v2.socket;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
/**
* InetAddress IP地址
*
* InetSocketAddress IP套字节地址(IP地址 + 端口)
*/
public class InetAddressTest
{
public static void main(String[] args) throws IOException
{
InetAddress loca... |
package com.tencent.mm.plugin.sport.c;
import android.os.Looper;
import com.tencent.mm.g.a.fh;
import com.tencent.mm.g.a.qt;
import com.tencent.mm.kernel.g;
import com.tencent.mm.sdk.b.a;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
import com.te... |
package com.example.renzo.alarmagarage;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by Renzo on 23/10/2016.
*/
public class UsuariosSQLiteHelper extends SQLiteOpenHelper {
String sqlCreateUsuario = "CREATE TABLE U... |
package com.kunsoftware.controller.front;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.apache.commons.lang3.time.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.an... |
package com.mx.profuturo.bolsa.service.desk;
import com.mx.profuturo.bolsa.model.desk.dto.DeskDTO;
import com.mx.profuturo.bolsa.model.desk.vo.EscritorioVO;
import com.mx.profuturo.bolsa.model.restclient.RequestBean;
import com.mx.profuturo.bolsa.util.exception.custom.GenericStatusException;
import com.mx.profuturo.bo... |
/*
* 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 subclases;
/**
*
* @author ESTUDIANTE
*/
public class Gato implements Animal{
@Override
public void rugir() {
... |
package com.meroapp.meroblog.service;
import org.springframework.web.multipart.MultipartFile;
public interface UploadService {
public boolean uploadImage(MultipartFile image);
}
|
package com.retail.discounts.controller;
/*
* Author : Abdul Haq Shaik
* */
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
im... |
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.RechteckType;
import java.io.StringWriter;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.namespace.QName;
public class RechteckTypeBuilder
{... |
public class Pair<T, S>{
private final T first;
private final S second;
public Pair(T first, S second){
this.first = first;
this.second = second;
}
public T getFirst(){
return first;
}
public S getSecond(){
return second;
}
@Override
... |
package com.example.android.customerapp.models;
import java.io.Serializable;
public class RecipeImage implements Serializable {
private int id;
private String s3Url;
public RecipeImage(int id, String s3Url) {
this.id = id;
this.s3Url = s3Url;
}
public int getId() {
return... |
package com.zest.web.client.dao.category;
import java.util.List;
import com.zest.web.client.model.CategoryPageVO;
import com.zest.web.client.model.CategoryVO;
public interface CategoryDAO {
//카테고리 리스트를 불러오는 DAO
List<CategoryVO> getCategoryList();
// 카테고리(대분류) 페이지 리스트를 불러오는 메서드
List<CategoryPageV... |
package com.tencent.mm.protocal.c;
import com.tencent.mm.bk.a;
public final class amn extends a {
public String bWP;
public int huV;
public String hwg;
public String rIw;
public int rPk;
public long rPl;
public long rPm;
public String rrW;
public long ruW;
protected final int ... |
package com.sky.contract.service;
import com.sky.contract.mapper.PermissionMapper;
import com.sky.contract.model.Permission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* Created by shiqm on 201... |
/**
* ファイル名 : MVsmUserMapper.java
* 作成者 : nv-manh
* 作成日時 : 2018/05/31
* Copyright © 2017-2018 TAU Corporation. All Rights Reserved.
*/
package jp.co.tau.web7.admin.supplier.mappers;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import jp.co.tau... |
package com.tencent.mm.protocal.c;
import f.a.a.b;
import f.a.a.c.a;
import java.util.LinkedList;
public final class azu extends bhp {
public int iwS;
public String iwT;
public azv scs;
public azj sct;
public LinkedList<azi> scu = new LinkedList();
public int scv;
protected final int a(in... |
package com.tencent.mm.ac;
import com.tencent.mm.ac.e.a;
import com.tencent.mm.ac.e.a.b;
import com.tencent.mm.g.c.ai;
import com.tencent.mm.g.c.am;
import com.tencent.mm.kernel.g;
import com.tencent.mm.model.s;
import com.tencent.mm.plugin.messenger.foundation.a.i;
import com.tencent.mm.sdk.platformtools.bi;
import c... |
package controller;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.ListIterator;
public class Renner {
private Date geboorteDatum;
private char geslacht;
private String naam, voorNaam;
private List<Date> trainingenAanwezig;
Renner(Date bd, char gender, String name, St... |
package org.sodeja.stm;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
import org.sodeja.collections.PersistentSet;
import org.sodeja.lang.IDGenerator;
... |
import java.util.*;
import java.io.*;
public class GestaoGeral implements Serializable {
// variaveis de instancia
private GestaoAluguer alugueres;
private GestaoAtor atores;
private GestaoVeiculo veiculos;
// construtores
public GestaoGeral() {
this.alugueres = new GestaoAluguer();
... |
package com.bitbus.fantasyprep;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.apache.commons.csv.CSVFormat;
import org.apache.co... |
/* 1: */ package com.kaldin.email.hibernate;
/* 2: */
/* 3: */ import com.kaldin.common.util.HibernateUtil;
/* 4: */ import com.kaldin.common.util.PagingBean;
/* 5: */ import com.kaldin.email.dto.EmailTemplateDTO;
/* 6: */ import java.util.Iterator;
/* 7: */ import java.util.Li... |
package org.christophe.marchal.redis.client.jedis.utils;
import java.util.List;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.PipelineBlock;
import redis.clients.jedis.exceptions.JedisConnectionException;
public class JedisExecutor {
private JedisPool pool;
pri... |
/*
* 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 Project;
import java.awt.Color;
import java.awt.Font;
import java.util.ArrayList;
import javax.swing.JLabel;
import javax.swing... |
///*
//package com.tutorial.batch.job;
//
//import lombok.NoArgsConstructor;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.batch.core.ExitStatus;
//import org.springframework.batch.core.Job;
//import org.springframework.batch.core.Step;
//import org.springfram... |
package dyvilx.tools.gradle;
import org.gradle.api.file.FileTree;
import org.gradle.api.file.RelativePath;
import org.gradle.api.file.SourceDirectorySet;
import org.gradle.api.tasks.*;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class GenSrcRunTask extends JavaExec
{
protected Sou... |
package test.main;
/*
* 3. 비교 연산자 테스트
* - 비교 연산의 결과는 boolean type 이다.
* ==, !=, >, >=, <, <=
*/
public class MainClass03 {
public static void main(String[] args) {
boolean result1=10==10;//true
boolean result2=10!=10;//false
boolean result3=10>100;//false
boolean result4=10>=10;//true
boolean resul... |
package assemAssist.model.facade;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import assemAssist.TestInit;
import assemAssist.model.company.CarManufacturingCompany;
/**
* A test class for the Facade class.
*
* @author SWOP Group 3
* @version 3.0
*/
public cla... |
package edu.buet.cse.spring.ch07.v2.service;
import java.util.List;
import edu.buet.cse.spring.ch07.v2.model.Message;
import edu.buet.cse.spring.ch07.v2.model.User;
public interface ChirperService {
User getUser(Long id);
User getUser(String username);
Message getMessage(Long id);
List<Message> getMessage... |
/**
* @author yuanwq, date: 2017年7月23日
*/
package com.xwechat.api.jssdk;
import com.xwechat.api.Apis;
import com.xwechat.api.AuthorizedApi;
import com.xwechat.api.jssdk.JsapiTicketApi.JsapiTicketResponse;
import com.xwechat.core.IWechatResponse;
import com.xwechat.enums.TicketType;
/**
* 获取jsapi ticket接口,用于公众号的各种接... |
package net.minecraft.inventory;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.tileentity.TileEntityEnderChest;
public class InventoryEnderChest ... |
package me.xuyupeng.share;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
/**
* 字节码读取示例
*
* @author : xuyupeng
* @date 2020/3/21 13:32
*/
public class BcReadDemo {
public static void main(String... |
/*
* Copyright 2013 Cloudera.
*
* 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 i... |
package com.example.administrator.recyclerviewdemo;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.wid... |
package com.fleet.async.controller;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController
public class TestController {
@Resource
... |
package com;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
import java.util.LinkedList;
import java.util.Queue;
public class TreeNode {
public int val;
public TreeNode left;
public TreeNode right;
public TreeNode() {
}
public TreeNode(int val) {
this.val = val;
}
public TreeNode(int va... |
package com.cognizant.controller;
//import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web... |
/*
* Copyright 2005-2010 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
package org.javamisc.csv;
import org.junit.*;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.BufferedReader;
import java.util.Set;
import java.util.HashSet;
import java.util.Random;
public class CsvTest
{
String xyData;
private static int xyFunction(int x... |
package Xmlparser;
import java.io.*;
import java.util.HashSet;
import javax.xml.parsers.*;
import org.w3c.dom.*;
import org.xml.sax.SAXException;
import weborder.*;
import java.util.*;
public class XMLParse
{
private static List ordersList;
public XMLParse()
{
DocumentBuilderFactory factory =... |
package controller.command.impl;
import controller.command.Command;
import controller.constants.FrontConstants;
import controller.exception.ServiceLayerException;
import controller.service.BusService;
import controller.service.ServiceFactory;
import controller.service.impl.ServiceFactoryImpl;
import controller.constan... |
package EmptyClass;
import java.util.ArrayList;
//this class save current student's information
public class CurrentStudentInfo {
public static ArrayList<String> studnetID = new ArrayList<String>();
}
|
package com.cnk.travelogix.v2.controller;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springfra... |
package corejava.io.files;
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.Charset;
import java.util.Map;
import java.util.Scanner;
/**
* Created by xulz on 2017/3/12.
*/
public class IO {
public static void main(String[] args) throws Exception {
System... |
public class Wlj{
private int id;//这是Id
}
|
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
public int deepestLeavesSum(TreeNode root) {
Queue<TreeNode>
q = new LinkedList();
int count = 1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.