text
stringlengths
7
995k
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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 requ...
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2006-2018 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retai...
package ai.labs.httpclient.impl; import ai.labs.httpclient.ICompleteListener; import ai.labs.httpclient.IHttpClient; import ai.labs.httpclient.IRequest; import ai.labs.httpclient.IResponse; import lombok.Getter; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import org.eclipse.jetty.client.HttpClient; import ...
package cc.mrbird.common.http.model; /** * 定义批量请求的状态码 * 参考文档:<a href="https://developer.qiniu.com/kodo/api/batch">批量操作</a> */ public final class BatchStatus { /** * 批量请求的每个命令的执行结果状态码 */ public int code; /** * 批量请求的每个命令返回的结果 */ public BatchOpData data; }
package com.louis.kitty.admin.model; /** * --------------------------- * (Contactor) * --------------------------- * 作者: kitty-generator * 时间: 2019-07-26 20:16:44 * 说明: 我是由代码生成器生生成的 * --------------------------- */ public class Contactor { /** */ private Long id; /** */ private String conNa...
/* * 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 leetcode.Easy.Array; /** * Created by tiejin on 7/24/2018. */ //给定一个排序数组,你需要在原地删除重复出现的元素,使得每个元素只出现一次,返回移除后数组的新长度。 // // 不要使用额外的数组空间,你必须在原地修改输入数组并在使用 O(1) 额外空间的条件下完成。 public class Array21 { private static int[] removeDuplicates(int[] nums) { for(int i = 0; i < (nums.length-1); i++) ...
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
/* ******************************************************************* * Copyright (c) 2004 IBM Corporation * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is available at * http:...
/* * Copyright ConsenSys AG. * * 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 writing...
/* * 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 ...
/* * 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 ...
import java.math.BigInteger; import net.runelite.mapping.Export; import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("px") @Implements("Buffer") public class Buffer extends Nod...
public class Solution { /* * @param A: An integer array. * @return: nothing */ public void rerange(int[] A) { // write your code here int positive = 0; int negative = 0; Arrays.sort(A); for (int i = 0; i < A.length; i++) { if (A[i] < 0...
package org.sagebionetworks.file.worker; import java.util.Objects; import org.sagebionetworks.kinesis.AwsKinesisLogRecord; /** * DTO for sending file handle data to kinesis */ public class FileHandleRecord implements AwsKinesisLogRecord { public static final String STREAM_NAME = "fileHandleData"; private long...
package de.fhg.iais.roberta.syntax.action.communication; import java.util.List; import de.fhg.iais.roberta.blockly.generated.Block; import de.fhg.iais.roberta.blockly.generated.Value; import de.fhg.iais.roberta.syntax.BlockTypeContainer; import de.fhg.iais.roberta.syntax.BlocklyBlockProperties; import de.fhg.iais.rob...
package com.park.bean; import java.io.*; import java.util.*; //park_info @SuppressWarnings({"serial"}) public class Park_info implements Cloneable , Serializable{ //public static String[] carrays ={"pi_id","area_code","pi_name","address_name","lng","lat","linkman_name","linkman_tel","copy_linkman_name","copy_lin...
/* * Copyright 2020 Google LLC * * 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 applicable law or agreed to ...
package com.example.demo; import java.util.Objects; import javax.script.ScriptException; public class NpeExample { public static final void main(String[] args) throws ScriptException { Person person = new Person(); System.out.println("Get the city of the address of a Person:\n"+ person....
package org.xiyou.springboot; /** * @author xiyou * @version 1.0 * xiyou-todo XXX功能 * @date 2020/5/24 22:15 */ import redis.clients.jedis.Jedis; public class RedisLimit { // Redis 操作客户端 static Jedis jedis = new Jedis("127.0.0.1", 6379); public static void main(String[] args) throws InterruptedExcep...
// Copyright 2018-2020 Twitter, Inc. // Licensed under the MoPub SDK License Agreement // http://www.mopub.com/legal/sdk-license-agreement/ package com.mopub.mobileads; import android.app.Activity; import com.mopub.common.CacheService; import com.mopub.common.test.support.SdkTestRunner; import com.mopub.common.util....
import edu.umn.gis.mapscript.*; /** * <p>Title: Mapscript shape dump example.</p> * <p>Description: A Java based mapscript example to create an image given a mapfile.</p> * @author Yew K Choo ykchoo@geozervice.com * @version 1.0 */ public class Metadata { public static void usage() { System.err.println("...
package me.tatarka.simplefragment.test; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import me.tatarka.simplefragment.SimpleFragment; import me.tatarka.simplefragment.S...
package io.ignice.c17n.data; import discord4j.common.util.Snowflake; import io.ignice.c17n.util.SanityOps; import org.springframework.dao.OptimisticLockingFailureException; import org.springframework.data.annotation.*; import org.springframework.data.relational.core.mapping.Table; import java.beans.ConstructorPropert...
package com.kuhak.controller.exception; import java.util.Date; public class ErrorDetails { private Date timestamp; private String message; private String details; public ErrorDetails(Date timestamp, String message, String details) { this.timestamp = timestamp; this.message = message;...
/** */ package Gtm.provider; import Gtm.GtmPackage; import java.util.Collection; import java.util.List; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.util.ResourceLocator; import org.eclipse.emf.edit.provider.ComposeableAdapt...
/* * Copyright (c) 2017-2021 m2049r et al. * * 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 agr...
/* * Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by 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 ...
package com.hfuu.web.dao.base; import java.io.Serializable; import java.util.List; /** * @author :Ciel-08 * 最后修改时间: * 最后修改人: * @Description :基础Dao接口 * @date :2019/9/25 18:53 */ public interface BaseDao<T> { /** * 新增记录 * * @param t */ void insert(T t); /** * 删除记录 * ...
package com.github.sahasatvik.cli; /** * A UnknownOptionValueTypeException describes the nature of an error on parsing values of options in ArgHandler. This * Exception is thrown when a Option value type class is not recognized. * * @author Satvik Saha * @version 0.1.0, 04/09/2016 * @see com.github.sahasat...
package com.github.binarywang.wxpay.bean.notify; import java.io.Serializable; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; import org.apache.commons.codec.binary.Base64; import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apach...
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.cms.web.front; import java.util.Date; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans...
package designPattern.creativion.builder; /** * 描述: 扩展饮品 * * @author WuYanchang * @date 2021/5/20 14:51 */ public class Coke extends ColdDrink { @Override public String name() { return "Coke 可口可乐"; } @Override public float price() { return 30.0f; } }
package org.apache.hadoop.tools.posum.data.mock.data.predicate; import org.apache.hadoop.tools.posum.common.records.call.query.DatabaseQuery; import org.apache.hadoop.tools.posum.common.records.dataentity.GeneralDataEntity; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import ja...
/* * 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 modelo; public class Material { private int id; private String nome; private int quantidade; private Pedido pedido; private double valor; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getNome() { r...
package aademo.superawesome.tv.awesomeadsdemo.activities.creatives; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Color; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.Vi...
package com.googlecode.wicket.jquery.ui.form.button; import java.util.List; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; import org.apache.wicket.markup.html.link.AbstractLink; import org.apache.wicket.model.IModel; import org.apache.wicket.model.Mode...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: steammessages_parental.steamclient.proto package com.jsteamkit.internals.proto; public final class SteammessagesParentalSteamclient { private SteammessagesParentalSteamclient() {} public static void registerAllExtensions( com.google.proto...
package net.tdw.dockboot.controller; import net.tdw.dockboot.Fixtures; import net.tdw.dockboot.domain.TrilogyType; import net.tdw.dockboot.service.EpisodeService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.spring...
package io.fairspace.saturn.config; import io.fairspace.saturn.services.features.FeaturesApp; import io.fairspace.saturn.services.health.HealthApp; import io.fairspace.saturn.services.maintenance.MaintenanceApp; import io.fairspace.saturn.services.metadata.MetadataApp; import io.fairspace.saturn.services.metadata.Voca...
/* * Copyright (C) 2021-2022 Objectos Software LTDA. * * 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 ...
/* * Copyright 2014 NAVER Corp. * * 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.baiye.redscarf.user.gateway; import com.baiye.redscarf.common.result.Result; import com.baiye.redscarf.user.dto.UserAccountDTO; import com.baiye.redscarf.user.vo.UserDataVo; import com.baiye.redscarf.user.rpcService.IUserAccountService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sp...
package com.jumbodinosaurs.webserver.post.object.commands.objectCRUD; import com.google.gson.Gson; import com.jumbodinosaurs.devlib.database.Query; import com.jumbodinosaurs.devlib.database.exceptions.NoSuchDataBaseException; import com.jumbodinosaurs.devlib.util.objects.PostRequest; import com.jumbodinosaurs.webserve...
package org.sweetest.platform.server.web; import org.apache.commons.io.FileUtils; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Primary; import java.io.IOException; import java.nio.file.Files; public cl...
/* * Copyright 2019 wjybxx * * 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...
/** * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
package net.emaze.dysfunctional.strings.predicates; import java.util.function.Predicate; import org.junit.Assert; import org.junit.Test; /** * * @author rferranti */ public class StringEndsWithIgnoreCaseTest { @Test(expected = IllegalArgumentException.class) public void creatingWithNullNeedleYieldsExcepti...
/* * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The contents of this file are subject to the terms of either the Universal Permissive License * v 1.0 as shown at http://oss.oracle.com/licenses/upl * * or the follo...
/* * @(#)RGBChooser.java 1.3 2006-04-23 * * Copyright (c) 2005-2006 Werner Randelshofer * Staldenmattweg 2, Immensee, CH-6405, Switzerland. * All rights reserved. * * This software is the confidential and proprietary information of * Werner Randelshofer. ("Confidential Information"). You shall not * disclos...
/************************************************************************ * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * * Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved. * * Use is subject to license terms. * * Licensed under the Apache License, Version 2.0 (the "Lic...
// This file is auto-generated, don't edit it. Thanks. package com.antgroup.antchain.openapi.cas.models; import com.aliyun.tea.*; public class QueryComputerResponse extends TeaModel { // 请求唯一ID,用于链路跟踪和问题排查 @NameInMap("req_msg_id") public String reqMsgId; // 结果码,一般OK表示调用成功 @NameInMap("result_code"...
/* * 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 cursodejava.olamundo; /** * * @author cyjuwork */ public class OlaMundoJava extends javax.swing.JFrame { /** * Cr...
/* * Copyright 2016-present Facebook, 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...
package optifine; import net.minecraft.block.Block; import net.minecraft.client.renderer.RenderGlobal; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.item.EntityTNTPrimed; import net.minecraft.entity.player.Play...
package org.odk.collect.android.widgets.base; import org.javarosa.core.model.QuestionDef; import org.javarosa.core.model.data.IAnswerData; import org.junit.Test; import org.mockito.Mock; import org.odk.collect.onic.widgets.StringWidget; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.wh...
package net.minecraft.command.server; import java.util.List; import net.minecraft.command.CommandBase; import net.minecraft.command.CommandException; import net.minecraft.command.ICommandSender; import net.minecraft.command.WrongUsageException; import net.minecraft.server.MinecraftServer; import net.minecraft.util.Bl...
/* * Copyright (c) 2012-2018, Peter Abeles. All Rights Reserved. * * This file is part of DDogleg (http://ddogleg.org). * * 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://w...
package lt.freeland.uaa.exceptions; /** * * @author freeland */ public class UserNotFoundException extends RuntimeException { public UserNotFoundException() { } public UserNotFoundException(String message) { super(message); } public UserNotFoundException(String message, Throwable caus...
// Template Source: BaseEntityRequestBuilder.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -----------------------------...
// ArrayReal.java package evochecker.genetic.jmetal.encoding; import jmetal.core.Problem; import jmetal.core.Variable; import jmetal.util.Configuration; import jmetal.util.JMException; import jmetal.util.PseudoRandom; /** * Class implementing a decision encodings.variable representing an array of * real values. Th...
package de.shiirroo.manhunt.event.menu.menus.setting.gamemode.modes; import de.shiirroo.manhunt.event.menu.menus.setting.gamemode.CustomGameMode; import de.shiirroo.manhunt.utilis.Utilis; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemFlag; imp...
import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class pickcard1 extends JFrame{ int count; QuestChoiceData qd; Current_Game curr; Special_Rules a; QuestOutcome qo; VotingData vd; Score scr; boolean f=false; public pickcard1(QuestChoice...
package net.minecraft.server.management; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import com.mojang.authlib.GameProfile; import com.mojang.serialization.Dynamic; import io.netty.buffer.Unpooled; import java.io.File; import java.net.SocketAddr...
package com.pb.app.caloriecalculator; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test publi...
package tl.knowledge.surrogate.lsh; import ec.EvolutionState; import ec.Individual; import ec.Population; import ec.gp.GPIndividual; import ec.gp.GPNode; import ec.multiobjective.MultiObjectiveFitness; import ec.util.Parameter; import gphhucarp.decisionprocess.reactive.ReactiveDecisionSituation; import gphhucarp.gp.Re...
package tacos.web.api; import org.springframework.hateoas.EntityLinks; import org.springframework.hateoas.PagedResources; import org.springframework.hateoas.Resource; import org.springframework.hateoas.ResourceProcessor; import org.springframework.stereotype.Component; import tacos.Taco; @Component public class Taco...
/* * This file is part of LuckPerms, licensed under the MIT License. * * Copyright (c) lucko (Luck) <luck@lucko.me> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
package har; public class Content { private int size; private int compression; private String mimeType; private String text; private String encoding; private String comment; public static class Builder { private int size; private int compression; private String mime...
package com.nagraj.local; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addit...
/* * Copyright (C) 2018 Google 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 ...
/* * 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 dungeon.souls.modding.tool.ui; import java.awt.Frame; import org.junit.After; import org.junit.AfterClass; import org.junit.Be...
// SPDX-FileCopyrightText: 2015-2017 C. Ramakrishnan / Illposed Software // SPDX-FileCopyrightText: 2021 Robin Vobruba <hoijui.quaero@gmail.com> // // SPDX-License-Identifier: BSD-3-Clause /** * Provides OSC <i>Argument</i> type value classes. * Most of the Java classes used as argument values are chosen from within...
/* * Copyright 2016 ifarseer * * 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...
import java.util.List; public class Menu implements HealthElement { public List<MenuItem> items; @Override public void accept(Visitor visitor) { visitor.visit(this); } @Override public Integer getCalories() { return 150; } }
package org.apache.rya.indexing.accumulo.entity; /* * 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 Ap...
/* * 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.google.android.connecteddevice.calendarsync.android; import android.content.ContentResolver; import android.database.ContentObserver; import android.net.Uri; import android.os.Handler; import android.provider.CalendarContract; import com.google.android.connecteddevice.calendarsync.common.CalendarsObservabl...
package ru.job4j.models; import java.sql.Timestamp; import java.util.Objects; public class User { private int id; private String name; private Timestamp expired; public User() { } public User(int id, String name, Timestamp expired) { this.id = id; this.name = name; ...
package com.secuxtech.paymentdevicekit; public interface SecuXPaymentDeviceKitLogHandlerCallback { public void logFromSecuXPaymentDeviceKit(String log); }
package com.orientechnologies.orient.server.distributed; import com.orientechnologies.orient.core.db.document.ODatabaseDocument; import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx; import com.orientechnologies.orient.core.db.record.OIdentifiable; import com.orientechnologies.orient.core.record.im...
/* * Copyright 2014 - 2021 Blazebit. * * 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 agre...
/* * * 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"); y...
package com.plk.sbdemo.admin.quartz; import org.quartz.Job; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; /** * 继承QuartzJob * 设置定时任务的名称,组名以及Cron表达式即可 * 方便加入Quartz的管理 * 1. 通过@Component注解加入Spring管理设置bean名称作为任务名称 * 2. 复写jobCronExp方法设置crontab表达式 * 3. 实现executeInternal方法完成任务 */ pub...
package cn.android_mobile.core.net.http.yjweb; import java.util.List; /** * 分页实现类 * @author fangzhen * * @param <T> */ public class PageList<T> { //返回结果 private List<T> rows; //总记录数 private int total; //每页显示多少数据 private int pageSize; //第几页 private int pageNo; /** * 返回总页数 * @return */ pu...
/* Copyright (C) 2013-2021 TU Dortmund * This file is part of LearnLib, http://www.learnlib.de/. * * 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/...
package io.github.talelin.latticy.module.file; import io.github.talelin.autoconfigure.exception.*; import org.springframework.util.MultiValueMap; import org.springframework.web.multipart.MultipartFile; import java.util.ArrayList; import java.util.List; import java.util.UUID; /** * 文件上传类的基类 * 模版模式 * * @author ped...
package mrriegel.playerstorage; import mrriegel.limelib.network.PacketHandler; import mrriegel.playerstorage.gui.ContainerExI; import mrriegel.playerstorage.gui.GuiExI; import mrriegel.playerstorage.registry.Registry; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import net.minecra...
package on2019_11.on2019_11_07_2019_2020_ICPC__Asia_Jakarta_Regional_Contest__Online_Mirror__ICPC_Rules__Teams_Preferred_.B___Cleaning_Robots; import net.egork.chelper.tester.NewTester; import org.junit.Assert; import org.junit.Test; public class Main { @Test public void test() throws Exception { if (!NewTester....
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
/** * Copyright 2015-2017 Emmanuel Keller / QWAZR * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by ap...
/* * eGov suite of products aim to improve the internal efficiency,transparency, * accountability and the service delivery of the government organizations. * * Copyright (C) 2016 eGovernments Foundation * * The updated version of eGov suite of products as by eGovernments Foundation * is available at http://...
/* * Copyright 2017 Lookout, 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...
/* * CLOUD API * An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.mediaservices.models; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.co...
/******************************************************************************* * * MIT License * * Copyright (c) 2016 Tiago de Freitas Lima * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the ...
/* * Copyright 1999-2011 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 applica...
package com.wirelust.sosandbox.providers; import javax.ws.rs.Consumes; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.ext.Provider; import org.jboss.resteasy.plugins.providers.jackson.ResteasyJacksonProvider; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Date: 23...