text stringlengths 10 2.72M |
|---|
package com.savvycom.gametank.Common;
import com.savvycom.gametank.Entity.Orientation;
import java.awt.*;
public class Item {
private TypeItem typeItem;
private Image image;
protected int x,y;
protected int size;
private int id;
private Orientation orientation;
public Item(TypeItem typeI... |
package com.hackathon.lib;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.springframework.http.HttpStatus;
import org.springframework.web.client.HttpServerErrorException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.n... |
package com.esum.comp.dbc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.esum.comp.dbc.listener.DbcChannelListener;
import com.esum.comp.dbc.listener.DbcTaskScheduleListener;
import com.esum.comp.dbc.listener.DbcTemplateJobListener;
import com.esum.comp.dbc.table.DbcInfoTable;
import com.esum.fr... |
package ru.itmo.ctlab.sgmwcs.solver;
import ru.itmo.ctlab.sgmwcs.Signals;
import ru.itmo.ctlab.sgmwcs.graph.Edge;
import ru.itmo.ctlab.sgmwcs.graph.Graph;
import ru.itmo.ctlab.sgmwcs.graph.Node;
import ru.itmo.ctlab.sgmwcs.graph.Unit;
import java.util.*;
/**
* Created by Nikolay Poperechnyi on 17.03.18.
*/
public ... |
package interfaces.ColorInterface.impl;
import interfaces.ColorInterface.Color;
/**
* @Description:
* @Author: lay
* @Date: Created in 9:50 2018/12/4
* @Modified By:IntelliJ IDEA
*/
public class Blue implements Color {
@Override
public void fill() {
System.out.println("Inside Blue::fill() method.... |
/*
* 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.innovaciones.reporte.util;
import com.innovaciones.reporte.model.DTO.MantenimientoDTO;
import com.innovaciones.rep... |
package com.example.lablnet.quizapp;
import android.content.Context;
/**
* Created by lablnet on 9/23/2017.
*/
public class addQuestion {
Context context;
public addQuestion(Context context) {
this.context = context;
}
public void WriteData() {
DatabaseHelper databaseHelper;
... |
package Catalogue;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Locale;
import java.util.Formatter;
import java.util.Currency;
/**
* Holds a collection of products from the CatShop.
* @author Michael Alexander Smith
* @version 2.2
*
*/
public class Basket implements Se... |
package com.dassa.controller.guest;
import java.io.IOException;
import java.io.PrintWriter;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.R... |
package com.peternwerner.iagogame;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Rect;
import android.media.MediaPlayer;
import android.util.Log;
public class Tutorial {
private stat... |
package rent;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java.awt.Font;
import java.sql.Connection;
import java.sql.DriverManager;
import java.... |
package com.ggtf.xieyingwu.demotest;
/**
* Created by xieyingwu on 2017/3/23.
*/
public class Son extends Father {
private int age;
public Son(String name) {
super(name);
}
}
|
/*
* 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 compiler.syntaxAnalyzer;
import static compiler.syntaxAnalyzer.SyntaxAnalyzer.tokenList;
import static compiler.syntaxAnalyzer... |
package question.abstractQuestion;
import answer.Answer;
import answer.GiveNumberAnswer;
import question.Question;
public abstract class GiveNumberQuestion implements Question {
protected GiveNumberAnswer answer;
}
|
package com.deepakm.webservice.util;
import org.bouncycastle.jce.X509Principal;
import org.bouncycastle.x509.X509V3CertificateGenerator;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.security.*;... |
package model;
import java.util.Date;
public class WayBill {
private String w_num;
private Date w_regdate;
private String w_dtn;
private int m_num;
private String w_req;
private String sender_nm;
private String sender_tel;
private String sender_add;
private String receiver_nm;
private String... |
package com.example.joker.newsapp;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.support.design.widget.NavigationView;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.LoaderMana... |
package com.zareca.factory.abstractfactory;
/**
* @Auther: ly
* @Date: 2020/10/10 22:59
* @Description:
*/
public class OvalSealsFactory implements ISealsFactory {
public IColor createColor() {
return new OvalColorSeal();
}
public IStar createStar() {
return new OvalStarSeal();
}
}... |
package net.shangtai.snmplights;
import android.os.AsyncTask;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.view.LayoutInflater;
import android.widget.TextView;
import android.widget.Button;
import android.widget.SeekBar;
import android.support.v7.w... |
import java.util.*;
class Student{
int rollno;
String name;
static String colname;
void display(){
int x=10;
System.out.println(name +" "+ rollno);
}
}
class Static1{
public static void main(String[] args){
Student s1=new Student();
Student s2=new Student();
s2.display();
}
} |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.inbio.ara.dto.format;
import java.util.GregorianCalendar;
import org.inbio.ara.dto.BaseEntityOrDTOFactory;
import org.inbio.ara.persistence.format.FuncionalityType;
import org.inbio.ara.persistence.format.R... |
package ObserverDesignPattern;
/**
* Created by Frank Fang on 8/25/18.
*/
public interface IStateObserver {
void onStateChange();
}
|
public class StaticSynchronization {
public static void main(String[] args) {
Table5 table1 = new Table5();
Table5 table2 = new Table5();
Thread t1 = new MyThread1(table1);
Thread t2 = new MyThread1(table1);
Thread t3 = new MyThread2(table2);
Thread t4 = new MyThread2(table2);
t1.start();
t2.st... |
/*
* Copyright 2002-2022 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 dk.webbies.tscreate.cleanup.heuristics;
import com.google.common.collect.ArrayListMultimap;
import dk.webbies.tscreate.analysis.declarations.types.DeclarationType;
import dk.webbies.tscreate.analysis.declarations.types.InterfaceDeclarationType;
import dk.webbies.tscreate.analysis.declarations.types.UnnamedObje... |
package estudo1.model.vo;
public class PessoaVo {
private int idPessoa;
private String nome;
private String cpf;
private int telefone;
private String sexo;
private double salario;
public PessoaVo() {
super();
// TODO Auto-generated constructor stub
}
public PessoaVo(String nome, Strin... |
import java.util.List;
public class Airports {
private List<Airport> airports;
public List<Airport> getAirports() {
return airports;
}
}
|
package sop.filegen.jasperreport;
import java.awt.Font;
import java.awt.FontFormatException;
import java.io.File;
import java.io.IOException;
import net.sf.jasperreports.engine.DefaultJasperReportsContext;
import net.sf.jasperreports.engine.JRFont;
import net.sf.jasperreports.engine.JRPropertiesUtil;
import net.sf.ja... |
package com.itheima.mapper;
import com.itheima.domain.User;
import java.util.List;
public interface UserMapper {
List<User> listAll();
User getById(Long id);
}
|
package de.haw.wpcgar.structure.biomes;
import de.haw.wpcgar.generator.WorldGenerator;
import de.haw.wpcgar.structure.Biome;
import de.haw.wpcgar.structure.params.HeightMap;
import edu.hawhamburg.shared.math.Vector;
public class Plain extends Biome {
public Plain(WorldGenerator generator) {
sup... |
package test.m2;
public class P {
//年货节1折抢爆品Redmi AirDots真无线蓝牙耳机 黑色 : 99
static public String P_AIRDOT_99 = "Yeo-esIE7vOuqBfZeMX90hBNjJRRJOY23b0vQkVP0YKf0LH_vy2oFkB1p3-6OP3xPL7XQMmrolBRGlia6siM3DdA9WaVE9EqT70K_STOMU0=";
//年货节1折抢爆品米家空气净化器3 白色 : 899
static public String P_JINGHUAQI_899 = "Yeo-esIE7vOuqBfZeMX90hB... |
package com.solr.test;
import org.apache.solr.client.solrj.impl.CloudSolrServer;
import org.apache.solr.common.SolrInputDocument;
import org.junit.Test;
public class TestSolrCloud {
@Test
public void testsolrCloud() {
try{
// 第一步:把solrJ相关的jar包添加到工程中。
// 第二步:创建一个SolrServer对象,需要... |
package unit2;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(urlPatterns = {"/te... |
package be.openclinic.sync;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.StringWriter;
import java.nio.charset.StandardCharsets;
import java.sql.*;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;
impo... |
package hwarang.artg.exhibition.model;
import java.util.Date;
import lombok.Data;
@Data
public class FavoriteMarkVO {
private int exh_seq;
private String member_id;
private Date favorite_date;
private String favorite_group;
private String favorite_status;
private String exh_title;
private String exh_place;... |
package xyz.mcallister.seth.HG.commands;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import xyz.mcallister.seth.HG.GameState;
/**
* Created by sethm on 20/04/2016.
*/
public class ForceE... |
package com.ngocdt.tttn.entity;
import java.util.List;
import javax.persistence.*;
import com.ngocdt.tttn.enums.ROLE;
import lombok.Getter;
import lombok.Setter;
@Entity
@Table(name="Role")
@Getter
@Setter
public class Role {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column
private int roleID;
... |
package example7;
import java.time.Duration;
import java.util.Optional;
import java.util.stream.Stream;
public class DurationsStream implements ForwardingStream<Duration> {
private final Stream<Duration> stream;
private DurationsStream(Stream<Duration> stream) {
this.stream = stream;
}
publi... |
package Pro977.SquaresofaSortedArray;
import java.util.Arrays;
/**
* Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing order.
* <p>
* <p>
* <p>
* Example 1:
* <p>
* Input: [-4,-1,0,3,10]
* Output: [0,1,9,16,100]
* Example... |
package com.ifeng.recom.mixrecall.negative;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.ifeng.recom.mixrecall.common.model.RecordInfo;
import com.ifeng.... |
package com.test.base;
/**
* Given an array of integers, return indices of the two numbers such that they add up to a specific target.
* You may assume that each input would have exactly one solution.
*
* 给定一个整数数组,找出两个数满足相加等于制定的数组
* 可以假设每一组,有且仅有一组解
*
* @author YLine
*
* 2018年7月19日 上午10:59:01
*/
public inte... |
package com.manish.javadev;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework... |
package com.sen.myshop.web.api.dao;
import com.sen.myshop.domain.Content;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @Auther: Sen
* @Date: 2019/8/11 16:09
* @Description:
*/
@Repository
public interface ContentDao {
/**
* 根据CategoryId查找
* @param content
* @r... |
package net.inveed.rest.jpa.jackson;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import org.hibernate.proxy.HibernateProxy;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSe... |
import java.io.IOException;
import java.util.Arrays;
import java.util.Random;
public class GP_PilotStudy_v19 {
public static final boolean PROFILEPOWER = false;
static int DEMES = 3, MASTER_GENERATIONS = 10000, DEME_GENERATIONS = 1, POPSIZE_PER_PROCESSOR = 20, MINRANDOM = 0,
MAXRANDOM = 1, PROFILES_PER_CAT = 2000... |
package LojaCadastro.Controller.Dto;
import java.util.List;
import java.util.stream.Collectors;
import LojaCadastro.Modelo.Usuario;
//////////////CLASE DTO///////////////
public class UsuarioDto {
private Long cpf;
private String nome;
/////////GET E SET//////////
public Long getCpf() {
return cpf;
}
... |
package com.glassboxtech.evansmunatsa.lincoln.activities;//package com.glassboxtech.evansmunatsa.lincoln.activities;
import com.glassboxtech.evansmunatsa.lincoln.R;
import android.content.res.Resources;
import android.graphics.Rect;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import a... |
/*
Copyright (C) 2013-2014, Securifera, Inc
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 of conditions and... |
package Basic_of_OOP.calendar;
import java.time.LocalDate;
//Задача 3.
//Создать класс Календарь с внутренним классом, с помощью объектов которого можно хранить информацию о
//выходных и праздничных днях.
public class Main {
public static void main(String []args){
Calendar calendar = new Calendar();
... |
/*
* Copyright 2014 Basho Technologies 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 ... |
//Created by MyEclipse Struts
// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.2/xslt/JavaClass.xsl
package com.aof.webapp.form.helpdesk;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
... |
public class Hope {
public void hope(String people, boolean success) {
if (success==false) {
System.out.println("Надежды "+people+" оказались напрасными");
} else {
System.out.println("Надежды "+people+" оказались ненапрасными");
}
}
}
|
package com.kopo.memoprogram;
public class Memo {
int idx;
String title;
String content;
String created;
String updated;
int userIdx;
Memo() {
}
Memo(String new_title, String new_content, String first_created, String now, int userIdx) {
this.title = new_title;
this.content = new_content;
this.cre... |
package com.nisira.core.entity;
import com.nisira.annotation.ClavePrimaria;
import com.nisira.annotation.Columna;
import com.nisira.annotation.Tabla;
import com.google.gson.annotations.SerializedName;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import java.io.Serializable;
import java.util.Date;
import ... |
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;
/*
* Header
* @Author: Aaron Lack, alack
* Last edited: 3/11/20
* Class Oval, inherits Shape.
* Create instance variables radius1 and radius2
* The area and circumference will also be slightly different than Oval, so override that as well.
* Wil... |
package com.leo_sanchez.itunestopalbums.Activities.Main;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.leo_sanchez.itunestopalbums.Utilities.BitMapUtility;
import com.leo_sanchez.itunestopalbums.Models.Album;
impo... |
import Lists.ListNode;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.ArrayList;
import static java.util.Arrays.asList;
/**
* Created by Daniel on 2/7/2017.
*/
public class ListNodeTest {
private static ListNode sut;
@BeforeClass
public static void init(... |
/**
* Copyright 2014 Google
*
* 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 writi... |
package jthrift;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
public class TConstValue {
public static enum Type {
INTEGER,
DOUBLE,
STRING,
MAP,
LIST,
IDENTIFIER
}
Map<TConstValue, TConstValue> mapVal;
... |
package com.training.iface;
@FunctionalInterface
public interface Converter {
public double dollarToInr(double val);
}
|
package me.arasple.mc.uncrafter;
import io.izzel.taboolib.module.config.TConfig;
import io.izzel.taboolib.module.inject.TInject;
import io.izzel.taboolib.module.locale.TLocale;
import io.izzel.taboolib.module.locale.logger.TLogger;
import me.arasple.mc.uncrafter.bstats.Metrics;
import me.arasple.mc.uncrafter.objects.U... |
import java.util.ArrayList;
public class ViewIncome {
private ArrayList accountTransaction = new ArrayList();
private String account = new String();
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public ArrayList getAccountTransaction... |
package org.carlook.gui.views;
import com.vaadin.icons.VaadinIcons;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.server.VaadinSession;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.ui.*;
import org.carlook.gui.components.TopPanel;
import org.carlook.g... |
package com.bestone.service.Impl;
import com.bestone.dao.CommentDao;
import com.bestone.dao.UserDao;
import com.bestone.model.CommentModel;
import com.bestone.model.UserModel;
import com.bestone.service.CommentService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import org.springfram... |
package persistence;
import exception.DaoException;
import model.Statistics;
import model.Article;
import java.util.List;
public interface StatisticsDao {
/**
* Adds statistics to database.
* @param stats the Statistics to add
* @return userID if successful
* @throws DaoException if no connect... |
package com.suifeng.javaparsertool;
import com.github.javaparser.JavaParser;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.Modifier;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration;
import com.github.javapar... |
package com.coder.model;
// Generated Jan 23, 2020 8:11:18 PM by Hibernate Tools 5.0.6.Final
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import stati... |
//Problem No 14 : Longest Common Prefix
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
public class LongestCommonPrefix {
static String longestCommonPrefix(String[] strs) {
if(strs.length == 0)
return "";
int n = strs.length;
Str... |
package com.example.uiassit;
public class haomiaotoshijian {
public haomiaotoshijian(){
}
//把毫秒数变成时间格式 如 01:00
public String formattime(long time){
time = time/ 1000;
String strHour = "" + (time/3600);
String strMinute = "" + time%3600/60;
String strSecond = "" +... |
package controladvanced.duplicate;
import org.junit.Test;
import java.util.Arrays;
import static org.junit.Assert.assertEquals;
public class DuplicateFinderTest {
@Test
public void findDuplicates() {
assertEquals(Arrays.asList(), new DuplicateFinder().findDuplicates(Arrays.asList()));
assert... |
/*
* (c) 2009 Thomas Smits
*/
package de.smits_net.tpe.abstrakt3;
public abstract class Mitarbeiter {
protected abstract int berechneZahlung();
}
|
package com.wangzhu.spring.scanv2;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition;
import org.springframework.beans.factory.c... |
package vnfoss2010.smartshop.webbased.client;
import java.util.List;
import vnfoss2010.smartshop.webbased.share.WProduct;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.MouseOutEvent;
import com.google.gwt.event.... |
package com.company;
public class Coffee extends CaffeinatedBeverage{
// all of the drinks start out witha gradual heating process
@Override
void brewBeverage() {
System.out.println("Dripping coffee through filter.");
}
// the hooks - eliminate the extras that are not wanted
... |
package com.company.leetcode.linkedlist;
import com.company.leetcode.ListNode;
public class LeetCode1290 {
public static int getDecimalValue(ListNode head) {
int result = 0;
while (head != null){
result = 2 * result + head.val;
head = head.next;
}
return result;
}
public static void... |
package com.sportzcourt.booking.ui.activity;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.support.design.widget.Snackbar;
import android.sup... |
package sr.hakrinbank.intranet.api.controller;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.an... |
package cn.edu.swufe.myapp;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
public class TwoPActivity extends AppCompatActivity {
@Override
... |
package com.example.demo.service;
import com.example.demo.entity.FrameworkContract;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author zjp
* @since 2020-11-30
*/
public interface IFrameworkContractService extends IService<FrameworkContract> {
}
|
import java.io.*;
import java.util.*;
public class Main {
static Scanner in = new Scanner(System.in);
static PrintWriter out = new PrintWriter(System.out);
public static void main(String[] args) {
int n = in.nextInt();
int k = in.nextInt();
int[] submissions_length = new int[n];
for (int i = ... |
import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/**
* This class stores information for an author including
* metric statistics, maps, and the authors name
* @author Trever Mock
* @version 2.0
*/
public class Author implements Serializable {
... |
package manager;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.ManagedBean;
import javax.ejb.EJB;
import org.junit.Before;
import org.junit.Test;
import model.AccountType;
import model... |
package ru.yamblz.translatetraining;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import com.google.gson.Gson;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.String... |
package old.DefaultPackage;
public class sortList {
class ListNode{
int val;
ListNode next;
ListNode(int val){
this.val = val;
this.next = null;
}
}
public static void main(String[] args) {
sortList list = new sortList();
ListNode head = list.new ListNode(2);
head.next = list.new L... |
package com.ooteedemo.todo.data;
import android.content.Context;
import android.os.AsyncTask;
import androidx.annotation.NonNull;
import androidx.room.Database;
import androidx.room.Room;
import androidx.room.RoomDatabase;
import androidx.sqlite.db.SupportSQLiteDatabase;
import com.ooteedemo.todo.model.ToDo;
@Datab... |
package net.paulheintz.kickthehabit;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.InputType;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.inputm... |
package com.webproject.compro.web.controllers;
import com.webproject.compro.utility.Converter;
import com.webproject.compro.web.Constants;
import com.webproject.compro.web.containers.UserResetResultContainer;
import com.webproject.compro.web.enums.UserModifyResult;
import com.webproject.compro.web.enums.UserResetResul... |
package com.example.qiumishequouzhan;
/**
* Created with IntelliJ IDEA.
* User: jinxing
* Date: 14-3-19
* Time: 上午11:34
* To change this template use File | Settings | File Templates.
*/
public class Category {
String mTitle;
Category(String title) {
mTitle = title;
}
}
|
package com.mongodb.queue;
import java.util.concurrent.Executor;
import com.mongodb.BasicDBObject;
/**
* 消息监听器
* @author wens
*/
public interface MessageListener {
/**
*
* @param message
*/
public void recieveMessages(BasicDBObject message) ;
public Executor getExecutor(... |
package test;
//通过配置式注入的前置通知,在进入每个Controller方法之前执行
public class AOP {
public void say(){
System.out.println("--------------------------------------------ctlr--------------------------------------------");
}
}
|
package com.larryhsiao.nyx.core.attachments;
import com.silverhetch.clotho.Action;
import com.silverhetch.clotho.Source;
import java.sql.Connection;
import java.sql.PreparedStatement;
/**
* Remove Attachments by given Jot id.
*/
public class RemovalAttachment implements Action {
private final Source<Connection... |
package nl.ronaldvandenbroek.worldgen.calculation;
import nl.ronaldvandenbroek.worldgen.calculation.array.ITwoDimensionalArrayUtility;
import nl.ronaldvandenbroek.worldgen.calculation.noise.INoiseMapGenerator;
import nl.ronaldvandenbroek.worldgen.properties.Config;
import nl.ronaldvandenbroek.worldgen.properties.Prese... |
package will.com.github.slidefinish.ui;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import will.com.github.slidefinish.R;
import will.com.github.slidefinish.layout.SlidingFinishLayout;
public class SlideFinishActivity extends AppCompatActivity implements SlidingFinishLayout.OnActivityF... |
package ru.bookstore.domain;
import javax.persistence.*;
import java.sql.Date;
@Entity
@Table(name = "Orders")
public class OrderEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", updatable = false, nullable = false)
private Integer id;
@Column(name = "date", nu... |
package com.smart.droidies.tamil.natkati.library;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
public class TabsAdapter extends FragmentPagerAdapter {
public TabsAdapter(FragmentManager fm) {
super(fm);
}
@Override
p... |
package com.karya.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.karya.dao.ISt... |
package edu.cb.lunch.sweezy.kenneth;
import edu.jenks.dist.cb.lunch.AbstractTrio;
import edu.jenks.dist.cb.lunch.Drink;
import edu.jenks.dist.cb.lunch.Salad;
import edu.jenks.dist.cb.lunch.Sandwich;
public class Trio extends AbstractTrio {
public Trio(Sandwich sand, Salad sald, Drink d) {
super(sand, sald, d);
}... |
package com.myvodafone.android.model.service;
import com.myvodafone.android.utils.GlobalData;
import com.myvodafone.android.utils.VFPreferences;
/**
* Created by p.koutsias on 3/9/2016.
*/
public class PPDestination {
private String friendlyDescGr;
private String name;
private String friendlyDescEn;
... |
package com.zenwerx.findierock.data;
import java.util.Date;
import com.zenwerx.findierock.model.Status;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteConstraintException;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
public class... |
package com.minhvu.proandroid.sqlite.database.main.view.Activity;
import android.Manifest;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
impor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.