text
stringlengths
7
1.01M
/* * Copyright 2002-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package mcjty.rftoolsutility.modules.logic.blocks; import mcjty.lib.blocks.LogicSlabBlock; import mcjty.lib.builder.BlockBuilder; import mcjty.lib.varia.Logging; import mcjty.lib.varia.NBTTools; import mcjty.rftoolsutility.modules.logic.items.RedstoneInformationItem; import mcjty.rftoolsutility.modules.logic.tools.Red...
// Copyright 2015 The Bazel 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 required by appl...
package com.valhallagame.ymer.controller; import com.fasterxml.jackson.databind.JsonNode; import com.valhallagame.common.JS; import com.valhallagame.instanceserviceclient.InstanceServiceClient; import com.valhallagame.instanceserviceclient.message.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org....
package com.fl.xrpl4j.model.transactions; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import org.immutables.value.Value; /** * Represents a signer for a multi-signature XRPL Tra...
/* * 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 org.redkale.util; import java.lang.reflect.Array; import java.util.*; import java.util.function.*; import org.redkal...
/* * Copyright 2000-2012 JetBrains s.r.o. * * 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...
/* * 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 ...
/* * The MIT License * * Copyright 2021 Intuit Inc. * * 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, modi...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed ...
package db.tuple; import db.Utility; import db.field.IntField; import db.file.RecordId; import db.file.heap.HeapPageId; import db.tuple.Tuple; import db.tuple.TupleDesc; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class TupleTest { @Before public void setUp() thr...
package trivia; import java.io.ByteArrayOutputStream; import java.io.PrintStream; public class CapturingSystemOutDemo { public static void main(String[] args) { String capture = captureOutput(() -> blackMethod()); System.err.println("Am prins:\n" + capture); } public static String captureOutput(Runnable tar...
/* * 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 ...
/* * Vertex Platform API * The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes ab...
package tae.cosmetics.settings; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import tae.cosmetics.exceptions.TAEModException; import tae.cosmetics.util.FileHelper; public class Setting <T extends Serializable> { private static final String fileName = ...
/** * Copyright (C) 2015 Fernando Cejas 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...
package com.google.android.gms.ads.internal.gmsg; import android.text.TextUtils; import com.google.android.gms.ads.internal.zzbv; import com.google.android.gms.internal.ads.zzadh; import com.google.android.gms.internal.ads.zzakb; import com.google.android.gms.internal.ads.zzaqw; import com.google.android.gms.internal....
/** * Xing service provider connection repository and API adapter implementations. */ package org.springframework.social.xing.connect;
package com.ypx.imagepicker; import android.app.Activity; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v4.app.FragmentActivity; import com.ypx.imagepicker.activity.PickerActivityManager; import com.ypx.imagepicker.activity.preview.MultiImagePreviewActivity; ...
/* * Copyright 2012-2018 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 com.alibaba.sreworks.job.master.params; import java.util.ArrayList; import java.util.List; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import lombok.Data; import lombok.extern.slf4j.Slf4j; @Data @Slf4j public class JobStartParam { private JSONObject varConf; priv...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * You may obtain a copy of the License at * * http://www.apache....
package com.testingbot.testingbotrest; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.testingbot.models.*; import java.io.*; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import net.iharder.Base64; import j...
package org.kyojo.schemaorg.m3n5.healthLifesci.medicalTrialDesign; import java.util.ArrayList; import java.util.List; import org.kyojo.schemaorg.SampleValue; import org.kyojo.schemaorg.SimpleJsonBuilder; import org.kyojo.schemaorg.m3n5.core.Container.AdditionalType; import org.kyojo.schemaorg.m3n5.core.Container.Alte...
package io.pivotal.labs.matchers; import org.hamcrest.Matcher; public class JsonArrayMatcher extends CastingMatcher<Iterable> { public static Matcher<Object> jsonArray() { return new JsonArrayMatcher(null); } public static Matcher<Object> jsonArrayWhich(Matcher<? extends Iterable> elementsMatche...
/* * Copyright 2017 Netflix, 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 * Unl...
/** * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. */ package com.oracle.bmc.dts.responses; import com.oracle.bmc.dts.model.*; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.009") @lombok.Builder(builderClassName = "Builder") @lombok.Getter pub...
package info.ephyra.answerselection.filters; import info.ephyra.io.MsgPrinter; import info.ephyra.nlp.NETagger; import info.ephyra.nlp.OpenNLP; import info.ephyra.nlp.SnowballStemmer; import info.ephyra.nlp.StanfordNeTagger; import info.ephyra.search.searchers.GoogleKM; import java.util.ArrayList; import ja...
package eleven_sorts; /** * 向下冒泡算法 (或许比冒泡更易懂的排序算法?) * 希尔排序 * * Author: wei */ public class SortsAddOn { public static void main(String[] args) { int[] arr = {3, 2, 6, 4, 5, 1, 9, 20, 13, 16}; // bubbleDownSort(arr); shellSort(arr); print(arr); } /** * 向下冒泡。可能比冒泡...
package noppes.npcs.ai; import java.util.Iterator; import java.util.List; import net.minecraft.command.IEntitySelector; import net.minecraft.entity.ai.EntityAIBase; import net.minecraft.util.MathHelper; import net.minecraft.util.Vec3; import noppes.npcs.CustomNpcs; import noppes.npcs.ai.selector.NPCInteractSelector; ...
package com.liuhang.jcartadministrationback.dto.out; import java.util.List; public class ProductShowOutDTO { private Integer productId; private String productCode; private String productName; private Double price; private Double discount; private Integer stockQuantity; private Byte status;...
// ============================================================================ // // Copyright (C) 2006-2016 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 com.kkwrite.demo.spring.data.jpa.dao; import java.util.List; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.RepositoryDefinition; import org.springframework.data.repository.query.Param; import...
// Copyright 2017 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 in...
package Battleship; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.io.*; import java.lang.Integer; import java.util.Vector; import java.net.*; /** * Description... * */ public class Battleship extends JFrame { private static JButton ok = new JButton...
/* * Copyright 2014 OpenMarket Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
package com.timelord.simplykush.registry.item; import net.minecraft.block.Block; public class RollingTray extends Block { public RollingTray(Settings settings) { super(settings); } }
package rsugiobean; import org.apache.camel.Exchange; import org.apache.camel.Processor; public class Test006 implements Processor { public void process(Exchange exchange) throws Exception { Thread.currentThread(); Thread.sleep(10L); } public String echo(String in) throws Exc...
/* * Copyright 2000-2009 JetBrains s.r.o. * * 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...
/* * Copyright © 2011 Everit Kft. (http://www.everit.org) * * 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...
// GsonTest.java // // This is the source code for a Java callout for Apigee Edge. // This callout is very simple - it just deserializes a payload using Google's Gson library. // // ------------------------------------------------------------------ package com.google.apigee.callouts; import com.apigee.flow.execution....
/* * Customer Credit Rating * This service domain maintains and administers the bank's credit assessment for customers. * * OpenAPI spec version: 2.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class m...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.container.plugin.classanalysis; import org.objectweb.asm.AnnotationVisitor; import org.objectweb.asm.Attribute; import org.objectweb.asm.Handle; import org.objectweb.asm.Label; import org.objectwe...
package com.synectiks.process.server.syslog4j.impl.message.modifier.sequential; import com.synectiks.process.server.syslog4j.impl.message.modifier.AbstractSyslogMessageModifierConfig; /** * SequentialSyslogMessageModifierConfig is an implementation of AbstractSyslogMessageModifierConfig * that provides configuratio...
/* * Copyright 2020 FabLabsMC * * 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, distribute...
/** * Copyright 2018 The JASSISTANT 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 ...
/* * Copyright 2002-2017 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 requ...
package uk.gov.hmcts.reform.bulkscan.payment.processor.service; import com.fasterxml.jackson.core.JsonParseException; import com.google.common.collect.ImmutableList; import com.microsoft.azure.servicebus.IMessage; import com.microsoft.azure.servicebus.IMessageReceiver; import com.microsoft.azure.servicebus.MessageBody...
package interpreter.operators; public class OrOperator extends Operator{ @Override public int execute(int operandOne, int operandTwo) { if(operandTwo != 0 || operandOne != 0){ return 1; } else{ return 0; } } }
package de.trundicho.warpreader.view.ui; import android.view.View; import android.widget.Button; import de.trundicho.warp.reader.core.view.api.widgets.ButtonWidget; public class ClipboardWidgetImpl implements ButtonWidget { private final Button clipboardButton; ClipboardWidgetImpl(Button clipboardButton) { ...
/* * 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 io.github.jhipster.jdl.language.validation; public class JdlMinBytesValidation extends AbstractJdlValueValidation { public JdlMinBytesValidation() { super("minbytes"); } }
package fragments; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.core.content.FileProvider; import androidx.fragment.app.Fr...
/* * Copyright 2017-2020 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...
/* * Copyright(C) 2020 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 appl...
package mchorse.vanilla_pack.actions; import javax.annotation.Nullable; import mchorse.metamorph.api.abilities.IAction; import mchorse.metamorph.api.morphs.AbstractMorph; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntityDragonF...
/* * Copyright 2001-2013 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...
/** * Copyright © 2018 Mayo Clinic (RSTKNOWLEDGEMGMT@mayo.edu) * * 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 ...
/* # # Copyright 2013 The Trustees of Indiana 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 applic...
/* * 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 (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.mediaservices.v2018_03_30_preview.implementation;...
package ru.job4j.tsk3_template_data; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import static org.hamcrest.core.Is.is; import static org.junit.Assert.*; public class UserSto...
package com.microsoft.o365_tasks.utils; public class DateParseException extends Exception { private static final long serialVersionUID = 1L; private final String mInput; private final int mPosition; public DateParseException(String message, String input, int position) { super(String.form...
/* * Copyright by Zoltán Cseresnyés, Ruman Gerst * * Research Group Applied Systems Biology - Head: Prof. Dr. Marc Thilo Figge * https://www.leibniz-hki.de/en/applied-systems-biology.html * HKI-Center for Systems Biology of Infection * Leibniz Institute for Natural Product Research and Infection Biology - Hans Kn...
/* * 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 frc.robot.subsystems; import edu.wpi.first.wpilibj.XboxController; import edu.wpi.first.wpilibj2.command.SubsystemBase; import frc.robot.Constants; public class doMotors extends SubsystemBase{ private static XboxController controller = new XboxController(0); private static otherMotors motors = new otherMo...
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
/* * Copyright 2020 OPPO ESA Stack 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...
package io.ashwins93.userauth.auth; import java.util.Optional; public interface ApplicationUserDao { public Optional<ApplicationUser> selectApplicationUserByUserName(String username); }
package ns.yang.nfvo.nsr.rev170208.get.ns.service.primitive.values.output; import com.google.common.base.MoreObjects; import java.lang.Override; import java.lang.String; import java.util.Objects; import org.opendaylight.yangtools.yang.binding.CodeHelpers; import org.opendaylight.yangtools.yang.binding.Identifier; publ...
package io.github.satr.yzwebshop.helpers; import java.util.regex.Pattern; public class StringHelper { private static Pattern intPattern = Pattern.compile("^-?\\d{1,10}$"); private static Pattern doublePattern = Pattern.compile("^-?\\d?\\d{0,30}([\\.\\,]\\d{1,30})?$"); public static boolean isInteger(Stri...
package com.codegym.task.task20.task2005; public class Asset { public Asset(String name) { this.name = name; } private String name; private double price; public String getName() { return name; } public double getPrice() { return price; } public void setPr...
/* * Copyright (C) 2009 The JSR-330 Expert 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 * Wisdom-Framework * %% * Copyright (C) 2013 - 2014 Wisdom Framework * %% * 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...
public class GeometricSequence extends Sequence { public GeometricSequence(int firstTerm, int ratio) { super(firstTerm, ratio); } public int getNextValue() { number *= CONSTANT; return number; } }
package ar.com.kfgodel.function.arrays.boxed.ints; import ar.com.kfgodel.function.arrays.objects.ArrayOfObjectToFloatFunction; /** * Date: 29/07/17 - 19:57 */ public interface ArrayOfBoxedIntegerToFloatFunction extends ArrayOfObjectToFloatFunction<Integer> { }
package com.univocity.trader.exchange.binance; import com.univocity.trader.*; import com.univocity.trader.candles.*; import com.univocity.trader.exchange.binance.api.client.*; import com.univocity.trader.exchange.binance.api.client.domain.event.*; import com.univocity.trader.exchange.binance.api.client.domain.general....
/* * Copyright 2020 Xiaomi * * 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...
/* * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS...
/* * Copyright (C) 2014 Saravan Pantham * * 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...
/* * Copyright (C) 2022 The SINOBU Development Team * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT */ package kiss.tree; import java.util...
/* * Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending */ package io.deephaven.engine.table.impl; import com.google.common.collect.BiMap; import com.google.common.collect.HashBiMap; import io.deephaven.api.Selectable; import io.deephaven.api.agg.Aggregation; import io.deephaven.base.Base64; import io.d...
package uk.gov.hmcts.reform.fpl.controllers.placement; import org.junit.jupiter.api.Test; import org.springframework.boot.test.autoconfigure.OverrideAutoConfiguration; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import uk.gov.hmcts.reform.ccd.client.model.AboutToStartOrSubmitCallbackResp...
/******************************************************************************* * Copyright 2018 T Mobile, 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. You may obtain a copy ...
package com.zhangwuji.im; public class Security { public native byte[] DecryptMsg(String strMsg); public native byte[] EncryptMsg(String strMsg); public native byte[] EncryptPass(String strPass); static{ //System.loadLibrary("security"); } private static Security m_pInstance; public static Security g...
/* * @(#)$Id$ * * Author : Ueli Kurmann, igesture@uelikurmann.ch * * * Purpose : * * ----------------------------------------------------------------------- * * Revision Information: * * Date Who Reason * * 2...
/* * 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.xianheh.doomsday.exception; /** * @author Xianhe Huang (xianhehuang@gmail.com) */ public class GameException extends Exception { public GameException(String message) { super(message); } }
package com.eve.atcf; import android.Manifest; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.ActivityInfo; import android.content.pm.PackageManager; import android.graphics.Color; import android.location....
/* * 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.mz.reactivedemo.common.util; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import java.util.*; class CaseMatchTest { @Test void when() { List<String> param = Arrays.asList("String", "Two"); List<Integer> testing = new ArrayList<>(); CaseMatch.match(param) ...
/* * Created on Jul 21, 2012 * * 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 cn.mi.daggersample; import android.util.Log; /** * Created by Jackwang on 08/06/2018. * Email: jackwang2048@gmail.com * Github: wangjie2013 */ public final class Utils { private static final String LOG = "log"; private Utils() { } public static void print(String msg) { Log.i(LO...
package generics;// generics/ArrayMaker.java // (c)2017 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. import java.lang.reflect.*; import java.util.*; public class ArrayMaker<T> { private Class<T> kind; public A...
/* * Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services. * 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 o...
/* * Copyright 2011-2016 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 2021 Red Hat * * 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 com.example.eag.myapplication; import android.content.Context; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast; public abstract class BaseActivity extends AppCompatActivity { PointMesure[]...
package client.model; import java.util.Arrays; public class CastAbility { private int casterId; private int[] targetHeroIds; private Cell startCell; private Cell endCell; private AbilityName abilityName; public int getCasterId() { return casterId; } void setCasterId(int caste...
package mchorse.mclib.config.values; import com.google.gson.JsonElement; import com.google.gson.JsonPrimitive; import io.netty.buffer.ByteBuf; import mchorse.mclib.client.gui.framework.elements.GuiElement; import mchorse.mclib.client.gui.framework.elements.buttons.GuiCirculateElement; import mchorse.mclib.client.gui.f...