text stringlengths 10 2.72M |
|---|
package io.ceph.rgw.client.model.admin;
import io.ceph.rgw.client.AdminClient;
import io.ceph.rgw.client.action.ActionFuture;
import io.ceph.rgw.client.action.ActionListener;
import org.apache.commons.lang3.Validate;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.protocol.MarshallLocat... |
package dataservice;
import java.io.File;
import java.rmi.Remote;
import java.util.ArrayList;
import java.util.HashMap;
import po.MatchPO;
import po.TeamPO;
import po.TeamPerformancePO;
public interface TeamDataService extends Remote{
/**
*
* @return 所有球队列表
*/
public ArrayList<TeamPO> getTea... |
package com.design.patterns;
import com.design.patterns.tests.*;
public class Main {
public static void main(String[] args) {
//Arrange
ITestPattern testPattern;
//Probar adapter
//testPattern = new TestAdapter();
//Probar bridge
//testPattern = new TestBridge(... |
package ppe.testsvisuels;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import ppe.classes.Outils;
import ppe.classes.PasserelleServicesWebXML;
import ppe.classes.PointDeTrace;
import ppe.classes.Trace;
import ppe.classes.Utilisateur;
public class TestPasserelleServi... |
package com.itheima.service.impl;
import com.itheima.dao.UserDao;
import com.itheima.pojo.Role;
import com.itheima.pojo.SysUser;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.s... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.jearl.util;
import java.lang.reflect.InvocationTargetException;
/**
*
* @author bamasyali
*/
public final class PropertyUtils {
private PropertyUtils() {
}
public static <Y extends Object> ... |
/*
* © Copyright 2016 CERN. This software is distributed under the terms of the Apache License Version 2.0, copied
* verbatim in the file “COPYING“. In applying this licence, CERN does not waive the privileges and immunities granted
* to it by virtue of its status as an Intergovernmental Organization or submit itsel... |
package GoogleScreenshot;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Google_Homepage_Scre... |
/*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* EbookDaoImplJDBC.java
*
* Created on 2008Äê3ÔÂ6ÈÕ, ÉÏÎç8:45
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package tot.dao.jdbc;
import tot.dao.AbstractDao;
import tot.db.DBUtils;
import tot.util.StringUtils;
import tot.bean.*;
import tot.exception.Ob... |
package com.drms.dao;
import java.util.List;
import com.drms.model.ListValue;
public interface ListValueDao {
List<ListValue> getAllLOV();
}
|
/** #dynamic-programming #01knapsack */
import java.util.Scanner;
public class PoloPenguinAndTest {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int testcase = sc.nextInt();
for (int t = 0; t < testcase; t++) {
int n = sc.nextInt();
int w = sc.nextInt();
... |
/*
* Copyright 2014 Victor Melnik <annimon119@gmail.com>, and
* individual contributors as indicated by the @authors tag.
*
* 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
*
* ... |
package com.itheima.day_06.demo_02;
import java.util.Comparator;
import java.util.TreeSet;
public class TreeSetDemo_02 {
/*
按总成绩降序排列集合内的对象
*/
public static void main(String[] args) {
TreeSet<Student> set = new TreeSet<>(new Comparator<Student>() {
@Override
public int compare(Student s1, Student s2) {... |
package com.sinodynamic.hkgta.service.crm.backoffice.admin;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.sinodynamic.hkgta.dao.crm... |
package algo3.fiuba.modelo.cartas.moldes_cartas.cartas_campo;
import algo3.fiuba.modelo.cartas.AccionCarta;
import algo3.fiuba.modelo.cartas.efectos.EfectoNulo;
import algo3.fiuba.modelo.jugador.Jugador;
import algo3.fiuba.modelo.cartas.CartaCampo;
import algo3.fiuba.modelo.cartas.efectos.EfectoSogen;
import java.uti... |
package dailymanagement.demo.bean;
import org.springframework.stereotype.Component;
import java.util.Date;
import java.util.List;
/**
* 项目表
* pid:项目ID
* pname:项目名
* pRealname:牵头人
* beginTime:创建时间
* closeTime:结项时间
* introduction:项目简介
*
*/
@Component
public class Project {
private Integer pid;
privat... |
package selenium.basics.poi;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.... |
package com.kh.portfolio.board.svc;
import java.util.List;
import java.util.Map;
import com.kh.portfolio.board.vo.BoardCategoryVO;
import com.kh.portfolio.board.vo.BoardFileVO;
import com.kh.portfolio.board.vo.BoardVO;
import com.kh.portfolio.board.vo.NoticeVO;
import com.kh.portfolio.common.PageCriteria;
public int... |
package com.nway.web.common.event;
import java.util.Map;
public class DbRecordAddEvent extends GenericEvent {
private static final long serialVersionUID = 1819246511527898381L;
public DbRecordAddEvent(Map<String, String> source) {
super(source);
}
}
|
package me.libraryaddict.disguise.disguisetypes.watchers;
import com.comphenix.protocol.wrappers.BlockPosition;
import com.google.common.base.Optional;
import me.libraryaddict.disguise.disguisetypes.Disguise;
import me.libraryaddict.disguise.disguisetypes.MetaIndex;
import me.libraryaddict.disguise.disguisetyp... |
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
/*
* @lc app=leetcode.cn id=56 lang=java
*
* [56] 合并区间
定于区间:
class Interval {
int start;
int end;
};
区间a、b, 满足a.start <= b.start,
if(b.start > a.end){
//b.start > a.end 不存在交集 不能合并
//存储a, 更... |
package com.huangg.admin.web.controller.admin.sysmsg;
import com.huangg.admin.web.controller.admin.BaseController;
import com.huangg.admin.web.entity.SysMsg;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.R... |
package br.assembleia.service;
import br.assembleia.entidades.Cargo;
import java.util.List;
public interface CargoService {
void salvar(Cargo cargo) throws IllegalArgumentException;
List<Cargo> listarTodos();
void editar(Cargo cargo);
void deletar(Cargo cargo);
}
|
package com.bluetooth.tomtom.bluetooth;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import java.util.Set;
public class Bluetooth extends AppCompatActivity {
private Blueto... |
import java.lang.*;
import java.util.*;
import java.io.File;
import java.io.FileInputStream;
import java.security.MessageDigest;
class Remove_Duplicate
{
Remove_Duplicate(String path)//parameterised constructor
{
TravelDirectory(path);
}
public void TravelDirectory(String path)//to travel whole directory
{
... |
import java.util.*;
import java.lang.Iterable;
public class PlayGame
{
//Use ArrayList to record the handcards for each player
ArrayList<Integer> P0 = new ArrayList<Integer>();
ArrayList<Integer>P1 = new ArrayList<Integer>();
ArrayList<Integer> P2 = new ArrayList<Integer>();
ArrayList<Integer> P3 = new ArrayList<Integ... |
package uk.co.mtford.jalp;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import uk.co.mtford.jalp.abduction.Result;
import uk.co.mtford.jalp.abduction.logic.instance.IInferableInstance;
import uk.co.mtford.jalp.abduction.logic.instance.PredicateInstance;
import uk.co.mtford.jalp.abduction.log... |
package com.micHon.officer;
public enum OfficerRank {
SERGANT,
CAPTAIN,
GENERAL
}
|
/*
class greater
{
public static void main(String ar[])
{
int a=10,b=15,c=5;
if(a>b)
{
System.out.print("a is greater");
}
else if(b>c)
{
System.out.print("b is greater");
}
else
{
System.out.print("c is greater");
}
}
}
... |
package web;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
public class Webserver1 {
public static void main(String[] args)throws Exception {
ServerSocket serve... |
package com.learn.diagrammultithreading.immutable;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public class PrintPersonThread extends Thread {
private final Person person;
@Override
public void run(){
while(true){
try {
Thread.sleep(500);
} catch ... |
package mx.com.otss.saec.request;
import android.util.Log;
import com.android.volley.Response;
import com.android.volley.toolbox.StringRequest;
import java.util.HashMap;
import java.util.Map;
public class ListadoAdeudosRequest extends StringRequest{
private static final String LISTADO_ADEUDO_REQUEST_URL = "http... |
package com.arthur.leetcode;
import java.util.Deque;
import java.util.LinkedList;
/**
* @title: No1004
* @Author ArthurJi
* @Date: 2021/2/19 0:01
* @Version 1.0
*/
public class No1004 {
public static void main(String[] args) {
System.out.println(new No1004().longestOnes2(new int[]{0,0,1,1,0,0,1,1,1,0... |
package com.xwolf.eop.erp.entity;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.util.Date;
@Data
public class Employees {
private Integer eid;
private String ecode;
private String dcode;
private String jcode;
private String eno;
private String ename;
... |
package com.moonlike.hl.account.activity;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Butto... |
package com.xpecya.xds;
import java.util.Iterator;
import java.util.Objects;
import java.util.Spliterator;
import java.util.Spliterators;
import java.util.function.Consumer;
abstract class AbstractGraph<T> implements Graph<T> {
/**
* 转换一个图的底层结构
* @param anotherGraph 另一个图
*/
Abstr... |
package exercicio02;
public class CalculadoraImaginaria
{
public static int resultado, resultado2, resu;
public static void calculandonaMoral(int operador, int x, int y, int x2, int y2)
{
if(operador==0)
{
resultado=x+x2;
resultado2= y +y2;
System.out.println("O resultado da soma e:" + r... |
package com.tirtle.security;
import javax.servlet.http.HttpServletRequest;
import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework... |
package com.election.server;
import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;
import com.rmi.middleware.*;
import com.rmi.server.*;
import com.rmi.client.*;
/**
* VoteListServant.
*
* @class VoteServant
* @param String candidateId the version of the candidate id.
* @param Vector<Vote> voteLis... |
package com.cy.bean.bus;
import java.io.Serializable;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
/**
* 公交站
* @au... |
/*
* Created on Mar 14, 2007
*
*/
package com.citibank.ods.modules.product.prodriskcatprvt.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import com.citibank.ods.common.util.ODSValidator;
import com.citib... |
package com.sky.design.state;
public class EveningState extends State {
@Override
public void WriterProgram(Work work) {
if(work.getTaskFinished()){
work.setState(new RestState());
work.WriterProgram();
}
else{
if(work.getHour()<21){
System.out.println("当前时间:"+work.getHour()+"点,加班哦,疲惫至极。");
}
... |
package com.pan.al.test.outerinterclass;
//匿名内部类
public class Outer1 {
public static String s1 = "this is s1 in Outer";
public static String s2 = "this is s2 in Outer";
private static String s3 = "this is s3 in Outer";
public String s4="this is s4 in outer";
public void method1... |
package cn.ablocker.FoodBlog.response;
public class UserNameResponse extends BaseResponse
{
private String userName; // 用户名
public String getUserName()
{
return userName;
}
public void setUserName(String userName)
{
this.userName = userName;
}
}
|
package web;
public class GlobalConfig
{
public static final int recordsPerPage = 10;
public enum Protocol {
SMTP,
SMTPS,
TLS
}
public static int port = 465;
public static String host = "smtp.gmail.com";
public static String from = "gestiondons2020@gmail.com";
public static boole... |
package org.dajlab.mondialrelayapi.soap;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>
* Classe Java pour anonymous c... |
package de.haw.wpcgar.structure.biomes;
import de.haw.wpcgar.generator.WorldGenerator;
import de.haw.wpcgar.structure.Biome;
import de.haw.wpcgar.structure.params.HeightMap;
import de.haw.wpcgar.structure.params.Temperature;
import edu.hawhamburg.shared.math.Vector;
/**
* Forest biome.
* @author Adrian He... |
package scut218.pisces.beans;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import scut218.pisces.Constants;
import scut218.pisces.base.MyApplication;
import scut218.pisces.utils.UserUtil;
/**
* Created by Lenovo on 2018/3/14.
* 用户类,有基... |
package xtrus.ex.mci.inbound;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.esum.framework.FrameworkSystemVariables;
import com.esum.framework.core.component.listener.DummyListener;
import com.esum... |
/*
* 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 Collections;
import java.util.*;
public class CollectionsLecture {
public static void main(String[] args) {
// creating ArrayLists
ArrayList<Integer> numbers = new ArrayList<>(); // array list of numbers
numbers.add(1);
numbers.add(2);
numbers.add(3);
// ... |
/*
* 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.vivek.sampleapp.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.vivek.sampleapp.R;
import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
public class HomeActivity extends BaseActivity i... |
package com.gxjtkyy.standardcloud.admin.domain.vo.request;
import com.gxjtkyy.standardcloud.common.domain.vo.RequestVO;
import com.gxjtkyy.standardcloud.common.validation.annotation.EnumType;
import com.gxjtkyy.standardcloud.common.validation.annotation.NotEmpty;
import lombok.Getter;
import lombok.Setter;
import lomb... |
package com.example.onemap;
import android.app.Activity;
/**
* drawer中的list的detail
* 需求為picture、png、activity
*/
public class DrawerListDetails {
public final String title;
public final int image;
public final Class<? extends Activity> activityClass;
public DrawerListDetails(String title,int image, Class<? exte... |
package com.git.cloud.cloudservice.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.git.cloud.cloudservice.dao.IModelDao;
import com.git.cloud.cloudservice.dao.IPackageDefDao;
import com.git.cloud.cloudservice.dao.IScriptDao;
import com.git.cloud.cloudservice.da... |
package dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import bean.Product;
public class ProductDAO {
... |
package apascualco.blog.springboot;
import apascualco.blog.springboot.persistence.entidades.*;
import apascualco.blog.springboot.persistence.repositorio.*;
import apascualco.blog.springboot.utils.PersistenciaUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotat... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.oauth.as.preferences;
import java.util.Iterator;
import pl.edu.icm.unity.oauth.as.preferences.OAuthPreferences.OAuthClientSettings;
import pl.edu.icm.unity.server.ut... |
package com.m2miage.boundary;
import com.m2miage.entity.Demande;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
//@RepositoryRestResource(collectionResourceRel="demand... |
import org.junit.Test;
import java.util.Arrays;
import static org.junit.Assert.assertEquals;
public class GrudgerPlayerTest {
@Test
public void shouldCooperateInUntilTheOtherPlayerCheats(){
assertEquals(Input.COOPERATE, new GrudgerPlayer().getInput(Arrays.asList(Input.COOPERATE)));
}
@Test
... |
public class Solution {
public int kthSmallest(int[][] matrix, int k) {
// Write your solution here
HashSet<String> visited = new HashSet<>();
PriorityQueue<Cell> minHeap = new PriorityQueue<>(new Comparator<Cell>() {
public int compare(Cell c1, Cell c2) {
if (c1.... |
package com.danerdaner.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.danerdaner.simple_voca.R;
import com.danerdaner.simple_voca.TestAnswer;
import java.util.AbstractMap;
import java.util.ArrayList... |
package leetCode;
import java.util.LinkedList;
import java.util.List;
public class PermutationSequence {
public String getPermutation(int n, int k) {
k = k - 1;
List<Integer> intList = new LinkedList<Integer>();
String result = "";
for (int i = 1; i <= n; i++) {
intList.add(i);
}
int index = 0;
for ... |
package com.sky.design.factory;
//学雷锋的大学生的工厂
public class VolunteerFactory implements IFactory {
@Override
public LeiFeng CreateLeiFeng() {
return new Volunteer();
}
}
|
package co.sblock.effects.effect.godtier.passive;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import co.sblock.Sblock;
import co.sblock.effects.effect.BehaviorCooldown;
import co.sblock.effects.effect.BehaviorGodtier;
import co.sblock.effects.effect.Behavio... |
package com.androidbook.networking;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.webkit.WebChromeCli... |
package ma.mghandi.radeesportail;
import java.util.Map;
/**
* Created by mghandi on 10/03/2018.
*/
public class Resiliation {
private String id;
private String name;
private String contract_number;
private String gerance;
private String localite;
private String nature;
private String et... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.innovaciones.reporte.service;
import com.innovaciones.reporte.dao.DetalleEgresoDAO;
import com.innovaciones.reporte.model.... |
package com.cb.cbfunny.fragment;
import android.content.Intent;
import android.graphics.Rect;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.view.LayoutInflater;
import andr... |
package enem;
import java.nio.ByteBuffer;
public class Aluno {
private static final short
LNOME = 50,
LENDERECO = 60,
LSEXO = 1,
LEMAIL = 40;
public static final short
RECORD_SIZE = 157;
private int matricula; // 04 bytes
private String nome; // 50 bytes
private String endereco; // 6... |
import java.util.ArrayList;
import java.util.List;
import lombok.Getter;
@Getter
public class Validos {
List<Telefone> validos = new ArrayList<>();
public Validos(List<Telefone> telefones){
for(Telefone telefone: telefones)
if(telefone.eTelefoneValido()) validos.add(telefone);
}
}
|
package com.orlanth23.popularmovie.adapter;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup... |
package com.osteching.litemongo;
import java.net.UnknownHostException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.mongodb.DB;
import com.mongodb.Mongo;
import com.mongodb.MongoException;
public final class MongoDbConnection {
private static final Logger logger = LoggerFactory.getLogger... |
package lib.basenet.request;
/**
* Created by zhaoyu1 on 2017/12/11.
*/
public interface BaseRequestBody {
/**
* content-type
*
* @return
*/
String getBodyContentType();
/**
* body内容
*
* @return
*/
byte[] getBody();
}
|
package DataStructures.arrays;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
/**
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start times.
... |
package com.fb.controller.platform;
import com.fb.controller.BaseController;
import com.fb.kit.ToolsUtils;
import com.fb.model.TItemPaymentOrder;
import com.fb.model.TItemPaymentWater;
import com.jfinal.ext.route.ControllerBind;
import com.jfinal.plugin.activerecord.Page;
@ControllerBind(controllerKey = "/platform/me... |
package negocios;
import dados.IRepositorioMateriaPrima;
import exceptions.MateriaPrimaJaExisteException;
import exceptions.MateriaPrimaNaoExisteException;
import negocios.beans.MateriaPrima;
import exceptions.FormatacaoInvalidaException;
import java.util.List;
public class ControladorMateriaPrimas {
IRepositorioMat... |
package com.zyzd.glidedemo.ui;
import android.app.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.zyzd.glidedemo.R;
import com.zyzd.glidedemo.transformation.RotateTransformation;
public class CustomTrans... |
package controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotatio... |
package kr.co.shop.batch.kcp.model.master.base;
import lombok.Data;
import java.io.Serializable;
import kr.co.shop.common.bean.BaseBean;
@Data
public class BaseRvKcpComparison extends BaseBean implements Serializable {
/**
* 이 필드는 Code Generator를 통하여 생성 되었습니다.
* 설명 : KCP거래번호
*/
priva... |
package Recursion;
import java.util.Scanner;
public class StringPalin2 {
static boolean isPalin(String s,int i,int last){
if(s.charAt(i)!=s.charAt(last))
return false;
if(i<last)
return isPalin(s, i+1, last-1);
return true;
}
public static void main(String[] args) {
Scanner in = new Scanner(Syste... |
/*
* Copyright (c) 2015.
*
* The author of these files, Austin Wellman, allows modification, reproduction and private use of them. It, derived works, and works including derived files cannot be published to an app store, packaged and redistributed, used commercially, or sublicensed.
*
* The author is not responsib... |
/*
* 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 diagram;
import java.util.ArrayList;
/**
*
* @author Go Eun Sung
*/
public class Diagram {
ArrayList<Layer> diagrams ... |
package properties;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.util.ArrayList;
import net.miginfocom.swing.... |
package main.com.java.basics.stream;
import com.google.common.base.Predicates;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import org.apache.commons.collections4.Col... |
package com.example.mysdapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class DrawActivity extends AppCompatActivity {
String userGet;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setConten... |
package raft.server;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import raft.server.util.Preconditions;
import raft.server.util.ThreadFactoryImpl;
import java.util.concurrent.*;
/**
* Author: ylgrgyq
* Date: 18/5/12
*/
abstract class AsyncProxy {
private static final Logger logger = LoggerFactory... |
package com.in.main.service;
import java.util.List;
import com.in.main.pojo.Employee;
public interface EmployeServic {
List<Employee> getall(Employee employee);
Employee saveemployee(Employee employee);
Employee updateemployee(Employee employee);
void deleteemployee(int EmployeeId);
}
|
package com.jeremiaslongo.apps.spotifystreamer.model;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import static com.jeremiaslongo.apps.spotifystreamer.util.LogUtils.makeLogTag;
public class TrackModel implements Parcelable{
// TAG
public static final String TAG = makeLog... |
/**
* Copyright 2016 OKLink 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 to ... |
package com.empresa.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class BoletaJSON {
@Id
String numBoleta;
public String getNumBoleta() {
return numBoleta;
}
public void setNumBoleta(String numBoleta) {
this.numBoleta = numBoleta;
}
}
|
package com.ywd.blog.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ywd.blog.dao.BlogRecommendDao;
import com.ywd.blog.entity.BlogRecommend;
import com.ywd.blog.service.BlogRecommendSe... |
package com.example.macintosh.moviesprojectstage1;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widge... |
package uchet.repository;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query... |
package com.ict.db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
public class DAO {
Connection conn;
PreparedStatement pstm;
ResultSet rs;
private DAO dao ;
private Connection getConnection() {
try {
... |
package controller.admin;
import dao.AdminAuthDao;
import entity.Admin;
import helper.SessionManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.DigestUtils;
import org.springframework.validation.BindingResult;
import... |
/*
* (C) Copyright ${year} Nuxeo SA (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gn... |
/*
* Copyright 1999-2017 Alibaba Group Holding Ltd.
*
* 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 la... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.