text
stringlengths
7
995k
package com.agenda; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; public class AddEvent extends AppComp...
package com.jzy.manager.exception; import lombok.Getter; /** * @ClassName ExcelTooManyRowsException * @Author JinZhiyun * @Description 表格行数过多异常 * @Date 2020/1/12 13:08 * @Version 1.0 **/ public class ExcelTooManyRowsException extends Exception { private static final long serialVersionUID = 72547161260550233...
/* * Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
package io.bitrise.trace.scheduler; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import android.content.Context; import java.util.concurrent.TimeUnit; import org.junit.Test; import org.mockito.Mockito; /** * Unit tests for {@li...
package nextstep.subway.error.exception; public class CannotRemoveStateException extends BusinessException { public CannotRemoveStateException(Long id) { super(makeMessage(id), ErrorCode.CANNOT_REMOVE_STATE); } private static String makeMessage(Long id) { return id + ErrorCode.CANNOT_REMOVE...
package java.android.quanlybanhang.login; import android.app.Activity; import android.app.AlertDialog; import android.view.LayoutInflater; import java.android.quanlybanhang.R; public class LoadingDialog { private Activity activity; private AlertDialog dialog; LoadingDialog(Activity myActivity){ ...
public class QuickFindUF { private int[] id; //Default constructor public QuickFindUF(int N) { id = new int[N]; //init the array of N size for (int i = 0; i < N; i++) { id[i] = i; //set id of each object to itself } } public boolean connected(int p, int q) { return id[p] == id...
package com.antonkesy.udptool.udp; import org.jetbrains.annotations.NotNull; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; import java.net.SocketTimeoutException; import java.util.LinkedList; import java.util.O...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.internal.statistic.updater; import com.intellij.concurrency.JobScheduler; import com.intellij.ide.ApplicationInitializedListener; import com.intellij.ide.Sta...
package io.reactivex.internal.operators.flowable; import io.reactivex.Flowable; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.disposables.Disposable; import io.reactivex.exceptions.MissingBackpressureException; import io.reactivex.functions.Function; import io.reactivex.internal.disposables....
/* * Copyright (C) 2015 Alefe Souza <contato@alefesouza.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 app...
/* * 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.sofkau.practice2.configuration; import org.modelmapper.ModelMapper; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class Practice2Configuration { @Bean public ModelMapper modelMapper() { return new Mod...
package ca.jvsh.networkbenchmark; import java.io.IOException; import java.io.InputStream; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.ServerSocket; import java.net.Socket; import java.net.SocketException; import java.uti...
// ============================================================================ // // Copyright (C) 2006-2018 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receiv...
package main.java.app.javache.http.contracts; import java.util.Map; /** * Created by George-Lenovo on 6/29/2017. */ public interface IHttpSession { Map<String, IHttpCookie> getCookies(); void addCookie(IHttpCookie cookie); void removeCookie(String userId); }
/* * Copyright 2019-2020 Zheng Jie * * 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 w...
/* * Copyright 2021 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.bx.erp.test; import static org.testng.Assert.assertTrue; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.Map; import java.util.Random; import org.springframework.test.context.web.WebAppConfiguration; import org.testng.Assert; im...
package savickas_ignas.win10notifications; /** * Created by isavi on 2017-02-06. */ public interface Constants { // Message types sent from the BluetoothChatService Handler public static final int MESSAGE_STATE_CHANGE = 1; public static final int MESSAGE_READ = 2; public static final int MESSAGE_WRI...
/* * Copyright (C) 2019 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package com.intel.attestationhub.plugin.nova; import static org.junit.Assert.fail; import java.io.IOException; import java.io.InputStream; import com.google.common.io.ByteStreams; public class TestUtils { public static Str...
class employee { String name="Saurab"; int age=23; String city="Chennai"; public void callBack() { System.out.println("The name is "+name); System.out.println("The age is "+age); System.out.println("The city name is "+city); } public static void main(String[] args) ...
/* * Copyright 2020 ThoughtWorks, 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 agr...
package hitbra.hackathon.warmup.spring.repositories; import hitbra.hackathon.warmup.spring.model.Veiculo; import org.springframework.data.mongodb.repository.MongoRepository; import java.util.List; public interface VeiculoRepository extends MongoRepository<Veiculo, String> { /** * Buscas Simples */ public List...
package org.apache.lucene.search; /** * 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, Vers...
/* * Copyright (c) 2004-2021, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list of cond...
package life.genny.qwanda.payments; import com.google.gson.annotations.Expose; public class QPaymentsUser { @Expose private String id; @Expose private QPaymentsUserInfo personalInfo; @Expose private QPaymentsUserContactInfo contactInfo; @Expose private QPaymentsLocationInfo location; /** * @return...
package edu.tamu.eider.app.model.annotation; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; import javax.validation.Constraint; import ...
/* * 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.engenhariasoftware.apipromocoes.services.impl; import java.util.List; import java.util.Optional; import javax.validation.Valid; import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.engenhariasoftware....
package org.firstinspires.ftc.teamcode; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.Servo; public class Intake { private final LinearOpMode intake; private final DcMotor right; private final DcMotor lef...
/* * * 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...
/** * Copyright 2011 Peter Murray-Rust 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 require...
package com.wisdomguo.xifeng.modules.botset.qqgroup.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.wisdomguo.xifeng.modules.botset.qqgroup.entity.QQGroup; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; impor...
// Targeted by JavaCPP version 1.5.3: DO NOT EDIT THIS FILE package org.bytedeco.flycapture.FlyCapture2_C; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.javacpp.presets.javacpp.*; import org.bytedeco.flycapture.FlyCapture2.*; import static org....
package tech.yiyehu; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot....
package info.smart_tools.smartactors.class_management.advanced_class_loader; import info.smart_tools.smartactors.class_management.interfaces.ismartactors_class_loader.ISmartactorsClassLoader; import org.junit.Test; import java.net.URL; import java.net.URLClassLoader; import java.util.ArrayList; import static org.jun...
package com.kalai.todo; 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 additio...
package com.sequenceiq.cloudbreak.blueprint.filesystem; import java.io.IOException; import java.util.Set; import javax.annotation.PostConstruct; import javax.inject.Inject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import com.sequenceiq.cloudbreak.bluepr...
package com.oubowu.ipanda.ui; import android.annotation.SuppressLint; import android.arch.lifecycle.ViewModelProvider; import android.arch.lifecycle.ViewModelProviders; import android.databinding.DataBindingUtil; import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import andro...
package ru.java_testing.sandbox; /** * Created by Олеся on 20.10.2016. */ public class Distance { public static void main(String[] args) { Point p1 = new Point(1, 0); Point p2 = new Point(0, -5); //пример использования функции из запускаемого класса System.out.println("Расстоян...
package com.fishinwater.login.ui.fragment; /** * @author fishinwater-1999 * @version 2019-12-23 */ public interface ILoginView { enum ErrCode { /** * 用户名错误 */ WRONG_USER_NAME, /** * 密码错误 */ WRONG_USER_PWD, /** * 网络连接错误 ...
package com.mypurecloud.sdk.v2.api.request; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import com.mypurecloud.sdk.v2.ApiException; import com.mypurecloud.sdk.v2.ApiClient; import com.mypurecloud.sdk.v2.ApiRequest; import com.mypurecloud.sdk.v2.ApiRequestBuil...
package computepoly; import java.math.BigInteger; import java.util.Objects; public class Index { private BigInteger powx; private BigInteger cos; private BigInteger sin; Index() { this.powx = BigInteger.ZERO; this.cos = BigInteger.ZERO; this.sin = BigInteger.ZERO; } I...
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
/*_############################################################################ _## _## SNMP4J 2 - UsmUserEvent.java _## _## Copyright (C) 2003-2013 Frank Fock and Jochen Katz (SNMP4J.org) _## _## Licensed under the Apache License, Version 2.0 (the "License"); _## you may not use this file exce...
/* * Copyright 2016 - 2017, Acciente 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 a...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/fulfillment.proto package com.google.cloud.dialogflow.v2; /** * <pre> * By default, your agent responds to a matched intent with a static response. * As an alternative, you can provide a more dynamic response by using...
// Targeted by JavaCPP version 1.5.2-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tensorflow; import org.bytedeco.tensorflow.Allocator; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.tensorflow.global.tensorflow.*; // -----------------...
/* * 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 n...
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.fileEditor.impl; import com.intellij.ide.highlighter.HighlighterFactory; import com.intellij.lang.Language; import com.intellij.openapi.Disposable; i...
/** * Copyright (C) 2011 ConnId (connid-dev@googlegroups.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 requir...
/** * Copyright 2021 Shulie Technology, Co.Ltd * Email: shulie@shulie.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 requi...
/** * 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 2010 Ning, Inc. * * Ning licenses this file to you 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 applic...
/* * 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 may n...
package com.example.workerservice.service.api.user; import com.example.workerservice.service.command.user.updatepwd.UpdateUserPwdCommand; /** * 接口 - 修改用户密码 */ public interface IUpdateUserPwdCommandHandler { void action(UpdateUserPwdCommand command); /** * 自定义业务异常 - 验证码错误 **/ class Incorrect...
package com.iskinfor.servicedata.pojo; /** * 获奖者 * @author Administrator * */ public class Winner { private String userName;//获奖者姓名 private String awardDate;//获奖日期 private String awardCourse;//获奖课程 private String winnerInfor;//获奖情况 private int pags;//总条数 public String getUserName() { return userName; } pu...
package com_peszke.controller; public enum EmailLoginResult { SUCCESS, FAILED_BY_CREDENTIALS, FAILED_BY_NETWORK, FAILED_BY_UNEXPECTED_ERROR; }
package io.deephaven.db.v2.tuples.generated; import io.deephaven.datastructures.util.SmartKey; import io.deephaven.db.util.tuples.generated.IntDoubleObjectTuple; import io.deephaven.db.v2.sources.ColumnSource; import io.deephaven.db.v2.sources.WritableSource; import io.deephaven.db.v2.sources.chunk.Attributes; import ...
/** * Copyright 2012 Akiban Technologies, 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...
package com.kaqi.niuniu.ireader.utils.media; import android.content.Context; import android.os.Bundle; import android.support.v4.content.CursorLoader; /** * Created by newbiechen on 2018/1/14. */ public class LoaderCreator { public static final int ALL_BOOK_FILE = 1; public static CursorLoader create(Cont...
package com.pskwierc; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.s...
package mage.cards.r; import mage.MageInt; import mage.MageObject; import mage.abilities.Ability; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.delayed.AtTheBeginOfNextEndStepDelayedTriggeredAbility; import mage.abilities....
package ru.otus.demo; import org.hibernate.cfg.Configuration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import ru.otus.core.repository.DataTemplateHibernate; import ru.otus.core.repository.HibernateUtils; import ru.otus.core.sessionmanager.TransactionManagerHibernate; import ru.otus.crm.dbmigrations.Mig...
package es.cj.controller; import java.io.IOException; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import es.cj.bea...
package com.alibaba.android.arouter.demo.kotlin; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.alibaba.android.arouter.facade.annotation.Route; @Route(path = "/kotlin/java") public class TestNormalActivity extends AppCompatActivity { @Override protected void onCreate(...
package com.hackmann.polarity.pairing; import com.hackmann.polarity.user.User; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.HashMap; @Service @...
package org.edx.mobile.social; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; import org.edx.mobile.R; import org.edx.mobile.exception.LoginErrorMessage; import org.edx.mobile.exception.LoginException; import org.edx.mobi...
/* * Copyright 2016 Andreas Fester * * 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 ...
package com.beginningselenium.examples.pageobjects; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; public class AgeCalculatorPage { //WebElements private WebElement dayOfBirth = null; private WebElement monthOfBirth = null; private WebElemen...
package com.dmd.weixin.qy.jsapi; import com.fasterxml.jackson.annotation.JsonProperty; import com.dmd.weixin.common.WxClient; import com.dmd.weixin.common.decrypt.AesException; import com.dmd.weixin.common.decrypt.SHA1; import com.dmd.weixin.common.exception.WxRuntimeException; import com.dmd.weixin.common.jsapi.JsAPI...
/* * 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.lab.ocp.day11; import java.util.Map; import java.util.function.Function; import java.util.stream.Collectors; import java.u...
package org.gluu.oxtrust.api.server.api.impl; import org.slf4j.Logger; import io.swagger.v3.oas.annotations.info.Contact; import io.swagger.v3.oas.annotations.info.Info; import io.swagger.v3.oas.annotations.info.License; import io.swagger.v3.oas.annotations.OpenAPIDefinition; @OpenAPIDefinition ( info = @Info ( ...
package com.mw.portfolio.email.exception; public class EmailCreationException extends EmailException { public EmailCreationException(Throwable cause) { super(cause); } }
package com.example.android.coolweather; 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 pu...
package com.diegocavalca.agenda; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { ...
import edu.princeton.cs.algs4.*; class ShortestAncestralPath { Digraph G; Digraph reserveG; int s; public ShortestAncestralPath(Digraph G, int s) { this.G = G; this.reserveG = G.reserve(); this.s = s; } public Iterable<Integer> path(int v, int w) { BreadthFirst...
/* Copyright 2016 Goldman Sachs. 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, softw...
package com.example.soroushmehraein.flickster.clients; /** * Author: soroushmehraein * Project: Flickster * Date: 7/24/16. */ public class YouTubeClient { public static final String API_KEY = "AIzaSyAV3YmK5cDdqbr8Hm_y22RVcB7mj_qUVWs"; }
/** * The class models a hand of triple in a Big Two card game. * A triple consists of three cards with the same rank. The * card with the highest suit in a triple is referred to as * the top card of this triple. A triple with a higher rank * beats a triple with a lower rank. * * @author Lu Meng * @version 1.0 ...
/* * 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 io.nadron.protocols.impl; import io.nadron.app.PlayerSession; import io.nadron.handlers.netty.DefaultToServerHandler; import io.nadron.handlers.netty.MessageBufferEventDecoder; import io.nadron.handlers.netty.MessageBufferEventEncoder; import io.nadron.protocols.AbstractNettyProtocol; import io.nadron.util.Net...
package lv.ctco.cukes.core.internal.templating; import com.google.common.base.Optional; import com.google.inject.Inject; import com.google.inject.Singleton; import lv.ctco.cukes.core.CukesOptions; import lv.ctco.cukes.core.internal.context.GlobalWorldFacade; import lv.ctco.cukes.core.internal.context.InflateContext; i...
/** * Copyright (c) 2013-2022 Contributors to the Eclipse Foundation * * <p> See the NOTICE file distributed with this work for additional information regarding copyright * ownership. All rights reserved. This program and the accompanying materials are made available * under the terms of the Apache License, Versio...
package com.squareup.square.models; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonGetter; import com.squareup.square.http.client.HttpContext; /** * This is a model class for V1Timecard ...
package hj.action.DesignPatterns.Memento.example.game; /** * <p>Title : 负责人:保存存档</p> * <p>Description : </p> * <p>Date : 2019-02-20 </p> * * @author : hejie */ public class Caretaker { Memento memento; public Memento getMemento() { return memento; } public void setMemento(Memento mement...
/* * Copyright 2010 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 i...
package com.coolweather.app.model; public class County extends Space{ private int cityId; public int getCityId() { return cityId; } public void setCityId(int cityId) { this.cityId = cityId; } }
package org.openpaas.paasta.portal.api.service; import org.cloudfoundry.client.v2.buildpacks.ListBuildpacksRequest; import org.cloudfoundry.client.v2.buildpacks.ListBuildpacksResponse; import org.cloudfoundry.client.v2.buildpacks.UpdateBuildpackRequest; import org.openpaas.paasta.portal.api.common.Common; import org....
package ash.vm; import ash.lang.*; import java.io.Serializable; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.WeakHashMap; import java.util.stream.Collectors; public final class JavaMethod implements Seria...
package com.aice.pierotateview.listener; import com.google.android.material.appbar.AppBarLayout; public abstract class AppBarLayoutStateChangeListener implements AppBarLayout.OnOffsetChangedListener{ public enum State{ EXPANDED,//展开 COLLAPSED,//折叠 INTERMEDIATE//中间状态 } private Stat...
/* * Copyright 2015-2020 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...
package com.weirblog.vo; import com.fasterxml.jackson.annotation.JsonProperty; /** * 淘宝IP解析 * @author weir * */ public class IpInfoVO { private String ip; private String country; private String area; private String region; private String city; private String county; private String isp; @JsonProperty("coun...
/* * Copyright (c) 2016, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
/* * 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 ...
// Copyright 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
package com.test.springboot.rabbitmq.application.service; import java.util.stream.Stream; /** * @author pedro */ public interface BaseService<DOMAIN, ID> { DOMAIN insert(DOMAIN domain); DOMAIN update(DOMAIN domain); void delete(ID id); DOMAIN findById(ID id); Stream<DOMAIN> findAll(); }
package net.ocnl.rollout.storage; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.nullValue; import static org.junit.Assert.assertThat; import org.junit.Test; public abstract class StorageContractTest { public abstract IRolloutStorage createNewStorage(); @Test public void it_can_get_...