text stringlengths 10 2.72M |
|---|
package jianzhioffer;
/**
* @ClassName : Solution11
* @Description : 从反转数组中找出最小的数字:要再看一下
* 这题不够熟悉
* 比较的是左右元素,而不是下标。
* 特殊情况是左、中、右相等
*
* 其他变形:判断翻转数组是否存在某个数,存在则返回index,不存在则插入这个数,返回插入后的index
* @Date : 2019/9/15 18:35
*/
public class Solution11 {
public int minNumberInRotateArray(int [] array) {
int le... |
package com.sap.als.persistence;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
@Entity
@NamedQueries({
@NamedQuery(name = "StepTestAxisById", query = "sel... |
package io.electrum.sdk.masking2.json;
import com.jayway.jsonpath.Configuration;
import com.jayway.jsonpath.DocumentContext;
import com.jayway.jsonpath.InvalidJsonException;
import com.jayway.jsonpath.InvalidPathException;
import com.jayway.jsonpath.JsonPath;
import com.jayway.jsonpath.Option;
import com.jayway.jsonpa... |
package com.exam.dao.h2;
import com.exam.connection_pool.ConnectionPool;
import com.exam.connection_pool.ConnectionPoolException;
import com.exam.dao.ProfileDAO;
import com.exam.dao.TeamDAO;
import com.exam.dao.UserDAO;
import com.exam.models.User;
import com.exam.util.DataScriptExecutor;
import org.junit.BeforeClass;... |
package com.mhg.weixin.bean.enums;
/**
* @Classname MsgTypeEnum
* @Description TODO
* @Date 2020/1/29 14:52
* @Created by pwt
*/
public enum MsgTypeEnum {
TXET("text","文本消息");
private final String code;
private final String desc;
MsgTypeEnum(String code, String desc){
this.code = code;... |
package ua.artcode.repository;
import ua.artcode.model.Country;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;
@Component
public class CountryRepository {
private List<Country> countries;
@PostConstruct
public ... |
package com.funnums.funnums.uihelpers;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.Canvas;
import android.graphics.Paint;
/*
Adapted from James Cho's "Beginner's Guide to Android Game Development
Buttons we can use inside the game's Surf... |
package peace.developer.serj.photoloader.Util;
import android.graphics.Bitmap;
import android.util.LruCache;
public class CacheProvider {
private LruCache<Integer,Bitmap> mCache;
public CacheProvider (LruCache<Integer,Bitmap> cache){
mCache = cache;
}
public void saveToCache(Bitmap bitmap, i... |
package ChronoTimers;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt... |
package componentes;
import java.awt.Font;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
public class MeuBotao extends JButton {
public MeuBotao(String texto) {
super(texto);
}
public MeuBotao(String localImagem, String nome, boolean areaFilled, boolean bo... |
/*
* Copyright 2002-2023 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 com.ipincloud.iotbj.srv.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;
import java.sql.Date;
import java.sql.Timestamp;
import com.alibaba.fastjson.annotation.JSONField;
//(SensorBridge)网桥管理
//generate by redcloud,2020-07-24 19:59:20
public class SensorBridge implement... |
package org.point85.domain.dto;
import org.point85.domain.collector.CollectorDataSource;
public abstract class CollectorDataSourceDto extends NamedObjectDto {
private String host;
private String userName;
private String userPassword;
private String sourceType;
private Integer port;
protected CollectorDataS... |
package com.example.restclients2;
/**
* Created by NSG1 on 3/4/2015.
*/
public class getset
{
public int id;
public void set(int id)
{
this.id=id;
}
public int get()
{
return this.id;
}
}
|
/* ScalableTimerTask.java
Purpose:
Description:
History:
Wed Dec 5 14:31:40 2007, Created by tomyeh
Copyright (C) 2007 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
pa... |
package com.example.attest.service;
import com.example.attest.model.api.TransactionApi;
import com.example.attest.model.domain.Account;
public interface AccountService {
Account updateBalance(TransactionApi transactionApi);
}
|
package com.memory.platform.modules.system.base.service;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.memory.platform.core.service.IBaseService;
import com.memory.platform.modules.system.base.model.SystemDept;
import com.memory.platform.modules.system.base.model.SystemRole;
import ... |
package com.brainacademy.gui.bundle;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Locale;
import java.util.ResourceBundle;
import javax.swing.*;
public class Application {
private static class MainFrame extends JFrame {
private JButton butt... |
package com.test;
/**
* https://leetcode.com/problems/house-robber/
*
* 递推式: result[i] = Math.max(nums[i] + result[i-2], nums[i-1] + result[i - 3])
*
* @author yline
*/
public class SolutionA
{
public int rob(int[] nums) {
if (null == nums || nums.length == 0) {
return 0;
}
if (nums.le... |
package Stack;
import java.util.Stack;
/*Reverse a string word by word
* Example
* Original Sentence : Hello, How are you?
* Reversing sentence using stack : you? are How Hello, */
public class StackReverseStringWordByWord {
public static void reverseStringWithStack(String sentence)
{
if(sentence == nul... |
package filter;
import com.sun.deploy.net.HttpRequest;
import dbutil.DBUtil;
import entities.Users;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
@WebFilter("/filter.UserFilter")
public class UserFilter implements Filter {... |
package util;
import java.io.PrintStream;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
/**
* Class <code>MemoryTest</code> can be used to print out the memory usage every so often.
*
* @author "Austin Shoemaker" <austin@genome.arizona.edu>
* @see TimerTask
*/
public class MemoryTest... |
package no_spring.car;
import no_spring.audio.Alpine;
import no_spring.audio.Sony;
import no_spring.navigation.Garmin;
public class Audi2 {
public Alpine audioSystem = new Alpine();
public Garmin navigationSystem = new Garmin();
public void move() {
System.out.println("**************************... |
package com.example.sypark9646.item21;
@FunctionalInterface
public interface Calculation {
Integer apply(Integer x, Integer y);
}
|
package org.juxtasoftware.service;
import org.junit.After;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import o... |
package com.hzy.lamedemo;
import java.util.Calendar;
import java.util.Date;
public class CommonUtils {
public static String generateMp3FileName(){
long backTime = new Date().getTime();
Calendar cal = Calendar.getInstance();
cal.setTime(new Date(backTime));
int year = cal.get(Calendar.YEAR);
int month = c... |
package com.penglai.haima.ui.charge;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.lzy.okgo.OkGo;
import com.penglai.haima.R;
import com.penglai.haima.base.BaseActivity;
import com.penglai.haima.b... |
package com.blackflagbin.kcommondemowithjava.common.entity.net;
/**
* Created by blackflagbin on 2018/3/25.
*/
public class DataItem {
/**
* desc : 还在用ListView?
* ganhuo_id : 57334c9d67765903fb61c418
* publishedAt : 2016-05-12T12:04:43.857000
* readability :
* type : Android
* url ... |
package com.cloudaping.cloudaping.controller;
import com.cloudaping.cloudaping.entity.User;
import com.cloudaping.cloudaping.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import ja... |
/*
* Copyright 2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
package com.mahendran.parallelFiles;
import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servl... |
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保... |
package be.kdg.fastrada.controllers;
import be.kdg.canbus.car.config.Car;
import be.kdg.canbus.controllers.HexController;
import be.kdg.canbus.controllers.ZipController;
import be.kdg.canbus.data.TransportMessage;
import be.kdg.fastrada.dao.Repository;
import be.kdg.fastrada.logic.MessageMapper;
import be.kdg.fastrada... |
package com.tpg.brks.ms.expenses.persistence.entities;
import com.tpg.brks.ms.expenses.domain.AssignmentStatus;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
@Table(name = "assi... |
package uk.ac.ebi.intact.view.webapp.application;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
i... |
package viewer;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Scanner;
import controller.ReplyWesternController;
import model.ReplyWesternDTO;
import model.WesternDTO;
import util.ScannerUtil;
public class ReplyWesternViewer {
private ReplyWesternController controller;
pri... |
/*
* Copyright 2002-2017 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... |
/*
* @(#) IPartnerInfoDAO.java
* Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved.
*/
package com.esum.wp.ims.partnerinfo.dao;
import java.util.List;
import java.util.Map;
import com.esum.appframework.dao.IBaseDAO;
import com.esum.appframework.exception.ApplicationException;
/**
*
* @author heowon@... |
package com.land.back.nomapping;
import java.util.List;
public class ConceptoDinamico {
private int orden;
private String concepto = "";
private List<DiaDinamico> list;
private boolean edit;
public int getOrden() {
return orden;
}
public void setOrden(int orden) {
this.orden = orden;
}
public String g... |
package lets_explore;
public class Jumping_Statement {
public static void main(String args[])
{
// Jumping Statement
// continue
System.out.println("continue");
for(int i=1; i <= 7; i++)
{
if(i == 4)
{
continue; // exits from particular condition.
}
... |
package com.metoo.foundation.dao;
import org.springframework.stereotype.Repository;
import com.metoo.core.base.GenericDAO;
import com.metoo.foundation.domain.OrderFormLog;
@Repository("orderFormLogDAO")
public class OrderFormLogDAO extends GenericDAO<OrderFormLog> {
} |
package com.uchain.core;
import com.uchain.core.transaction.Transaction;
@FunctionalInterface
public interface NotificationOnTransaction {
void onTransaction(Transaction trx);
}
|
package com.ipincloud.iotbj.srv.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.ipincloud.iotbj.api.utils.hik.ApiService;
import com.ipincloud.iotbj.srv.dao.RegionDao;
import com.ipincloud.iotbj.srv.domain.Region;
import com.ipincloud.iotbj.srv.service.RegionService;
import com.ipincloud.iotbj.utils.P... |
package com.tt.rendezvous.motor;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.index.Index... |
package edu.louisiana.cacs.csce450GProject;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.LinkedList;
public class scanner {
static int charClass=0;
static String lexeme="";
static char nextChar=0;
static int nextToken=0;
... |
package AccessModifiers2;
import AccessModifiers.first;
public class fourth {
public static void main(String[] args) {
// TODO Auto-generated method stub
first f=new first();
//System.out.println(f.a);//private field
System.out.println(f.d);//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.pmm.sdgc.ws.model;
import com.pmm.sdgc.model.BiometriaCadastrada;
import java.time.LocalDateTime;
import java.util.Array... |
package com.company;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
public class BMIcalculatorTest extends Calory {
BMIcalculator object = new BMIcalculator();
@Test
public void userGetAllDataAndBmiIsNotANull() {
Assert.assertNotNull(object.calculateBMI());
... |
package com.example.liltyrant.tutorial1;
import android.app.Application;
import android.app.Application;
import com.parse.Parse;
/**
* Created by LilTyrant on 11/9/2015.
*/
public class App extends Application {
@Override public void onCreate() {
super.onCreate();
Parse.initialize(this, cKP6t... |
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package edu.psu.cse.siis.ic3;
import java.util.Objects;
public class DataAuthority {
private final String host;
private final String port;
public DataAuthority(String host, String port) {
thi... |
package com.doohong.shoesfit.controllerTests;
import com.doohong.shoesfit.member.dto.LoginMemberDTO;
import com.doohong.shoesfit.member.dto.MemberDTO;
import com.doohong.shoesfit.target.dto.ShoesDTO;
import com.doohong.shoesfit.target.dto.TargetDTO;
import com.doohong.shoesfit.target.dto.TargetRequest;
import com.fas... |
package br.com.amaro.demo.validators;
import br.com.amaro.demo.entities.Product;
import br.com.amaro.demo.forms.ProductRegisterForm;
import br.com.amaro.demo.forms.ProductRegisterListForm;
import br.com.amaro.demo.forms.SearchSimilarProductForm;
import br.com.amaro.demo.forms.SearchSimilarProductListForm;
import br.co... |
package dao;
import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import entity.Depart_info;
import entity.Org_info;
import entity.Sign_info;
import entity.Student_info;
public class Sign_infoDAOImpl extends HibernateDaoSupport implements Sign_infoDAO{
@Override
public vo... |
package cn.vector.service;
import cn.vector.domain.Employee;
import cn.vector.repository.EmployeeCrudRepository;
import cn.vector.repository.EmployeeRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotatio... |
package com.chaabene;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class CongratulationsActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
set... |
package de.trispeedys.resourceplanning.repository;
import de.trispeedys.resourceplanning.datasource.DefaultDatasource;
import de.trispeedys.resourceplanning.datasource.EventPositionDatasource;
import de.trispeedys.resourceplanning.entity.Event;
import de.trispeedys.resourceplanning.entity.EventPosition;
import d... |
package com.acewill.ordermachine.activity;
import android.os.Bundle;
import android.text.Html;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.Button;
import android.widget.GridView;
import android.widget... |
package com.datalinks.android.widgetexample;
import java.util.Random;
import android.app.Service;
import android.appwidget.AppWidgetManager;
import android.content.Intent;
import android.net.Uri;
import android.os.IBinder;
import android.util.Log;
import android.widget.RemoteViews;
public class WidgetExampleService ... |
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
// J'appelle ma fonction file.Copy() de la classe Application
Application.fileCopy();
}
}
|
package org.dew.xcomm.messaging;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.jivesoftware.smack.packet.XMPPError;
import org.dew.xcomm.nosql.INoSQLDB;
import org.dew.x... |
/*
* Copyright Verizon Media, Licensed under the terms of the Apache License, Version 2.0. See LICENSE file in project root for terms.
*/
package com.yahoo.cubed.dao;
import com.yahoo.cubed.model.Pipeline;
import com.yahoo.cubed.model.PipelineProjection;
import java.util.List;
import org.hibernate.Criteria;
import ... |
package org.wuxinshui.boosters.uuid;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.UUID;
public class UUIDUtil {
public static Long generateUidFromString(String msg) throws NoSuchAlgori... |
package app.repositories;
import org.springframework.data.repository.CrudRepository;
import app.entities.State;
public interface StateRepository extends CrudRepository<State, Long> {
}
|
package com.cs.player;
import java.math.BigDecimal;
/**
* @author Hadi Movaghar
*/
public enum TimeUnit {
DAY(1), WEEK(7), MONTH(30);
private final int timeInDays;
TimeUnit(final int timeInDays) {
this.timeInDays = timeInDays;
}
public int getTimeValue() {
return timeInDays;
... |
import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import gifAnimation.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.io.File;
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.io.InputStream;
import java.io.... |
package pl.edu.agh.to2.commands;
import javafx.scene.layout.AnchorPane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import pl.edu.agh.to2.models.MarkerState;
import pl.edu.agh.to2.models.Turtle;
import java.util... |
package example.fakecall;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.media.MediaPlayer;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.telephony.TelephonyManager;
import ... |
package bspq21_e4.ParkingManagment.Classes;
import static org.junit.Assert.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Locale;
import org.databene.contiperf.PerfTest;
import org.databene.contiperf.Required;
import org.databene.contiperf.junit.ContiPerfRule;
import org.juni... |
package utilserviceImple.UtilServiceImple;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
... |
package mk.finki.ukim.dians.surveygenerator.surveygeneratorcore.domain.jpamodels;
import lombok.*;
import javax.persistence.*;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Entity
@Table(schema = "survey_templates", name = "users_survey_templates")
public class UserSurveyTemplate {
... |
package com.deepakm.ui;
import com.deepakm.impl.instrument.guitar.FretPosition;
import javax.swing.table.DefaultTableModel;
import java.util.Set;
/**
* Created by dmarathe on 11/14/16.
*/
public class GuitarTableModel extends DefaultTableModel {
public GuitarTableModel(Set<FretPosition> fretPositions) {
... |
package controller;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.CheckBox;
public class SettingsController implements Initializable, IController
{
@FXML
private CheckBox indicatePl... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;
/* URL
http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=449&sca=50&sfl=wr_hit&stx=1169&sop=and
*/
public class Main1169_주사위던지기1 {
static int n;
s... |
import java.io.*;
import java.util.*;
class baek__1920 {
static int find(int target, int[] nums) {
int start = -1;
int end = nums.length;
while (start + 1 < end) {
int m = (start + end) / 2;
if (nums[m] <= target) {
start = m;
} else if... |
package HackerRank.Day17;
public class Calculator {
public int power(int a, int b) throws NegativeException {
if (a < 0 || b < 0){
throw new NegativeException("n and p should be non-negative");
}
return (int) Math.pow(a,b);
}
}
|
package com.example;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Restrictions;
public class Criteria3 {
public static void main(String args[]){
Data.prepareData();
... |
package jgame.level.area;
import java.util.Collection;
import jgame.math.Vec2Int;
/**
*
* @author Hector
*/
public interface TileArea
{
public Collection<Vec2Int> getSubtiles(int subtileDimension);
}
|
package kr.hs.dgsw.webshoppingmall.Domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class User {
private Long id;
private String account;
private String password;
private String nickname;
private String gender;
pr... |
package com.epam.university.spring.dao;
import com.epam.university.spring.domain.Event;
public interface EventDao {
Event create(Event event);
void remove(Long id);
Event getByName(String name);
Event getById(Long id);
}
|
package com.curios.textformatter;
import android.graphics.Color;
import android.graphics.Typeface;
import android.text.SpannableStringBuilder;
import android.text.style.BackgroundColorSpan;
import android.text.style.CharacterStyle;
import android.text.style.ForegroundColorSpan;
import android.text.style.StyleSpan;
imp... |
package ru.mstoyan.shiko.testtask.Utils;
import android.graphics.Path;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.text.ParseException;
/**
* Created by shiko on 09.02.2017.
*/
public class OldPathReader implements SVGReader {
private... |
package team.groupproject.converters;
import java.util.List;
import java.util.stream.Collectors;
import team.groupproject.dto.MaterialDto;
import team.groupproject.dto.ProductDto;
import team.groupproject.entity.Product;
public class ProductConverter {
public static ProductDto convertToProductDto(Product product... |
package presentation.controller;
import common.AccountType;
import common.ResultMessage;
/**
* Created by Molloh on 2016/11/5.
*/
public interface LoginViewControllerService {
/**
* 用户账号登录s
* @return 账号登录是否成功,成功返回用户类型AccountType
* @author lienming
* @version 2016-11-27
*/
public Acc... |
package com.yoke.poseidon.member;
import org.modelmapper.ModelMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
/**
* @Author Yoke
* @Dat... |
package br.com.transactions.dto;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonProperty;
public class SummarySaleDataTransferObject {
@JsonProperty("net_amount_sale")
@NotNull(message = "net_amount_sale is required!")
private BigDecimal ne... |
/**
* ErrorEnum
*/
package com.bs.bod.error;
import java.io.Serializable;
import java.util.Iterator;
import org.apache.commons.lang3.StringUtils;
/**
* Java defines two kinds of exceptions:
*
* Checked exceptions: Exceptions that inherit from the Exception class are checked exceptions. Client code has to handl... |
package com.alexey.vk.view.registration;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
imp... |
package com.example.springsecuritywithmongo.Service;
import com.example.springsecuritywithmongo.Domain.MyUserDetails;
import com.example.springsecuritywithmongo.Domain.User;
import com.example.springsecuritywithmongo.Repo.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springf... |
package ua.com.rd.pizzaservice.repository.order.db;
import org.springframework.stereotype.Repository;
import ua.com.rd.pizzaservice.domain.address.Address;
import ua.com.rd.pizzaservice.domain.customer.Customer;
import ua.com.rd.pizzaservice.domain.order.Order;
import ua.com.rd.pizzaservice.domain.pizza.Pizza;
import ... |
public class Cell {
public boolean status;
private int value;
public int coordinateX;
public int coordinateY;
private boolean exit;
private boolean visited;
public Cell() {
}
public Cell(int x, int y) {
this.coordinateX = x;
this.coordinateY = y;
}
public C... |
package com.beike.entity.onlineorder;
import java.sql.Timestamp;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public abstract class AbstractEngine {
public static final String json_key_price = "price";
public static final String json_key_discount = "discount";
publi... |
package com.dian.diabetes.activity.sugar;
import java.util.List;
import com.dian.diabetes.activity.sugar.model.MapModel;
import com.dian.diabetes.dialog.GPopDialog;
import android.content.Context;
/**
* 统计弹出选择框
*/
public class TotalPopDialog extends GPopDialog {
public TotalPopDialog(Context context... |
package com.javasampleapproach.mysql.hall.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.javasampleapproach.mysql.hall.model.Residence;
import com.javasampleapproach.mysql.hall.repo.R... |
package L5_ExerciciosFuncoes;
public class Ex02_L5 {
public String montarEstrutura(int numerosDeRepeticoes){
StringBuilder estruturaS = new StringBuilder();
for (int i = 0; i <= (numerosDeRepeticoes -1); i++){
for (int j = 0; j < i+1; j++){
estruturaS.append(j + 1).appen... |
/* Copyright 2013 François Lolom
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package com.role.game.util;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import org.mockito.Mockito;
import com.role.game.exception.DependencyInjectionException;
import com.role.game.io.reader.InputReader;
public class DependencyInjectorTest {
@Test
public void getObject() {
assertNot... |
package coinpurse.strategy;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import coinpurse.Valuable;
import coinpurse.ValueComparator;
/**
* Find strategy to withdraw a money in the purse.
* @author Tanasorn Tritawisup
*
*/
public class GreedyWithd... |
package com.wso2.build.rules.dependency_management;
import com.wso2.build.utils.Helper;
import junit.framework.Assert;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.MavenProject;
import org.testng.annotations.Test;
import java.net.URL;
/**
* Created by uvindra on 2/26/14.
*... |
import java.util.HashMap;
import java.util.Map;
import com.opensymphony.xwork2.Action;
public class DatabaseJSON {
private Map<String, String> database= new HashMap<String, String>();
public DatabaseJSON() {
// TODO Auto-generated constructor stub
database.put("MySQL", "MySQL");
database.put("Oracle", "Ora... |
package com.platform.common.handler;
import java.sql.SQLException;
import org.apache.ibatis.type.TypeException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.