text stringlengths 10 2.72M |
|---|
package com.halilayyildiz.game;
import java.util.UUID;
import lombok.Data;
@Data
public class BasePlayer
{
protected String id;
protected String name;
public BasePlayer()
{
this.id = UUID.randomUUID().toString();
}
}
|
package com.vrktech.springboot.gitactivities.constants;
import org.springframework.stereotype.Component;
@Component
public class GitConstants {
public static final String GIT_REPOS_SUCCESS = "Retrieves the statistics of the given Repository And Successfully saved into DB";
public static final String GIT_RETRIEVES_... |
package com.tencent.mm.plugin.appbrand.config;
import android.os.HandlerThread;
import android.os.Looper;
import android.util.Pair;
import com.tencent.mm.ab.a.a;
class r$5 implements Runnable {
final /* synthetic */ String dhF;
final /* synthetic */ boolean frH;
final /* synthetic */ r$b frI;
final /*... |
package com.flutterwave.raveandroid.rave_cache.di;
import android.content.Context;
import android.content.SharedPreferences;
import com.flutterwave.raveandroid.rave_core.di.UiScope;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
@Module
public class CacheModule {
private String R... |
package common;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.util.StopWatch;
public class Aop {
private Log log = LogFactory.getLog(getClass());
public Object aroundLo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.awt.Point;
import java.awt.Polygon;
import java.util.ArrayList;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author adam.horan
*/
public class CentrePolygonTest {
public Cen... |
package com.yida.design.Facade.generator.subsystem;
/**
*********************
* @author yangke
* @version 1.0
* @created 2018年7月14日 下午5:40:15
***********************
*/
public class ClassA {
public void doSomethingA() {
// 业务逻辑
}
}
|
package org.processmining.plugins.PromMasterPlugin.processmining.plugins.improvediscovery.visualization;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import jav... |
package com.websharp.dwtz.dao;
import java.util.ArrayList;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
/**
* Entity mapped to table ENTITY_DISTRIBUTION_APPLY.
*/
public class EntityDistributionApply {
public String InnerID;
public String Distribution_LsNo;
pu... |
package com.categories.junit;
public interface RegressionTests {
}
|
package com.yzpc.interceptor;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
public class RegisterInterceptor extends AbstractInterceptor{
@Override
public String intercept(ActionInvocation arg0) throws Exception {
// TODO Auto-generate... |
package com.gr.jiang.todo.repository;
import com.gr.jiang.todo.model.ToDoItem;
import java.util.List;
/**
* Created by jiang on 16/9/5.
*/
public interface ToDoRepository {
List<ToDoItem> findAll();
ToDoItem findById(Long id);
Long insert(ToDoItem toDoItem);
void update(ToDoItem toDoItem);
void... |
package com.example.healthmanage.ui.activity.mytask.mytaskdetail.selectTaskReceiver;
import android.os.Bundle;
import android.text.Editable;
import android.text.InputType;
import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android... |
package com.itech.reconapp.heading;
public interface HeadingEventListener {
void onHeadingChanged(float heading);
} |
package com.lera.vehicle.reservation.repository.vehicle;
import com.lera.vehicle.reservation.domain.vehicle.Model;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ModelRepository extends JpaRepository<Model, Long> {
}
|
package com.example.bratwurst.service;
import org.springframework.stereotype.Service;
@Service
public interface EncryptionService
{
public String encrypt(String data);
public String decrypt(String data);
}
|
package co.staruml.handler;
import co.staruml.core.DiagramControl;
import co.staruml.core.EdgeView;
import co.staruml.core.View;
import co.staruml.graphics.*;
public abstract class Manipulator {
protected SelectHandler handler;
protected boolean dragged;
protected Point f1, f2;
protected abstract ... |
package quotationsoftware.util;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.scene.control.ComboBox;
import javafx.scene.control.DatePicker;
import javaf... |
package br.com.treinarminas.academicos.operadores;
public class Comparacao {
public static void main(String[] args) {
int a = 5;
int b = 1;
System.out.println(a >= b);
boolean maiorIgual = a >= b;
System.out.println(maiorIgual);
System.out.println(a >= b);
int c = 8;
int d = 10;... |
// Sun Certified Java Programmer
// Chapter 2, P113
// Object Orientation
public class Animal {
public void eat() {
System.out.println("Generic Animal Eating Generically");
}
}
|
package app;
import api.TraqApi;
import db.Database;
import http.MusicServer;
import log.Logger;
import skyway.SkywayApi;
import update.response.ResponseManager;
public interface Bot {
Database getDatabase();
Properties getProperties();
MusicServer getMusicServer();
TraqApi getTraqApi();
SkywayApi... |
package com.google.android.gms.tagmanager;
final class v<T> {
final T bbK;
final boolean bbL;
v(T t, boolean z) {
this.bbK = t;
this.bbL = z;
}
}
|
package io.sugo.DriveRobot;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Random;
/**
* Created by qwe on 17-7-13.
*/
public class Util {
private static final String numBase = "0123456789";
private static final String strBase = "abcdefghijklmnopqrstuvwxy... |
package example.jamesb.moviessample.presentation;
import android.os.Build;
import android.os.Bundle;
import javax.inject.Inject;
import androidx.annotation.ColorInt;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.navigat... |
package com.rackspace.sl.suite;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.Period;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class Test {
public static void main(String[] args) {
ArrayL... |
package com.technology.share.mapper;
import com.technology.share.domain.RolePermission;
public interface RolePermissionMapper extends MyMapper<RolePermission> {
}
|
package com.kareo.ui.codingcapture.implementation.controller;
import static org.mockito.BDDMockito.given;
import static org.mockito.Matchers.*;
import java.util.*;
import com.kareo.ui.codingcapture.implementation.data.*;
import org.joda.time.DateTime;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
i... |
package com.penzias.entity;
/**
* 描述:用药历史<br>
* 作者:ruibo <br>
* 修改日期:2015年12月10日-下午9:28:28 <br>
* E-mail: sireezhang@163.com<br>
*/
public class HistoryPharmacy {
private Integer pharmacyid;
private Integer crowdid;
//用药类型(ZU--前2位)
private String pharmacytype;
//用药名称(ZU... |
package com.team_linne.digimov.model;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.FieldType;
import org.springframework.data.mongodb.core.mapping.MongoId;
@Document
public class Cinema {
@MongoId(FieldType.OBJECT_ID)
private String id;
... |
package com.team.zhihu.controller;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.a... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
package ru.otus.services;
/*
* Created by VSkurikhin at autumn 2018.
*/
import javax.websocket.Session;
public interface DataBroadcaster extends AutoCloseable
{
void registerDataOrigin(String name, DataOrigin origin);
void unregisterDataOrigin(String name);
void registerDataUpdater(Session session, ... |
package com.qd.mystudy.misc;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.util.TypeUtils;
/**
* Created by liqingdong on 15/10/27.
*/
public class TestFastjson {
public static enum Enum {
Test(-1, false),
None(0x00, false),
RegisteredDevice(0x0100, false),
U... |
package Aula11;
import java.util.ArrayList;
public class Prato implements MyComparable{
protected String nome;
protected ArrayList<Alimento> ingredientes = new ArrayList<Alimento>();
public Prato(String aNome)
{
this.nome = aNome;
}
public String getNome() {
return nome;
}
public ArrayList<Alimento> g... |
/**
*Author Fys
*
*Time 2016-7-5-下午2:02:12
**/
package com.goldgov.dygl.module.partyMemberDuty.partyevaluatedata.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.goldgov.dygl.module.partyMemberDuty.mutualevaluation.service.PmUserQuery;
import co... |
package com.algorithms;
/**
* Created by saml on 10/30/2017.
*/
public class Josephus {
static class Node {
int index;
Node next;
Node prev;
public Node(int index) {
this.index = index;
}
public void setNext(Node node) {
this.next = node;
... |
package ru.krasview.kvlib.adapter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.xmlpull.v1.XmlPullParserException;
import ru.krasview.kvlib.indep.consts.AuthRequestConst;
import ru.krasview.k... |
package com.hiwes.cores.thread.thread3.Thread0218;
/**
* 等待/通知 之 交叉备份。
*/
public class MyThread21 extends Thread {
private DBTools dbtools;
public MyThread21(DBTools dbtools) {
super();
this.dbtools = dbtools;
}
@Override
public void run() {
dbtools.backupA();
}
}
... |
package second;
public class A {
int a;
int b;
public A() {
System.out.println("Parent class constructor");
}
public void display(){
System.out.println("Hai Jithin");
}
public static void main(String[] args) {
AcEx1 obj=new AcEx1();
String name=obj.getNam... |
package psk.com.mediaplayerdemo.adapter;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import andr... |
package pattern_test.abstract_factory;
/**
* Description:
*
* @author Baltan
* @date 2019-04-02 11:14
*/
public class Test1 {
public static void main(String[] args) {
BicycleAFactory bicycleAFactory = new BicycleAFactory();
bicycleAFactory.createWheel();
bicycleAFactory.createBrake();
... |
/*
* 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 view;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.swi... |
package com.legalzoom.api.test.integration.ProductsService;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.legalzoom.api.test.client.ResponseData;
import com.legalzoom.api.test.dto.CreateProcessIdDTO;
public class CoreProductsProductTypesProcessProcessIdGetIT extends ProductsTest{
@Test
... |
package com.rc.adapter.message;
import com.rc.components.*;
import com.rc.components.message.RCLeftImageMessageBubble;
import com.rc.res.Colors;
import com.rc.utils.FontUtil;
import javax.swing.*;
import java.awt.*;
/**
* Created by song on 17-6-2.
*/
public class MessageLeftAttachmentViewHolder extends MessageAtt... |
/*
* 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 teg.view;
import java.io.File;
import java.util.Optional;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
impo... |
package edu.iit.cs445.StateParking.UnitTest;
import static org.junit.Assert.*;
import org.junit.Test;
import edu.iit.cs445.StateParking.Objects.Address;
import edu.iit.cs445.StateParking.ObjectsEnum.State;
public class AddressTest {
private Address address = new Address("8763 E. Canyon Rd", "Apple River", State.IL... |
/***********************************************************************************
Deck class.
Simulates a standard 52 card deck.
------------------------------------------------------------------------------------
Lori Nyland
CS 110
Homework 10
***********************************************************************... |
public class HelloWorld
{
public static void main( String[] args )
{
// Les variables
// nom donné à un espace mémoire, contenant une valeur
// déclaration de la variable 'a'
// qui est de type "int" (nombre entier)
int a;
// affectation de la variable 'a' à la valeur 4
a = 4;
// déclarat... |
package com.kodilla.restaurantfrontend.service;
import com.kodilla.restaurantfrontend.OrderMainView;
import com.kodilla.restaurantfrontend.domain.Menu;
import com.kodilla.restaurantfrontend.domain.Product;
import com.vaadin.flow.component.UI;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.compo... |
package com.mimi.mimigroup.model;
public class DM_Tree {
int TreeID;
String TreeCode;
String TreeGroupCode;
String TreeName;
public DM_Tree() {
}
public DM_Tree(int treeID, String treeCode, String treeName) {
this.TreeID =treeID;
this.TreeCode =treeCode;
this.TreeN... |
package com.smxknife.flink.table.demo.demo03;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.flink.api.common.eventtime.WatermarkStrategy;
import org.apache.flink.streaming.api.TimeCharacteristic;
import org.apache.flink.streaming.api.datastream.DataStream;
imp... |
package com.yc.easyui.dao;
import java.util.List;
import com.yc.easyui.bean.Dept;
public class DeptDao {
public List<Dept> findByPage(int pageNo, int pageSize) {
DBHelper db = new DBHelper();
String sql = "select * from (select a.*, rownum rn from ("
+ "select * from dept order by deptno) a where ... |
//Q: A song with words "I AM X" can transform into a dubstep remix as "WUBWUBIWUBAMWUBWUBX" and cannot transform into "WUBWUBIAMWUBX". Return the words of the initial song!
public class RemoveAllWUBFromSong {
public static String SongDecoder (String song)
{
return song.replaceAll("(WUB)+", " ").trim();
}
} |
package com.foobarspam.nif;
import static org.junit.Assert.*;
import org.junit.Test;
public class IdentificadorUtilsTest {
@Test
public void testComprobarExpresion() {
String dni = "43197056C";
Boolean resultado = IdentificadorUtils.ComprobarExpresion(dni);
assertTrue(resultado);
}
@Test
public void te... |
package com.yoandypv.elasticsearch.geoinfo.web;
import com.yoandypv.elasticsearch.geoinfo.model.Area;
import com.yoandypv.elasticsearch.geoinfo.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotat... |
package ba.bitcamp.LabS10D01;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class DrawUndo {
public static void main(String[] args) {
JFrame window = new JFrame();
window.s... |
public class QuadraticEquation {
private double a;
private double b;
private double c;
public QuadraticEquation(double a, double b, double c) {
this.a = a;
this.b = b;
this.c = c;
}
public double getA() {
return a;
}
public double getB() {
retur... |
package checkdictionary;
import java.util.HashSet;
import java.util.Set;
public class Solution {
public boolean canBreak(String input, String[] dict) {
// Write your solution here.
Set<String> dictset = toset(dict);
boolean [] indic = new boolean[input.length()+1];
indic[0] = true;
for (int ... |
package odeSolver;
import java.util.Hashtable;
import Exceptions.WrongCalculationException;
import Exceptions.WrongExpressionException;
import Exceptions.WrongInputException;
import MathExpr.MathExpr;
import MathToken.MathTokenSymbol;
import MatrixMathExpr.ArrayExprC;
import Parser.MathEvaluator;
public abstract cla... |
package com.example.userportal.repository;
import com.example.userportal.domain.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.Optional;
public interface CustomerRep... |
package oop9;
//인터페이스 - 기획서
//사운드 출력 기능이 지원되는 모든 모니터가 갖춰야 하는 기능을 정의한다.
// 모든 모니터는 최소/최대 범위 내의 소리크기만을 가지도록 상수를 정의한다.
public interface Speakable {
public static final int MAX_VOLUME = 100;
public static final int MIN_VOLUME = 0;
void sound();
void volumeUp();
void volumeDown();
}
|
package com.tencent.mm.plugin.account.ui;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.text.TextUtils;
import android.text.TextWatcher;
... |
package com.goldgov.gtiles.core.dao.mybatis;
import java.beans.Introspector;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanNameGenerator;
import org.springframework.co... |
package com.redhat.vizuri.insurance;
import java.io.Serializable;
import java.util.Date;
public class Incident implements Serializable {
private static final long serialVersionUID = -1164413366918727474L;
private Long id;
private IncidentType type;
private String description;
private Date incidentDate;
private... |
package com.theta360.sample.v2;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.FragmentManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net... |
package com.example.corei7.nacimientos;
import com.example.corei7.nacimientos.model.DatosResponse;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
/**
* Created by Core i7 on 19/09/2017.
*/
public interface DatosGobBoService {
@GET("action/datastore_search")
Call<DatosRespon... |
package com.tencent.mm.plugin.fav.a;
import com.tencent.mm.kernel.g;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.storage.aa.a;
class d$1 implements Runnable {
final /* synthetic */ d iVC;
d$1(d dVar) {
this.iVC = dVar;
}
public final void run() {
((ae) g.n(ae.cla... |
package scriptinterface;
import global.StringRepresentation;
import scriptinterface.execution.returnvalues.ExecutionError;
/**
* Parser for signatures which are given as string.
*
* @author Andreas Fender
*/
public interface SignatureInterface extends StringRepresentation {
/**
* Parses the... |
package main;
import daos.EmpDeptDao;
import pojos.Dept;
import pojos.Emp;
import utils.HbUtil;
public class Hb01Main {
public static void main(String[] args) {
EmpDeptDao dao = new EmpDeptDao();
//get emp using empno
// try {
// HbUtil.beginTransaction();
// Emp e = dao.getEmp(7900);
// System.out.pr... |
package pl.cwanix.opensun.agentserver.packets.processors.status;
import io.netty.channel.ChannelHandlerContext;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Marker;
import org.slf4j.MarkerFactory;
import pl.cwanix.opensun.agentserver.packets.c2s.status.C2SAskStatSelectPacke... |
package resource;
import lombok.Data;
import java.io.Serializable;
import java.util.Map;
import java.util.TreeMap;
/**
* Player class - contains Player details and scores
*/
@Data
public class Player implements Serializable {
private String name;
private int id;
private static int playerIds = 1;
pr... |
package materialdesign.practice.com.recyclerfragment.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import java.io.Serializable;
import materialdesign.practice.com.recyclerfragment.R;
import materialdesign.practice.c... |
package com.tkb.elearning.dao.impl;
import java.util.ArrayList;
import java.util.List;
import com.tkb.elearning.dao.AboutLawDao;
import com.tkb.elearning.model.AboutLaw;
import sso.ojdbc.dao.impl.PagingDaoImpl;
/**
* 相關法規Dao實作類
* @author Admin
* @version 創建時間:2016-03-14
*/
public class AboutLawDaoImpl extends P... |
public class Card {
public final static int SPADE = 0;
public final static int CLUB = 1;
public final static int DIAMOND = 2;
public final static int HEART = 3;
private int suit;
private int rank;
public Card(int suit, int rank) {
this.suit = suit;
this.rank = rank;
}
public int getSuite() {
return ... |
package ru.otus.adapters.function;
import org.junit.Assert;
import org.junit.Test;
import ru.otus.models.StatisticEntity;
import java.util.function.Function;
public class CreateStatisticEntityTest
{
@Test(expected = IndexOutOfBoundsException.class)
public void exeption()
{
Function<String[], Stat... |
package customer.gajamove.com.gajamove_customer;
import androidx.appcompat.app.AppCompatActivity;
import customer.gajamove.com.gajamove_customer.adapter.AdditionalPriceServicesAdapter;
import customer.gajamove.com.gajamove_customer.adapter.BigSidePointAdapter;
import customer.gajamove.com.gajamove_customer.adapter.Mul... |
/*
Дано вещественное число A и целое число N (> 0). Используя один цикл, найти значение выражения 1 - A + A2 - A3 + ... + (-1)^N*A^N. Условный оператор не использовать. Для реализации использовать функции.
*/
public class Ex_32_func {
public static double lineSum(double A, int N){
double line = 1d;
int plusMinus ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package com.vilio.nlbs.todo.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.vilio.nlbs.commonMapper.dao.NlbsLoginInfoMapper;
import com.vilio.nlbs.commonMapper.dao.NlbsPendingUserDistributorMapper;
import com.vilio.nlbs.commonMapper.dao.NlbsTodoMapper;
import co... |
package com.prudential.car.controller.bean;
import java.util.Date;
public class RentalCarRequest {
private long carId;
private String rentalCode;
private Date startRentalDate;
private Date endRenttalDate;
public long getCarId() {
return carId;
}
public void setCarId(long carId) {... |
package com.hxzy.service.impl;
import com.hxzy.entity.JobtableViews;
import com.hxzy.mapper.JobtableViewsMapper;
import com.hxzy.service.JobtableViewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.... |
package com.ibeiliao.trade.impl.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ibeiliao.pay.datasource.MyBatisDao;
import com.ibeiliao.trade.impl.entity.OrderLogPO;
/**
* t_order_log 表的操作接口
*
* @author linyi 2016-07-12
*/
@MyBatisDao
public interface OrderLogDao {
/**
* ... |
/**
* The Location class is used create a location object which has an xCoord and yCoord to determine position.
*
* @author Administrator
*
*/
public class Location
{
private int xCoord;
private int yCoord;
/**
* This is an empty Location constructor that initializes the xCoord and yCoord to 0.
*/
... |
package com.example.ahmed.octopusmart.Model.ServiceModels.Home;
import java.io.Serializable;
/**
* Created by sotra on 12/19/2017.
*/
public class HomeBase implements Serializable {
String display_model_tybe ;
public String getDisplay_model_tybe() {
return display_model_tybe;
}
public voi... |
/*
* 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 dao;
import common.AccessBdd;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import model.Cr... |
package com.jim.multipos.ui.consignment.view;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SimpleItemAnimator;
import android.widget.EditText;
import android.widget.ImageVie... |
package com.te.HibernateAssignment;
import java.util.Scanner;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import com.te.HibernateAssignment.bean.Employee;
public class MainEmpl... |
package com.takshine.wxcrm.message.sugar;
import java.util.ArrayList;
import java.util.List;
/**
* 查询产品类别接口 从crm响应回来的参数
*
* @author huangpeng
*
*/
public class ProductTypeResp extends BaseCrm {
private String count = null;// 数字
private String currpage = "1";// 当前页
private String pagecount = "5";// 每页的条数
pr... |
package sickbook.ui.dashboard;
import android.app.AlertDialog;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.provider.MediaStore;
i... |
package com.tinyurl.service;
import java.security.NoSuchAlgorithmException;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import com.tinyurl.utils.TinyUrlConverte... |
package com.van.web.interceptor;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* 日志记录
*/
public class LogI... |
package gov.virginia.dmas.validation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;
@Target({ ElementType.TYPE, ElementType.ANNOTATIO... |
/*
Copyright 2018 Lucas Antonio Xavier Silva
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 writin... |
package corgi.hub.core.mqtt.bean;
/**
* Created by Terry LIANG on 2017/1/15.
*/
public class NotifyEvent {
private long storeMsgId;
private long createTime;
private int nodeNumberStart;
private int nodeNumberEnd;
public long getStoreMsgId() {
return storeMsgId;
}
public void ... |
package com.cg.javafillstack.collection.set;
import java.util.TreeSet;
public class TreeSetEx {
public static void main(String[] args) {
TreeSet ts=new TreeSet();
ts.add(89);
ts.add(98);
ts.add(12);
ts.add(2);
for(Object o:ts)
{
System.out.println(o);
}
}
}
|
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the te... |
package mnm.mods.tabbychat.settings;
import mnm.mods.util.Color;
import mnm.mods.util.config.Setting;
import mnm.mods.util.config.SettingObject;
import mnm.mods.util.config.SettingValue;
public class ColorSettings extends SettingObject<ColorSettings> {
@Setting
public SettingValue<Color> chatBoxColor = value... |
package graphSeries;
import java.util.ArrayList;
@SuppressWarnings("unused")
public class GraphRepAdj {
public static void main(String[] args) {
int n = 3;
int m = 3;
ArrayList<ArrayList<Integer>> adj = new ArrayList<>();
for (int i = 0; i <= n; i++) {
adj.add(new ArrayList<Integer>());
}
... |
package day49_AbstractionIntro;
public class Square extends Shape{
double side;
public Square(double side) {
this.side=side;
}
@Override
protected void Area() {
double area=side*side;
System.out.println("Square area is "+area);
}
@Override
protected void perimeter() {
double perimeter=side*4;
System... |
package cn.canlnac.onlinecourse.presentation.internal.di.modules;
import java.io.File;
import cn.canlnac.onlinecourse.domain.executor.PostExecutionThread;
import cn.canlnac.onlinecourse.domain.executor.ThreadExecutor;
import cn.canlnac.onlinecourse.domain.interactor.DownloadUseCase;
import cn.canlnac.onlinecourse.dom... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.