text stringlengths 10 2.72M |
|---|
package com.technology.share.domain;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 角色实体类
*/
@TableName("t_role")
@Data... |
package eight.extend;
//Dog Penguin Pet PetTest 表示继承
//继承表示父类跟子类的关系
//当两个类或者多个类具有相同属性和方法的时候,可以提取出来变成父类,子类可以继承
//子类跟父类是is-a的关系
//使用:
// 1、继承的时候需要使用extends关键字
// 2、使用继承关系后,父类中的属性和方法都可以在子类中进行使用(非私有属性、非私有方法)
// 3、Java中是单继承的
//super: 是直接对象父类的一个引用
//用途:
// 1、 可以在子类中调用直接被父类覆盖的一个方法 super.父类方法名称
// 2、 当super在普通方法中... |
package vinoos.cordova.iap.util.communication;
public interface OnConnectListener {
void connected();
}
|
package org.epclet.serializer;
public class EPCletSemanticSequencer extends AbstractEPCletSemanticSequencer {
}
|
package graphic.Cli;
/**
* Created by Michele on 15/06/2017.
*/
public interface Comando {
void esegui(String[] parametri) throws ComandoNonValido;
}
|
package com.tencent.mm.plugin.profile.ui;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.R;
import com.tencent.mm.ab.e;
im... |
package vc.lang.types;
import java.util.HashMap;
import vc.lang.impl.EvaluationContext;
import vc.lang.impl.deck.ExecutableCard;
import vc.lang.runtime.ExecException;
public class Function extends Token {
private byte[] name;
public Function(byte[] name) {
this.name = name;
}
@Override
... |
package com.techlab.playertest;
import com.techlab.player.Player;
import java.io.Serializable;
public class PlayerTest implements Serializable{
public static void main(String[] args) {
Player p1 = new Player("Sonam", 24, 101);
printInfo(p1);
System.out.println();
Player p2 = new Player("Anjali", 102);
pr... |
package com.hb.rssai.presenter;
import android.content.Context;
import com.hb.rssai.constants.Constant;
import com.hb.rssai.util.T;
import com.hb.rssai.view.iView.IMineView;
import java.util.HashMap;
import java.util.Map;
import retrofit2.adapter.rxjava.HttpException;
import rx.android.schedulers.AndroidSchedulers;... |
package com.example.sunnysingh.home;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.speech.RecognizerIntent;
import android.support.v7.app.AppC... |
package com.haozileung.rpc.client;
import com.haozileung.rpc.common.protocal.RpcRequest;
import com.haozileung.rpc.common.protocal.RpcResponse;
import com.haozileung.rpc.common.protocal.ResponseFuture;
import java.util.concurrent.TimeUnit;
public interface IClient {
void connect();
RpcResponse syncSend(Rpc... |
package com.example.arastech.aronotes;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.SurfaceTexture;
import android.graphics.drawable.... |
package nl.nlxdodge.scrapyard.blocks;
import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.Block;
import net.minecraft.block.Material;
import net.minecraft.block.MaterialColor;
import net.minecraft.client.render.RenderLayer;
import... |
package com.jean.sbc.domain;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import javax.persistence.CascadeType;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax... |
package com.nhatdear.sademo.fragments;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.nhatdear.sademo.R;
import com.nha... |
/**
* 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.domain.impl.report;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.... |
package bnorm.utils;
/**
* A utility class for common trigonometric functions.
*
* @author Brian Norman
* @version 1.1
*/
public final class Trig {
/**
* The {@link Double} representation of a complete circle in radians, which is 2*PI.
*/
public static final double CIRCLE = 2.0 * Math.PI;
... |
package com.abdallahhodieb.nanodegree.nanodegreeportfolio;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(... |
// Sun Certified Java Programmer
// Chapter 1, P43
// Declarations and Access Control
public abstract class Car extends Vehicle {
public abstract void goUpHill(); // Still abstract
public void doCarThings() {
// special car code goes here
}
}
|
package Servlet;
import Conexion.Conexion;
import Dao.BeanUsuario;
import Dao.DaoUsuario_DB;
import java.io.IOException;
import java.io.PrintWriter;
import static java.lang.System.out;
import java.sql.*;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServlet... |
//just a generalNode class that I've used for various assignments so that I don't have to
//always recreate one.
public class generalNode {
private int freq;
public generalNode(int frequency) {
freq = frequency;
}
public int getFrequency() {
return freq;
}
public void setFrequency(int fre... |
package an1;
import javax.faces.context.FacesContext;
import an1.persistence.Membres;
public class PageInscription {
private Membres nouveauMembre;
private SessionBean1 sessionBean1;
public PageInscription() {
sessionBean1 = (SessionBean1) FacesContext.getCurrentInstance()
.getExternalContext... |
package com.tencent.mm.plugin.fts.ui;
import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import ... |
package iterator;
import global.RID;
public class RIDScore {
private RID rid;
private float score;
public RIDScore(RID rid, float score) {
this.rid=rid;
this.score=score;
}
public RID getRid() {
return rid;
}
public void setRid(RID rid) {
this.rid = rid;
}
public float getScore() {
return score... |
package com.leepc.chat.mapper;
import com.leepc.chat.domain.Message;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springfra... |
package com.gkaraffa.polyhedron;
public class Roll {
private int tosses;
private Die die;
public Roll(int tosses, Die die) {
this.tosses = tosses;
this.die = die;
}
public int getTosses() {
return tosses;
}
public Die getDie() {
return die;
}
private static boolean nonZeroCheck(c... |
package com.lec.ex1_inputStreamOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
public class Ex04_outputStream {
public static void main(String[] args) {
OutputStream os = null;
try { // true추가시: 파일에 append, 없으면 덮어씀
o... |
package one.harmony.cmd;
import one.harmony.common.Config;
import one.harmony.rpc.HmyResponse;
import one.harmony.rpc.RPC;
/**
* Blockchain class retrieves the harmony protocol version.
*
* @author gupadhyaya
*
*/
public class Blockchain {
/**
* GetProtocolVersion of Harmony network.
*
* @return protoc... |
package gov.usgs.aqcu.calc;
import java.time.Instant;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gov.usgs.aqcu.model.FieldVisitReading;
//TODO needs testing
public class LastValidVisitCalculator {
Map<String, Instant> last... |
package com.example.spring.properties;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.springframework.core.io.support.SpringFactoriesLoader;
public class FactoryLoader {
@Test
public void load() {
SpringFactoriesLoader.loadFactories(null, this.getClass().getClassLoader(... |
package com.organization.curso.entidades.enums;
public enum PedidoStatus {
//Forma simples: mas não recomendável pois pode haver diferença no INDEX conforme inserção entre valores
/*
Aguardando_Pagamento,
Pago,
Enviado,
Entregue,
Cancelado;
*/
//Forma Ideal
Aguardando_Pagamento(1),
Pago(2),
Enviado(3),... |
package com.example.snookertracker;
import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.support.constraint.ConstraintLayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view... |
package com.computerstudent.madpractical.Practical_16;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.computerstudent.madpractical.Practical_14.gridView;
import com.computerstudent.madpractic... |
// 9번
public class AddNum {
public static void main(String[] args) {
int rand = (int) (Math.random() * 100) % 100;
System.out.println(rand);
String str = Integer.toString(rand);
int[] num = new int[str.length()];
for (int i = 0; i < num.length; i++) {
num[i] = str.charAt(i) - '0';
}
int result = n... |
package test.nz.org.take.compiler.scenario13.generated;
import nz.org.take.rt.*;
/**
* Interface generated by the take compiler.
* @version Mon Feb 18 10:34:08 CET 2008
*/
@SuppressWarnings("unchecked")
public interface KB {
/**
* Method generated for query /hasCategory[in,out]
* @param bean input p... |
package OOPS;
public class Test1 {
public static void main(String[] args) {
Inher3 obj =new Inher3();
obj.m1();
}
}
|
package com.yuan.graduate;
import com.yuan.application.BaseActivity;
import com.yuan.control.CheckControl;
import com.yuan.dialog.CustomProgressDialog;
import com.yuan.dialog.DialogUtil;
import com.yuan.model.M员工信息表;
import com.yuan.model.M请假申请;
import com.yuan.unit.AsyncDataJobHandler;
import com.yuan.unit... |
import greenfoot.*;
import java.awt.Color;
import java.awt.Point;
public class GrapplingHook extends VisibleActor
{
Platform platform;
private double SPEED = 15;
private double ANGLE = 60;
private Color COLOR = Color.BLACK;
private int direction;
private double length = 0;
private Gree... |
package com.github.lnframeworkdemo;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.widget.Button;
import com.github.fragmention.SupportFra... |
/**
* Colgate University COSC 290 Labs
* Version 0.2, 2019
*
* @author Michael Hay
*/
public interface HashFamily<E> {
/**
* Hashes item using the ith hash function in the hash family
* @param item the to be hashed
* @param i which hash function to use
* @return hash value
*/
int... |
package org.houstondragonacademy.archer.dao.entity;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.mongodb.core.mapping.Document;
import java.time.LocalDate;
import java.util.List;
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@Document(collection = ... |
package com.stucom.brickapp.model;
import com.google.gson.annotations.SerializedName;
public class LegoSet {
@SerializedName("set_num")
private String setNum;
private String name;
private int year;
@SerializedName("theme_id")
private int themeId;
@SerializedName("num_parts")
private in... |
package com.infor.models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "tbl_infortransaction")
public class InforTransaction {
publ... |
package com.shoppingonline.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import com.shoppingonline.entity.Goods;
import com.shoppingonline.entity.Shoppin... |
/*
* Copyright 2014 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 applica... |
package org.rebioma.client.forms;
import org.rebioma.client.ApplicationView;
import org.rebioma.client.DataSwitch;
import org.rebioma.client.Email;
import org.rebioma.client.i18n.AppConstants;
import com.google.gwt.user.client.History;
import com.google.gwt.user.client.rpc.AsyncCallback;
public class ForgotPasswordF... |
package com.snab.tachkit.globalOptions;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by Таня on 16.02.2015.
* Работа с сохраненными данными, которые не сохранены в базе данных (временные и переменные)
*/
public class SharedPreferencesCustom {
private static String
... |
package com.hiwes.cores.thread.thread1.Thread0214;
/**
* 判断线程是否是停止状态
* 使用this.interrupted(),测试当前线程是否已经中断。
* // 使用interrupt(),并未中断当前线程main。
* <p>
* 使用this.isInterrupted(),测试线程是否被中断。
*/
public class MyThread02 extends Thread {
@Override
public void run() {
super.run();
for (int i = 0; i < 5... |
package com.zhao.leetcode;
import java.util.HashMap;
import java.util.Map;
public class LFUCache {
private class DLinkedNode{
Integer key;
Integer value;
Integer count;
DLinkedNode prev;
DLinkedNode next;
public DLinkedNode(Integer key,Integer value,Integer count){
... |
public class Calc{
private int r=0;
public int add(int x, int y) { //add method
return x+y;
}
public int sub(int x, int y){
return x-y;
}
public int mul(int x, int y){//multiplication method321312
return x*y;
}
public void iniR(int d){
r+=d;
}
public int getResult(){
return r;
}
}
|
package com.xwechat.api.mp;
import java.util.List;
/**
* 用户画像
* Created by shangqingzhe on 17/10/19.
*/
public class UserPortrait {
private String refDate;
private VisitUvNew visitUvNew;
private VisitUv visitUv;
public String getRefDate() {
return refDate;
}
public void setRefDate(String refDate)... |
package com.yahoo.random;
public class RepeatedCharInString {
/**
* @param args
*/
public static void main(String[] args) {
// String str = "repeatedcharinstring";
String str = "norepat";
int checked =0;
for(int i =0;i<str.length() -1 ; i++){
int val = str.charAt(i) - 'a'; //val has to be unique if ch... |
package com.yunhe.activitymanagement;
import com.yunhe.core.redis.RedisService;
import com.yunhe.systemsetup.entity.Employ;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springfra... |
package ch.fhnw.edu.cpib.cst.interfaces;
import ch.fhnw.edu.cpib.ast.interfaces.IExpr;
public interface ITerm3 extends IProduction {
public IExpr toAbsSyntax();
}
|
package com.tj.Account;
public class BoxOrRectMain {
public static void main(String[] args) {
BoxOrRect box = new BoxOrRect(5, 6, 10);
BoxOrRect rect = new BoxOrRect(10, 5);
box.callNsetVolume(); // calculateVolume
System.out.println("박스 부피: " + box.getVolume());
rect.callNsetVolume();
System.out.println... |
package br.com.treinarminas.academico.operators;
public class OperadotorArithmetic {
public static void main(String[] args) {
int a = 10;
int b = 20;
int soma = a + b;
System.out.println("A Soma de " + a + " + " + b + " = " + soma);
int c = 10;
int d = 20;
int sub = a - b;
System.out.... |
package controller;
import dao.LocalizacaoDao;
import dao.LocalizacaoDaoImp;
import model.Localizacao;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.model.DataModel;
import javax.faces.model.ListDataModel;
import java.util.List;
@ManagedBean
@SessionScoped
public clas... |
/*******************************************************************************
* =============LICENSE_START=========================================================
*
* =================================================================================
* Copyright (c) 2019 AT&T Intellectual Property. All rights res... |
/*******************************************************************************
* Copyright (C) 2010 Daniel Murphy and Peter Brewer
*
* 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 Software Foundation, eithe... |
package network.stuff;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataOutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;
import exception.stuff.EasyIn;
import exception.stuff.MessageListener;
public class Ne... |
package www.chaayos.com.chaimonkbluetoothapp.network;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;
import www.chaayos.com.chaimonkbluetoothapp.data.model.OrderDetail;
/**
* Created by shikhar on 09-08-2016.
*/
publi... |
package tcpdemo;
import java.io.*;
import java.net.*;
import java.util.*;
/**
*
* @author rasmu
*/
public class EchoServer {
static String ip = "localhost";
static int port = 8080;
public static void main(String[] args) throws IOException {
if (args.length == 2) {
ip = args[0];
... |
package com.mahirkole.walkure.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.*;
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@DiscriminatorValue(value = "movie")
public class MovieCast extends CastItem {
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "item_... |
package cn.cnmua.car.dao;
import cn.cnmua.car.domian.PartsImg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Author hjf
* @Date 2020/1/3
**/
public interface PartsImgMapper extends BaseMapper<PartsImg> {
}
|
class Solution {
public int trap(int[] height) {
if (height.length < 3) return 0;
int startEnd = 0;
int endEnd = 0;
int maxValue = 0;
int ret = 0;
int value = height[0];
for (int i = 0 ; i <height.length;i++) {
if (maxValue < height[i]) {
... |
package edu.htu.ap.lesson10;
public class Test {
public static void main(String[] args) {
Major major=new Major(10,"IT");
Course course1=new Course(101,"Programming",1);
Course course2=new Course(102,"Advanced Programming",2);
Course course3=new Course(101,"Data Structure",3);
StudentCourse stdCourse1... |
package pl.java.scalatech.properties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
/**
* @author przodowni... |
package jp.co.aforce.servlets;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jp.co.aforce.beans.SignUpBean;
import jp... |
/*
* Sonar, open source software quality management tool.
* Copyright (C) 2009 SonarSource
* mailto:contact AT sonarsource DOT com
*
* Sonar is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either... |
package database.jdbc.main;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Types;
import database.jdbc.util.DBHandler;
public class CallableStatementExample {
/**
* @param args
*/
public static void main(String[] args) {
CallableStatement cstmt =... |
package com.hackerrank.github.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.CreationTimestamp;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persist... |
package com.ejsfbu.app_main.DialogFragments;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.Point;
import android.net.Uri;
import android.os.Bundle;
im... |
package session3_assignment1;
public class Variables {
int a; //Instance variable
int b; //Instance variable
static int c; //Class variable
static int d; //Class variable
/*
* Instance variables are the variables which are declared inside the class and outside the Main method.
* Instance methods are ... |
package com.farm.tables;
import org.json.JSONObject;
import com.farm.upload.ImageUpload;
import android.os.Environment;
/*
* Represents events table in database
*/
public class Events {
public int eventId;
public String eventOccuredDate;
public String eventOccuredTime;
public String imagePath;
public int mo... |
package de.madjosz.adventofcode.y2020;
import static java.util.stream.Collectors.toList;
import static java.util.stream.Collectors.toMap;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.... |
package com.pk4u.colibri_lessons.activity;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.pk4u.colibri_lessons.R;
import com.pk4u.colibri_less... |
package br.com.formacao.java.Teste.io;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import br.com.formacao.java.Modelo.Cliente;
import br.com.formacao.java.Modelo.ContaCorrente;
/**
* Classe que representa o teste de serializa�... |
package com.lito.fupin.controller.website;
import com.lito.fupin.business.category.ICategoryBusinessService;
import com.lito.fupin.business.paper.IPaperBusinessService;
import com.lito.fupin.meta.category.entity.Category;
import com.lito.fupin.meta.paper.entity.Paper;
import com.sun.org.apache.xpath.internal.operation... |
package com.gxc.city.service.impl;
import java.util.List;
import com.gxc.city.dao.CityDao;
import com.gxc.city.domain.City;
import com.gxc.city.service.CityService;
import com.gxc.province.domain.Province;
public class CityServiceImpl implements CityService {
CityDao cityDao;
public void setCityDao(CityDao cityDa... |
package com.tencent.mm.plugin.game.gamewebview.jsapi.biz;
import com.tencent.mm.plugin.game.gamewebview.ipc.GameProcessActivityTask;
import com.tencent.mm.plugin.game.gamewebview.jsapi.biz.UploadMediaFileHelp.UploadMediaFileActivity;
import com.tencent.mm.plugin.game.gamewebview.jsapi.biz.UploadMediaFileHelp.a;
import... |
package com.nolansherman.team_manager.domains;
import com.nolansherman.team_manager.domains.Domain;
import javax.persistence.*;
/**
* A Futbol Team
* @author Nolan Sherman
* @since Nov-2017
* @version 1.0
*/
@Entity
public class Team extends Domain{
/** The Unique ID for this Team */
@Id
@GeneratedValue(strate... |
package com.mashibing;
/**
* @program: tank
* @description:
* @create: 2020-04-01 16:44
**/
public enum Group {
GOOD, BAD;
}
|
package classes;
public class BicycleDemo {
public static void main(String[] args) {
int startHeight = 50;
int startCadence = 90;
int startSpeed = 0;
int startGear = 2;
MountainBike mountainBike = new MountainBike(startHeight, startCadence,
startSpeed, startGear);
System... |
package com.learning.reactive;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
//@SpringBootTest
class ReactiveMicroServiceApplicationTests {
@Test
void contextLoads() {
System.out.println("Hi Testing");
}
}
|
/*
* 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 repository;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayLi... |
package me.djd.designmode.api;
/**
* Created by dujiande on 2017/3/23.
*/
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.converter.protobuf.ProtoConverterFactory;
import retrofit2.converter.scalars.ScalarsConverterFactory;
public class ServiceGenerator {
pri... |
/*
* Minesweeper Project
* by Group3 : Arnaud BABOL, Guillaume SIMMONEAU
*/
package Controler.Listeners;
import View.Events.ViewEvent;
/**
*
* @author simonneau
*/
public abstract class ViewListener {
/**
*
* @param ev
*/
public abstract void catchViewEvent(ViewEvent ev);
}
|
package LinkList;
public class Node {
private int value;
private Node next;
public Node (int v)
{
value = v;
next = null;
}
public int getValue ()
{
return value;
}
public void setNext (Node n)
{
next = n;
}
public void display()
{
System.out.print(value + " ");
}
publ... |
package com.ugarit.java.designpatterns.bridge.impl;
import java.util.Random;
/**
* Random integer strategy implementation to generate an integer greater than 100
*
* @author durrah ([email protected]) on 5/16/15.
*/
public class GT100RandomIntGenerator implements RandomIntGenerator {
/**
* generator ... |
package com.senac.apps.BatalhaNaval;
import com.senac.apps.BatalhaNaval.controller.BatalhaNavalController;
import com.senac.apps.BatalhaNaval.view.ConsoleView;
public class BatalhaNaval {
public static void main(String[] args) {
BatalhaNavalController controller = new BatalhaNavalController();
ConsoleView v... |
package com.vilio.plms.pojo;
/**
* 类名: BorrowApply<br>
* 功能:借款申请实体类<br>
* 版本: 1.0<br>
* 日期: 2017年7月7日<br>
* 作者: wangxf<br>
* 版权:vilio<br>
* 说明:<br>
*/
public class BorrowApply {
private Integer id;
private String code;
private String amount;
private String applyTime;
private String applySt... |
package com.takshine.wxcrm.message.resp;
import com.takshine.wxcrm.base.message.resp.BaseMessage;
/**
* 文本消息
*
* @author liulin
* @date 2014-02-26
*/
public class TextMessage extends BaseMessage {
// 回复的消息内容
private String Content;
public String getContent() {
return Conte... |
/* ... */
package bufmgr;
import java.io.*;
import java.util.*;
import diskmgr.*;
import global.*;
public class BufMgr implements GlobalConst{
private Hashtable<PageId, Integer> pageFrameMap;
private byte[][] bufPool;
private FrameDesc[] frameDesc;
private int numBufs;
private Replacer replacer;
/**
* ... |
package com.appsquadz.hostelutility;
import android.Manifest;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.wid... |
package gov.samhsa.c2s.pcm.service.dto;
import gov.samhsa.c2s.pcm.infrastructure.dto.RoleDto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ConsentActivityDto {
private String consent... |
/*
* created 19.09.2005 by sell
*
* $Id: TableFonts.java 3 2005-11-02 03:04:20Z csell $
*/
package com.byterefinery.rmbench.figures;
import org.eclipse.swt.graphics.Font;
/**
* encapsulates the font choices for a table figure
*
* @author cse
*/
public class TableFonts {
public Font titl... |
package com.rock.recyclerview;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.rock.recyclerview.adapters.TeachAdapter;
import com.rock.recyclerview.model.Model;
import java.util.A... |
package com.leetcode.wangruns;
//30、best-time-to-buy-and-sell-stock-iii[数组]
/**
* Say you have an array for which the i^(th) element is the price of a given stock on day i
* Design an algorithm to find the maximum profit.
* You may complete at most two transactions.
* Note:
* You may not engage in multiple tran... |
package com.competition;
import com.competition.client.*;
public class Main {
public static void main(String[] args) {
new GetDecathlonCompetitionData();
GetDecathlonCompetitionData result = new GetDecathlonCompetitionData();
String inputFile = "src/com/competition/client/resources/Decath... |
/*
* 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 Gestion.controllers.ControlleurMetier;
import Gestion.controllers.ClassMetiers.ProduitMetier;
import crud.Produit;
import org.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.