text stringlengths 10 2.72M |
|---|
package com.hl.model;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
public class BaseResponse {
public static <E> ResponseEntity<GenericResponse<E>> ltResponse(E obj, HttpStatus httpStatus) {
GenericResponse<E> restResponseDTO = new GenericResponse<E>(obj, h... |
/*
* [46] Permutations
*
* https://leetcode-cn.com/problems/permutations/description/
*
* algorithms
* Medium (61.27%)
* Total Accepted: 4.3K
* Total Submissions: 7K
* Testcase Example: '[1,2,3]'
*
* 给定一个没有重复数字的序列,返回其所有可能的全排列。
*
* 示例:
*
* 输入: [1,2,3]
* 输出:
* [
* [1,2,3],
* [1,3,2],
* [2,... |
package com.github.jearls.SPRaceTracker.data;
/**
* @author jearls
*/
public interface SeasonObserver {
/**
* @author jearls Used to indicate which part of a Team has changed
*/
public enum SeasonElement {
NAME, TEAMS, RACES, SEASON_ORDER
}
/**
* This method is... |
package com.wangzhu.spring.Processor;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
/**
* Created by wangzhu on 2018/4/24 下午11:41.
*/
public class DefaultPostProcessor implements BeanPostProcessor {
@Override
public Object postProcessBef... |
package com.self.config.dubbo;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
@Configuration
//@ImportResource({ "classpath:dubbo.xml" })
public class DubboConfig {
}
|
package com.tibco.as.util.convert.impl;
public class NumberToString extends AbstractConverter<Number, String> {
@Override
protected String doConvert(Number source) {
return source.toString();
}
} |
package com.example.youtubeex.usecases;
import android.util.Log;
import androidx.lifecycle.MutableLiveData;
import com.example.youtubeex.entities.channelVideos.VideosChannelInfo;
import com.example.youtubeex.entities.channels.ChannelsInfo;
import com.example.youtubeex.usecases.repos.ChannelsRepo;
import io.reactive... |
package de.dotwee.rgb.canteen.model.api.specs;
import android.support.annotation.NonNull;
import java.util.Arrays;
import java.util.Date;
import de.dotwee.rgb.canteen.model.constant.Label;
import de.dotwee.rgb.canteen.model.constant.Price;
import de.dotwee.rgb.canteen.model.constant.Type;
import de.dotwee.rgb.cantee... |
package org.fonuhuolian.videoplay;
import android.content.Context;
import org.fonuhuolian.xvideoplayer.XVideoCallBack;
import org.fonuhuolian.xvideoplayer.XVideoPlayer;
import org.greenrobot.eventbus.EventBus;
import java.util.List;
import cn.jzvd.Jzvd;
import cn.jzvd.JzvdStd;
public class Adapter extends SimpleSi... |
package com.cg.bo.model.security;
import com.cg.bo.model.security.BaseEntity;
import com.cg.bo.model.security.Role;
import lombok.*;
import javax.persistence.*;
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "users")
public class User extends BaseEntity {
@Column(unique = true, nullable = fa... |
package com.nisira.view.Activity;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.transition.Fade;
import android.transition.Slide;
import android.transition.TransitionIn... |
/*
* 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 poker2;
import java.time.LocalDate;
/**
*
* @author Danil
*/
public abstract class Jugador {
private String NIF;
... |
package pkgmain;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Main {
public static void main(String[] args) {
// Logging - only using the slf4j API here
// (logging implementation is added via Runtime option by adding an automatic module,
// see libraries... |
package Class1.InterfaceDemo2;
/**
* Created by FLK on 2019-12-21.
*/
public interface Swimmable {
void swim();
}
|
package com.solucionfactible.dev;
/**
* comp checks whether the two arrays have the "same" elements, with the same multiplicities. "Same" means,
* here, that the elements in b are the elements in a squared, regardless of the order.
*
* @author developer
*/
public class AreSame {
public static boolean comp(in... |
package com.github.life.lab.leisure.backend.gateway.application.service;
import com.github.life.lab.leisure.backend.gateway.model.sign.*;
import com.github.life.lab.leisure.member.authorization.token.impl.AuthToken;
/**
* SignService
*
* @author weichao.li (liweichao0102@gmail.com)
* @date 2018/11/5
*/
public in... |
package com.zjf.myself.codebase.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.zjf.myself.codebase.R;
import java.util.List;
public class MyRecycleViewAdapter1 extends Re... |
package com.framgia.fsalon.screen.listbill;
import android.app.Activity;
import android.app.FragmentManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.support.anno... |
package com.santotomas.peso_usd;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import java.text.DecimalFormat;
public class MainActivity extends AppCompatActivity {
private EditText val_valor1... |
package com.seboid.udembottin;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
imp... |
package com.atguigu.java2;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.junit.Test;
public class MapAPI {
/**
* Set keySet():返回所有key构成的Set集合
Collection values():返回所有value构成的Collection集合
Set entrySet():返回所有key-value对构成的Set集合
*/
@Test
public... |
package com.redhat.service.bridge.executor;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import com.redhat.service.bridge.infra.models.filters.BaseFilter;
import com.redhat.service.bridge.infra.models.filters.StringBeginsWith;
import com.redhat.service.b... |
package cn.huangqiqiang.halbum.activity;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widg... |
package de.cuuky.varo.gui.admin.backup;
import java.io.File;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryCloseEvent;
import org.bukkit.inventory.ItemStack;
import de... |
package com.fourcast.a4cast.Web;
import com.fourcast.a4cast.Utils.WebUtils;
import com.google.gson.annotations.SerializedName;
import java.util.Date;
import java.util.List;
public class CurrentWeather {
private String name;
private Sys sys;
private Main main;
private Wind wind;
private List<We... |
/**
*
*/
package com.android.aid;
import java.util.ArrayList;
import java.util.Iterator;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/**
* @author wangpeifeng
*
*/
public class PackageReceiver extends BroadcastReceiver{
private ReceiverActionDelega... |
package cards;
/**
* Classe que extende Deal para o modo de simulacao.
*
* @author Rui Guerra 75737
* @author Joao Castanheira 77206
*
*/
public class DealSim extends Deal {
public DealSim(int bet, Shoe sh, Player p) {
super(bet, sh, p);
}
public DealSim(int bet, Shoe sh, Player p, Card pc) {
super(b... |
package be.mxs.common.util.io;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.... |
package de.kfs.db.bikemanagent;
import de.kfs.db.SceneManager;
import de.kfs.db.structure.AbstractBike;
import de.kfs.db.structure.BikeKey;
import de.kfs.db.structure.EBike;
import de.kfs.db.structure.InformationWrapper;
import javafx.collections.FXCollections;
import javafx.collections.transformation.FilteredList;
im... |
/**
*
*/
package com.android.aid;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.util.ArrayList;
import android.content.Context;
/**
* @author wangpeifeng
*
*/
public abstract class FileHelper {
protected Context context;
publ... |
package com.stackroute.pe2;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class MemberTest {
Member member;
Member.MemberVariable member1;
@Before
public void setUp() throws Exception {
member = new Member();
member1... |
package com._520it.service;
import java.sql.SQLException;
import java.util.List;
import com._520it.dao.ProductDao;
import com._520it.domain.Product;
import com._520it.vo.PageBean;
public class ProductService {
public List<Product> findAllProduct() throws SQLException {
//将请求和数据传递到dao层
ProductDao dao = new Prod... |
/*
* Copyright (C) 2020 American Registry for Internet Numbers (ARIN)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVI... |
package com.example;
import java.io.*;
import java.net.*;
import java.util.Scanner;
public class Client {
static String DescribeXml="<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n" +
"<rtsp>\r\n" +
" <DESCRIBE>\r\n" +
" <rtsp.request>rtsp://audio.example.com/media.mp3 RTSP/1.0\\\\r\\\\n</rtsp.request>\r... |
package com.mycontacts.model;
public class Contact_Model {
private String contactId,
contactName,
contactNikName,
contactNumberHome,
contactNumberWork,
contactNumberMobile,
contactEmailHome,
contactEmailWork,
contactPh... |
package com.forever.provider;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
* Rabbit消息发送端
*/
@Component
public class RabbitMessageProduc... |
package com.springapp.mvc.web.request;
import com.springapp.mvc.core.Form.Form;
import com.springapp.mvc.core.Form.FormParam;
/**
* Created by lv on 2016/1/5.
*/
@Form
public class MakeWishForm {
@FormParam("wish")
private String wish;
public String getWish() {
return wish;
}
public v... |
package edu.upenn.cis350.androidapp.ui.main;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.LightingColorFilter;
import android.graphics.PorterDuff;
import android.g... |
/*
* 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 br.edu.ifrs.mostra.daos;
import br.edu.ifrs.mostra.utils.ViolationLogger;
import java.io.Serializable;
import java.util.List;
... |
package com.hello.suripu.service.pairing;
public enum PairState{
NOT_PAIRED,
PAIRED_WITH_CURRENT_ACCOUNT,
PAIRED_WITH_OTHER_ACCOUNT,
PAIRING_VIOLATION;
}
|
package logica;
public class Alumno {
//atributos
private String apellido;
private int grupo;
private double cuotaBase;
//constructor por defecto
public Alumno() {
apellido = null;
grupo = 0;
cuotaBase = 0.0;
}
// constructor especifico
public Alumno(String ape, int gru, double cuota) {
apellido = ap... |
package com.sepnotican.stargame.base;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Vector2;
import com.sepnotican.stargame.math.Rect;
import java.util.function.Consumer;
import java.util.function.Function;
public class SimpleButton extends Sprite{
Consumer<SimpleButton> action... |
package com.github.silencesu.helper.http.request.param.get;
import com.github.silencesu.helper.http.request.RequestParams;
import java.util.Map;
/**
* Http Help请求参数
* @author SilenceSu
* @Email Silence.Sx@Gmail.com
* Created by Silence on 2020/10/15.
*/
@FunctionalInterface
public interface GetParams extends R... |
package com.barnettwong.view_library.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.Shader;
import android.graphics.drawable.BitmapDrawable;
import android.text.TextPaint;
import ... |
package com.example.s183363.kadai_app.models;
public class Fire extends GameCharacter {
private Player player = null;
private int ySpeed = 2;
private boolean activeFlag = false;
private OnOverlapListener onOverlapListener;
public Fire(int x){
xSize = 24;
ySize = 48;
... |
package com.crackdevelopers.goalnepal.Latest;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widg... |
package org.example;
import org.example.chatutils.ChatBot;
import org.example.utils.AppConstants;
import org.example.utils.StringUtils;
import java.util.*;
public class App
{
public static void main(String[] args )
{
String startText;
Scanner scan = new Scanner(System.in);
System.... |
package btnhom1;
import javax.swing.*;
import javax.swing.border.TitledBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.io.IOException;
import java.sql.PreparedStatement;
import java.sql.Res... |
public class Scales {
private int[] currScale;
/**
* intialize arrays for scales (constructor)
*/
public Scales() {
currScale = new int[7];
currScale[0] = 2;
currScale[1] = 2;
currScale[2] = 1;
currScale[3] = 2;
currScale[4] = 2;
... |
/*
* Autopsy Forensic Browser
*
* Copyright 2011 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://ww... |
package com.sirma.itt.javacourse.networkingAndGui.task2.downloadAgent;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URLConnection;
import javax.swing.JProgressBar;
import org.apache.log4j.Logger;
import org.junit.Before;
impor... |
package org.base.algorithm.sort;
/**
* Created by wangwr on 2016/6/2.
*/
public class P {
public static void show(String format){
System.out.println(format);
}
public static void show(String format,Object... objs){
System.out.println(String.format(format,objs));
}
}
|
package ul.stage.officeassignment.model;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
import java.io.IOException;
import java.util.ArrayList;
impor... |
/*
* Copyright 2017 Grzegorz Skorupa <g.skorupa at gmail.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 req... |
import sample.Question;
class Quiz extends Question {
private Question []quiz;
int top;
public Quiz(int num) //Number of Question in the quiz
{
quiz = new Question[num];
top = 0;
}
public void addQuestion(String question,String opt1,String opt2,String opt3,String opt4)
{
... |
package com.castis.dto;
import java.util.List;
public class TreeNodeDTO extends NameDTO{
private String id;
private List<TreeNodeDTO> children;
private String fullpath;
public TreeNodeDTO(){
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id =... |
package tech.makers.bank;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
public class Statement {
private final String header = "date || credit || debit || balance\n";
public String print() {
return header;
}
public String print(ArrayList<I... |
/**
* Description: This holds the address of someone
* including their zip code, town, street, and country
* @author Killian O'Dálaigh
* @version 10 October 2018
*/
public class Address {
private String street;
private String town;
private String zip;
private String country;
/*
* Class Constructor with ... |
package ru.shikhovtsev.proxy;
public class Main {
public static void main(String[] args) {
var container = new IoCContainer();
MyService service = getService(container);
service.computeLastDateTime();
service.setCount(123);
service.setParams(1, 5, "simple string");
System.out.println(service.... |
package ch.so.agi.cadastre.webservice;
import org.locationtech.jts.geom.Geometry;
public class Grundstueck {
private String egrid;
private String nummer;
private String nbident;
private String art;
private double flaechenmass;
private Geometry geometrie;
private int bfsnr;
private Str... |
/*
* Copyright (c) 2009, Julian Gosnell
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list ... |
/*
* Test 18
*
* da questo test inizia il test per la generazione di espressioni. Iniziamo da
* ..?..:..
*/
class HelloWorld {
static public void main(String[] argv)
{
int i=1;
int l=2;
int k;
k=i>l ? 10 : 20;
System.out.println(k); // stampo 20.
}
}
|
package com.smart.droidies.tamil.natkati.library.util;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;
public class DownloadUtil {
private final stati... |
package com.cs.persistence;
import com.cs.payment.Currency;
/**
* @author Omid Alaepour
*/
public class InvalidCurrencyException extends RuntimeException {
private static final long serialVersionUID = 1L;
public static final String CURRENCY_IS_NOT_VALID = "Currency: %s not found";
public InvalidCurren... |
/**
* J2HomeWork4
*
* @author Andrew Shevelev
* @version Jun, 16 2018
* @link https://github.com/ShevelevAndrew
*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
public class J2HomeWork4 extends JFrame implements ActionListener {
Dimension sizeScreen = Toolkit.getDefaul... |
package dev.ghimire.daos;
import dev.ghimire.entities.Expense;
import org.apache.log4j.Logger;
import java.util.*;
public class ExpenseDaoLocalImpl implements ExpenseDAO {
public static ExpenseDaoLocalImpl expenseDaoLocal= new ExpenseDaoLocalImpl();
private static int idMaker=0;
private static Map<Inte... |
/*
* 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 search;
import BDD.Requete;
import Entite.Enseignant;
import Entite.Etudiant;
import Entite.Enseignant;
import Entite.User;
im... |
package ua.siemens.dbtool.model.entities;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
/**
* The class is a representation of Profiles of the users
*
* @author Perevoznyk Pavlo
* creation date 29 august 2017
* @version 1.0
*/
@Entity
@Table(name = "profiles")
public class Pro... |
package com.mycompany.controllers;
import com.jfoenix.controls.JFXButton;
import com.mycompany.interacciondb.InfoSuscriptores;
import com.mycompany.interacciondb.datos;
import com.mycompany.interacciondb.extra;
import com.mycompany.persistencia.DataBase;
import com.mycompany.persistencia.Instructor;
import java.net.URL... |
package com.practice.geneticstypetest;
// ジェネリクス(総称型)
public class TestClass<T> {
private T data;
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
}
|
package com.hackthon.kisainsur.src;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import com.hackthon.kisainsur.R;
import ... |
package com.datayes.textmining.storm.topology;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.apache.log4j.Logger;
import com.datayes.textmining.Utils.ConfigFileLoader;
import com.datayes.textmining.U... |
package com.gagetalk.gagetalkcustomer.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.gagetalk.gagetalkcommon.constant.ConstValue;
import com.gagetalk.gagetalkcommon.util.MyLog;
import com.gagetalk.gagetalkcustomer.database.AccessDB;
/**
... |
package com.zareca.prototype;
import java.util.ArrayList;
/**
* @Auther: ly
* @Date: 2020/10/15 11:17
* @Description:
*/
public class PrototypeTest {
public static void main(String[] args) throws Exception {
QiTianDaSheng qiTianDaSheng = new QiTianDaSheng();
qiTianDaSheng.setName("孙悟空");
... |
package com.beike.entity.onlineorder;
import com.beike.entity.merchant.Merchant;
public class BranchInfo extends Merchant {
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result
+ ((branchid == null) ? 0 : branchid.hashCode());
result = prime * result
+ (... |
/*
* 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 servlet;
import java.util.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import con... |
package com.yf.bigdata.kafka.hollysys.factory;
import org.springframework.beans.factory.DisposableBean;
/**
* @author: YangFei
* @description: 服务生命周期
* @create:2020-12-03 15:32
*/
public interface LifeCycle extends DisposableBean, AutoCloseable {
/**
* 描述: 启动服务
*
* @author ZhangYi
* @date ... |
package ru.yandex.yamblz.ui.recyclerstuff;
import android.animation.ArgbEvaluator;
import android.animation.ValueAnimator;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Tex... |
package kr.co.shop.batch.order.model.master;
import kr.co.shop.batch.order.model.master.base.BaseOcOrderProductHistory;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Data
public class OcOrderProductHistory extends BaseOcOrderProductHistory {
}
|
package net.awesomekorean.podo;
import android.content.Context;
import android.util.Log;
import androidx.annotation.NonNull;
import com.android.billingclient.api.AccountIdentifiers;
import com.android.billingclient.api.BillingClient;
import com.android.billingclient.api.BillingResult;
import com.android.billingclien... |
// SPDX-License-Identifier: BSD-3-Clause
// -*- Java -*-
//
// Copyright (c) 2005, Matthew J. Rutherford <rutherfo@cs.colorado.edu>
// Copyright (c) 2005, University of Colorado at Boulder
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted pro... |
package HakerRank.FraudulentActivityNotifications;
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Solution {
static double CalMedian(int[] tmpArr, int d) {
int countSum = 0;
... |
package com.fhsoft.word.control;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowire... |
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.kheirallah.inc.linkedlists;
//Medium
//Crack the coding interview 2.8
/*
Given a circular linked list, implement an algorithm that returns the node at the beginning of the loop.
Definition:
Circular linked list: A (corrupt) linked list in which a node's next pointer points to an earlier node, so a... |
package ch.zli.m223.punchclock.domain;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSeria... |
package com.project.myclassroom1.ui.home;
public class Details {
String Type;
String TeacherName,Date,Link,roll,Marks;
public String getMarks() {
return Marks;
}
public void setMarks(String marks) {
Marks = marks;
}
public String getRoll() {
return roll;
}
... |
package graphvisualizer.graph;
//Interface for the priority queue ADT
public interface PriorityQueue <K,V>{
int size();
boolean isEmpty();
Entry<K,V> insert(K key, V value) throws IllegalArgumentException;
Entry<K,V> min();
Entry<K,V> removeMin();
}
|
package org.group.projects.simple.gis.online.model.transport;
import lombok.*;
@NoArgsConstructor
@AllArgsConstructor
@ToString(includeFieldNames = true)
@EqualsAndHashCode
public class AbstractSearchEntity implements SearchEntity {
@Getter
@Setter
protected String content;
}
|
package fr.eni.cach.clinique.bo;
public class Secretaire extends Personnel {
public Secretaire() {
// TODO Auto-generated constructor stub
}
public Secretaire(int codePersonnel, String nom, String motPasse, String role, boolean archive) {
super(codePersonnel, nom, motPasse, role, archive);
// ... |
package com.feng.collection.map;
import org.junit.Test;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* 常用方法
* 添加、删除、修改操作:
* Object put(Object key,Object value):将指定key-value添加到(或修改)当前map对象中
* void putAll(Map m):将m中的所有key-value对存放到当前map中
* Object re... |
package com.seven.contract.manage.common;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/**
* Created by apple on 2018/12/11.
*/
public interface BaseDao<T> {
public void insert(T t);
public void update(T t);
public T selectOne(@Param("id") long id);
p... |
package webuters.com.geet_uttarakhand20aprilpro.pojo;
import java.util.ArrayList;
import java.util.List;
/**
* Created by sunil on 16-02-2018.
*/
public class LatestSongHolderAdapter {
List<LatestSongPOJO> latestSongPOJOS=new ArrayList<>();
public List<LatestSongPOJO> getLatestSongPOJOS() {
return... |
package com.dambroski.repositories;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.dambroski.domain.Produto;
@Repository
... |
package gr.javapemp.vertxonspring.model;
import io.vertx.codegen.annotations.DataObject;
import io.vertx.core.json.JsonObject;
import javax.persistence.*;
@Entity
@Table(name = "users")
@DataObject(generateConverter = true)
public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
priva... |
package com.huruilei.designpattern.observer;
/**
* @author: huruilei
* @date: 2019/10/31
* @description:
* @return
*/
public interface Subject {
void registerObserver(Observer o);
void removeObserver(Observer o);
void notifyObservers();
}
|
/* ------------------------------------------------------------------------------
* 软件名称:他秀手机版
* 公司名称:多宝科技
* 开发作者:Yongchao.Yang
* 开发时间:2014年7月15日/2014
* All Rights Reserved 2012-2015
* -----------------------------------------------------... |
package come.clientside.models;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Address {
private String cityName;
private String StreetName;
private long pinCode;
}
|
package com.lifeplan.lifeplanapplication;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;
public class LifePlanE... |
package Models;
import java.sql.Date;
public class Abono {
private int idAbono;
private int CodigoFactura;
private double Monto;
private Date fecha;
private int idTipoDePago;
public Abono() {
}
public Abono(int idAbono, int CodigoFactura, double Monto, Date fech... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.