text
stringlengths
7
995k
package yanzhikai.textpathview; import android.animation.Animator; import android.app.Activity; import android.graphics.Path; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.SeekBar; import yanzhikai.textpath.AsyncTextPathView; import ya...
package com.atguigu.gmall.pms.dao; import com.atguigu.gmall.pms.entity.SpuImagesEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * spu图片 * * @author zje * @email zje@atguigu.com * @date 2020-01-02 16:30:32 */ @Mapper public interface SpuImagesDao ...
/* ### * IP: GHIDRA * * 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 writin...
package com.chen.guice.service.impl; import com.chen.guice.service.CurrencyService; import java.util.Arrays; import java.util.List; /** * CurrencyServiceImpl * * @Author LeifChen * @Date 2018-10-16 */ public class CurrencyServiceImpl implements CurrencyService { @Override public List<String> getSupport...
/** * <copyright> * </copyright> * * $Id$ */ package org.wso2.developerstudio.eclipse.gmf.esb; import org.eclipse.emf.common.util.EList; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Mediator Sequence</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are sup...
package org.axonframework.commandhandling.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.IOException; import java.io.ObjectInputStream; /** * Implementation of the {@link org.axonframework.modelling.command.AggregateScopeDescriptor} u...
/* * Copyright 2021-2022 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
package com.wgs.codedesign.工厂模式.v3.bean; /** * @author: wanggenshen * @date: 2020/3/25 18:12. * @description: XXX */ public class ClassFactory { public static Class createClass(String value) throws ClassNotFoundException { String type = ""; if ("char".equals(value) || "Char".equals(value)) { ...
/* * Copyright 2016 Alex Andres * * 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.bsptechs.main.bean.ui.panel; import com.bsptechs.main.Main; import com.bsptechs.main.bean.server.SUConnectionBean; import com.bsptechs.main.bean.server.SUDatabaseBean; import com.bsptechs.main.bean.ui.tree.server.bundle.SUConnectionBundleTreeNode; import com.bsptechs.main.bean.ui.tree.server.bundle.SUDatab...
package com.zac4j.sample; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.Log; import com.google.android.gms.ads.AdListener; import com.google.android.gms.ads.AdRequest; ...
package com.kwpugh.more_gems.items.gembag; import net.minecraft.item.Item; public class GemBase extends Item { public GemBase(Settings settings) { super(settings); } }
/* * Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech) * Copyright 2018 SmartBear Software * * 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://...
/* * Copyright (c) 2020. https://rxmicro.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 required by applicable law o...
/* * Copyright 2003, 2004, 2005, 2006 Research Triangle Institute * * 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 life.majiang.community.model; import java.util.ArrayList; import java.util.List; public class UserExample { /** * This field was generated by MyBatis Generator. * This field corresponds to the database table user * * @mbg.generated Sat Dec 14 17:18:46 CST 2019 */ protected Str...
package cn.tellsea.springbean.register; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan.Filter; import org.springframework.context.annotation.Configuration; import org.springframework.context.an...
// Copyright 2014 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
package com.semmle.js.ast; import com.semmle.jcorn.TokenType; import com.semmle.ts.ast.ITypeExpression; /** * A literal constant. * * <p>A <tt>null</tt> literal may occur as a TypeScript type annotation - other literals are always * expressions. */ public class Literal extends Expression implements ITypeExpressi...
package com.mossle.group.domain; // Generated by Hibernate Tools import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; /** * OrgCompany . * * @author Lingo */ @Entity @Table(name = "ORG_COMPANY") pub...
/* * 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 ru.job4j.httpexample.controller; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; @WebServlet(urlPatterns = "/exit",...
/* * Copyright 2020 Craig Motlin * * 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 (c) 2008 Contributors * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * ...
package dev.sheldan.abstracto.webservices.urban.command; import dev.sheldan.abstracto.core.command.UtilityModuleDefinition; import dev.sheldan.abstracto.core.command.condition.AbstractConditionableCommand; import dev.sheldan.abstracto.core.command.config.CommandConfiguration; import dev.sheldan.abstracto.core.command....
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-646 // 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: 2010...
/** * Copyright (c) 2019,2020 honintech * * 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, modify, merge, publish, di...
/* * Copyright (c) 2011, 3 Round Stones Inc. Some 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 c...
package com.cn.boot.sample.design.pattern.strategy; /** * @author Chen Nan */ public class PriceContext { private PriceStrategy priceStrategy; public PriceContext(PriceStrategy priceStrategy) { this.priceStrategy = priceStrategy; } public double execute(double price) { return price...
/** * <copyright> * </copyright> * * $Id$ */ package org.wso2.developerstudio.eclipse.ds.provider; import java.util.Collection; import java.util.List; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.util.ResourceLocator; imp...
package com.kalessil.phpStorm.phpInspectionsEA.inspectors.apiUsage; import com.intellij.codeInspection.ProblemHighlightType; import com.intellij.codeInspection.ProblemsHolder; import com.intellij.openapi.util.text.StringUtil; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.jet...
package com.intro.common.mixin.client; import com.intro.client.OsmiumClient; import com.intro.common.config.Options; import com.intro.common.config.options.SneakMode; import net.minecraft.client.Camera; import net.minecraft.util.Mth; import net.minecraft.world.entity.Entity; import org.spongepowered.asm.mixin.Mixin; i...
package music; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import com.sun.javafx.scene.layout.region.Margins.Converter; /*编写ControlDB类对数据库的操作*/ public class ControlDB { private static ControlDB cont...
package lib.ui.ios; import io.appium.java_client.AppiumDriver; import lib.ui.MyListsPageObject; import org.openqa.selenium.remote.RemoteWebDriver; public class iOSMyListsPageObject extends MyListsPageObject { static { CLOSE_BUTTON = "id:Close"; FOLDER_BY_NAME_TPL = "xpath://*[@text='{FOLDER_NAME}...
package com.ejlchina.okhttps.okhttp; import com.ejlchina.okhttps.internal.AbstractHttpClient; import okhttp3.*; import java.util.concurrent.Executor; public class OkHttpClientWrapper extends AbstractHttpClient { // OkHttpClient final OkHttpClient okClient; public OkHttpClientWrapper(OkHttpBuilderImpl ...
package com.mgc.letobox.happy.domain; import java.io.Serializable; public class DrawCashWeixinInfoResultBean implements Serializable{ private int id; private String truename; private String openid; public String getUnionid() { return unionid; } public void setUnionid(String unionid)...
/* * 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.glitchcog.benkygenki.model; public enum KanaType { HIRAGANA("Hiragana", "ひらがな"), KATAKANA("Katakana", "カタカナ"); private final String label; private final String kana; private KanaType(String label, String kana) { this.label = label; this.kana = kana; } public S...
package com.cts.project.dao; import org.springframework.data.jpa.repository.JpaRepository; import com.cts.project.bean.User; public interface UserDAO extends JpaRepository<User, Integer>{ }
package org.ovirt.engine.core.bll.provider.storage; import java.io.IOException; import java.nio.ByteBuffer; import java.security.cert.Certificate; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.ovirt.engine.core.bll.provider.ProviderProxyFactory; import o...
package net.glowstone.io.entity; import net.glowstone.entity.passive.GlowVillager; import net.glowstone.util.nbt.CompoundTag; import org.bukkit.entity.Villager.Profession; class VillagerStore extends AgeableStore<GlowVillager> { public VillagerStore() { super(GlowVillager.class, "Villager"); } @...
import org.openwsman.Client; import org.openwsman.ClientOptions; import org.openwsman.XmlDoc; import org.openwsman.OpenWSManConstants; import org.openwsman.XmlNode; public class cim_enumerate_registered_profiles { private static final String URI = OpenWSManConstants.XML_NS_CIM_CLASS + "/CIM_RegisteredProfile"; /**...
/* * Copyright (c) 2006, 2015, 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 may ...
package com.jpushkarskaya.articles; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an 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 com.firedome.ravello.exception; /** * Exception thrown by Ravello */ public class RavelloException extends RuntimeException { /** * <p> * HTTP status * </p> */ private int status; /** * <p> * Ravello error code * </p> */ private Object errorCode; ...
package com.rbc.shopping.dto; import lombok.Data; /** * Response class for Recommendations. * * @author SARA */ @Data public final class Recommendations { /** * Object representing ItemsOnSale. */ private ItemsOnSale itemsOnSale; /** * Holds recommendations Count based on My Order. ...
package ibis.ipl.benchmarks.throughput; /* $Id$ */ import ibis.ipl.Ibis; import ibis.ipl.IbisCapabilities; import ibis.ipl.IbisFactory; import ibis.ipl.IbisIdentifier; import ibis.ipl.PortType; import ibis.ipl.ReadMessage; import ibis.ipl.ReceivePort; import ibis.ipl.Registry; import ibis.ipl.SendPort; import ibis.i...
import java.util.*; public class A1473 { public static void main(String[] args) { Scanner input = new Scanner(System.in); int t = input.nextInt(); int d,n; int[] arr; boolean ds = false; while(t--!=0){ n = input.nextInt(); d = input.nextInt(); ...
/* * Copyright 2008 FatWire Corporation. 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...
package io.simplesource.saga.serialization.avro; import io.simplesource.data.Result; import io.simplesource.saga.model.action.ActionCommand; import io.simplesource.saga.model.action.SagaAction; import io.simplesource.saga.model.saga.Saga; import io.simplesource.saga.model.saga.SagaError; import io.simplesource.saga.sa...
package rxdemo.vendordata; import rxdemo.drug.DispensableDrug; import java.util.ArrayList; import java.util.List; /** * Represents a vendor drug database rather than application code. */ public class DrugDatabase { private static List<DispensableDrug> drugsInDatabase; static { drugsInDatabase = new Ar...
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // 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: 2011.0...
package org.raboss.dev.atlassian.jira.proman.api.rest.hal; import org.codehaus.jackson.annotate.JsonUnwrapped; import javax.xml.bind.annotation.XmlElement; import java.util.*; import java.util.HashMap; import java.util.Map; /** * This is a simple and straight forward approach for * JSON Hypertext Application Langu...
package mage.filter; import java.io.Serializable; /** * @author nantuko */ public class FilterMana implements Serializable { protected boolean black; protected boolean green; protected boolean white; protected boolean red; protected boolean blue; protected boolean generic; protected boo...
/* * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
/* Copyright 2017 Rice 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 agreed to in writing, software...
package greedy; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; /** * * @author minchoba * 백준 2865번: 나는 위대한 슈퍼스타K * * @see https://www.acmicpc.net/problem/2865/ * */ public class Boj2865 { private static final String DOT = "."; pu...
/** * * Copyright 2017 Florian Erhard * * 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...
/* * Copyright 2015 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
package com.koch.ambeth.ioc.converter; /*- * #%L * jambeth-ioc * %% * Copyright (C) 2017 Koch Softwaredevelopment * %% * 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...
package co.poynt.api.sdk; import java.io.FileNotFoundException; import java.io.InputStreamReader; import java.io.Reader; import java.util.Map; import co.poynt.api.model.Customer; /** * Utility to get customer for given app * */ public class GetCustomer { public static void main(String[] args) throws FileNotFo...
/* * Copyright (c) 2013, 2014, 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 ...
class double1 { public static void main(String[] args) { java.util.Random random = new java.util.Random(42); double d=random.nextDouble(); // conversions int i=(int)d; char c=(char)d; long l=(long)d; float f=(float)d; short s=(short)d; // constants d=1.1234; d=...
package com.github.xfslove.smssp.message.cmpp20; import com.github.xfslove.smssp.message.Sequence; import com.github.xfslove.smssp.util.ByteUtil; import io.netty.buffer.ByteBuf; /** * @author hanwen * created at 2018/8/28 */ public class ConnectRespMessage implements CmppMessage { private final CmppHead head; ...
/* * 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 main; import main.friend.Friend; import main.node.FriendList; import main.node.FriendNode; import java.util.Iterator; import java.util.Scanner; public class MainApplication { /* * Sources: [ * https://www.geeksforgeeks.org/linked-list-set-2-inserting-a-node/ * https://www.geek...
package com.uib.web.peptideshaker.ui.components.items; import com.compomics.util.experiment.biology.modifications.ModificationFactory; import com.compomics.util.experiment.identification.matches.ModificationMatch; import com.vaadin.event.LayoutEvents; import com.vaadin.shared.ui.label.ContentMode; import com.vaadin.ui...
package com.onthegomap.planetiler.util; import static org.junit.jupiter.api.Assertions.*; import com.onthegomap.planetiler.config.PlanetilerConfig; import com.onthegomap.planetiler.stats.Stats; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.nio.charset.StandardCharsets; import java.nio.f...
package com.bgstation0.android.sample.nestedscrollview_; 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 { ...
/* * 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.qcri.rheem.iejoin.operators; import org.apache.spark.api.java.JavaPairRDD; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api.java.function.Function; import org.qcri.rheem.core.function.TransformationDescriptor; import org.qcri.rheem.core.optimizer.OptimizationContext; import org.qcri.rh...
package io.github.cexj.declarser.kernel.stages.stage04_toobject.impl; import java.util.Map; import io.github.cexj.declarser.kernel.stages.stage04_toobject.impl.exceptions.OutputGluingException; import io.github.cexj.declarser.kernel.stages.stage04_toobject.impl.restructor.Restructor; import io.github.cexj.declarser.k...
/* * MIT License * * Copyright (c) 2017-2019 nuls.io * * 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, mod...
package com.rudgjs8080.readbook; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Controller public class HomeController { @RequestMapping(value = "/", method = RequestMethod.GET) pu...
package com.sisteritb.philosopherstone.scenes; import android.content.Intent; import android.os.AsyncTask; import android.os.CountDownTimer; import android.os.SystemClock; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.M...
/* * MIT License * * Copyright (c) 2021 pumbas600 * * 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, modify...
package block_party.world; import block_party.db.records.NPC; import block_party.npc.BlockPartyNPC; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.level.portal.PortalInfo; import net.minecraft.world.phy...
package org.panda; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Webapplication { public static void main(String[] args) { SpringApplication.run(Webapplication.class, args); } }
package com.rita.mall.ware.service; import com.baomidou.mybatisplus.extension.service.IService; import com.rita.common.utils.PageUtils; import com.rita.mall.ware.entity.WareOrderTaskEntity; import java.util.Map; /** * 库存工作单 * * @author Rita * @email rita2021.zhang@gmail.com * @date 2021-06-13 15:22:25 */ publi...
package org.jabref.gui.icon; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URL; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import ...
package com.tony.tmall.common.annotation; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; /** * 状态标记校验器 * Created by tony on 2020/4/26. */ public class FlagValidatorClass implements ConstraintValidator<FlagValidator, Integer> { private String[] values; @Over...
/* * Copyright 2008-2009 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
package org.approvaltests.reporters; import java.util.ArrayList; import com.spun.util.ObjectUtils; public class MultipleExceptions extends RuntimeException { private static final long serialVersionUID = 1L; private ArrayList<Throwable> exceptions; public MultipleExceptions(ArrayList<Throwable> exceptions) ...
package dev.emi.trinkets.mixin; import dev.emi.trinkets.api.SlotGroups; import dev.emi.trinkets.api.Slots; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Redirect; import dev.emi.trinkets.api.TrinketComponent; import dev.emi.trin...
package net.minecraft.server.commands; import com.mojang.brigadier.CommandDispatcher; import com.mojang.brigadier.arguments.ArgumentType; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.builder.RequiredArgumentBuilder; import com.mojang.brigadier.exceptions.CommandSyntaxExceptio...
package com.gob.museumapp.model; import android.content.Context; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull...
/* * The MIT License * * Copyright 2019 Bryan Schorn. * * 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, m...
/* * Copyright (c) 2010-2013 Evolveum * * 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 top.alanlee.pam.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class IndexController { @RequestMapping("/hello") public String hello(){ return "Hello SSM"; } }
package code.juc.atomic; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicStampedReference; public class ABAProblem { // A -> B -> A private static AtomicInteger atomicInt = new AtomicInteger(100); // A,1 -> B,2 -> A,3 /...
/** * Copyright 2021 Emmanuel Bourg * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law o...
package com.formulasearchengine.mathosphere.mlp.cli; import com.beust.jcommander.Parameters; import java.io.Serializable; /** * @author Andre Greiner-Petter */ @Parameters(commandDescription = "Finds, extracts and lists identifier-definien pairs with the machine learning approach of MLP.") public class MachineLear...
package sv.com.chuckle.game.spaceinvaderclon; import android.os.Bundle; import com.badlogic.gdx.backends.android.AndroidApplication; import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; import sv.com.chuckle.game.spaceinvaderclon.GameLoop; public class AndroidLauncher extends AndroidApplication ...
package com.joymain.jecs.pm.webapp.action; import java.util.Locale; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import org.springframework.validation.BindException; import org.springframework.web.bind.ServletRequestDataBinde...
/* * Copyright 2014-2021 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/** * 反转整数 * * @Author RUANWENJUN * @Creat 2018-05-26 15:12 */ public class Problem7 { /** * 将32位有符号整数反转,如果益处返回0 * @param x * @return */ public int reverse(int x) { // 使用一个long型变量来保存 long index = 0; while (x != 0){ index = index * 10 + x %10; ...
/* Copyright 2006 Jerry Huxtable 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 d...