text
stringlengths
7
995k
package com.jamscoco.controller; import com.jamscoco.entity.SysUser; import com.jamscoco.service.IUserService; import com.jamscoco.utils.R; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.a...
/** * Copyright 2018 Dynatrace 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 i...
package uk.gov.hmcts.cmc.claimstore.documents; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import uk.gov.hmcts.cmc.claimstore.config.properties.pdf.DocumentTemplates; import uk.gov.hmcts.cmc.claimstore.documents.content.LegalSealedClaimContentProvider; ...
/* * 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 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/* * 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 echoserver; import java.net.*; import java.io.*; public class EchoServer { public static final int portNumber = 6013; public static void main(String[] args) { try { // Start listening on the specified port ServerSocket sock = new ServerSocket(portNumber); ...
/** * Copyright (c) 2013-2014, JCabi.com * 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 list of condition...
/* * The MIT License * * Copyright (c) 2009-2021 PrimeTek * * 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...
/** * The MIT License (MIT) * * Copyright (c) 2014-2017 Marc de Verdelhan & respective authors (see AUTHORS) * * 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, incl...
package ai.h2o.targetencoding; import water.*; import water.fvec.CategoricalWrappedVec; import water.fvec.Chunk; import water.fvec.Frame; import water.fvec.Vec; import water.fvec.task.FillNAWithLongValueTask; import water.fvec.task.FilterByValueTask; import water.fvec.task.IsNotNaTask; import water.fvec.task.UniqTask;...
/* * Copyright (c) 2013-2018, Bingo.Chen (finesoft@gmail.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 appl...
package in.rrapps.mvpdaggertesting.movie.detail; import in.rrapps.mvpdaggertesting.dao.DatabaseCallbacks; import in.rrapps.mvpdaggertesting.dao.DatabaseInteractor; import in.rrapps.mvpdaggertesting.models.MovieData; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.schedulers.Schedulers; im...
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
package oi.github.samirsales.demoLDAP.domain.exception; @SuppressWarnings("unused") public class EntityNotFoundException extends RuntimeException { private static final long serialVersionUID = 1L; public EntityNotFoundException() { super("Entity not found."); } public EntityNotFoundException(...
package org.openstack4j.openstack.octavia.domain; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonRootName; import com.google.common.base.MoreObjects; import org.openstack4j.model.octavia.LoadBalancerV2Stats; /** * The statistics about an lbaas v2 loadbalancer * @a...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.fresco.vito.core.impl; import android.net.Uri; import com.facebook.datasource.DataSource; import com.facebook...
package daos; import java.sql.Connection; import java.sql.SQLException; import java.sql.Savepoint; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; import bbdd.ConexionMySql; import exceptions.DAOException; import exceptions.ServiceEx...
package pe.edu.upc.AppSesion02; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
package org.gradle.test.performance.mediummonolithicjavaproject.p215; public class Production4317 { private String property0; public String getProperty0() { return property0; } public void setProperty0(String value) { property0 = value; } private String property1; ...
/* * Copyright (c) 2004-2022, 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 de.metas.vertical.pharma.msv3.server.peer.protocol; import java.util.List; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; impor...
package com.example.e_store; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.database.Cursor; import android.graphics.Bitmap; import android.os.Bundle; import android.provider.MediaStore; import android.view.LayoutInflater; import android.view.View; import android.view.V...
// // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert // Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. // Generiert: 2019.0...
/* * Copyright 2019 Scott J. Johnson (https://scottjjohnson.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...
public class RemoveLinkedListElements { private static class ListNode { int val; ListNode next; ListNode(int val, ListNode next) { this.val = val; this.next = next; } } public static ListNode removeElements(ListNode head, int target) { ListNo...
package engine.util; import org.lwjgl.BufferUtils; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; import java.nio.channels.Channels; import java.nio.channels.ReadableByteChannel; import java.nio.channels.SeekableByteChannel; import java.nio.file.Files; import java.nio.file.Path; i...
package com.fxb.classLoading.demo1; /** * @author fangxiaobai on 2017/10/16 17:19. * @description */ public class Demo2 { public static void main(String[] args) { SuperClass[] sca = new SuperClass[110]; } }
/* * 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...
package com.qlu.keshe; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class KesheApplicationTests { @Test void contextLoads() { } }
/* * Copyright 2019 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 ...
/* * Copyright (c) 2008-2018, Hazelcast, 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 required ...
/** * * 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"); ...
package com.facebook.flipper.sample; import android.util.Log; import com.facebook.flipper.android.AndroidFlipperClient; import com.facebook.flipper.core.FlipperClient; import com.facebook.flipper.plugins.example.ExampleFlipperPlugin; import java.io.IOException; import okhttp3.Call; import okhttp3.Callback; import okht...
/* * Copyright 2017-2022 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 2017-2019 original 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 agre...
/* * 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 imedix; import com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException; import com.sun.org.apache.xml.inte...
package Client; public class Directory { private String sha; private String name; private String path; public Directory() {}; public String getSha() { return sha; } public void setSha(String sha) { this.sha = sha; } public String getName() { return name...
package cn.com.superLei.aoparms.aspect; import android.text.TextUtils; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import java.util.concurrent.TimeUnit; import cn.com.superLei.aoparms....
package io.micronaut.test.junit5; import io.micronaut.test.extensions.junit5.annotation.MicronautTest; import io.micronaut.test.junit5.beans.MyInterface; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import jakarta.inject.Named; @MicronautTest public class ConstructorNamedInjectionTest ...
/** * Copyright (C) 2018-2020 * All rights reserved, Designed By www.yixiang.co * 注意: * 本软件为www.yixiang.co开发研制 */ package co.yixiang.modules.activity.service.dto; import lombok.Data; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; /** * @author hupeng * @date 2020-05-12 */ @D...
package me.giskard.dust.runtime; import java.util.HashSet; import java.util.Set; import me.giskard.GiskardConsts.MiNDToken; import me.giskard.tools.GisToolsTokenTranslator; abstract class DustRuntimeToken implements MiNDToken, DustRuntimeBootConsts { public static String buildId(MiNDTokenType type, String name, Obj...
/** * Copyright 2017-2021 Fred Feng (paganini.fy@gmail.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 applicable ...
package com.jhl.admin.model; import lombok.*; import javax.persistence.Column; import javax.persistence.Entity; import java.io.Serializable; @Entity @Builder @ToString(callSuper = true) @NoArgsConstructor @AllArgsConstructor @Data public class Server extends BaseEntity implements Serializable { private String ...
package seedu.address.model.notes; import static seedu.address.commons.util.AppUtil.checkArgument; import static seedu.address.commons.util.CollectionUtil.requireAllNonNull; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Objects; /** * Represents Notes of a student. * There are 4 attrib...
/* * Copyright (c) 2008-2015, Hazelcast, 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 required ...
package com.genius.primavera; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.event.ApplicationReadyEvent; import org.springframework.cloud.config.server.EnableConfigServer;...
package org.intermine.task; /* * Copyright (C) 2002-2014 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/copyleft/lesser.html. ...
package ij; import ij.process.*; import ij.gui.*; import ij.plugin.*; import ij.plugin.frame.*; import ij.io.FileInfo; import java.awt.*; import java.awt.image.*; public class CompositeImage extends ImagePlus { /** Display modes (note: TRANSPARENT mode has not yet been implemented) */ public static final int COMPOS...
package com.paytomat.nem.crypto; import com.paytomat.nem.utils.HexEncoder; import java.math.BigInteger; /** * Represents a private key. */ public class PrivateKey { private final BigInteger value; private final byte[] privateKeyBytes; /** * Creates a new private key. * * @param value T...
/* * This class is distributed as part of the Botania Mod. * Get the Source Code in github: * https://github.com/Vazkii/Botania * * Botania is Open Source and distributed under the * Botania License: http://botaniamod.net/license.php */ package vazkii.botania.common.crafting; import com.google.common.collect.Im...
// Generated by xsd compiler for android/java // DO NOT CHANGE! package com.ebay.trading.api; import java.io.Serializable; import com.leansoft.nano.annotation.*; import java.util.List; /** * * This type provides information about one order line item in a Global Shipping package. The package can contain mu...
package com.atguigu.gmall.ums.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 会员登录记录 ...
package org.fundacionjala.enforce.sonarqube.apex.checks.soql; import static org.fundacionjala.enforce.sonarqube.apex.ApexAstScanner.scanFile; import java.io.File; import org.fundacionjala.enforce.sonarqube.apex.checks.testrelated.TestClassWithoutTestMethod; import org.junit.Before; import org.junit.Test; import org....
package com.mysogni.mysogni.fragments; import android.content.Context; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.mysogni.mysogni.R; /** * A simple {@link Fragment} ...
/** * KeywordEstimateRequest.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.adwords.axis.v201509.o; /** * Represents a keyword to be estimated. */ public class KeywordEstimateRequest extends com.google.api....
/* * 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 ...
package com.javarush.task.task14.task1408; public class UkrainianHen extends Hen { public int getCountOfEggsPerMonth(){ return 100; } @Override public String getDescription(){ String str = super.getDescription() + " Моя страна - Ukraine." + " Я несу " + getCountOfEggsPerMonth() + " яиц в месяц."; r...
package com.arjanvlek.oxygenupdater.news; import com.arjanvlek.oxygenupdater.internal.i18n.Locale; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; @JsonIgnoreProperties...
/* * Copyright 2005-2017 Dozer 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 applicable law or ag...
package lantao.sepl; public class TestTwoBean { }
package bapd.szhua.com.serialdemo; import com.twitter.serial.object.Builder; import com.twitter.serial.serializer.BuilderSerializer; import com.twitter.serial.serializer.SerializationContext; import com.twitter.serial.stream.SerializerInput; import com.twitter.serial.stream.SerializerOutput; import org.jetbrains.anno...
/* * 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 org.cthul.parser.token.lexer; import java.util.regex.Pattern; import org.cthul.parser.api.RuleKey; import org.cthul.parser.lexer.api.InputEval; import org.cthul.parser.lexer.api.TokenInputMatcher; import org.cthul.parser.lexer.simple.SimpleLexerBuilder; import org.cthul.parser.token.Token; import org.cthul.par...
// Copyright 2017 The Closure Rules Authors. 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 require...
/* * Copyright (c) 2005-2022 Xceptance Software Technologies GmbH * * 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 (c) 1998, 2012 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 * w...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (...
package com.example.broadcastreceiverexample; 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 ...
/* * Copyright 2019 Haulmont. * * 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...
/* * 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.example.olga.foodacademyv2; import android.support.annotation.NonNull; import android.support.design.widget.BottomNavigationView; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import andr...
package com.alipay.api.request; import java.util.Map; import com.alipay.api.AlipayRequest; import com.alipay.api.internal.util.AlipayHashMap; import com.alipay.api.response.AlipayOpenPublicSettingCategoryQueryResponse; import com.alipay.api.AlipayObject; /** * ALIPAY API: alipay.open.public.setting.category.query r...
package com.trunkrs.sdk.model; import com.google.gson.annotations.SerializedName; import java.util.Date; import lombok.Getter; @Getter class APIV1TimeWindow extends TimeWindow { @SerializedName("from") Date open; @SerializedName("to") Date close; }
/* * Copyright (c) 2020, GoMint, BlackyPaw and geNAZt * * This code is licensed under the BSD license found in the * LICENSE file in the root directory of this source tree. */ package io.gomint.scoreboard; import io.gomint.entity.Entity; /** * @author geNAZt * @version 1.0 * @stability 3 */ public interface...
/* AttributeImpl.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath 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, or (at your opt...
package cn.yiya.shiji.entity; import java.util.ArrayList; /** * Created by chenjian on 2016/3/30. */ public class OutLineCountryInfo { private String country_id; private String country_name; private String country_cn_name; private ArrayList<CityListEntity> city_list; public String getCountry_...
package com.parship.roperty.persistence.jpa; import com.parship.roperty.DomainSpecificValue; import com.parship.roperty.DomainSpecificValueFactory; import com.parship.roperty.KeyValues; import com.parship.roperty.KeyValuesFactory; import org.hamcrest.Matchers; import org.junit.Test; import org.junit.runner.RunWith; im...
/** * @author Didyk Andrey (androsdav@bigmir.net) * @since 18.01.2018. * @version 1.0. */ package com.adidyk;
package gregtech.common.tools; import gregtech.api.GregTech_API; import gregtech.api.enums.OrePrefixes; import gregtech.api.interfaces.IIconContainer; import gregtech.api.items.GT_MetaGenerated_Tool; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.entity.EntityLivin...
package com.baeldung.hibernate.oneToMany.main; import java.util.HashSet; import java.util.Set; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import com.baeldung.hibernate.oneToMany.config.HibernateAnnotationUtil; import com.baeldung.hibernate.oneToMany.model.Car...
package exed20151124libros; import java.util.Comparator; public class OrdenPrecio implements Comparator<Libro> { @Override public int compare(Libro o1, Libro o2) { return Double.compare(o1.precio, o2.precio); } }
/** * The MIT License * Copyright © 2010 JmxTrans team * * 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, mo...
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.11....
/** * Copyright 2016 Nikita Koksharov * * 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 agree...
package cn.hikyson.godeye.core.internal.modules.sm; import android.support.annotation.StringDef; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import cn.hikyson.godeye.core.internal.modules.sm.core.LongBlockInfo; import cn.hikyson.godeye.core.internal.modules.sm.core.ShortBlockI...
package com.laxture.lib.task; /** * Callbacks for various Task life cycle, all these callbacks will be executed * on main ui thread by default/ */ public final class TaskListener { /** * Fired where task is ready to start in the queue. */ public interface TaskStartListener { void onTaskSt...
/*Copyright ©2016 TommyLemon(https://github.com/TommyLemon/APIJSON) 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...
package external_module_1075.a; import java.awt.datatransfer.*; import java.beans.beancontext.*; import java.io.*; /** * Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut * labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo ...
/** * 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 under ...
import java.util.Scanner; import java.io.IOException; import java.util.Random; public class task1 { public static int wrongTimes = 0; private static Helpers help = new Helpers(); // helper functions public static void main(String[] args) { var input = new Scanner(System.in); var wordsStr...
// Copyright 2017 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 required by applicable law...
public class BuyStock implements Order { private Stock mAbcStock; public BuyStock(Stock abcStock) { this.mAbcStock = abcStock; } @Override public void execute() { mAbcStock.buy(); } }
package rw.battle.planning.exceptions; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.RestContro...
/* * Copyright (c) 2011, grossmann * 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 conditions an...
package ros.integrate.pkg.xml.inspection; import com.intellij.codeInspection.*; import com.intellij.openapi.ui.ComboBox; import com.intellij.psi.PsiFile; import com.intellij.psi.xml.XmlFile; import com.intellij.util.ui.FormBuilder; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; im...
package ExamExercises_07.Exam18Dec2016; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class LettersCombinations { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ...
/* * 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.diozero.util; /*- * #%L * Organisation: diozero * Project: diozero - Core * Filename: TemperatureUtil.java * * This file is part of the diozero project. More information about this project * can be found at https://www.diozero.com/. * %% * Copyright (C) 2016 - 2021 diozero * %% * Permi...