text
stringlengths
10
2.72M
package org.spider.core; /** * @author liuxin * @version Id: SpiderHandler.java, v 0.1 2018/7/26 下午9:45 */ public interface SpiderHandler<T, D> { /** 需要开发者自己去实现的 **/ /** * @param htmlDefinition 当前url页面文档 * 返回将要持久化的实体类 * @return */ T doCrawl(HtmlDefinition<D> h...
import java.io.*; import java.util.*; public class ReadMeGenerator { private static class Item implements Comparable { String name; String path; String original_path; String extension; Item(String path) { int slash_index = path.lastIndexOf("/"); int dot_index = path.lastIndexOf(".")...
package com.baiwang.custom.common.model; import java.util.List; public class FpdataModel { public String getInvoiceCode() { return InvoiceCode; } public void setInvoiceCode(String invoiceCode) { InvoiceCode = invoiceCode; } public String getRepeatMark() { return repeatMark; } public vo...
package org.os.dbkernel.fdb.fdbtracemerger; import java.time.ZoneId; import java.util.Arrays; import java.util.Iterator; public abstract class AbstractParameters { protected abstract class AbstractParser { protected final Iterator<String> argsIter; protected AbstractParser(final Iterator<String> iter)...
package kiki.AccountCal.Beta; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import kiki.AccountCal.Beta.TableAdapter.TableCell; import kiki.AccountCal.Beta.TableAdapter.TableRow; import android.annotation.SuppressLint; import android.app.Activity; imp...
package team.groupproject.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; import com.paypal.api.payments.Links; ...
package io.nuls.consensus.constant; import java.math.BigInteger; /** * 共识模块常量类 * * @author tag * 2018/11/6 */ public interface ConsensusConstant { /** * DB config */ String DB_CONFIG_NAME = "db_config.properties"; String DB_DATA_PATH = "rocksdb.datapath"; String DB_DATA_DEFAULT_PATH = ...
/** * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.common.utils.excel; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.lang.reflect....
import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.Iterator; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.sl.usermodel.Sheet; import org.apache.poi.ss.usermodel.Cel...
package com.cheese.radio; import java.util.List; public class JsonEntity { }
package com.esum.framework.jdbc; import java.sql.Connection; import java.sql.SQLException; import javax.sql.DataSource; import junit.framework.TestCase; import org.apache.commons.dbcp2.BasicDataSource; import org.apache.log4j.PropertyConfigurator; import com.esum.framework.common.util.SysUtil; import com.esum.fram...
package com.tweetapp.entities; import java.util.List; import org.bson.types.ObjectId; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Document(collection = "users") @...
//accept book publisher all details calculate and ditels import java.util.*; class book_publishar { public static void main(String args[]) { double rate=0.0; double dis=0.0,pay=0.0,vat=0.0,net=0.0; boolean flag=true; String pname=""; Scanner x=new Scanner(System.in); System.out.print("Enter mrp of g...
package com.design.pattern.visitor; /** * @Author: 98050 * @Time: 2019-01-21 22:12 * @Feature: */ public class Test { public static void main(String[] args) { ComputerPart computer = new Computer(); computer.accept(new ComputerPartVisitorImpl()); } }
package com.xianzaishi.wms.tmscore.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import com.xianzaishi.wms.tmscore.manage.itf.IPickDetailManage; import com.xianzaishi.wms.tmscore.service.itf.IPickDetailService; import com.xianzaishi.wms.tmscore.vo.PickDetailQuery...
package com.hello.suripu.service.pairing.sense; import com.google.common.base.Optional; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import com.hello.suripu.core.db.DeviceDAO; import com.hello.suripu.core.models.DeviceAccountPair; import com.hello.suripu.core.swap.Intent; imp...
package com.simpletime.service; import org.springframework.stereotype.Service; import com.simpletime.base.service.BaseServiceImpl; import com.simpletime.pojo.Admin; @Service public class AdminService extends BaseServiceImpl<Admin> { }
/* * Copyright 2002-2019 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.mediafire.sdk.response_models.folder; import com.mediafire.sdk.response_models.ApiResponse; import com.mediafire.sdk.response_models.data_models.FolderContentsModel; public class FolderGetContentsResponse extends ApiResponse { public FolderContentsModel folder_content; public FolderContentsModel ...
package com.karya.controller; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Controller; import org.spr...
package psoft.backend.dao; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import psoft.backend.model.Disciplina; import java.io.Serializable; import java.util.List; @Repository public interface DisciplinaDAO<T, ID extends Serializable> extends JpaRepo...
package com.UBQPageObjectLib; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.How; import com.UBQGenericLib.WebDriverCommonLib; /** * @author Praneeth * ...
/* * 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...
package cn.homeron.homerfast.biz.controller; import cn.homeron.homerfast.biz.bean.CatBean; import cn.homeron.homerfast.biz.service.CatService; import cn.homeron.homerfast.common.controller.BaseController; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.Res...
/* * ################################################################ * * ProActive Parallel Suite(TM): The Java(TM) library for * Parallel, Distributed, Multi-Core Computing for * Enterprise Grids & Clouds * * Copyright (C) 1997-2011 INRIA/University of * Nice-Sophia Antipolis/ActiveEon ...
package com.org.annotation; import java.lang.annotation.*; /** * 记录日志 */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD}) @Documented @Inherited public @interface Log { public enum LOG_TYPE{ADD,UPDATE,DEL,SELECT,ATHOR}; /**内容*/ String desc(); /**类型 curd*/ LOG_TYPE type() defa...
package com.xwolf.eop.system.entity; import lombok.Data; @Data public class UserRole { private Integer rid; private String ucode; private String rcode; }
package com.darwinsys.gcmclient; import java.io.IOException; import java.util.concurrent.Executor; import java.util.concurrent.Executors; import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.content.pm.PackageManager.NameNotFoundException; import androi...
package org.kuali.ole.select.lookup; import org.kuali.ole.docstore.discovery.service.QueryServiceImpl; import org.kuali.ole.select.businessobject.OlePurchaseOrderItem; import org.kuali.ole.select.document.OLEInvoicePurchaseOrderSearch; import org.kuali.ole.select.document.OlePurchaseOrderDocument; import org.kuali.ole...
/* * 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...
/* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
package com.qx.wechat.comm.sdk.request.query; import com.qx.wechat.comm.sdk.request.msg.PassiveMsgType; public class RobotNameQuery extends BasicQuery{ private static final long serialVersionUID = 1723864340095385011L; private String robot_wxid; public RobotNameQuery() { super.setType(PassiveMsgType.ROBOT_...
/* * 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...
package com.reactnative.googlecast.types; import androidx.annotation.Nullable; import com.google.android.gms.cast.MediaStatus; public class RNGCPlayerState { public static int fromJson(final @Nullable String value) { switch (value) { case "buffering": return MediaStatus.PLAYER_STATE_BUFFERING; ca...
package com.example.u5_pastragram1; public class SignUpActivity { }
package indi.jcl.magicblog.interceptor; import org.springframework.util.StringUtils; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax....
package com.example.peti.wateringsystem; import android.arch.persistence.db.SupportSQLiteDatabase; import android.arch.persistence.room.Database; import android.arch.persistence.room.Room; import android.arch.persistence.room.RoomDatabase; import android.arch.persistence.room.TypeConverters; import android.content.Con...
package assign5; public class Customer { private String custNo; private String custName; private String category; public Customer(String custNo, String custName, String category) throws InvalidInputException { if (( custNo.startsWith("c")||custNo.startsWith("C") )&&custName.length()>=4 &&(cate...
package com.javaguru.studentservice.student; import com.javaguru.studentservice.student.domain.StudentEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface StudentRepository extends JpaRepository<StudentEntity, String> { }
package br.com.zolp.estudozolp.types; /** * Enumerator responsável por identificar os tipos de processo a que o log se refere. * * @author stp * @version 0.0.1-SNAPSHOT * */ public enum TipoProcesso { HTTP(1, "HTTP"), JMS(2, "JMS"), ARQUIVO(-1, "ARQUIVO"); private int tipoInt; private Strin...
package cn.happy.spring0930.dao; import cn.happy.spring0930.entity.User; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import org.springframework.stereotype.Service; /** * Created by LY on 2017/9/30. */ @Component @Repository @Service public interface IUserDao {...
package com.beike.dao.card; import com.beike.common.entity.card.Card; import com.beike.common.exception.StaleObjectStateException; import com.beike.dao.GenericDao; /** * @author yurenli * 卡密记录Dao * 2011-12-16 10:38:02 */ public interface CardDao extends GenericDao<Card, Long>{ /** * 根据主键查询 ...
package core.event.game.damage; import core.server.game.Damage; public class TargetEquipmentCheckDamageEvent extends AbstractDamageEvent { public TargetEquipmentCheckDamageEvent(Damage damage) { super(damage); } }
package com.example.hemil.papa_johns.AbstractFactory; public class ItalianSausageMarinara_Pasta implements Pasta { int quantity; public ItalianSausageMarinara_Pasta(int quantity){ this.quantity = quantity; } public String getName(){ return "Italian Sausage Marinara"; } public double getCost() { ...
package demo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.stream.annotation.EnableBinding; import org.springframework.cloud.stream.messaging.Source; import org.springframework.integration.support.MessageBuilder; import org.springframework.messaging.MessageChannel; im...
package com; import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.control.Hyperlink; import javafx.scene.layout.VBox; import javafx.stage.Stage; /** * Created by Administrator on 2017/07/15. */ public class Mainh00 extends Application { @Override p...
package com.redsun.platf.dao.base; import com.redsun.platf.entity.tag.Attachment; import com.redsun.platf.util.sideutil.PagedResult; import com.redsun.platf.util.search.MorePropertyFilter; import org.hibernate.criterion.Criterion; import java.io.Serializable; import java.util.List; import java.util.Map; /** * 封...
package br.com.porquesim.eventmanager; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; public class EventManager { private ...
package com.mahang.weather.view.card; import android.content.Context; import android.support.v7.widget.CardView; import android.util.AttributeSet; public class WeatherCardSuggestionView extends CardView { public WeatherCardSuggestionView(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto...
package com.pisen.ott.launcher.localplayer; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.media.ThumbnailUtils; import android.os.Handler; import android.os.Message; import android.text.TextUtils; import android.view.View; import android.view.View...
package com.K.HJ; import java.util.HashMap; import java.util.List; import org.apache.ibatis.session.SqlSession; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind....
/* * Copyright (c) 2005-2009 Citrix Systems, Inc. * * This library is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as published * by the Free Software Foundation, with the additional linking exception as * follows: * * Linking this l...
/* * 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 modelo; import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Column; import javax.p...
package ffm.slc.model.resources; /** * The person's Social Security number or a state-approved alternative identification number. */ public class StaffId extends StringResource{}
package model_checker; public class TreeNode { boolean isAtomicProperty; String atomicProperty; String operator; TreeNode left; TreeNode right; public TreeNode(boolean isAtomicProperty, String atomicProperty, String operator){ this.isAtomicProperty = isAtomicProperty; this.atomicProperty = atomicProperty; ...
package com.cleanup.todocTB.repositories; import android.arch.lifecycle.LiveData; import com.cleanup.todocTB.database.dao.ProjectDao; import com.cleanup.todocTB.model.Project; import java.util.List; public class ProjectDataRepository { private ProjectDao mProjectDao; public ProjectDataRepository(ProjectDa...
/* * */ package global.coda.hospitalmanagement.config; import org.glassfish.jersey.server.ResourceConfig; import global.coda.hospitalmanagement.service.DoctorService; import global.coda.hospitalmanagement.service.PatientService; /** * @author VC * */ public class JerseyConfig extends ResourceConfig { /** ...
package com.lesports.albatross.activity; import android.content.Intent; import android.media.MediaScannerConnection; import android.os.Bundle; import android.os.Environment; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import a...
/* * 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 fiuba.algo3.tests; import fiuba.algo3.modelo.Persona; import org.junit.Assert; import org.junit.Test; /** * * @author brah...
package com.Day15; public class WelcomeMessage { public static void main(String[] args) { System.out.println("Welcome to HashMap program..."); } }
package com.wdl.webapp.filter; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servle...
package amery.jdk.lambda; public class SubDefaultFunClass implements DefaultFunInterface { public static void main(String[] args) { // 实例化一个子类对象,改子类对象可以直接调用父接口中的默认方法 count SubDefaultFunClass sub = new SubDefaultFunClass(); sub.count(); } }
package String类; /** *将一个字符串指定部分反转 。比如 “ab cdef cdefg”反转为 ”ab fedc fedc g” */ public class 面试题2 { public static void main(String[] args) { System.out.println(getReverse1("hhudench", 3, 7)); System.out.println(getReverse2("hhudench", 3, 7)); System.out.println(getReverse2("hhudench", 3, 7)...
package poo; import javax.swing.*; import java.awt.Event; import javax.swing.Timer; import java. awt .Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Date; public class Prueba_temporizador2 { public static void main(String[] args) { Reloj mireloj=new Reloj(); ...
package com.mygdx.game.components; import com.artemis.Component; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; /** * Created by EvilEntity on 23/02/2017. */ public class Renderable extends Component { public static final int SHAPE_RECT = 0; public static final int SHAPE_CIRCLE = 1; public int shape; p...
/** * All rights Reserved, Designed By www.tydic.com * @Title: ContentCategoryService.java * @Package com.taotao.service * @Description: TODO(用一句话描述该文件做什么) * @author: axin * @date: 2018年12月20日 下午10:14:05 * @version V1.0 * @Copyright: 2018 www.hao456.top Inc. All rights reserved...
/** * 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...
package com.pwq.utils; import org.apache.commons.lang3.time.DateFormatUtils; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /** * 时间工具类 */ public class DateUtils { public static final String PATTERN_YEAR = "yyyy"; public static final String ...
class Solution { int[][] fourSides=new int[][]{{1,0},{0,1},{-1,0},{0,-1}}; public int islandPerimeter(int[][] grid) { int perimeter=0; for(int i=0;i<grid.length;i++){ for(int j=0;j<grid[0].length;j++){ if(grid[i][j]==1){ perimeter+=connectedArea(gr...
/* * 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.pipeline.stop; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import com.yahoo.cu...
package de.varylab.discreteconformal.plugin; import static de.varylab.discreteconformal.plugin.InterpolationMethod.Incircle; import static de.varylab.discreteconformal.plugin.TargetGeometry.Hyperbolic; import static java.awt.BasicStroke.CAP_SQUARE; import static java.awt.BasicStroke.JOIN_ROUND; import static java.lang...
/* * 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.gsccs.sme.plat.auth.service; import java.util.List; import com.gsccs.sme.plat.auth.model.AreaT; /** */ public interface AreaService { List<AreaT> getByParId(Integer parentid); List<AreaT> findAreaList(String ids); /** * 分页查询 */ public List<AreaT> find(AreaT area, String order, int currPage, ...
package com.bignerdranch.android.photogallery; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Query; public interface ApiEndpointInterface { @GET("services/rest/?method=flickr.photos.getRecent&extras=url_s&format=json&nojsoncallback=1") Call<GalleryApiResponse> getGalleryItems(@Query...
package com.alibaba.druid.bvt.sql.mysql.alterTable; import com.alibaba.druid.sql.SQLUtils; import com.alibaba.druid.sql.ast.SQLStatement; import com.alibaba.druid.sql.dialect.mysql.parser.MySqlStatementParser; import com.alibaba.druid.sql.parser.Token; import junit.framework.TestCase; import org.junit.Assert; public ...
package com.bnade.wow.service; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import static org.junit.Assert.*; /** * Crea...
package com.esum.framework.security.pki.keystore.info; import java.io.IOException; import java.sql.SQLException; public abstract class KeyStoreInfo { protected String mKeyStoreFile = null; protected String mKeyStorePassword = null; protected String mKeyStoreFileType = null; protected String mTrustStoreFile = n...
package com.stk123.task.quartz.job; import com.stk123.util.ServiceUtils; public class XueqiuUser { public String name; public String id; @Override public String toString() { return ServiceUtils.wrapLink(this.name, "http://xueqiu.com/"+this.id); } }
package com.BasicJava; public class IfCodition { public static void main(String[] args) { int StudentMarks =80; if(StudentMarks<100) { System.out.println("student got good score"); } } }
package dev.fujioka.eltonleite.presentation.dto.user; import java.time.LocalDate; public class UserRequestTO { private String username; private String password; private LocalDate dateBirth; public UserRequestTO() { } public String getUsername() { return username; } public...
package com.company; public class Node { // reference to the next node in the list Node next; // data in the node (object because we want to store anything) Object data; /** * first constructor for creating node without second reference * @param data data associated with node */ ...
package jp.ac.kyushu_u.csce.modeltool.dictionary.dict.handler; import java.util.List; import jp.ac.kyushu_u.csce.modeltool.dictionary.constant.DictionaryConstants; import jp.ac.kyushu_u.csce.modeltool.dictionary.dict.DictionaryView; import jp.ac.kyushu_u.csce.modeltool.dictionary.dict.Entry; import jp.ac.kyush...
package com.designpattern.dp5prototypepattern.deepcopy; import java.io.Serializable; public class Rectangle implements Serializable { public float l = 100; public float w = 100; public void big(){ l *= 2; w *= 2; } public void small(){ l /= 2; w /= 2; } }
package springboot.health; import org.springframework.boot.actuate.health.Health; import org.springframework.boot.actuate.health.Health.Builder; import org.springframework.boot.actuate.health.HealthIndicator; import org.springframework.stereotype.Component; @Component public class AppHealth implements HealthIndicator...
package nathan.banking; import java.util.ArrayList; import java.util.HashMap; public class Customer extends User { /** * */ private static final long serialVersionUID = -6742085101022354619L; public static Customer createNew(String username, String password, HashMap<String, String> personalInfo) { User u...
package com.example.kuno.optionmenubyxml; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast; /* \res\menu - 메뉴를 정의하는 xml파일 - 가장 상위에 <menu>태그를 가지고 있습니다. - 각각의 메뉴아이템은 <item>태그로 정의해 줍니다. - 메뉴를 정의한 xml파일 onCrea...
package com.lidaye.shopIndex.mapper; import com.lidaye.shopIndex.domain.vo.ShopVo; import org.apache.ibatis.annotations.Param; import java.util.List; public interface ShopMapper { List<ShopVo> findShopByCateId(@Param("cid") int cid); List<ShopVo> findShopByShopName(@Param("name") String name,@Param("type") I...
package com.pykj.ykz.chapter4.intercept; import java.lang.reflect.Method; /** * @description: TODO * @author: zhangpengxiang * @time: 2020/4/21 10:48 */ public class Invocation { private Object[] params; private Method method; private Object target; public Invocation(Object target, Method meth...
import java.util.LinkedList; public class Algorithm { final static int V = 4; public static boolean DFSColorFC(DigraphAM1 A) { return DFSColorFCAux(A, 1); } private static boolean DFSColorFCAux(DigraphAM1 A , int color) { int D[][] = DigraphAM1.getM(); int colorArray[] = new ...
package cx.fam.tak0294.NoteBook.Note; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.Paint.Cap; import android.graphics.Paint.Join; import android.graphics.Paint.Style; import ...
package com.example.test; import android.app.Activity; import android.os.Bundle; import android.view.Window; import android.view.animation.AlphaAnimation; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.ImageView; public class HelloActivity extends Activity...
package com.soldevelo.vmi.validation; import com.soldevelo.vmi.args.Arguments; import java.io.File; import java.util.ArrayList; import java.util.List; public class ArgumentValidator { public List<ValidationError> validateArgs(Arguments args) { List<ValidationError> errors = new ArrayList<ValidationError...
package com.pandame.anggarisky.validcode; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class MainActivity extends AppCompatActivity { Button btn_submit; @Override protected void onCr...
package com.example.zozen.mypanichenv2.Models; import java.util.List; public class Menu { private List<Ingredient> ListIngredient; private String name; private String type; private String id; public Menu(List<Ingredient> listIngredient, String name, String type) { ListIngredient = listIn...
package apiAlquilerVideoJuegos.servicios; import java.util.List; import apiAlquilerVideoJuegos.modelos.Empresa; public interface EmpresaServicio { public List<Empresa> obtener(); public Empresa obtenerEmpresa(Long id); public boolean guardar(Empresa empresa); public boolean eliminar(Long id); }
package com.oa.user.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.oa.user.dao.UserInfoDao; import com.oa.user.form.UserInfo; @Service public class UserInfoServiceImpl implements UserInfoService{ @Autowired ...
package alien4cloud.deployment; import javax.annotation.Resource; import javax.inject.Inject; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import alien4cloud.dao.IGenericSearchDAO; import alien4cloud.model.deployment.Deployment; import alien4cloud.model.deployment.DeploymentTopol...
package cn.com.onlinetool.fastpay.pay.wxpay.domain; import cn.com.onlinetool.fastpay.pay.wxpay.config.WXPayConfig; import cn.com.onlinetool.fastpay.pay.wxpay.constants.WXPayConstants; import org.apache.http.conn.ConnectTimeoutException; import java.net.UnknownHostException; import java.util.HashMap; import java.util...
package ru.avokin.uidiff.diff.common.controller; import ru.avokin.uidiff.common.controller.AbstractViewListenerImpl; import ru.avokin.uidiff.diff.common.view.DiffViewListener; /** * User: Andrey Vokin * Date: 03.10.2010 */ public class DiffViewListenerImpl extends AbstractViewListenerImpl implements DiffViewListen...
/* * [40] Combination Sum II * * https://leetcode-cn.com/problems/combination-sum-ii/description/ * * algorithms * Medium (48.65%) * Total Accepted: 2.5K * Total Submissions: 5.1K * Testcase Example: '[10,1,2,7,6,1,5]\n8' * * 给定一个数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。 * * ca...