text
stringlengths
7
1.01M
package caveprogram11; public class GrandParent extends FamilyDeco{ public GrandParent(Person person) { super(person); } public void print() { super.print(); } }
package com.simibubi.create.content.logistics.item.filter.attribute; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.stream.Collectors; import com.simibubi.create.content.logistics.item.filter.I...
package com.crazzyghost.alphavantage.fundamentaldata.response; import com.crazzyghost.alphavantage.parser.NoneableDouble; import com.crazzyghost.alphavantage.parser.NoneableLong; import com.squareup.moshi.Json; public class CompanyOverview { @Json(name="Symbol") private String symbol; @Json(name="AssetTy...
package com.pigthinkingtec.framework.databean; /** * ActionからCommandへのInputを纏めるクラス * * @author yizhou * @history * */ public class Order { private DataBeanInterface inputDataBean = null; private UserContainer loginUser = null; private int transactionScope = 0; private Object argumentData =...
import java.util.Scanner; public class UI { final private Scanner scanner = new Scanner(System.in); public UI() { } public void uiLoop() { Game game = new Game(); game.start(); gretting(); int sunkShipsCounter = 0; while (true) { game.drawGame(); int sunkShips = game.getSunk...
package io.jjk.jcartadministrationback.dto.out; public class CustomerShowOutDTO { private Integer customerId; private String username; private String realName; private String avatarUrl; private String mobile; private String email; private Byte status; private Long createTimestamp; p...
package org.ebookdroid.ui.viewer.viewers; import org.ebookdroid.common.settings.AppSettings; import org.ebookdroid.common.settings.types.PageAlign; import org.ebookdroid.core.DecodeService; import org.ebookdroid.core.Page; import org.ebookdroid.core.ViewState; import org.ebookdroid.ui.viewer.IActivityController; impor...
/* * Copyright 2010-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...
package com.baidu.channel.sample; import net.sf.json.JSONObject; import com.baidu.cloud.core.log.CloudLogEvent; import com.baidu.cloud.core.log.CloudLogHandler; import com.baidu.cloud.push.auth.PushKeyPair; import com.baidu.cloud.push.client.BaiduPushClient; import com.baidu.cloud.push.constants.BaiduPushConstants; i...
/* * Copyright (c) 2013-2021 Cinchapi Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
package org.mvnsearch.commands; import org.mvnsearch.model.Toolchain; import org.mvnsearch.service.FoojayService; import org.mvnsearch.service.JdkDownloadLink; import org.mvnsearch.service.ToolchainService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; ...
/** * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ * <p> * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION * <p> * 1. Definitions. * <p> * "License" shall mean the terms and conditions for use, reproduction, * and distribution as defined by Sections 1 through 9 of ...
/* * Licensed to ElasticSearch and Shay Banon 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...
/* 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 org.swtk.commons.dict.wordnet.frames.instance.p1.p0; import java.util.Map; import java.util.TreeMap; import org.swtk.common.dict.dto.wordnet.DataNoun; import com.trimc.blogger.commons.utils.GsonUtils; public final class WordnetNounFrame1098 { private static Map<String, DataNoun> map = new TreeMap<String, ...
package com.java8.List_Partioned; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; public class PartitionBySizeOfList1 { public static void main(String[...
/* * 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 com.gempukku.swccgo.cards.set11.dark; import com.gempukku.swccgo.cards.AbstractAlien; import com.gempukku.swccgo.cards.conditions.OnCondition; import com.gempukku.swccgo.common.Icon; import com.gempukku.swccgo.common.Side; import com.gempukku.swccgo.common.Title; import com.gempukku.swccgo.common.Uniqueness; i...
package com.ocr.tesseract; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; @SpringBootApplication @ComponentScan({"com.ocr.*"}) public class OcrTesseractApplication { public static vo...
package com.w1nd.grainmall.product.dao; import com.w1nd.grainmall.product.entity.CategoryBrandRelationEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; /** * 品牌分类关联 * * @author w1nd * @email 584202045@qq.com *...
package br.com.zupacademy.hugo.proposta.repository; import br.com.zupacademy.hugo.proposta.model.Biometria; import org.springframework.data.jpa.repository.JpaRepository; public interface BiometriaRepository extends JpaRepository<Biometria, Long> { }
/* * Copyright (C) 2021 Nameless Production Committee * * 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.sample.bean.modifiers; ...
package Chris.Chapter06.Array; public class Hw0609 { public static void main(String[] args) { int sales=0; int product=0; int salemax1=0; int salemax2=0; int amount[][]= {{33,32,56,45,33},{77,33,68,45,23},{43,55,43,67,65}}; int price[]= {12,16,10,14,15}; int sum[]=new int[5]; int sum2[]...
/* * Copyright (c) 2014-2015 dCentralizedSystems, LLC. 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 requi...
package com.zb.service; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; /** * Created by zhangbin on 2018/8/17. *...
/* * 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 u...
/** @author Eimutis Karčiauskas, KTU IF Programų inžinerijos katedra, 2014 09 09 * * Tai yra krepšinio rungtynių tablo demonstracinė klasė, * kurioje demonstruojami įvairūs įvykių fiksavimo metodai. * * Atkreipkite dėmesį į metodą mouseClicked(MouseEvent e), kurio pagalba * yra reaguojama į...
/* * 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.omg.hw.flowDomainFragment; /** * Generated from IDL interface "FDFrIterator_I" * @author JacORB IDL compiler V 2.2.3, 10-Dec-2005 */ public abstract class FDFrIterator_IPOA extends org.omg.PortableServer.Servant implements org.omg.CORBA.portable.InvokeHandler, org.omg.hw.flowDomainFragment.FDFrItera...
// FCMOD package net.minecraft.src; import java.util.List; import java.util.Random; public class FCItemEnchantedBook extends ItemEnchantedBook { public FCItemEnchantedBook( int iItemID ) { super( iItemID ); SetBuoyant(); } @Override public ItemStack onItemRig...
package my.devs.apps.testing.quickdagger; import android.app.Activity; import android.app.Application; import javax.inject.Inject; import dagger.Module; import dagger.android.ContributesAndroidInjector; import dagger.android.DispatchingAndroidInjector; import dagger.android.HasActivityInjector; public class App ex...
package edu.teco.dustradar.sensorthings.helper; import java.io.Serializable; public class UnitOfMeasurement implements Serializable { // private members private String name = null; private String symbol = null; private String definition = null; // constructors public UnitOfMeasurement() {...
/******************************************************************************* * Copyright 2014 IBM * * 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/lice...
package it.matlice.ingsw.model.data.impl.jdbc; import com.j256.ormlite.jdbc.JdbcConnectionSource; import com.j256.ormlite.support.ConnectionSource; import java.sql.SQLException; public class JdbcConnection { private static JdbcConnection instance = null; private final ConnectionSource cs; private JdbcC...
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 4.0.1 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ------------------------------...
package com.lyle.file.upload; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.Serializable; import java.io.Unsupport...
package edu.jhu.pacaya.gm.app; import edu.jhu.pacaya.gm.data.LFgExample; import edu.jhu.pacaya.gm.data.UFgExample; public interface Encoder<X, Y> { LFgExample encode(X x, Y y); UFgExample encode(X x); }
package seedu.address.logic.parser; import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.address.commons.core.Messages.MESSAGE_UNKNOWN_COMMAND; import java.util.regex.Matcher; import java.util.regex.Pattern; import seedu.address.logic.commands.AddApptCommand; import s...
package io.quarkus.security.runtime.interceptor; import static java.util.Arrays.asList; import java.lang.annotation.Annotation; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; import...
package com.kxj.web.config; import org.springframework.core.convert.converter.Converter; import org.springframework.stereotype.Component; import java.util.Date; /** * @author kxj * @date 2020/4/1 23:33 * @desc */ @Component public class DateConverter implements Converter<String, Date> { @Override public...
/* * 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...
/* * 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 ...
public class helloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } }
/* * 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 org.tkiyer.athena.engine.api; public class ClientExecutionException extends Exception { public ClientExecutionException() { super(); } public ClientExecutionException(String message) { super(message); } public ClientExecutionException(String message, Throwable cause) { ...
package fr.axonic.jf.redmine.reader.analysis.approvals.extraction; import com.taskadapter.redmineapi.bean.WikiPage; import com.taskadapter.redmineapi.bean.WikiPageDetail; import fr.axonic.jf.redmine.reader.analysis.approvals.ApprovalDocument; import fr.axonic.jf.redmine.reader.users.bindings.ProjectIdentityBinder; im...
/* * Copyright 2019, OpenTelemetry 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...
package org.imaginea.botbot.common; import org.imaginea.botbot.api.DefaultProperties; import org.testng.annotations.*; import com.google.android.testing.nativedriver.client.AndroidNativeDriver; import com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder; public class BaseClass { protected Andr...
/** * 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...
/* * Copyright 2020 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...
/******************************************************************************* * * Pentaho Data Integration * * Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the ...
package haxby.db.ice; import haxby.proj.PolarStereo; import haxby.proj.Projection; import haxby.util.URLFactory; import java.io.DataInputStream; import java.io.IOException; import java.net.URL; public class IBCAO { static PolarStereo proj = null; public IBCAO() { } public static Projection getProjection() { if...
/* * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.idea.decompiler.textBuilder; import com.intellij.testFramework.TestDataPath; imp...
/******************************************************************************* * ___ _ ____ ____ * / _ \ _ _ ___ ___| |_| _ \| __ ) * | | | | | | |/ _ \/ __| __| | | | _ \ * | |_| | |_| | __/\__ \ |_| |_| | |_) | * \__\_\\__,_|\___||___/\__|____/|____/ * * Copyright (c...
package com.zoho.crm.api.fields; import com.zoho.crm.api.Param; import com.zoho.crm.api.ParameterMap; import com.zoho.crm.api.exception.SDKException; import com.zoho.crm.api.util.APIResponse; import com.zoho.crm.api.util.CommonAPIHandler; import com.zoho.crm.api.util.Constants; public class FieldsOperations { privat...
/* XMLWriter.java NanoXML/Java * * $Revision: 1.4 $ * $Date: 2002/03/24 11:37:51 $ * $Name: RELEASE_2_2_1 $ * * This file is part of NanoXML 2 for Java. * Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved. * * This software is provided 'as-is', w...
package no.agens.depth.lib.tween.interpolators; import android.animation.TimeInterpolator; /** * Created by danielzeller on 09.04.15. */ public class SineIn implements TimeInterpolator { @Override public float getInterpolation(float t) { return (float) -Math.cos(t * (Math.PI/2)) + 1; } }
package cl.uchile.dcc.scrabble.model.hidden_layer.hidden_relational_operator; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotSame; import static org.junit.jupiter.api.Assertions.assertS...
/* * Copyright 2019-2020 The Polypheny 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...
/* * Copyright 2022 ConsenSys AG. * * 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...
package im.tny.segvault.disturbances.exception; import java.util.ArrayList; import java.util.List; /** * Created by gabriel on 4/9/17. */ public class APIException extends Exception { public APIException(Throwable cause) { super(cause); } protected List<String> info = new ArrayList<String>(); ...
package com.payneteasy.superfly.web.wicket.page.group.wizard; import com.payneteasy.superfly.model.RoutineResult; import com.payneteasy.superfly.model.ui.action.UIActionForCheckboxForGroup; import com.payneteasy.superfly.model.ui.group.UIGroup; import com.payneteasy.superfly.model.ui.subsystem.UISubsystemForFilter; im...
/* * Copyright 2010-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 "lice...
/** * 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 m...
/** * * Process Editor - Editor Package * * (C) 2008-2010 Frank Puhlmann * * http://frapu.net * */ package net.frapu.code.visualization.editors; import com.inubit.research.client.UserCredentials; import com.inubit.research.gui.WorkbenchFetchModelDialog; import java.awt.GridLayout; import java.net.URI; import j...
package com.didactapp.echopark; 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); } }
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) 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 * * Unles...
/* * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
/* * OpenAPI Ice Spell Mint API * Test Spec for a \"Simple Client\" * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package fr.jmini.openapi.o...
package trivia; import java.io.*; import java.util.Base64; import trivia.User; public class BasicAuth { static Boolean authorize(String headerAuth) { final String[] creds = getCredentials(headerAuth); return User.findFirst("username = ? AND password = ?", creds[0], creds[1]) != null; } static User get...
/* * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in c...
/* NameClassPair.java -- Copyright (C) 2001, 2005, 2006 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 (...
/* * 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")...
for (int number : numbers) { System.out.println(number); } for (int number : numbers) { if(number > 5) { System.out.println(number); } }
package com.edeqa.edequate.rest.system; import com.edeqa.edequate.abstracts.AbstractAction; import com.edeqa.edequate.helpers.WebPath; import com.edeqa.eventbus.EventBus; import com.edeqa.helpers.Misc; import com.edeqa.helpers.interfaces.Consumer; import org.json.JSONObject; import java.io.File; import java.io.IOExc...
package se.haglund.googleapi; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.google.gson.JsonSyntaxException; import se.haglund.InterestingPlace; import java.util.LinkedHashSet; import java.util.Map; import java.ut...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * Copyright (C) 2017 Baidu, Inc. All Rights Reserved. */ package com.kotyj.com.utils; import android.content.Context; import java.io.File; public class FileUtil { public static File getSaveFile(Context context, String type) { File file = new File(context.getFilesDir(), "pic.jpg"); return fil...
package cn.ustc.ssm.manage; public class JSONResult { private String message; private String result; private String success; public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public String getResult...
package org.terifan.ui; public enum Orientation { HORIZONTAL, VERTICAL; }
/* * Copyright (C) 2021 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...
/* * Copyright 2020 The TensorFlow 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...
package com.rymcu.forest.service.impl; import com.rymcu.forest.core.exception.ServiceException; import com.rymcu.forest.core.service.AbstractService; import com.rymcu.forest.core.service.redis.RedisService; import com.rymcu.forest.dto.BankAccountDTO; import com.rymcu.forest.dto.TransactionRecordDTO; import com.rymcu.f...
package crazypants.enderio.base.config.recipes.xml; import crazypants.enderio.base.Log; import crazypants.enderio.base.config.recipes.InvalidRecipeConfigException; import crazypants.enderio.base.config.recipes.RecipeRoot; import crazypants.enderio.base.config.recipes.StaxFactory; import javax.annotation.Nonnull; impo...
package com.example.securingweb; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import ...
package creational1.singleton.naivesingletonmultithread.solution; public class DemoMultiThread { public static void main(String[] args) { System.out.println("If you see the same value, then singleton was reused (yay!)" + "\n" + "If you see different values, then 2 singletons were created (b...
package tape; import java.io.IOException; /** * Exception that is thrown, if a tape operation couldn't be run successfully. * It prints the tape name and the head position in the message string. * Use the {@link #getTape()} method to get the tape that caused the exception. * @author Nils Breyer */ public class Ta...
/* * Copyright (c) OSGi Alliance (2004, 2012). 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 re...
class Solution { public boolean uniqueOccurrences(int[] arr) { HashMap<Integer, Integer> hm = new HashMap<>(); for(int i : arr) hm.put(i, hm.getOrDefault(i, 0)+1); return hm.values().size() == new HashSet<>(hm.values()).size(); } }
package com.yan.fishmall.product.dao; import com.yan.fishmall.product.entity.BrandEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 品牌 * * @author caiyiyan * @email cyiyangg@gmail.com * @date 2020-08-02 19:17:37 */ @Mapper public interface BrandD...
package com.radical.viewstudy.adapter; import android.content.Context; import android.graphics.drawable.Drawable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com....
/** * Copyright 2012 meltmedia * * 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 module4; import de.fhpotsdam.unfolding.data.PointFeature; import processing.core.PConstants; import processing.core.PGraphics; /** Implements a visual marker for ocean earthquakes on an earthquake map * * @author UC San Diego Intermediate Software Development MOOC team * @author Shivam * */ public class...
package com.teamid.service; import com.teamid.entity.OrderRecord; import java.util.List; /** * Created by Skye on 2017/6/3. */ public interface OrderRecordService { boolean add(OrderRecord orderRecord); OrderRecord findOrderRecordById(long id); List<OrderRecord> findOrderRecordsByCustomerId(long cus...
/** * 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.whsa.sherlock.seaweedfsmanagement.util; import org.springframework.web.multipart.MultipartFile; import java.io.*; public class MultipartFileToFile { public static File multipartFileToFile(MultipartFile file) throws IOException { File toFile = null; if(file.equals("")||file.getSize()...
package com.spk.system.domain; import javax.validation.constraints.*; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.spk.common.annotation.Excel; import com.spk.common.annotation.Excel.ColumnType; import com.spk.common.core.domain.BaseEntity; ...
/* * generated by Xtext 2.11.0 */ package com.robertkoszewski.dsl.quickui.ui.internal; import com.google.common.collect.Maps; import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.Module; import com.robertkoszewski.dsl.QuickUIRuntimeModule; import com.robertkoszewski.dsl.ui.Quic...
package no.java.sleepingpill.core; import no.java.sleepingpill.core.conference.ConferenceHolderImpl; import no.java.sleepingpill.core.database.DBEventListener; import no.java.sleepingpill.core.conference.ConferenceHolder; import no.java.sleepingpill.core.conference.DummyConferenceHolder; import no.java.sleepingpill.co...
/* * Copyright 2017-2021 Volkan Yazıcı * * 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 ...