text stringlengths 10 2.72M |
|---|
package com.rc.portal.vo;
import java.util.Date;
public class TMemberBalance {
private Long id;
private Integer streamType;
private Long price;
private Long balance;
private String remark;
private Date createDate;
private Long memberId;
public Long getId() {
return id;
... |
package instructable.server.dal;
import org.json.JSONObject;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* Created by Amos Azaria on 23-Jul-15.
*/
public class FieldChanged implements IFieldChanged
{
private final String fieldName;
private final SingleIn... |
package org.idea.plugin.atg.psi.reference.contribution;
import com.intellij.patterns.XmlPatterns;
import com.intellij.psi.*;
import com.intellij.psi.xml.XmlAttribute;
import com.intellij.psi.xml.XmlAttributeValue;
import com.intellij.psi.xml.XmlTag;
import com.intellij.psi.xml.XmlTagChild;
import com.intellij.util.Pro... |
package kr.or.kosta.java5;
public class VarargsExample {
public static int sum(int[] args) {
int sum = 0;
for (int i : args) {
sum += 1;
}
return sum;
}
public static int sum2(int...args) {
int sum = 0;
for (int i : args) {
sum += 1;
}
return sum;
}
public static void main(String[] a... |
package Base;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.PageFactory;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
... |
package GUI;
import GUI_Components.BEGEOT_BUNOUF_CustomJFrame;
import GUI_Components.BEGEOT_BUNOUF_CustomJTextField;
import UsefulFunctions.BEGEOT_BUNOUF_Database_Connection;
import javax.swing.*;
import java.awt.*;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* Fenêtre permettant de se connecter ... |
import java.util.*;
public class Hits {
public static void main(String args[]) {
Scanner scr = new Scanner(System.in);
System.out.println("Enter the size of Square matrix ");
int n = scr.nextInt();
int MatrixA[][] = new int[n][n];
int MatrixATrans[][] = new int[n][n]... |
import java.io.IOException;
public class Poker{
public static void main(String[] args) {
User usuario = new User();
while(usuario.getPoints() != 0 ) {
Deck d = new Deck();
String aux;
int bet;
// Prints how many points the user has
System.out.println(usuario);
// Read the bet
while (tr... |
package pers.jim.app.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel(description="返回结果")
public class LoginResult {
@ApiModelProperty("Token")
private String token;
public LoginResult(String token) {
this.token = token;
}
public String getToken() {
... |
package com.example.retail.controllers.retailer.discounts_retailer;
import com.example.retail.models.discounts.CustomerOrdersDiscount;
import com.example.retail.services.discounts.CustomerOrdersDiscountServices;
import com.example.retail.util.CreateResponse;
import org.springframework.beans.factory.annotation.Autowire... |
public class MatixMul {
public static void main(String[] args) {
int i, j, k,term=0;
int[][] arr1 = { { 1, 2, 3 }, { 4, 5, 6 } };
int[][] arr2 = { { 3, 2 }, { 6, 5 }, { 1, 4 } };
int[][] res = new int[2][2];
// arr1 =new int[2][3];
// arr2 =new int[3][2];
// arr1= {{1,2,3},{4,5,6}};
// arr2= {{3,2},... |
package com.sda.javagdy5.factorial;
import java.math.BigInteger;
public class FactorialIterative implements Factorial {
@Override
public BigInteger calculate(int number) {
BigInteger currentValue = BigInteger.ONE;
for (int i = 0; i < number; i++) {
currentValue = curre... |
package com.mengxuegu.springboot.filter;
import javax.servlet.*;
import java.io.IOException;
/**
* 自定义Filter
* @Author: yaya
* @Description:
* @Date: Create in 下午 08:12 2019/11/3
*/
public class MyFilter implements Filter {
@Override
public void doFilter(ServletRequest servletRequest, ServletResponse se... |
/**
* Solutii Ecommerce, Automatizare, Validare si Analiza | Seava.ro
* Copyright: 2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package seava.ad.business.api.security;
import java.util.List;
import seava.ad.domain.impl.security.AccessControl;
import seava.ad.domain.impl.se... |
package com.mediacom.repo;
import java.util.List;
import javax.persistence.EntityManager;
//import javax.persistence.criteria.CriteriaBuilder;
//import javax.persistence.criteria.CriteriaQuery;
//import javax.persistence.criteria.Root;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.crite... |
package com.farm.monitor;
import java.util.List;
import com.farm.db.DataIdValue;
import com.farm.db.DatabaseHandler;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widge... |
/*
* UniTime 3.5 (University Timetabling Application)
* Copyright (C) 2014, UniTime LLC, and individual contributors
* as indicated by the @authors tag.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Soft... |
package com.ibeiliao.pay.impl.service;
import com.ibeiliao.order.utils.OrderNO;
import com.ibeiliao.pay.ServiceException;
import com.ibeiliao.pay.api.ApiCode;
import com.ibeiliao.pay.api.ApiResultBase;
import com.ibeiliao.pay.api.Constants;
import com.ibeiliao.pay.api.dto.request.GetPaymentParamRequest;
import com.ibe... |
package eu.lsem.bakalarka.dao;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import eu.lsem.bakalarka.model.Directory;
import java.util.List;
public interface DirectoriesDao {
public List<Directory> getChildDirectories(Integer id);
public void insertDirectory(Directory dir);
... |
package beertab;
import com.sun.javafx.application.LauncherImpl;
import javafx.application.Application;
public class Main {
public static final double conDbStart = 20;
public static final double conDbSuccess = 30;
public static final double conDbFailUnknownHost = 21;
public static final double conDbF... |
package ru.job4j.servlets.webarchitecturejsp.presentation;
import ru.job4j.servlets.webarchitecturejsp.logic.DBStore;
import ru.job4j.servlets.webarchitecturejsp.logic.ValidateService;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import java... |
package edu.buet.cse.spring.ch10.v1.client;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import edu.buet.cse.spring.ch10.v1.model.User;
import edu.buet.cse.spring.ch10.v1.service.ChirperService;
public class App {
public static vo... |
package mygroup;
import java.io.UnsupportedEncodingException;
/**
* @author liming.gong
*/
public class TestUtf {
public static void main(String[] args) {
try {
final String UTF8 = "UTF-8";
final String UTF16 = "UTF-16";
// new String(getBytes(UTF8), UTF8) 等于什么也没有做
... |
/**
* create two pointer, one is slow, one is fast. travel the original list,
* fast pointer move two steps, slow pointer move one steps. put the value,
* which the slow pointer point to, into a stack
* when fast pointer at the end, the slow point would point to the middle node.
* and then, slow point move one ... |
package com.starmicronics.starprntsdk;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import com.starmicronics.starprntsdk.functions.ApiFunctions;
import static com.starmicronics.starioextension.Star... |
package com.yqyan.user.center.config;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;
/**
* @Author yanyaqiang
* @Date 2019/4/26 10:14
**/
@Configuration
@MapperScan("com.yqyan.user.center.dao")
public class MybatisConfig {
}
|
/*
* 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.pinchofintelligence.duolingoemersion.server;
import com.pinchofintelligence.duolingoemersion.crawlers.music.TrackInformati... |
package edu.yccc.cis174.vinceAtanasov.exam;
/**
* @author Vince
*
*/
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class JavaExam implements Exam... |
package main.java.com.gzmini.bo;
import java.sql.Connection;
import java.sql.Types;
import java.util.ArrayList;
import java.util.List;
import main.java.com.gzmini.vo.EnglishSentenceVo;
import main.java.com.gzmini.common.DataBase;
public class EnglishSentenceBo extends DataBase {
public EnglishSentenceBo(Connect... |
package fr.lteconsulting;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Partie
{
public Joueur deroulerPartie( Joueur joueur1, Joueur joueur2 )
{
FabriqueDeck fabriqueDeck = new FabriqueDeck();
List<Carte> deck = fabriqueDeck.genere32Cartes();
Co... |
package com.shivam.spring_aop.aspect;
public @interface Loggable {
}
|
package cn.demo.overlay;
import android.app.Activity;
import cn.demo.overlaylibrary.LauncherClient;
import cn.demo.overlaylibrary.LauncherClientCallbacks;
class Util {
static LauncherClient getClient(Activity a, LauncherClientCallbacks cb) {
return new LauncherClient(a, cb, "cn.demo.server", true);
}... |
package com.wonders.task.htxx.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.wonders.task.htxx.dao.BaseinfoDao;
import com.wonders.task.htxx.mo... |
package tools;
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.util.ArrayList;
import... |
package com.zeed.oauth2.oauth2testapp.repository;
import com.zeed.oauth2.oauth2testapp.model.TestUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface TestUserRepository extends JpaRepository<TestUser, Long> {
TestUser f... |
package com.bowlong.util;
public class Ref<T> {
public Ref() {
}
public Ref(T v) {
val = v;
}
public final String toString() {
if (val == null)
return nullStr;
return val.toString();
}
static final String nullStr = "val is null";
public T val;
}
|
package ch.springcloud.lite.core.codec;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import ch.springcloud.lite.core.type.VariantType;
public class DefaultCloudCodec implements CloudCodec {
ObjectMapper mapper;
public DefaultCloudCodec(... |
package com.SkyBlue.base.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import com.SkyB... |
package com.mod.course_service.document.response;
import com.mod.course_service.document.Topic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseEventResponse {
private String eventType;
... |
package com.timmy.framework.imageLoaderFw;
import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.GridLayoutMa... |
package DS;
public class Queue {
private int capacity;
private int arr[];
private int front = 0;
private int rear = 0;
private int count = 0;
public Queue(int capacity){
arr = new int[capacity];
this.capacity = capacity;
}
public void push(int item){
if (count >= capacity){
expandQ();
}
a... |
/*
* 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 TesteCodigo;
import java.util.Queue;
import java.util.LinkedList;
import java.util.Random;
/**
*
* @author mauricio.moreira... |
package com.example.v3.design.chain;
/**
* 责任链模式
*
*/
|
package com.z3pipe.z3core.base;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
/**
* @author zhengzhuanzi on 2018/9/17.
*/
public abstract class BaseSdFileReadWriter {
/**
* 写到文件中
* 这种写入方式为覆盖写入,会导致之前的数据覆盖
*
* @para... |
package com.example.applemac.myapplication;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.graphics.BitmapFact... |
package com.tencent.mm.plugin.notification.c;
class a$7 implements Runnable {
final /* synthetic */ long bAw;
final /* synthetic */ a lHC;
a$7(a aVar, long j) {
this.lHC = aVar;
this.bAw = j;
}
public final void run() {
a.a(this.lHC, this.bAw);
}
}
|
package eAdmission;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.List;
import jxl.read.biff.BiffException;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org... |
package message;
import client.Group;
import client.Group;
/**
* Class representing data to be transfered, e.g. data from server to client.
* @author KEJ
*
*/
public class DataMessage extends Message{
private String[] data;
public DataMessage(String sender, Group group, String[] data){
super(sender, grou... |
package ai.boundless.reward.particle.initializers;
import java.util.Random;
import ai.boundless.reward.particle.Particle;
/**
* The type Rotation speed initializer.
*/
public class RotationSpeedInitializer implements ParticleInitializer {
private float mMinRotationSpeed;
private float mMaxRotationSpeed;
/*... |
package com.jst.mapper.fornt;
import java.util.List;
import java.util.Map;
import com.jst.model.Edu_User;
import com.jst.model.SysSubject;
public interface FrontUserMapper {
//ͨ���û�����ȡ����
public Edu_User getPwd(String userName);
//ע���û�
public void addUser(Edu_User user);
public Edu_User g... |
package lambda_test;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Predicate;
/**
* Description:
*
* @author Baltan
* @date 2018/2/22 16:01
*/
public class FilterFileDemo {
public static void main(String[] args) {
ArrayList<File> list = new ArrayLis... |
/*
* 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.kkstudio.springcrud.util;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author Xiangsheng Li
*/
public cla... |
package tcp;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.util.Scanner;
public class TCPClient2 {
Scanner sc;
public static void main(String[] args) {
new TCPClient2().ClientMain();
}
TCPClient2() {
... |
package expe;
public class qq {
}
|
package cn.edu.hebtu.software.sharemate.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.support.... |
package ru.vssoft.backend.utils.jwt;
import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.stereotype.Service;
import ru.vssoft.backend.model.User;
import ru.vssoft.backend.payload.response.LoginResponse;
import java.util.List;
import java.util.stream.Collectors;
... |
package com.tencent.mm.plugin.wallet_payu.create.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import com.tencent.mm.plugin.wallet_payu.create.a.d;
import com.tencent.mm.plugin.wxpay.a$f;
import co... |
/*
* Copyright 2012 JBoss Inc
*
* 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 ... |
package com.jlgproject.adapter;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextV... |
package com.example.administrator.hyxdmvp.fragment.presenter.home;
import android.support.v7.widget.RecyclerView;
import com.example.administrator.hyxdmvp.AppConfig;
import com.example.administrator.hyxdmvp.adapter.TreeAdapter;
import com.example.administrator.hyxdmvp.adapter.nodeAdapter.WorkPlanAdapter;
import com.e... |
package com.smxknife.disruptor.demo1;
import com.lmax.disruptor.BlockingWaitStrategy;
import com.lmax.disruptor.RingBuffer;
import com.lmax.disruptor.dsl.Disruptor;
import com.lmax.disruptor.dsl.ProducerType;
import java.util.concurrent.Executors;
/**
* @author smxknife
* 2020/2/24
*/
public class Demo1 {
public... |
package com.google.android.gms.wearable;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.wearable.WearableListenerService.a;
class WearableListenerService$a$1 implements Runnable {
final /* synthetic */ DataHolder bdJ;
final /* synthetic */ a bdK;
WearableListenerServi... |
package com.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
import javax.persistence.*;
@Entity
@Table(name = "favorite")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Favorite {
@Id
@GeneratedValue(stra... |
package com.wcy.netty.client.handler;
import com.wcy.netty.protocol.response.LogoutResponsePacket;
import com.wcy.netty.util.SessionUtil;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
public class LogoutResponseHandler extends SimpleChannelInboundHandler<LogoutRes... |
package com.example.lab5.room.database;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import com.example.lab5.Category;
import java.util.List;
@Dao
public interface CategoryDao {
@Query("SELECT * FROM categories")
... |
package com.example.billage.frontend.ui.quest.subView.weekend;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import android.widget.ProgressBar;
impo... |
package jpa.project.repository.registedShoes;
import com.querydsl.core.types.Projections;
import com.querydsl.jpa.impl.JPAQueryFactory;
import jpa.project.entity.*;
import jpa.project.model.dto.registedShoes.RegistedShoesDto;
import jpa.project.repository.RepositoryHelper;
import org.springframework.beans.factory.anno... |
package com.bufeng.ratelimiter.exception;
/**
* 限流异常类
*
* @author liuhailong
* @date 2019/8/30
*/
public class RateLimiterException extends RuntimeException {
private String rateLimiterKey;
public String getRateLimiterKey() {
return rateLimiterKey;
}
public RateLimiterException setRateL... |
package de.unitrier.st.soposthistory.gt.GroundTruthApp;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.LinkedList;
public class Toolkit {
static boolean blockIsAlreadyInPairWithEdge_atPositionLeft(LinkedList<LinkedList<... |
package com.example.senior.adapter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import com.example.senior.calendar.Constant;
import com.example.senior.fragment.CalendarFragment;
public class CalendarPagerAdapter exten... |
package com.example.connectiondemo;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.os.AsyncTask;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
import android.widget.TextView;
public class JsonActivity ex... |
public class Product {
private int ProId;
private String ProName;
private int ProP;
public int getProId() {
return ProId;
}
public void setProId(int proId) {
ProId = proId;
}
public String getProName() {
return ProName;
}
public void setProName(String proName) {
ProName = proName;
}
public int... |
package com.xys.searchbox;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
public class MainActivity extends AppCompatActivity {
@Ov... |
/**
* Font package.
*
* This package contains classes and constructs needed for font rendering. At this time the font API
* is under development.
*
* Package state: Under development (restructure needed)
*/
package fi.jjc.graphics.font; |
package sample.Controllers;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.*... |
package src;
/**
*
* @author Mark Lonergan
*/
public class TestQueue extends javax.swing.JFrame {
/**
* Creates new form TestQueue
*/
public TestQueue() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do N... |
package com.sebprunier.jobboard.web;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.servlet.GuiceServletContextListener;
import com.google.inject.servlet.ServletModule;
public class JobboardGuiceServletContextListener extends GuiceServletContextListener {
@Override
... |
package net.senmori.vanillatweaks.config.sections;
import net.senmori.senlib.configuration.option.BooleanOption;
import net.senmori.senlib.configuration.option.NumberOption;
import net.senmori.senlib.configuration.option.SectionOption;
public class BabyZombieOption extends SectionOption {
public static BabyZombi... |
package NumberUtilitiesPkg;
public class NumberUtilities {
public static String getRange(int stop) {
String s = "";
for(int i = 0 ; i < stop ; i++){
s += i;
}
return s;
}
public static String getRange(int start, int stop) {
String s = "";
for(i... |
package com.jpworks.datajdbc.employee.vo;
import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Version;
import org.springframework.data.relational.core.mapping.MappedCollection;
import java.time.LocalDate;
import java.util.Map;
@Data
@Bu... |
package org.slevin.dao;
import java.math.BigDecimal;
import java.util.Date;
import org.slevin.common.BinaQueryItem;
import org.slevin.common.SahibindenItem;
import org.slevin.util.EmlakQueryItem;
public interface SahibindenDao extends EntityDao<SahibindenItem> {
public BinaQueryItem getDataForCreditSuitable(Strin... |
package com.onplan.adviser.strategy;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import java.io.Serializable;
/**
* Strategy statistics.
*/
public final class StrategyStatistics implements Serializable {
private long lastReceivedTickTimestamp;
private long receivedTicks;
... |
package com.tencent.mm.plugin.voip.model;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.PowerManager;
import com.tencent.mm.plugin.voip.b.b;
import com.tencent.mm.sdk.platformtools.ad;
class o$1 extends BroadcastReceiver {
final /* synth... |
/*
* Sonar W3C Markup Validation Plugin
* Copyright (C) 2010 Matthijs Galesloot
* dev@sonar.codehaus.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://www.apach... |
package com.bingo.code.example.design.command.cancel;
import java.util.ArrayList;
import java.util.List;
/**
* �������࣬���������мӷ���ť��������ť�����г����ͻָ��İ�ť
*/
public class Calculator {
/**
* ����IJ�������ʷ��¼���ڳ���ʱ����
*/
private List<Command> undoCmds = new ArrayList<Command>();
/**
... |
package com.rishi.baldawa.iq;
/*
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [-2,1,-3,4,-1,2,1,-5,4],
the contiguous subarray [4,-1,2,1] has the largest sum = 6.
*/
public class MaxSubArray {
public int solution(int[] nums... |
package analysis.experiments;
import analysis.utils.AnalysisUtils;
import analysis.utils.CsvWriter;
import datastructures.interfaces.IDictionary;
import datastructures.interfaces.IList;
public class Experiment1 {
// Note: please do not change these constants (or the constants in any of the other experimen... |
package br.usp.memoriavirtual.modelo.entidades;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
@Entity
@SequenceGenerator(name = "AUTOR_ID", sequen... |
package com.yash.product_management.service;
import java.io.IOException;
import com.yash.product_management.model.Product;
public interface ProductService
{
/**
* used for showing the products which are already stored in db
*/
public void viewProducts();
/**
* This method is used for adding products
... |
package com.tencent.mm.ipcinvoker.extension;
import com.tencent.mm.ipcinvoker.c;
import com.tencent.mm.ipcinvoker.e.a;
import com.tencent.mm.ipcinvoker.e.b;
import com.tencent.mm.ipcinvoker.extension.XIPCInvoker.WrapperParcelable;
class XIPCInvoker$b implements c, a {
c<WrapperParcelable> dnb;
a dnc;
XIP... |
/*
* 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.mycompany.springwebapp.dao;
import com.mycompany.springwebapp.model.Course;
import java.util.List;
/**
*
* @author Siro... |
package com.ybh.front.model;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class Product_NetCNExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table FreeHost_Product_NetCN
... |
package fr.cg95.cvq.generator.plugins.enumeration;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.log4j.Logger;
import org.apache.xmlbeans.XmlObject;
import org.apache.xmlbeans.XmlOptions;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
i... |
package day38_inheritance_part2;
public class VehicleTest {
public static void main(String[] args) {
Car c = new Car();
c.display();
}
}
class Vehicle {
int maxSpeed=120;
}
class Car extends Vehicle
{
int maxSpeed=180;
void display() {
System.out.println("Maximum speed: "+super.maxSpeed);
... |
package ba.bitcamp.LabS07D03;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class PainterPlus {
/**
* Lista ... |
package miniTenis;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.Toolkit;
import java.awt.event.KeyEvent;
public class Racquet {
private static final int Y = 300;
private static final int WITH = 50;
private static final int HEIGHT = 100;
int x = 0;
int xa = 0;
pri... |
package com.bingo.code.example.design.strategy.payment;
/**
* ֧�������п�
*/
public class Card2 implements PaymentStrategy{
/**
* �ʺ���Ϣ
*/
private String account = "";
/**
* ���췽���������ʺ���Ϣ
* @param account �ʺ���Ϣ
*/
public Card2(String account){
this.account = account;
}
public void pay(PaymentC... |
package essentials.validators;
public class UserValidator {
public static void main (String[] args) {
System.out.println("Starting... ");
System.out.println("Gather data...");
User user = new User(34.5, 198, "Przemek");
if (user.validateName()) {
if (user.validateHeig... |
package net.liuzd.spring.boot.v2.config;
import tk.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;
/**
* @author miemie
* @since 2018-08-12
*/
@Configuration
@MapperScan("net.liuzd.spring.boot.v2.mapper")
public class MybatisConfig {
}
|
package com.accounting.models;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.