text stringlengths 10 2.72M |
|---|
package drivetrain;
import utilities.Controllers;
import edu.wpi.first.wpilibj.Joystick.RumbleType;
public class TiltDecorator extends DriveControlDecorator{ //vibrates controllers when the robot is tilted
private DriveIO driveIO = DriveIO.getInstance();
private final double rollAngle = 5, pitchAngle = 5;
public... |
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.ArrayList;
public class MercadoriaGUI extends JFrame {
private JTextArea taLista;
private JScrollPane pLista;
public MercadoriaGUI() {
super("Mercado USJT - v.1.0");
Container tela = getContentPane();
tela.setLayout(new B... |
/*
* Copyright 2019 Google Inc. All Rights Reserved.
*
* 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 applic... |
package com.itheima.springboot_rabbitmq_consumer.config;
public class User {
private String name;
private Integer age;
private User(UserBuilder userBuilder) {
this.name = userBuilder.name;
this.age = userBuilder.age;
}
@Override
public String toString() {
return "User{" +
"name='" + name + '\'' +
... |
/*
* Copyright 2016 Grzegorz Skorupa <g.skorupa at gmail.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
package elasticsearch.plugin.level.util;
import redis.clients.jedis.Jedis;
import java.util.*;
import static elasticsearch.plugin.level.util.RedisForLevel.getSourceLevelClient;
/**
* Created by geyl on 2018/1/30.
*/
public class CheckLevelStat {
private static final int REDIS_DB = 14;
pub... |
package JavaBasics;
import com.sun.org.apache.xpath.internal.SourceTree;
/**
* Created by RXC8414 on 5/4/2017.
*/
public class ArrayExamples {
public static void main(String[] args) {
double[] numbers = {5.6,4.5,13.2,4.0,34.33,34.0,45.45,3.3,99.993,11123};
// 1. Print out all number inside arra... |
../../../jvmti-common/Locals.java |
package co.cinemas.ingeneo.controlador;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessExcepti... |
// KeyboardReader.java
package org.google.code.netapps.bigdigger;
import java.io.File;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/**
* This class is trying to read from keyboard in form of
* separate process
*
* @version 1.1 08/20/2001
* @author ... |
import org.junit.runner.JUnitCore;
/**
* Created by Annag on 5/22/2017.
*/
public class Main {
public static void main(String[] args) {
JUnitCore.runClasses(TestPrimary.class);
}
}
|
package com.zevzikovas.aivaras.terraria.activities;
import android.content.Intent;
import android.os.Bundle;
import android.app.Activity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import com.zevzikovas.aivaras.terraria.R;
import com.zevzikovas.aivaras.terraria.activi... |
package com.example.examenmoviles2020;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import and... |
/*
* 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 TSASoftwareDevelopment;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPan... |
package com.flower.core.dao.mapper;
import java.util.List;
/**
* @author cyk
* @date 2018/7/30/030 13:51
* @email choe0227@163.com
* @desc
* @modifier
* @modify_time
* @modify_remark
*/
public interface BaseMapper<T> {
/**
* 分页查询
* @param t 依据T中不为null的属性进行查询
* @param start_time 开始时间
*... |
/**
* <Date Util.>
* Copyright (C) <2009> <Wang XinFeng,ACC http://androidos.cc/dev>
*
* 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, either version 3 of the License, or
* (at your... |
package com.lenovohit.ssm.treat.model;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
public class UnPayedFeeRecord {
private String prescriptionId; //
private String prescriptionDate;//
private String deptId; //
private String deptName; //
private String doctorId; //
priv... |
package servlets;
import java.io.IOException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.an... |
package block4;
import java.util.concurrent.ConcurrentLinkedQueue;
/**
* Created by Hans on 18-5-2016.
*/
public class MyBasicDekkerLock implements BasicLock {
ConcurrentLinkedQueue flags;
Integer turn; //TODO: Do I really need an atomic integer?
public MyBasicDekkerLock(){
flags = new Concurr... |
package com.zhibo.duanshipin.adapter;
import android.content.Context;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.FrameLayout;
import android.widget.ImageView;
import com.bumptech.g... |
/*
* Copyright 2017 Rundeck, Inc. (http://rundeck.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
package falcons.server.model;
import java.util.HashMap;
import falcons.plugin.AbstractPlugin;
import falcons.plugin.Pluggable;
public class PluginModel {
private static PluginModel instance;
private static HashMap<String,Pluggable> pluginMap;
/**
* Default constructor
*/
private PluginModel(... |
package com.gsccs.sme.web.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
im... |
package cn.test.demo01;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
public class CollectionDemo1 {
public static void main(String[] args) {
//集合可以存储任意类型的对象,不指定存储的数据类型则什么类型的都存
Collection coll = new ArrayList();
coll.add("1qw");
//coll.add(2);
//coll.add... |
package pack.cd.interfaces;
import pack.cd.CdAlbum;
import java.util.List;
public interface Sortable {
List<CdAlbum> getSortedByTitleRecords();
List<CdAlbum> getSortedByArtistRecords();
List<CdAlbum> getSortedByRecordPrice();
List<CdAlbum> getSortedByIdAsc();
List<CdAlbum> ge... |
package pro.likada.model;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.util.*;
import java.util.stream.Collectors;
/**
* Creat... |
/**
*
*/
package com.application.beans;
import android.os.Parcel;
import android.os.Parcelable;
/**
* @author Vikalp Patel(VikalpPatelCE)
*
*/
public class MobcastFeedbackSubmit implements Parcelable {
private String mobcastFeedbackId;
private String mobcastFeedbackQueId;
private String mobca... |
package does_this_linked_list_have_a_cycle;
import java.util.HashSet;
import java.util.Set;
// https://www.interviewcake.com/question/linked-list-cycles
public class App {
public static void main(String args[]) {
SinglyLinkedList singlyLinkedList = new SinglyLinkedList();
singlyLinkedList.add(1);
singlyLinked... |
package edu.cricket.api.cricketscores.task;
import com.cricketfoursix.cricketdomain.aggregate.GameAggregate;
import com.cricketfoursix.cricketdomain.repository.GamePlayerPointsRepository;
import edu.cricket.api.cricketscores.async.RefreshEventPlayerPointsTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
i... |
package com.agamidev.newsfeedsapp.Fragments;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Controller.Admin;
import Business.TypeRoomBAL;
import Entity.TypeRoom;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
/**
*
* @author TUNT
*/
@ManagedBean
... |
package mx.redts.adendas.model;
// Generated 15-jul-2014 23:09:21 by Hibernate Tools 3.4.0.CR1
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.springframework.security.core.GrantedAuthority;
/**
* Perfil generated... |
package com.zhaoyan.ladderball.service.event.handler;
import com.zhaoyan.ladderball.dao.match.MatchPartDao;
import com.zhaoyan.ladderball.domain.eventofmatch.db.EventOfMatch;
import com.zhaoyan.ladderball.domain.match.db.MatchPart;
public class EventXiaoJieJieShuHandler extends EventHandler {
@Override
publi... |
package com.citibank.ods.entity.pl.valueobject;
import java.math.BigInteger;
import java.util.Date;
import com.citibank.ods.common.entity.valueobject.BaseEntityVO;
//
//©2002-2007 Accenture. All rights reserved.
//
/**
* [Class description]
*
* @see package com.citibank.ods.entity.pl.valueobject;
... |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... |
package com.precipicegames.zeryl.hidenseek;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;
/**
*
* @author Zeryl
*/
public class HideNSeekPlayerListener implements Listen... |
/**
* Support classes for the open source cache in
* <a href="https://github.com/ben-manes/caffeine/">Caffeine</a> library,
* allowing to set up Caffeine caches within Spring's cache abstraction.
*/
@NonNullApi
@NonNullFields
package org.springframework.cache.caffeine;
import org.springframework.lang.NonNullApi;
i... |
package com.hamatus.repository.search;
import com.hamatus.domain.SectorTranslation;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
/**
* Spring Data ElasticSearch repository for the SectorTranslation entity.
*/
public interface SectorTranslationSearchRepository extends Elasticsear... |
package com.needii.dashboard.model.form;
import com.needii.dashboard.model.DeliveryOrder;
import java.util.Date;
public class DeliveryOrderForm {
private long id;
private Long shippersId;
private Long customerIdCallShipper;
private String orderCode;
private String merchantOrderId;
priva... |
package com.hd.stepbar.indicator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Point;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.graphics.d... |
/**
*
*/
package com.rd.monitoring.subapp;
import javax.inject.Inject;
import com.rd.monitoring.ui.IFactoriaElementosUI;
import com.vaadin.ui.Component;
import com.vaadin.ui.VerticalLayout;
/**
* @author David Caviedes
*
*/
public class MonitoringMainSubappViewImpl implements MonitoringMainSubappView {
priva... |
package com.stk123.service.core;
import com.stk123.entity.StkKeywordEntity;
import com.stk123.entity.StkKeywordLinkEntity;
import com.stk123.repository.BaseRepository;
import com.stk123.repository.StkKeywordLinkRepository;
import com.stk123.repository.StkKeywordRepository;
import com.stk123.service.StkConstant;
import... |
package com.programapprentice.app;
import java.util.*;
/**
* User: program-apprentice
* Date: 10/11/15
* Time: 10:31 PM
*/
public class WordDictionary {
private final int R = 26;
class TrieNode {
public char c;
public boolean endOfWord = false;
public TrieNode[] next = null;
... |
package com.experian.brand.controller;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMet... |
package trees;
import java.util.LinkedList;
import java.util.Queue;
class Manode {
int data;
Manode left, right;
public Manode(int value) {
data = value;
left = right = null;
}
}
public class MxNode {
Manode root;
// recursive method
int maxRec(Manode node) {
int max = Integer.MIN_VALUE;
if (node ... |
package com.cninnovatel.ev.db;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.Property;
import de.greenrobot.dao.internal.DaoConfig;
import com.cninnovatel.ev.db.RestCallRow_... |
package io.nuls.consensus.network.message.v1.thread;
import io.nuls.base.basic.AddressTool;
import io.nuls.base.signture.SignatureUtil;
import io.nuls.consensus.network.constant.NetworkCmdConstant;
import io.nuls.consensus.network.service.ConsensusNetService;
import io.nuls.consensus.network.service.NetworkService;
im... |
package se.rtz.bindings.view.enable_disable;
import se.rtz.bindings.model.OneWayConverterProperty;
import se.rtz.bindings.model.Property;
import se.rtz.bindings.model.SModel;
import se.rtz.bindings.model.SimpleProperty;
public class TestEnableDisableModel extends SModel {
private Property<String> textValue = new Si... |
public class UltimateTeam {
public ArrayList<UltimatePlayer> players;
public ArrayList<Coach> coaches;
public UltimateTeam(ArrayList<UltimatePlayer> players, ArrayList<Coach> coaches) {
this.players = players;
this.coaches = coaches;
}
public String getCutters() {
S... |
package factorypattern.noodle.abstractfactory.ingredient;
/**
* The beef soup.
*
* @author Thomson Tang
*/
public class BeefSoup extends Soup {
}
|
package com.seven.jdbc.tables;
import java.sql.ResultSet;
import java.sql.SQLException;
public class States {
public static void displayData(ResultSet rs) throws SQLException {
while (rs.next()) {
String str = rs.getString("stateId") + ": " + rs.getString("stateName");
System.out.println(str);
}
Syste... |
/*
* Lesson 14 Coding Activity 2
* Write a program to input two integers and print
* "Both are positive or zero." to the screen, if both are positive or zero.
* Print "One or both are negative." otherwise.
*/
import java.util.Scanner;
class Lesson_14_Activity_Two {
public static void main(String[] args)
... |
package com.temp;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;
import java.util.Scanner;
public class ReadFileExample {
public static void main(String[] args) throws I... |
package io.pivotal.gcp;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
@SpringBootApplication
@Import(org.springframework.cloud.stream.app.time.source.TimeSourceConfiguration.class)
public cl... |
package controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.LinkedList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.h... |
package com.example.demo.DAO;
import com.example.demo.DO.TeacherDO;
import java.util.List;
public interface TeacherMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table teacher
*
* @mbg.generated
*/
int deleteByPrimaryKey(String... |
//package alien4cloud.it.cloud;
//
//import static org.junit.Assert.*;
//
//import java.io.IOException;
//import java.util.List;
//import java.util.Map;
//
//import org.apache.commons.lang3.StringUtils;
//import org.apache.http.NameValuePair;
//import org.apache.http.message.BasicNameValuePair;
//
//import alien4cloud.... |
/*
* 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, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
package org.gracejvc.vanrin.dao;
import java.util.List;
import org.gracejvc.vanrin.model.Nationality;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
public class NationalityADOImpl implements NationalityADO {
private SessionFactory sessionFactory;
public NationalityADOImpl(SessionF... |
package com.dusan.demoproject.controller;
import com.dusan.demoproject.domain.Todo;
import com.dusan.demoproject.shared.TodoNotFoundException;
import com.dusan.demoproject.service.TodoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
impo... |
package edu.betygreg.data;
public class DataFacade {
public DataFacade() {
}
public void setGrade(String id, String grade) throws Exception {
DBFacadeSingleton.getDBFacadeSingleton().setStudentGrade(id, grade);
}
public String getGrade(String id) throws Exception {
return DBFacad... |
package com.framgia.fsalon.screen.customer;
import com.framgia.fsalon.data.model.CustomerResponse;
import com.framgia.fsalon.data.source.UserRepository;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.annotations.NonNull;
import io.reactivex.disposables.CompositeDisposable;
import io.rea... |
package com.example.BankOperation.service;
import com.example.BankOperation.model.Credit;
import com.example.BankOperation.model.Payment;
import java.util.List;
public interface PaymentService {
// Credit addPayment(Payment p);
//
List<Payment> getPaymentHistory(Long id);
//
// Payment getPayment(Long id);... |
package com.data.main.entity;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class EMPLOYEE_INFORMATIONS_E {
@Id
private Number EMPLOYEE_ID;
private String EMPLOYEE_NAME;
private String EMPLOYEE_ID_CARD;
private String EMPLOYEE_SEX;
p... |
package forkjoinV2;
import java.util.Deque;
import java.util.LinkedList;
/**
* Thread pool, based on the fork-join framework.
* Executes tasks that extend the abstract {@link Task} class.
* <p>
* To use this fork-join pool, instantiate a {@link Pool} object, call
* {@link Pool#start()} to start the worker thread... |
package Lec_02_SimpleOperationsAndCalculations;
import java.util.Scanner;
public class Lab05_ProjectsCreation {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Въведете име на архитект: ");
String name = scanner.nextLine();
Sys... |
package generic;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
... |
package com.kwik.fixture.load;
import br.com.six2six.fixturefactory.Fixture;
import br.com.six2six.fixturefactory.Rule;
import com.kwik.fixture.ProdutoSpike;
import com.kwik.infra.security.Encryption;
import com.kwik.models.Address;
import com.kwik.models.Category;
import com.kwik.models.Client;
import com.kwik.model... |
package com.dongann.app.cusers;
import com.dongann.app.TestBase;
import com.dongann.app.service.cuser.CusersService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework... |
package com.transport.dao.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
//import javax.sql.DataSource;
//import org.springframework.jdbc.core.JdbcTemplate;
... |
package lavaplayer.source.local;
import java.io.File;
import lavaplayer.container.MediaContainerProbe;
import lavaplayer.source.AudioSourceManager;
import lavaplayer.track.AudioTrack;
import lavaplayer.track.AudioTrackInfo;
import lavaplayer.track.DelegatedAudioTrack;
import lavaplayer.track.InternalAudioTrack;
impor... |
package com.gaoshin.cloud.web.vm.entity;
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
public class GaoVmEntity {
@Id
@GeneratedValue(stra... |
Node mergeLists(Node l1, Node l2) {
// This is a "method-only" submission.
// You only need to complete this method
Node head = new Node();
Node p = head;
while(l1!=null||l2!=null){
if(l1!=null&&l2!=null){
if(l1.data < l2.data){
p.next = l1;
... |
package mod6AI.ai;
/**
* Created by Student on 25-11-2014.
*/
public enum ClassificationType {
C1("C1"),
C2("C2");
private String name;
private ClassificationType(String name) {
this.name = name;
}
public void setName(String name) {
this.name = name;
}
@Override
... |
package db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.*;
import java.io.Serializable;
/**
* 测试类——Word
* Created by 6gold on 2017/3/14.
*/
public class Word implements Serializable {
private static final long serialVersionUID = 1L;
public... |
/*
* 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.ut.healthelink.service;
import com.ut.healthelink.model.newsArticle;
import java.util.List;
/**
*
* @author chadmccue
... |
/*
* 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.infiniteskills.mvc.controllers.rest;
import static com.infiniteskills.mvc.controllers.rest.RestControllerRabota._PATH9;
i... |
package edu.neu.ccs.cs5010;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
public class DetachedHouse implements House {
Candy detachedCandy;
List detachedList;
/**
*
* @return the candy list detached house can give to children
*/
public List g... |
package com.example.arthi.appendixxxvi;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
imp... |
package bean.users;
import java.io.Serializable;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany... |
package com.dian.diabetes.dto;
public class ReportDto {
public String name;
public String value;
}
|
package com.croquis.crary.restclient.gson;
import com.croquis.crary.util.CraryIso9601DateFormat;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import com.google.gson.JsonPrimitive;
import com.go... |
package person;
import java.util.ArrayList;
import bomb.Bomb;
import types.AbstractItem;
import weapon.Weapon;
public class Person {
public Weapon m_Weapon;
public Bomb m_Bomb;
public void create(AbstractItem ai) {
ArrayList<Person> list = new ArrayList<Person>();
Weapon w;
m_Weapon = ai.createWeapon();
... |
package decorator.developer;
/**
* Общий интерфейс
* */
public interface Developer {
String makeJob();
}
|
package com.github.chanming2015.springcloud.eureka.client;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
/**
*
* Description:
* Create Date:2018年6月1日
* @author Xu... |
package com.test;
import com.zaiou.common.support.CustomRestTemplate;
import com.zaiou.web.WebApplication;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest... |
package crescendo.base.profile;
import java.io.Serializable;
import java.util.ArrayList;
/**
* SongPreference
*
* This storage class represents the preferences associated with a song.
*
* Features include:
*
* filePath to the song numTracks of the song activeTrack for the user to play
*
* t... |
package com.amazon.bookstore;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import java.util.List;
@RepositoryRestResource(collectionResourceR... |
package com.example.dam.recetario.receta;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.example.dam.recetario.Ayudante;
import com.example.dam.recetario.MainActivity;
import com.e... |
package com.cs.player;
import com.cs.payment.Money;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
import org.springframewo... |
package com.demo.common.emun;
public enum UserType {
NORMAL_USER(1), FORUM_ADMIN(2), SUPER_ADMIN(99);
private int i;
UserType(int type) {
i = type;
}
public int getValue() {
return i;
}
public static void main(String[] args) {
System.out.println(UserType.FORUM_ADMIN.getValue());
}
}
|
package mf.fssq.mf_part_one.entity;
import java.util.Calendar;
// 懒汉式创建当前时间对象
public class SingleCurrentTime {
// 年月日
private int year;
private int month;
private int date;
// 时分秒
private int hour;
private int minute;
private int second;
// 星期
private String week;... |
package GUI;
import java.io.IOException;
import javax.swing.JFrame;
import jeu.Jeu;
/**
* Fenêtre affichée
* @author Dorian Opsommer, Rémy Voet
*
*/
public class Fenetre extends JFrame{
private Menu men;
public Fenetre(int tailleX, int tailleY){
this.setTitle("Casse-Brick");
this.setResizable(false);
... |
package com.codecool.stampcollection.exception;
import org.zalando.problem.AbstractThrowableProblem;
import org.zalando.problem.Status;
import java.net.URI;
public class ItemNotFoundException extends AbstractThrowableProblem {
public ItemNotFoundException(Long id) {
super(
URI.create("/a... |
/*
* Copyright (C) 2012~2016 dinstone<dinstone@163.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
package it.bibliotecaweb.servlet.libro;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import it.bibliotecaweb.model.Libr... |
package com.example.armstest.controller;
import com.example.armstest.Demand;
import com.example.armstest.StatusDemand;
import com.example.armstest.data.DemandRepo;
import com.example.armstest.data.JpaDemandRepo;
import com.example.armstest.data.StatusDemandRepo;
import lombok.extern.slf4j.Slf4j;
import org.springframe... |
package com.example.firstprogram.myAdapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.example... |
package com.example.login.exception;
import org.springframework.security.core.AuthenticationException;
public class NotEnoughPermissionException extends AuthenticationException {
public NotEnoughPermissionException(String msg) {
super(msg);
}
}
|
package com.atguigu.exer;
/*
* 在前面定义的Person类中添加构造器,利用构造器设置所有人的age属性初始值都为18。
修改上题中类和构造器,增加name属性,使得每次创建Person对象的同时初始化对象的age属性值和name属性值。
*/
class Person{
int age;
String name;
//构造器 - 创建对象时会调用构造器
public Person(){
age = 18;
}
public Person(String n,int a){
name = n;
age = a;
}
public void info(){
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.