text
stringlengths
7
1.01M
/* Copyright 2021 The Kubernetes 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 agreed to in writing, softwar...
public void writeToZip(byte b[], int off, int len) throws IOException { if (zipstream == null) { response.setContentType("application/vnd.google-earth.kmzl; charset=UTF-8"); zipstream = new ZipOutputStream(output); zipstream.putNextEntry(new ZipEntry(kmlFileName)); ...
package org.javarosa.core.util; /** * Convenience interface for states that do not have any transitions. */ public interface TrivialTransitions { void done(); }
package rs.readahead.washington.mobile.bus.event; import rs.readahead.washington.mobile.bus.IEvent; import rs.readahead.washington.mobile.domain.entity.TrainModule; public class DeleteTrainModuleEvent implements IEvent { private final TrainModule module; public DeleteTrainModuleEvent(TrainModule module) { ...
package io.appium.android.bootstrap.handler; import com.android.uiautomator.core.UiObjectNotFoundException; import com.android.uiautomator.core.UiSelector; import io.appium.android.bootstrap.*; import io.appium.android.bootstrap.exceptions.ElementNotFoundException; import io.appium.android.bootstrap.exceptions.Invalid...
package br.com.senior.platform.workflow.pojos; /** * Nível de acesso ao processo */ public enum ProcessAccessLevel { /** * Editar e iniciar */ EDIT_AND_START, /** * Iniciar */ START, /** * Editar */ EDIT, /** * Nenhuma */ NONE }
package com.yinglan.scg.mine.myvehicle; import com.common.cklibrary.common.BasePresenter; import com.common.cklibrary.common.BaseView; /** * Created by Administrator on 2017/2/11. */ public interface MyVehicleContract { interface Presenter extends BasePresenter { /** * 获取我的车辆列表 */ ...
package com.leixu.write.leetcode; /** * Created by Lei on 2017/11/2. * * Description Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Spoilers: Have you thought about this? Here are some good questions to ask before coding. Bonus points for you if you have alre...
package org.apache.maven.it; /* * 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, Versio...
/* * 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...
//: initialization/ArraysOfPrimitives.java import static net.mindview.util.Print.*; public class ArraysOfPrimitives { public static void main(String[] args) { int[] a1 = { 1, 2, 3, 4, 5 }; int[] a2; a2 = a1; for(int i = 0; i < a2.length; i++) a2[i] = a2[i] + 1; for(int i = 0; i < ...
/* * Copyright 2014 Gurtam * * 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 tachyon.master; import java.io.Closeable; import java.io.FileNotFoundException; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; import java.util.Set; import org.apache.thrift.TException; import org.apache.thrift.prot...
/* * 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 upatras.simulationmodels.devices; import upatras.electricaldevicesimulation.simulationcore.enviromentbase.PowerEnviroment; imp...
package com.huantansheng.easyphotos.utils.Color; /** * Created by huan on 2018/1/9. */ public class ColorUtils { /** * 判断颜色是否偏黑色 * * @param color 颜色 * @return */ public static boolean isBlackColor(int color) { int grey = toGrey(color); return grey < 50; } /...
package org.schema.api.model.thing.creativeWork.article.socialMediaPosting; import org.schema.api.model.thing.creativeWork.article.socialMediaPosting.SocialMediaPosting; import org.schema.api.model.thing.creativeWork.CreativeWork; public class DiscussionForumPosting extends SocialMediaPosting { private CreativeWork ...
// This Java source file was generated on 2020-09-09 10:37:57 (Malay Peninsula Standard Time) package io.tealight.api.oanda.v20.def.transaction; import io.tealight.api.oanda.v20.def.order.OrderPositionFill; import io.tealight.api.oanda.v20.def.order.OrderTriggerCondition; import io.tealight.api.oanda.v20.def.orde...
// let's make nice and clear, // proper seekbar preference. package com.lenovo.parts; import android.content.Context; import android.content.res.TypedArray; import android.graphics.PorterDuff; import android.util.AttributeSet; import android.util.Log; import android.view.View; import android.widget.ImageView; import ...
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package androidx.core; public final class R { private R() {} public static final class attr { private attr() {} ...
package org.corant.modules.mail; import static org.corant.shared.util.Assertions.shouldNotNull; import static org.corant.shared.util.Maps.toProperties; import java.util.Date; import java.util.Map; import javax.inject.Inject; import javax.mail.BodyPart; import javax.mail.Message; import javax.mail.MessagingException; i...
package cgeo.geocaching.connector.ec; import static org.assertj.core.api.Assertions.assertThat; import cgeo.geocaching.Geocache; import cgeo.geocaching.connector.ConnectorFactoryTest; import cgeo.geocaching.enumerations.CacheType; import cgeo.geocaching.enumerations.LogType; import java.util.List; import java.util.S...
/* * Copyright (C) 2016 AriaLyy(https://github.com/AriaLyy/Aria) * * 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 org.apereo.cas.services; import lombok.val; import com.amazonaws.services.dynamodbv2.AmazonDynamoDB; import com.amazonaws.services.dynamodbv2.model.AttributeDefinition; import com.amazonaws.services.dynamodbv2.model.AttributeValue; import com.amazonaws.services.dynamodbv2.model.CreateTableRequest; import com....
/* * 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...
/* * Copyright 1999-2019 Seata.io Group. * * 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.service.impl; import com.dao.UserDao; import com.model.User; import com.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * author:RhineDream */ @Service public class UserServiceImpl implements Us...
//MyGrid.java import java.awt.event.*; import javax.swing.*; import java.awt.*; public class MyGrid extends JFrame { MyGrid() { super( "DaisLab" ); Container myContainer = getContentPane(); GridLayout gridLayout = new GridLayout( 3, 2, 5, 10 ); myContainer.setLayout( gridLa...
/* * 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...
/* * 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 t...
package com.example.viewpagerexample; 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...
// Copyright 2000-2018 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.psi.impl.source.tree.injected; import com.intellij.lang.injection.ConcatenationAwareInjector; import com.intellij.lang.injection.MultiHostInjector; import co...
/* */ package jp.cssj.sakae.pdf.c.a; /* */ /* */ import java.io.BufferedInputStream; /* */ import java.io.EOFException; /* */ import java.io.IOException; /* */ import java.io.InputStreamReader; /* */ import java.io.Reader; /* */ import java.net.URISyntaxException; /* */ import jp.cs...
package momo.com.day25_imagecache; import android.graphics.Bitmap; import android.support.v4.util.LruCache; import android.util.Log; /** * Created by Administrator on 2016/11/11 0011. */ public class ImageCache { /** * 用来存储图片的集合 * * key--->图片的网址String * * value-->图片Bitmap * */ ...
/* * Copyright 2014-2019 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 br.com.klauskpm.buttonclickcounter; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); ...
package io.smallrye.reactive.messaging.amqp.fault; import static io.smallrye.reactive.messaging.amqp.i18n.AMQPLogging.log; import java.util.concurrent.CompletionStage; import io.smallrye.reactive.messaging.amqp.AmqpMessage; import io.smallrye.reactive.messaging.amqp.ConnectionHolder; import io.vertx.mutiny.core.Cont...
/** * Inmemantlr - In memory compiler for Antlr 4 * * The MIT License (MIT) * * Copyright (c) 2016 Julian Thome <julian.thome.de@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 S...
/* * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php * * Unless required by...
package team.benchem.framework.sdk; import com.alibaba.fastjson.JSONObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import team.benchem.framework.service.TokenService; import javax.servlet....
package com.numanstc.caching; import org.springframework.stereotype.Repository; @Repository public interface BookRepository { Book getByIsbn(String isbn); }
package net.sanmuyao.core.util; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Collection; import java.util.Enumeration; import java.util.Properties; /** * 取本机机器信息 * @author 杜庆明 * 201...
/* * Copyright (c) 2009, Sarah Heckman, Laurie Williams, Dright Ho * All Rights Reserved. * * Permission has been explicitly granted to the University of Minnesota * Software Engineering Center to use and distribute this source for * educational purposes, including delivering online education through * Cours...
package com.turing.excercise.array; import com.turing.excercise.TestResultsHelper; //Find Middle, Search in left for first occurrence, Search in right for last occurance. class MySolution { public int[] searchRange(int[] nums, int target) { if (nums.length == 0) return new int[]{-1, -1}; if (nums....
/*- * ============LICENSE_START======================================================= * ONAP - SO * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * =============================================================...
package com.desgreen.education.siapp.ui.views.master_matpel; import com.desgreen.education.siapp.AppPublicService; import com.desgreen.education.siapp.backend.model.FDivision; import com.desgreen.education.siapp.backend.model.FMatPel; import com.desgreen.education.siapp.backend.model_sample.DummyData; import com.desgr...
package sfrerichs.service; import io.github.jhipster.config.JHipsterProperties; import sfrerichs.config.audit.AuditEventConverter; import sfrerichs.repository.PersistenceAuditEventRepository; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.actuate.audit.AuditEvent; import org.s...
package com.boot.core.util; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFCellStyle; import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import java.util.*; /** * HSSFWorkbook e...
package mage.cards.b; import java.util.UUID; import mage.MageInt; import mage.abilities.keyword.SoulshiftAbility; import mage.abilities.keyword.TrampleAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.SubType; /** * * @author North */ public ...
package dk.lockfuglsang.xrayhunter.command; import static dk.lockfuglsang.minecraft.po.I18nUtil.tr; import java.util.List; import java.util.Map; import org.bukkit.World; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import dk.lockfuglsang.minecraft.command.AbstractCommand; import dk.lock...
package uk.gov.companieshouse.orders.api.interceptor; import static org.springframework.http.HttpStatus.UNAUTHORIZED; import static org.springframework.web.servlet.HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE; import static uk.gov.companieshouse.orders.api.controller.BasketController.CHECKOUT_ID_PATH_VARIABLE; impo...
package org.blender.dna; import java.io.IOException; import org.cakelab.blender.io.block.Block; import org.cakelab.blender.io.block.BlockTable; import org.cakelab.blender.nio.CArrayFacade; import org.cakelab.blender.nio.CFacade; import org.cakelab.blender.nio.CMetaData; import org.cakelab.blender.nio.CPointer; /** ...
package com.chris.bulleyeadmin.common.utils; import com.chris.bulleyeadmin.common.entity.Constants; import com.chris.bulleyeadmin.system.pojo.Account; import com.chris.bulleyeadmin.system.pojo.Role; import com.chris.bulleyeadmin.system.pojo.User; import org.springframework.beans.factory.annotation.Autowired; import or...
package mage.cards.o; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.DiscardCardCost; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilit...
package com.codepath.apps.restclienttemplate.models; import androidx.room.Embedded; import java.util.ArrayList; import java.util.List; public class TweetWithUser { @Embedded User user; @Embedded(prefix = "tweet_") Tweet tweet; public static List<Tweet> getTweetList(List<TweetWithUser> tweetWit...
/* * ==================================================================== * 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 ...
/* * Copyright 2014-2019 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...
/* * 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 wasdev.sample; import java.util.Arrays; import java.util.LinkedList; public class Sentence { private String _id; private String _rev; private String translationID; private String fullSentence; private LinkedList<String> sentenceChunks = new LinkedList<>(); private LinkedList<String> u...
package com.thegongoliers.hardware; import com.thegongoliers.input.switches.ResettableSwitch; import com.thegongoliers.input.switches.Switch; import com.thegongoliers.output.interfaces.Drivetrain; import edu.wpi.first.wpilibj.drive.DifferentialDrive; import edu.wpi.first.wpilibj.interfaces.Gyro; import edu.wpi.first.w...
/* * Copyright 2006-2021 Prowide * * 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 fy.game.blockpuzzle.gamepiece.sets; import fy.game.blockpuzzle.gamepiece.IGamePieceSet; /** GENERATED */ public class GamePieceSet0031 implements IGamePieceSet { @Override public String[] getGamePieceSet() { String[] r = new String[1600]; r[0] = "#2x2#5#2"; r[1] = "#4#4#5"; r[2] = "#2#4:..............
/** * */ package serkantul.canvas_drawer; /** * @author serkantul * */ public interface Shape { /** * */ //public void add(Area area); public void draw(Area area); }
/* * Copyright 2017 EIS Ltd and/or one of its affiliates. * * 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 ...
package com.nestedworld.nestedworld.analytics; import android.support.annotation.NonNull; import com.nestedworld.nestedworld.analytics.sender.Answer; import com.nestedworld.nestedworld.data.database.entities.session.SessionData; public final class NestedWorldAnalytics { /* * ###############################...
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.hammer.validation.checkers; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertSame; impo...
/* * 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...
package org.netlib.lapack; import org.netlib.blas.Dscal; import org.netlib.err.Xerbla; import org.netlib.util.intW; public final class Dorgr2 { public static void dorgr2(int paramInt1, int paramInt2, int paramInt3, double[] paramArrayOfDouble1, int paramInt4, int paramInt5, double[] paramArrayOfDouble2, int paramIn...
// Template Source: BaseEntityCollectionPage.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -----------------------------...
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.4-10/27/2009 06:09 PM(mockbuild)-fcs // 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. // ...
package cn.hutool.core.io.resource; import cn.hutool.core.exceptions.ExceptionUtil; import cn.hutool.core.io.IORuntimeException; import cn.hutool.core.util.StrUtil; /** * 资源文件或资源不存在异常 * * @author xiaoleilu * @since 4.0.2 */ public class NoResourceException extends IORuntimeException { private stat...
package dome2.springcloud.app; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.netflix.eureka.EnableEurekaClient; @EnableEurekaClient @Enabl...
/* * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
package voogasalad.view.authoringEnvironment.data; import voogasalad.gameEngine.Engine; import voogasalad.view.Data; import voogasalad.view.authoringEnvironment.Editor; /** * LevelData keeps track of all the defenses via its super class in handling the interaction with the backend * @author Gabriela Rodriguez-Flori...
/* * Copyright 2009-2018 Aarhus University * * 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 com.atguigu.gmall.utils; import com.alibaba.fastjson.JSON; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.dao.DuplicateKeyException; import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerExceptionResolver; import org.springframework....
/* * Copyright 2012-2013 Hauser Olsson 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 required by applicable law...
package io.ztidentity.javaagent.smoketest; import io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest; import java.io.IOException; import java.util.Collection; import java.util.jar.Attributes; import java.util.jar.JarFile; import okhttp3.Request; import okhttp3.Response; import org.junit.jupiter.api.Te...
package dev.utils.common; import java.io.Closeable; import dev.utils.JCLogUtils; /** * detail: 关闭工具类 - (关闭IO流等) * Created by Ttt */ public final class CloseUtils { private CloseUtils() { } // 日志TAG private static final String TAG = CloseUtils.class.getSimpleName(); /** * 关闭 IO * @...
/* * Licensed to ObjectStyle LLC under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ObjectStyle LLC licenses * this file to you under the Apache License, Version 2.0 (the * "License"); you may not u...
/* * This file is part of JSTUN. * * Copyright (c) 2005 Thomas King <king@t-king.de> - All rights * reserved. * * This software is licensed under either the GNU Public License (GPL), * or the Apache 2.0 license. Copies of both license agreements are * included in this distribution. */ package de.javawi.jst...
/* * generated by Xtext 2.25.0 */ package science.robbert.scoping; /** * This class contains custom scoping description. * * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping * on how and when to use it. */ public class TardisLScopeProvider extends AbstractTardisLScopeProvider ...
/* * 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 ...
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.egeria.connectors.ibm.ia.clientlibrary.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; import com.fas...
/** * 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"); yo...
package com.zhazhapan.demo.algorithm.leetcode.contest.before; /** * @author pantao * @since 2019-03-10 */ public class Contest1006 { private int met; private char[] chars = new char[]{'-', '+', '/', '*'}; public int clumsy(int n) { met = 3; StringBuilder builder = new StringBuilder()....
package stellarapi.api.gui.overlay; import net.minecraft.client.Minecraft; /** * The main gui overlay. */ public interface IOverlayElement<Settings extends PerOverlaySettings> { public void initialize(Minecraft mc, Settings settings); public int getWidth(); public int getHeight(); public float animationOffs...
package models; import javax.persistence.*; import java.util.Date; @Entity @Table(name = "warehouse_managers", uniqueConstraints = {@UniqueConstraint(columnNames = {"warehouse", "user"})}) public class WarehouseManager { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; ...
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.javaagent.instrumentation.amethods; public class ConfigParameter { private int index; private String name; ConfigParameter() {} public int getIndex() { return index; } public void setIndex(...
/* * Copyright 2018 Gerald Curley * * 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 2012-2015 TIKAL-TECHNOLOGY * *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 org.support.project.web.util; import java.lang.invoke.MethodHandles; import java.util.HashMap; import java.util.Map; import org.support.project.common.log.Log; import org.support.project.common.log.LogFactory; import org.support.project.di.Container; import org.support.project.di.DI; import org.support.projec...
/* * 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...
package com.packtpub.fragmentcommunication; import android.os.Bundle; import android.support.v4.app.ListFragment; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListAdapter; import android.widget.ListView; import android.widget.TextView; public c...
/* * The MIT License * * Copyright (c) 2017 aoju.org All rights reserved. * * 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...
/* * 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 org.mathiasgarnier.wintime.sktranslate; public class CanHold { }
/* * Copyright 2012-2014 Netherlands eScience Center. * * 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 the following location: * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
package com.dandelion.domain; import javax.persistence.Entity; import javax.persistence.Id; /** * 第三方配置信息 * * @author jiekechoo * */ @Entity public class ThirdParty { @Id private String config; private String value; public String getConfig() { return config; } public void setConfig(String config) { ...
/* * Copyright 2012-2017 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...