text stringlengths 10 2.72M |
|---|
package ch.springcloud.lite.core.model;
import lombok.Data;
@Data
public class JVMHeap {
long init;
long used;
long total;
}
|
/*
********************************************************************************
* システム:i-mode chat management *
*==============================================================================*
* クラス :FileIO |モジュール:FileIO.java *
* 概要 :ファイル/ディレ... |
package project2_JavaToJSON.service;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;
import project2_JavaToJSON.model.DownStreamResponse;
import project2_JavaToJSON... |
package com.company;
public class BloodType {
private int recordId;
private String bloodType;
public int getRecordId() {
return recordId;
}
public void setRecordId(int recordId) {
this.recordId = recordId;
}
public String getBloodType() {
return bloodType;
}
... |
package net.liuzd.spring.boot.v2.config;
import java.util.List;
import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;
import net.liuzd.spring.boot.v2.methods.DeleteAll;
/**
* 自定义 SqlInjector
*
* @author miemie
* @since 201... |
package com.metacube.EADAssignment6.dao;
import com.metacube.EADAssignment6.model.Login;
public interface Admindao
{
//updates the password into database
public boolean updatePassword(Login login);
//gets the login details from tha database
public Login getLoginbyUserName(String username);
}
|
package b2cservices;
import java.util.*;
import java.io.Serializable;
import de.hybris.platform.util.*;
import de.hybris.platform.core.*;
import de.hybris.platform.jalo.JaloBusinessException;
import de.hybris.platform.jalo.type.*;
import de.hybris.platform.persistence.type.*;
import de.hybris.platform.persistence.en... |
package com.thoughtmechanix.licenses.domain;
import lombok.*;
import javax.persistence.*;
@Entity
@Table
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@Builder
public class License {
@Id
@Column(name = "license_id", nullable = false)
private String licenseId;
@Column(name = "organization_id... |
package com.facebook.react.bridge;
public class PromiseImpl implements Promise {
private Callback mReject;
private Callback mResolve;
public PromiseImpl(Callback paramCallback1, Callback paramCallback2) {
this.mResolve = paramCallback1;
this.mReject = paramCallback2;
}
@Deprecate... |
package com.immotor.bluetoothadvertiser.command.response;
import android.bluetooth.BluetoothGattCharacteristic;
import com.immotor.bluetoothadvertiser.command.Command;
/**
* Created by ForestWang on 2016/3/31.
*/
public class BatteryState extends Command {
private final int Level;
private final int Capaci... |
package it.micheleorsi.application.usecase.querySymbol;
import it.micheleorsi.application.model.GalacticSymbol;
import it.micheleorsi.application.service.GalacticToDecimalMapping;
import it.micheleorsi.application.usecase.SymbolNotFoundException;
import it.micheleorsi.application.usecase.UseCaseRequestReply;
public c... |
package jiang.newspaper.utils;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by 在云端 on 2017/3/21.
* 缓存软件的一些参数和数据
*/
public class CacheUtils {
//缓存boolean类型
public static Boolean getBoolean(Context context, String key) {
SharedPreferences sp = context.getSh... |
package ecutb.fishingtrip.data;
import ecutb.fishingtrip.entity.Species;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import java.util.List;
import java.util.Set;
public interface SpeciesReposi... |
package com.example.administrator.hyxdmvp.base;
import android.content.Context;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DatabaseHelper extends SQLiteOpenHelper {
public DatabaseHelper(Context context... |
package ElementsOfProgrammingInterview.BinaryTreeChapter;
public class BinaryTreeNode<T> {
public T data;
public BinaryTreeNode left, right;
public BinaryTreeNode(T data) {
this.data = data;
}
public static void treeTraversal(BinaryTreeNode<Integer> root) {
if (root != null) {
... |
package com.tencent.mm.ui.conversation;
import com.tencent.mm.ui.conversation.AppBrandServiceConversationUI.AppBrandServiceConversationFmUI;
import com.tencent.mm.ui.r.a;
class AppBrandServiceConversationUI$AppBrandServiceConversationFmUI$6 implements a {
final /* synthetic */ AppBrandServiceConversationFmUI umW;... |
package ua.khai.slynko.library.web.command.admin;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ua.khai.slynko.library.constant.Constants;
import ua.khai.slynko.library.db.entity.Role;
import ua.khai.slynko.library.db.dao.UserDao;
import ua.khai.slynko.library.db.... |
package Lab05.Zad6_7;
public class Draw extends SterownikDekorator{
public Draw(SterownikDekorator st, int x, int y)
{
super(st,x,y);
}
@Override
public void Start(int x, int y) {
}
@Override
public void End(int x, int y) {
}
}
|
package com.example.demo.isp.wrong;
import org.assertj.core.api.Assertions;
import org.junit.Test;
public class PrinterTest {
@Test
public void allinone() {
IPrinter printer = new AllInOnePrinter("allinone");
Assertions.assertThat(printer.printPage()).isEqualTo("allinone: print");
A... |
package com.other.updown.domain.vo;
import lombok.Data;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.servlet.view.AbstractView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.net.URLEncoder;
import java.util.Map;
/**
* poi的Work... |
package com.example.coronapp.service;
import com.example.coronapp.entity.Hopital;
import com.example.coronapp.entity.Humain;
import com.example.coronapp.enumeration.EtatDeSante;
import com.example.coronapp.enumeration.Ville;
import com.example.coronapp.repository.IHopitalRepo;
import lombok.RequiredArgsConstructor;
im... |
package id.ac.ub.ptiik.papps.interfaces;
import id.ac.ub.ptiik.papps.base.Karyawan;
import java.util.ArrayList;
public interface KaryawanIndexInterface {
public void onRetrievingStart();
public void onRetrieveComplete(ArrayList<Karyawan> karyawanList);
public void onRetrieveFail(String error);
}
|
package com.ansteel.report.dc.domain;
import com.ansteel.core.constant.Constants;
import com.ansteel.core.domain.TreeEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;
import javax.persistence.*;
import java.util.ArrayList;
i... |
package com.b2b.credit.manageweb.controller;
import com.b2b.credit.bean.NplmBorrowerInfo;
import com.b2b.credit.bean.NplmContractAttribute;
import com.b2b.credit.bean.NplmLoanContract;
import com.b2b.credit.manageweb.service.ManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... |
package com.ifisolution.cmsmanagerment.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.s... |
package pl.finapi.paypal;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.joda.time.DateTim... |
package com.tencent.mm.plugin.clean.ui.newui;
import android.view.View;
import android.view.View.OnClickListener;
class CleanChattingUI$4 implements OnClickListener {
final /* synthetic */ CleanChattingUI hTu;
CleanChattingUI$4(CleanChattingUI cleanChattingUI) {
this.hTu = cleanChattingUI;
}
... |
package com.jim.multipos.ui.service_fee_new;
import com.jim.multipos.core.BaseView;
import com.jim.multipos.data.db.model.ServiceFee;
import com.jim.multipos.ui.service_fee_new.model.ServiceFeeAdapterDetails;
import java.util.List;
/**
* Created by Portable-Acer on 28.10.2017.
*/
public interface ServiceFeeView e... |
package com.mitelcel.pack.ui;
import android.os.Bundle;
import android.os.StrictMode;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.Gravity;
import android.view.View;
import com.android.debug.hv.ViewServer;
import com.mitelcel.pack.BuildConfig;
import co... |
package com.beetle.kefu.model;
import com.google.code.p.leveldb.LevelDB;
public class User {
public long appID;
public long uid;
public String name;
public String avatarURL;
public int timestamp;
//name为nil时,界面显示identifier字段,未被保存
public String identifier;
public static void save(User u... |
package com.trust.demo.code.perssion;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.trust.demo.BaseActivity;
import com.trust.demo.R;
public class PerssionActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCr... |
package exerciciosAulas16e17;
import java.util.Scanner;
public class Exercicio_14_DezNum {
public static void main(String[] args) {
/*
* https://www.slideshare.net/loianeg/curso-java-basico-exercicios-aulas-16-17
* Faça um programa que peça dez números inteiros, calcule e mostre a quantidade de números p... |
package com.ashokit.controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelA... |
import java.util.Random;
public class Universe {
public static int size;
public static String[][] universe;
public static int livesNo = 0;
public static int generationNo = 1;
public Universe(int size) {
Universe.size = size;
Universe.universe = new String[size][size];
... |
/**
*/
package org.ecsoya.yamail.model.provider;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.ed... |
package com.ing.product.controller;
import java.util.List;
import com.ing.product.model.ProductDetails;
public interface ProductDetailsControllerApi {
public List<ProductDetails> getProductDetails( Long id);
}
|
package leecode.other;
import java.util.LinkedList;
import java.util.Queue;
//https://blog.csdn.net/weixin_43338519/article/details/97510825
public class 用队列实现栈_225 {
class MyStack {
public Queue<Integer> data;
public Queue<Integer> help;
/** Initialize your data structure here. */
... |
package frc.robot.subsystems;
import com.revrobotics.CANSparkMax;
import com.revrobotics.CANSparkMaxLowLevel.MotorType;
import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
public class AcquisitionSubsystem extends SubsystemBase {
private CANSpa... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package it.polito.tdp.anagrammi.model;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import it.polito.tdp.anagrammi.DAO.ParolaDAO;
public class Model {
private ParolaDAO parolaDao;
private List<String> giusti;
private List<String> s... |
package com.tencent.mm.g.a;
import com.tencent.mm.sdk.b.b;
public final class pn extends b {
public a cap;
public b caq;
public pn() {
this((byte) 0);
}
private pn(byte b) {
this.cap = new a();
this.caq = new b();
this.sFm = false;
this.bJX = null;
}
}... |
package pwr.chrzescijanek.filip.gifa.core.function;
import org.opencv.core.Mat;
/**
* A function that evaluates global image features.
*/
@FunctionalInterface
public interface EvaluationFunction {
/**
* Evaluates global features of given images.
*
* @param images images to be evaluated
* @return evaluatio... |
package br.com.teste_yank.telas;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
impo... |
package com.herz.sockets.server;
import java.io.IOException;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
public class ServerRunner {
private ServerSocket mServerSocket;
private Socket mSocket;
public static void main(String[] args) {
if (args.length != 1) {
... |
/*
* Copyright 2002-2016 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 ap... |
package random_int;
import java.util.Random;
public class Principal {
public static void main(String[] args) {
//Instanciando um objeto
Random gerador = new Random();
//Criando uma variavel e add um valor numérico randomico~
int resultado = gerador.nextInt();
//Exibindo o valor da variavel resultad... |
package de.dhbw.studientag.model;
import java.io.Serializable;
public enum Faculty implements Serializable{
TECHNIK(1), WIRTSCHAFT(2), SOZIALWESEN(3);
private int id;
Faculty(int id){
this.id=id;
}
public static Faculty getById(int id) {
for(Faculty f : values()) {
if(f.ge... |
package com.adm.tools.common.autenvironment.request.get;
import com.adm.tools.common.autenvironment.request.AUTEnvironmentResources;
import com.adm.tools.common.sdk.Client;
import com.adm.tools.common.sdk.request.GeneralGetRequest;
public class GetAutEnvFoldersByIdRequest extends GeneralGetRequest {
private Stri... |
package com.haidroid.duoihinhbatbong.model;
public class AnwserWord {
private int tagFrom;
private int tagTo;
private String word;
public AnwserWord() {
super();
}
public AnwserWord(int tagFrom, int tagTo, String word) {
super();
this.tagFrom = tagFrom;
this.tagTo = tagTo;
this.word = word;
}
publ... |
package utils;
import android.os.Environment;
import entity.Persona;
import com.example.josen.tarea_04_g06.RegistroActivity;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.lang.reflect.Array;
import java.lang.reflect.Method;
import java.... |
package hello;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
imp... |
package abstra;
abstract class Abstract {
void vehicle()
{
System.out.println("heyy i'm the method of class anotherabstract");
}
abstract void car();
}
class Abs extends Abstract{
void car() {
System.out.println("hey another abstract");
}
}
class Anotherabstract {
public static void main(Str... |
package pizzaml.dao;
import java.util.List;
import pizzaml.entity.Item;
import pizzaml.entity.ItemSizeCost;
public interface ItemDAO {
public abstract Item getItem(int id);
public abstract void createItem(Item item);
public abstract void updateItem(Item item);
public abstract void deleteIt... |
package br.com.sistemamedico.validation;
import br.com.sistemamedico.models.Exame;
import br.com.sistemamedico.models.Paciente;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
public class ExameValidation implements ... |
package com.eCommerce.eComApp.repository;
import com.eCommerce.eComApp.model.Client;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface ClientRepository extends MongoRepository<Client,String> {
}
|
package main.java.model.solarsetup;
// Author: Alexander Larnemo Ask, Jonatan Bunis, Vegard Landrö, Mohamad Melhem, Alexander Larsson Vahlberg
// Responsibility: Representation of a premium solar panel. Concrete implementation of a solar panel.
// Used by: SolarSetup.
// Uses: Holds data specific to a premium type of ... |
package com.example.test;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.uber.sdk.android.rides.RideParameters;
import com.uber.sdk.android.rides.RideRequestActivityBehavior;
public class UberActivity extends AppCompatActivity {
@Override
public void onCreate(Bundle sa... |
package com.sanchezquality.service;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Se... |
package me.bactoria.celebbatch;
import me.bactoria.celebbatch.channel.Channel;
import me.bactoria.celebbatch.channelLog.ChannelLog;
import me.bactoria.celebbatch.channelLog.ChannelLogPk;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
import java.io.IOException;
import java.... |
package com.weida.easycollege.service;
import com.weida.easycollege.dto.IdsDto;
import com.weida.easycollege.dto.ReturnDto;
import com.weida.easycollege.interfaces.IAuthorization;
import com.weida.easycollege.po.UserPo;
import com.weida.easycollege.repository.UserRepository;
import org.springframework.beans.factory.an... |
package com.jvm;
public class TestClassLoader {
public static void main(String[] args) throws ClassNotFoundException {
ClassLoader loader1 = new FileSystemClassLoader("d:/test");
// FileSystemClassLoader loader2 = new FileSystemClassLoader("d:/test");
Class<?> class1 = loader1.loadClass("com.walkerwang.jvm.H... |
package bnorm.robots;
import org.junit.Assert;
import org.junit.Test;
import bnorm.utils.Format;
/**
* Test class for {@link RobotSnapshot}.
*
* @author Brian Norman
* @version 1.4
*/
public class RobotSnapshotTest {
/**
* Test method for {@link RobotSnapshot#RobotSnapshot()}.
*/
@Test
public ... |
package regnoAnimale;
import javax.print.DocFlavor.STRING;
public interface Invertebrati {
}
class Poriferi implements Invertebrati {
public void Calcispongiae() {
String calcinae;
String calcaronea;
String pharetronida;
}
public void Hexactinellida() {
String hexasterophora;
String amphidiscophora;
... |
package com.rc.portal.notify;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Random;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.met... |
package com.timmy.home.model;
public class MainTag {
public static final int TAG_XIUXIU = 1;
public static final int TAG_QQ_ZONE_STRETCH = 2;
public static final int TAG_RECYCLER_VIEW = 3;
public static final int TAG_COLLAPSING_TOOLBAR_LAYOUT = 4;
public static final int TAG_SLIDESLIP = 5;
pub... |
package com.tencent.mm.plugin.facedetect.model;
import com.tencent.mm.sdk.platformtools.x;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public final class d {
private static volatile d iNk = null;
public static final Object mLock = new Object();
public List<a> iNl = nul... |
/*
Queue as a LinkedList
*/
public class Queue<T>{
// inner node class
private static class Node<T>{
private T data;
private Node<T> next;
public Node(T data){
this.data = data;
}
}
private Node<T> first = null;
private Node<T> last = null;
private int length ... |
package leetcode;
// 珂珂喜欢吃香蕉。这里有 N 堆香蕉,第 i 堆中有 piles[i] 根香蕉。警卫已经离开了,将在 H 小时后回来。
//
//珂珂可以决定她吃香蕉的速度 K (单位:根/小时)。每个小时,她将会选择一堆香蕉,从中吃掉 K 根。
// 如果这堆香蕉少于 K 根,她将吃掉这堆的所有香蕉,然后这一小时内不会再吃更多的香蕉。
//
//珂珂喜欢慢慢吃,但仍然想在警卫回来前吃掉所有的香蕉。
//
//返回她可以在 H 小时内吃掉所有香蕉的最小速度 K(K 为整数)。
// 输入: piles = [3,6,7,11], H = 8
// 输出: 4
public cla... |
package com.kps.dsk;
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
public class WhereBlock {
public static void main(final String[] args) {
final JFrame f ... |
package com.tencent.tencentmap.mapsdk.a;
import java.io.File;
class sg$2 extends Thread {
private /* synthetic */ File a;
sg$2(sg sgVar, File file) {
this.a = file;
}
public final void run() {
super.run();
rv.a(this.a.getAbsolutePath());
}
}
|
package task2_recommend;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.had... |
package com.tencent.mm.ui.chatting.b;
import com.tencent.mm.model.b.b.a;
class s$1 implements a {
final /* synthetic */ s tQv;
s$1(s sVar) {
this.tQv = sVar;
}
public final void Jj() {
com.tencent.mm.ui.chatting.c.a.cwt().post(new 1(this));
}
}
|
package com.nxtlife.mgs.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.spri... |
package May;
public class Book {
static String date = "12.12.2020"; //------
String author;
int pages;
public Book (){
}
static public void foo(){
System.out.println("Hello");
}
}
|
package org.yipuran.gsonhelper.test;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
/**
* Foo.java
*/
public class Foo{
public LocalDate date;
public LocalDateTime datetime;
public LocalTime time;
}
|
package com.stryksta.swtorcentral.ui.activities;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recyc... |
package com.bit;
import org.openjdk.jol.info.GraphLayout;
import org.roaringbitmap.RoaringBitmap;
import org.roaringbitmap.longlong.Roaring64NavigableMap;
public class BitMapTest {
public static void main(String[] args) {
System.out.println(93750000*64);
System.out.println(15625000*64);
... |
package classic_algorithms;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map.Entry;
import java.util.stream.Stream;
import entity.Edge;
import entity.Graph;
import entity.Vertex;
import entity.VertexGroup;
/**
* An implentation of the Fiduccia Mattheyses Algorithm
*
* @author Vanesa Ge... |
package com.didipark.impl;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;
import com.didipark.dao.CarportDao;
import com.didipark.dao.CidDao;
import com.didipark.dao.OrderDao;
import co... |
package com.sample.integration.config;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.in... |
package com.example.android.navigation_test;
import android.support.v4.app.Fragment;
import android.view.View;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.ViewGroup;
/**
* Created by Krishnendu Mukherjee on 12/12/16.
*The main purpose... |
package jp.co.logacy.validator.user;
import java.util.regex.Pattern;
/**
* ユーザ登録年齢チェッククラス
* @author User
*
*/
public class CheckUserRegistAge {
/**
* 半角数字以外で入力されているかどうか
* @param age
* @return true:半角数字以外<br>
* false:半角数字
*/
public static boolean isNotAgeHalfNumber(final String age) {
fi... |
package com.shubham.CassandraCRUD.store;
import com.shubham.CassandraCRUD.config.TrainingConfiguration;
public class StoreFactory {
private static CQLClient cqlClient = null;
public static void initialize(TrainingConfiguration config) throws Exception {
CassandraClient client = CassandraClient.getInstance(... |
package com.jack.UseCase.CreditCardFraud;
import java.util.TreeSet;
/**
* @author jack Deng
* @version 1.0
* @date 2021/8/13 15:00
*/
public class ConsumerInfo {
public String ConsumerId;
public Long Ts;
public Double Amount;
public String getConsumerId() {
return ConsumerId;
}
... |
package so.ego.space.domains.task.damain;
import lombok.*;
import so.ego.space.domains.project.domain.Member;
import javax.persistence.*;
@Entity
@Getter
@Builder
@Table(name = "member_task")
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor
public class MemberTask {
@Id @GeneratedValue
... |
package Ex_55;
public class GenMan extends Manager {
private final int bonus = 25;
private final String position = "General Manager";
public double getBonus() {
return bonus;
}
public String getPosition() {
return position;
}
public void prLine(){
String[] info = employeeShortInfoOut()... |
/*
* 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 pe.gob.onpe.adan.model.adan;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;
/**
*
* @author b... |
/*
* 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 gpbetting;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.F... |
package com.example.emailvalidator.domain;
import java.util.List;
public class EmailRequest {
List<String> emails;
public EmailRequest() {}
public EmailRequest(List<String> emails) {
this.emails = emails;
}
public List<String> getEmails() {
return emails;
}
public voi... |
package eg.edu.guc.parkei.exceptions;
public class WrongTicketException extends AmuserException {
/**
*
*/
private static final long serialVersionUID = 1L;
public WrongTicketException() {
super();
}
public WrongTicketException(String x) {
super(x);
}
}
|
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.util.PriorityQueue;
public class Tester {
public static void main(String[] args){
Server recipeMatcherServer = new Server(5400, 1000, new ServerS... |
package uw.cse.dineon.library.test;
import java.util.ArrayList;
import java.util.List;
import uw.cse.dineon.library.CurrentOrderItem;
import uw.cse.dineon.library.MenuItem;
import uw.cse.dineon.library.Order;
import uw.cse.dineon.library.UserInfo;
import android.test.AndroidTestCase;
import com.parse.Pars... |
package com.weixin.dto;
/**
* 微信公众平台基本信息(包括:appId 和 appSecret)
* Created by White on 2017/2/24.
*/
public class WeiXinInfo {
//第三方用户唯一凭证
public final static String APPID = "wxff19d17ccdebd7bd";
//第三方用户唯一凭证密钥
public final static String APPSECRET = "5604c0976186171cd63a592405ff0833";
//TOKEN
p... |
package exe.roadmap.module.innerclass;
public class Button {
private String title;
private OnclickListener onclickListener;
public String getTitle() {
return title;
}
public void setOnclickListener(OnclickListener clickListener){
this.onclickListener = clickListener;
}
pub... |
package missoneelement;
import java.util.HashSet;
public class Solution {
public int missing(int[] array) {
// Write your solution here.
HashSet<Integer> set = new HashSet<Integer>();
for (int number : array){
set.add(number);
}
for(int i=0; i<array.length; i++){
if (!se... |
package manage.teachergui;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.sql.Connection;
import java.sql.Prepared... |
package com.thoughtworks.presentation.view_cart;
import com.thoughtworks.domain.cart.CartItem;
import com.thoughtworks.presentation.product_list.Mapper;
import java.util.ArrayList;
import java.util.List;
/**
* Created on 16-06-2018.
*/
class CartItemListMapper implements
Mapper<List<CartItem>, List<CartIte... |
package com.espendwise.manta.dao;
import java.util.List;
public interface EntityQueryDAO {
public <T> List<T> findEntities(Class<T> entityClass, String orderByField, Boolean orderAsc);
}
|
package com.github.jerrysearch.tns.client.indexbuild;
import java.util.Comparator;
import com.github.jerrysearch.tns.protocol.rpc.TSNode;
/**
* 反自然顺序排序
*
* @author Jerry
*
*/
public class TSNodeComparator implements Comparator<TSNode> {
@Override
public int compare(TSNode t1, TSNode t2) {
... |
package model;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.text.DecimalFormat;
public class FileManager {
private static Fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.