text stringlengths 7 1.01M |
|---|
/*
* Copyright 1999-2101 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 pw.cotra.web.auth.dto;
import lombok.Data;
import java.util.Date;
@Data
public class LoginRes {
private String username;
private String avatar;
private String mobile;
private String email;
private String nickname;
private Date loginTime;
private String token;
}
|
/*
* 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 poussecafe.source.generation.tools;
import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.Block;
import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.jdt.core.dom.Statement;
import org.eclipse.jdt.core.dom.Type;
import org.eclipse.jdt.core.dom.rewrite.ListRewrite;
import pou... |
/*
* Copyright 2015 OpenMarket Ltd
* Copyright 2017 Vector Creations 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
*
* Unles... |
/*
* Copyright 2016-2018 shardingsphere.io.
* <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
package com.ysu.zyw.tc.components.rpc.httpx;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import okhttp3.ConnectionPool;
import okhttp3.CookieJar;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework... |
/*
* Copyright 2004-2010 the Seasar Foundation and the Others.
*
* 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 ... |
package NO_0028_Implement_strStr;
class Solution {
public int strStr(String haystack, String needle) {
// 虽然用库函数很简单,不过应该看看 KMP
// 参考:https://www.zhihu.com/question/21923021/answer/281346746
return haystack.indexOf(needle);
}
public static void main(String[] args) {
System.o... |
package com.aigne.nbpt.mvpdemo.http;
/**
* @author jazzeZhou
* @date 2018/4/9
*/
public class BasePesponse<T> {
public int code;
public String message;
public T data;
}
|
package com.codepath.apps.restclienttemplate;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import com.codepath.apps.restclienttemplate.databinding.ActivityLoginBinding;
import com.codepath.apps.restcl... |
/*
* MIT License
*
* Copyright (c) 2018 Pablo Da Costa Porto
*
* 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 Software without restriction, including without limitation the rights
* to use, c... |
/*
*
* * Copyright (c) 2021, Zoinkwiz
* * 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 retain the above copyright notice, this
... |
package com.cloud9.biz.dao.mybatis;
import com.cloud9.biz.models.SysDictItem;
import com.cloud9.biz.models.SysDictItemKey;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SysDictItemMapper {
int deleteByPrimaryKey(SysDictItemKey key);
int insert(SysDictItem record);
... |
package com.morihacky.android.rxjava.fragments;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.A... |
/**
*
*/
package com.telpoo.example.object;
import com.telpoo.frame.object.BaseObject;
/**
* @author NAQ219
*
*/
public class CatObject extends BaseObject {
public static final String[] keys = {"id", "name", "age"};
public static final String ID = keys[0];
public static final String NAME = keys... |
/*
* xal-objects - A Java mapping for the OASIS eXtensible Address Language (xAL)
* https://github.com/xmlobjects/xal-objects
*
* Copyright 2019-2021 Claus Nagel <claus.nagel@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
/*
* 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, software
* distributed ... |
package wannabit.io.cosmostaion.fragment.chains.cosmos;
import static com.fulldive.wallet.models.BaseChain.COSMOS_MAIN;
import static wannabit.io.cosmostaion.base.BaseConstant.CONST_PW_TX_GDEX_DEPOSIT;
import static wannabit.io.cosmostaion.base.BaseConstant.TASK_GRPC_FETCH_GRAVITY_POOL_INFO;
import static wannabit.io.... |
package com.qidao.framework.web.controller;
import java.beans.PropertyEditorSupport;
import java.util.Date;
import java.util.List;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo... |
package de.beachboys;
import org.javatuples.Triplet;
import java.util.HashSet;
import java.util.Set;
public enum DirectionHexPointyTop {
WEST(-1, 1, 0), EAST(1, -1, 0), NORTHWEST(0, 1, -1), NORTHEAST(1, 0, -1), SOUTHWEST(-1, 0, 1), SOUTHEAST(0, -1, 1);
public final int stepX;
public final int stepY;
... |
package com.yiran.payorder.domain;
import java.math.BigDecimal;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import com.yiran.paychannel.enums.YesNo;
/**
* <p>
* CMF机构订单--VO
* </p>
*/
public class InstOrderVO {
private ... |
/*
* Copyright The OpenTelemetry 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
package com.ziroom.credit.main;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import androi... |
package com.udacity.vehicles.service;
import com.udacity.vehicles.client.maps.MapsClient;
import com.udacity.vehicles.client.prices.PriceClient;
import com.udacity.vehicles.domain.Location;
import com.udacity.vehicles.domain.car.Car;
import com.udacity.vehicles.domain.car.CarRepository;
import java.util.List;
import ... |
/* Copyright 2017 Zutubi Pty 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 law or agreed to in... |
package seedu.addressbook.parser;
import seedu.addressbook.commands.*;
import seedu.addressbook.data.exception.IllegalValueException;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static seedu.addressbook.common.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
/**
* Parses user... |
/*
* Copyright (C) 2007-2013 Geometer Plus <contact@geometerplus.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ver... |
package com.hzvh.travel.dao;
import com.hzvh.travel.domain.RouteImg;
import java.util.List;
public interface RouteImgDao {
/**
* 根据route的id查询图片
* @param rid
* @return
*/
public List<RouteImg> findByRid(int rid);
}
|
/*
* 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... |
package com.wangrollin.leetcode.n0_normal.p1000.p1010.problem1010;
import java.util.Arrays;
/**
* 总持续时间可被 60 整除的歌曲
*
* 在歌曲列表中,第 i 首歌曲的持续时间为 time[i] 秒。
* 返回其总持续时间(以秒为单位)可被 60 整除的歌曲对的数量。
* 形式上,我们希望索引的数字 i 和 j 满足 i < j 且有(time[i] + time[j]) % 60 == 0。
*
* 示例 1:
* 输入:[30,20,150,100,40]
* 输出:3
* 解释:这三对的总持续时间可被 6... |
package org.youtube.viewer.view;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Map;
import java.util.logging.Logger;
import org.condast.js.commons.eval.EvaluationEvent;
import org.condast.js.commons.eval.IEvaluationListener;
import org.eclipse.rap.rwt... |
/**
* Copyright (C) 2015 Red Hat, 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... |
/*
* 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 ... |
/*
* 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 ... |
/*
* Copyright 2008 ZXing 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... |
package com.gmail.fantasticskythrow.other;
import com.gmail.fantasticskythrow.PLM;
import com.gmail.fantasticskythrow.other.logging.ILoggerWrapper;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
im... |
package org.jitsi.bouncycastle.operator.bc;
import java.security.SecureRandom;
import org.jitsi.bouncycastle.asn1.x509.AlgorithmIdentifier;
import org.jitsi.bouncycastle.crypto.Wrapper;
import org.jitsi.bouncycastle.crypto.params.KeyParameter;
import org.jitsi.bouncycastle.crypto.params.ParametersWithRandom;
import or... |
/*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... |
/**
* Copyright 2011-2019 Asakusa Framework Team.
*
* 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... |
package io.github.memfis19.cadar;
import android.support.annotation.Nullable;
import java.util.Calendar;
import java.util.List;
import io.github.memfis19.cadar.data.entity.Event;
import io.github.memfis19.cadar.event.DisplayEventCallback;
import io.github.memfis19.cadar.internal.configuration.BaseCalendarConfigurati... |
package com.wex.prepag.dao;
import static org.junit.Assert.assertEquals;
import java.time.LocalDate;
import java.util.Optional;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... |
/*
*
* * Copyright memiiso Authors.
* *
* * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*
*/
package io.debezium.server.batch.performance;
import io.debezium.server.batch.common.BaseSparkTest;
import java.time.Duration;
import org.apache.s... |
package org.openforis.idm.metamodel.validation;
public class ValidationMessage {
public enum Flag {
ERROR, WARN;
}
private Flag flag;
private String message;
public ValidationMessage(Flag flag, String message) {
this.flag = flag;
this.message = message;
}
public Flag getFlag() {
re... |
/*
* MIT License
*
* Copyright (c) 2021 MASES s.r.l.
*
* 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 Software without restriction, including without limitation the rights
* to use, cop... |
package com.capinfo.service;
import com.capinfo.base.BaseService;
import com.capinfo.entity.CapItemRequirement;
import java.util.List;
public interface CapItemRequirementService extends BaseService<CapItemRequirement,String> {
int deleteByPrimaryKey(String id);
@Override
int insert(CapItemRequirement ... |
package xyz.morecraft.dev.jetbrains.intellij.plugin.lang.yscript;
import com.intellij.lexer.FlexAdapter;
import java.io.Reader;
public class YScriptLexerAdapter extends FlexAdapter {
public YScriptLexerAdapter() {
super(new _YScriptLexer((Reader) null));
}
}
|
package org.jconf.demos;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.atomic.AtomicLong;
import java.util.stream.IntStream;
import static java.util.stream... |
/*
* The MIT License
* Copyright © 2016-2019 Marco Collovati (mcollovati@gmail.com)
*
* 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 Software without restriction, including without limitation t... |
package com.ocadotechnology.newrelic.alertsconfigurator.configuration.condition;
import com.ocadotechnology.newrelic.alertsconfigurator.configuration.condition.terms.NrqlTermsConfiguration;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NonNull;
import lombok.Singular;
im... |
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.layout.GridPane;
import javafx.sce... |
package owltools.mooncat;
import static org.junit.Assert.*;
import org.junit.Test;
import org.semanticweb.owlapi.model.OWLAxiom;
import org.semanticweb.owlapi.model.OWLEntity;
import org.semanticweb.owlapi.model.OWLObject;
import owltools.OWLToolsTestBasics;
import owltools.graph.OWLGraphWrapper;
import owltools.io.... |
/*
* 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.stock.market.StockMarketTool.dtos;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDate;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class StocksIdxDTO {
private Integer quarter;
private String s... |
package com.googlecode.yatspec.junit;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
@YatspecAnnotation
public @interfac... |
package com.dwarfeng.dutil.basic.gui.swing;
import java.util.EventListener;
/**
* 控制台输入的侦听器。
* @deprecated 随着 {@link JConsole} 过时,该类也一并过时。
* @author DwArFeng
* @since 0.0.2-beta
*/
public interface ConsoleInputEventListener extends EventListener {
/**
* 当控制台发生输入事件时发生的调度。
* @param e 控制台输入事件。
*/
public v... |
package com.secondfury.nativetoolkit;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import org.json.JSONObject;
import com.unity3d.player.UnityPlayer;
import android.app.Activity;
import android.content.Intent;... |
package ch.ffhs.snake;
import ch.ffhs.snake.mainGUI.MainController;
import ch.ffhs.snake.mainGUI.MainModel;
import ch.ffhs.snake.mainGUI.MainView;
import javax.swing.*;
/**
* @author felix
* @version 0.1
* @date 20.03.2017
*/
public class SnakeStarter {
public static void main(String[] args) {
SwingU... |
/*
* Copyright 2015 Philip Gasteiger
*
* 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 applicab... |
/* Copyright 2016 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 in... |
/*
* Copyright 2008-2012 LinkedIn, 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 ... |
/*
* 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, software
* distribut... |
package com.libutil.test.datetime;
import com.libutil.DateTime;
import com.libutil.test.Log;
public class CompareTest {
public static void main(String args[]) {
Log.i("1----------");
test1();
Log.i("2----------");
test2();
Log.i("3----------");
test3();
Log.i("4----------");
test... |
package org.apache.solr.handler.clustering;
/*
* 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 Licen... |
/**
* The MIT License (MIT)
* Copyright (c) 2012 David Carver
* 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 Software without restriction, including
* without limitation the rights to use, copy... |
package com.sihuatech.sqm.spark.common;
import java.util.Arrays;
import java.util.List;
public class Constant {
public static final String FIRST_FRAME = "FIRST_FRAME";
public static final String ALL_PLAY = "ALL_PLAY";// 播放总次数
public static final String ALL_PLAY_D2 = "ALL_PLAY_D2";//计算无法提供服务的播放总次数
public ... |
package net.minecraft.server;
public class ScoreboardObjective {
private final Scoreboard a;
private final String b;
private final IScoreboardCriteria c;
private IScoreboardCriteria.EnumScoreboardHealthDisplay d;
private String e;
public ScoreboardObjective(Scoreboard scoreboard, String s, IS... |
/*
* Minecraft Forge
* Copyright (c) 2016-2019.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation version 2.1
* of the License.
*
* This library is distributed in the hope that it... |
/*
* Copyright 2021 Jeremy KUHN
*
* 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 i... |
package com.qtt.barberstaffapp.Interface;
public interface ILoadCountSalon {
void onLoadCountSalonSuccess(int count);
}
|
/*
* -\-\-
* Apollo Elide integration
* --
* Copyright (C) 2016 Spotify AB
* --
* 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
*... |
package ru.job4j.threads;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Class PrintInfoEndTest.
*
* @author Alexey Rastorguev (rastorguev00@gmail.com)
* @version 0.1
* @since 25.01.2018
*/
public class PrintInfoEndTest {
@Test
public void whenPrintThenEndPrint() {
new PrintInf... |
package free6om.research.qart4j;
/**
*
* ----------------------------------------------------------------------------------
* | 26bits for offset | 4bits for Role | 1bit for invert | 1bit for black or white |
* ----------------------------------------------------------------------------------
*
* Created by free... |
package com.codepath.apps.restclienttemplate;
import android.content.Context;
import android.util.Log;
import com.codepath.asynchttpclient.RequestParams;
import com.codepath.asynchttpclient.callback.JsonHttpResponseHandler;
import com.codepath.oauth.OAuthBaseClient;
import com.github.scribejava.apis.FlickrApi;
import... |
/*
* Copyright 2018 Key Bridge.
*
* 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... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
public class Array {
private int[] data;
private int size;
// 构造函数,传入数组的容量capacity构造Array
public Array(int capacity){
data = new int[capacity];
size = 0;
}
// 无参数的构造函数,默认数组的容量capacity=10
public Array(){
this(10);
}
// 获取数组的容量
public int getCapacity(){... |
package id.web.ilham.api.inventory.models.item;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
public class ItemRequest {
@Size(min = 1, max = 100)
private String name;
@NotNull
private Integer price;
@NotNull
private Integer unitId;
public Strin... |
package com.baeldung.form_submission.controllers;
import com.baeldung.form_submission.model.Feedback;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Mo... |
package com.designpattern.factoryabstract;
import com.designpattern.factoryabstract.entity.Keybo;
import com.designpattern.factoryabstract.entity.Mouse;
import com.designpattern.factoryabstract.factory.PcFactory;
/**
* 抽象工厂模式
* 抽象工厂模式(Abstract Factory Pattern)是围绕一个超级工厂创建其他工厂。该超级工厂又称为其他工厂的工厂。
* 这种类型的设计模式属于创建型模式,它提供... |
package week4;
import java.util.ArrayList;
import java.util.Random;
public class LotteryNumbers
{
private final int pickMax;
private final int largestValue;
private final Random random;
private ArrayList<Integer> numbers;
public LotteryNumbers() {
pickMax = 7;
largestValue = 39;
... |
package cn.geobeans.web.common.web;
/**
* Token 异常工厂类
* Created by Guo on 2016/9/2.
*/
public class CustomExceptionFactory {
/**
* 工厂模式:用户异常:返回一个用户密码错误异常
* @return 用户异常
*/
public static Exception createInvalidUserPasswordException() {
return new CustomException("Invalid username or p... |
package com.bazl.dna.dpznsy.dao;
import java.util.List;
import com.bazl.dna.dpznsy.model.po.MemberInfo;
public interface MemberInfoMapper {
int deleteByPrimaryKey(String id);
int insert(MemberInfo record);
MemberInfo selectByPrimaryKey(String id);
List<MemberInfo> selectAll();
int updateByPri... |
package com.atguigu.gmall.pms.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* 商品三级分类
*
* @author fengge
... |
/**
* 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.github.CCwexiao.dsl.client.rowkeytextfunc;
import com.github.CCwexiao.dsl.client.RowKey;
/**
* @author leojie 2020/11/28 11:09 上午
*/
public interface RowKeyTextFunc {
/**
* 转换文本到rowKey
*
* @param text sql 中传入的数据值
* @return one row key
*/
RowKey func(String text);
/*... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
package com.alibaba.csp.sentinel.dashboard.metric.kafka;
import org.apache.kafka.clients.producer.Partitioner;
import org.apache.kafka.common.Cluster;
import java.util.Map;
/**
* Kafka 监控自定义分区
*
* @author gyl
* @since 1.0.0
*/
public class KafkaPartitioner implements Partitioner {
private Integer partition;
... |
/*
* Copyright 2020 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 wr... |
package shadersmod.client;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import optifine.Config;
import optifine.Lang;
import optifine.StrUtils;
public class ShaderOptionSwitch extends ShaderOption {
private static final Pattern PATTERN_DEFINE = Pattern.compile("^\\s*(//)?\\s*#define\\s+([A-Za-z0... |
package controllers;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.stream.Collectors;
import javax.inject.Inject;
import javax.servlet.http.HttpServletResponse;
import com.fasterxml.jackson.databind.JsonN... |
/*
* Copyright (C) 2020 ActiveJ 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
package com.pepper.core.dubbo;
/**
*
* @author mrliu
*
*/
public class DubboConfig {
// 重试次数
public static final int RETRIES = 0;
// 超时时长
public static final int TIMEOUT = 6000;
// 集群容错模式:
public static final String CLUSTER = "failfast";
// 是否监测发布者是否在zookeeper中心注册
public static final boolean CHECK = f... |
package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... |
/*
* 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 zrock.application.engine.app.plugin.selector;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import zrock.application.engine.app.plugin.DynamicActivity;
/**
* @author Lody
* @version 1.0
*/
public class DefaultActivitySelector implements DynamicActivitySelector {
private static ... |
package com.binea;
import com.binea.state.Events;
import com.binea.state.States;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
impo... |
/*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, softw... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.