text
stringlengths
7
995k
package com.yilian.mylibrary.widget.jdaddressseletor; import com.yilian.mylibrary.widget.jdaddressseletor.areamodel.JDCity; import com.yilian.mylibrary.widget.jdaddressseletor.areamodel.JDCounty; import com.yilian.mylibrary.widget.jdaddressseletor.areamodel.JDProvince; import com.yilian.mylibrary.widget.jdaddresssele...
/* * Copyright (C) 2013 Information Management Services, Inc. */ package com.imsweb.mph.mpgroups; import java.util.Arrays; import com.imsweb.mph.MphConstants; import com.imsweb.mph.MphGroup; import com.imsweb.mph.MphInput; import com.imsweb.mph.MphRule; import com.imsweb.mph.MphUtils; import com.imsweb.mph.internal...
package com.example.androiderp.activities.purchaseview; import android.content.Intent; import android.support.v7.widget.Toolbar; import android.text.Editable; import android.text.TextWatcher; import android.util.DisplayMetrics; import android.view.KeyEvent; import android.view.Menu; import android.view.MenuItem; impor...
package com.ruoyi.project.system.user.service; import com.ruoyi.common.constant.UserConstants; import com.ruoyi.common.exception.BusinessException; import com.ruoyi.common.support.Convert; import com.ruoyi.common.utils.ChineseCharacterUtil; import com.ruoyi.common.utils.PasswordUtil; import com.ruoyi.common.utils.Ser...
package com.example.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.ComposePathEffect; import android.graphics.CornerPathEffect; import android.graphics.DashPathEffect; import android.graphics.DiscretePathEffect; import android.graphics.Paint...
package io.quarkus.extest.runtime; import org.jboss.logging.Logger; import io.quarkus.arc.runtime.BeanContainer; import io.quarkus.arc.runtime.BeanContainerListener; import io.quarkus.runtime.annotations.Template; /** * The runtime template */ @Template public class TestTemplate { static final Logger log = Log...
/* * 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...
/* * Copyright (c) 2018, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory * CODE-743439. * All rights reserved. * This file is part of CCT. For details, see https://github.com/LLNL/coda-calibration-tool. * * Licensed under the Apache License, Version 2.0 (the “Licensee...
/* * This file is part of the DiscordSRV API, licensed under the MIT License * Copyright (c) 2016-2022 Austin "Scarsz" Shapiro, Henri "Vankka" Schubin and DiscordSRV contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (...
package com.haha.baselibrary.ioc; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Author: Yp_Love * Date 2019-04-14 * Description: */ //@Target(ElementType.FIELD)代表Annotation的位置 FIELD代表的属性 TYP...
/** * 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 compli...
/* Copyright 2005 Simon Mieth 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 wri...
package randoop.main; import static org.junit.Assert.fail; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.apache.commons.exec.CommandLine; import org.apache.commons.exec.DefaultExecuteResultHandler; import org.ap...
// SPDX-FileCopyrightText: 2020 Alliander N.V. // // SPDX-License-Identifier: Apache-2.0 package org.lfenergy.compas.database; import java.io.*; import java.net.*; import java.nio.charset.*; import java.security.*; import java.util.*; /** * Java client for BaseX. * Works with BaseX 7.0 and later * * Documentatio...
public class Timer { private float limit = 0f; private float lastT = 0f; private boolean autoReset = false; Timer(float limit, boolean autoReset) { this.limit = limit; this.autoReset = autoReset; } Timer(float limit) { this.limit = limit; } public void reset(float t) { lastT = t; }...
/****************************************************************************** * Spine Runtimes Software License * Version 2.3 * * Copyright (c) 2013-2015, Esoteric Software * All rights reserved. * * You are granted a perpetual, non-exclusive, non-sublicensable and * non-transferable license to use, install...
package example.command.fun; import com.jockie.bot.core.command.argument.Argument; import com.jockie.bot.core.command.impl.CommandImpl; import net.dv8tion.jda.core.events.message.MessageReceivedEvent; public class CommandAddTwo extends CommandImpl { public CommandAddTwo() { super("add two"); super.setDescri...
/* * 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...
/* * 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.gminchev.notification; 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.assertEquals; /** * Instrumented test, which will ...
package org.egov.collection.util; import java.util.UUID; import org.egov.collection.model.AuditDetails; import org.egov.collection.model.enums.RemittanceStatus; import org.egov.collection.web.contract.Remittance; import org.egov.collection.web.contract.RemittanceDetail; import org.egov.collection.web.contract.Remitta...
/** * 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...
/* * Copyright (c) 2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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...
package org.chip; import org.openjdk.jmh.annotations.*; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; impor...
package spot.pages.admin; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import org.openqa.selenium.support.ui.Select; import spot.pages.BasePage; public class CreateStatementPage extends BasePage...
package applica.guards.admin.fields.renderers; import applica.framework.library.SimpleItem; import applica.framework.widgets.fields.renderers.SelectFieldRenderer; import org.springframework.stereotype.Component; import java.util.Arrays; import java.util.List; /** * Applica (www.applicadoit.com) * User: bimbobruno ...
package com.walmartlabs.concord.plugins.smtp; /*- * ***** * Concord * ----- * Copyright (C) 2017 - 2018 Walmart 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 * * ...
package sun.net.www.protocol.x; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.UrlResource; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; /** * X {@link URLConnection} 实现 * * @author <a href="mailto:mercyblitz@...
package com.example.andrew.taskscheduler; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() ...
/** * Copyright (C) 2018-2022 * All rights reserved, Designed By www.yixiang.co * 注意: * 本软件为www.yixiang.co开发研制 */ package co.yixiang.modules.shop.service.mapper; import co.yixiang.common.mapper.CoreMapper; import co.yixiang.modules.shop.domain.YxStoreProductAttr; import org.apache.ibatis.annotations.Mapper; impor...
package com.googlecode.jmxtrans.model; public class ValidationException extends Exception { private final Query query; public ValidationException(String msg, Query query) { super(msg); this.query = query; } public Query getQuery() { return query; } }
// Copyright 2000-2020 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.internal.statistic.service.fus.collectors; import com.intellij.internal.statistic.beans.MetricEvent; import com.intellij.internal.statistic.eventLog.EventLog...
package com.fasterxml.jackson.dataformat.xml.lists; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; ...
package org.radargun.stages.query; import java.util.concurrent.atomic.AtomicIntegerArray; import org.radargun.Operation; import org.radargun.logging.Log; import org.radargun.logging.LogFactory; import org.radargun.stages.test.OperationLogic; import org.radargun.stages.test.Stressor; import org.radargun.traits.Query; ...
package com.songyuankun.wechat.enums; import lombok.Getter; @Getter public enum WeChatUrlEnum { /** * 添加永久素材 */ ADD_NEWS("https://api.weixin.qq.com/cgi-bin/material/add_news"), ADD_MATERIAL("https://api.weixin.qq.com/cgi-bin/material/add_material"), UPLOAD_IMG("https://api.weixin.qq.com/cg...
/* * 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...
package com.wangchl.thread.domain; /** *要求框架使用者实现的任务接口,因为任务的性质在调用时才知道, *所以传入的参数和方法的返回值均使用泛型 */ public interface ITaskProcesser<T, R> { TaskResult<R> taskExecute(T data); }
package Prova1_q2; public class Competicao { private String nome, distancia, data, colocacao, melhorColocacao; public String[] toArray(){ String[] dados = new String[6]; dados[0] = getNome(); dados[1] = getData(); dados[2] = getDistancia(); dados[3] = getColocacao(); dados[4] = getMelhorColocacao(); ...
package seedu.address.logic.commands.statistics; import static java.util.Objects.requireNonNull; import seedu.address.logic.commands.Command; import seedu.address.logic.commands.CommandResult; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.Model; import seedu.address.model...
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.security.future; import java.util.Map; import org.joda.beans.BeanBuilder; import org.joda.beans.BeanDefinition; import org.joda.beans.JodaBeanUtils;...
/*** * ASM: a very small and fast Java bytecode manipulation framework * Copyright (c) 2000-2011 INRIA, France Telecom * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistribution...
/* * 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 ...
/* * Copyright 2019 Vizerium, 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 ...
package org.linphone.core; import android.hardware.Camera; import android.media.AudioManager; import android.os.Build; import org.apache.commons.lang3.StringUtils; import org.linphone.mediastream.Version; public final class Hacks { private Hacks() { } public static void dumpDeviceInformation() { ...
package com.jpa.test.repository; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.xpath; import org.junit.Before...
package com.tomgibara.hashing; import java.math.BigInteger; import java.util.Arrays; final class IntHasher<T> implements Hasher<T> { // statics private static final IntHasher<?> object = new IntHasher<>(v -> v == null ? 0 : v.hashCode()); private static final IntHasher<?> identity = new IntHasher<>...
package memoizrlabs.com.a20.util7.util3.util6; import java.util.ArrayList; import java.util.List; public class Ex19 { public void perform2() { List<String> list = new ArrayList<>(); for (String i : list) { System.out.println(list); } } public void perform3() { ...
/* * Copyright (c) 2019, 2021 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: ...
package com.example.mymicroservice; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class Course { @Id @GeneratedValue Long id; String title; int minEnrollment; int maxEnrollment; public Long getId() { return id; ...
package custom_exception; import custom_exception.exceptions.TempTooHighException; import custom_exception.exceptions.TempTooLowException; public class Thermostat { // 예외처리 throw는 해당 예외 처리를 이 메소드를 호출할때 처리하도록 함 public void setTemperature(double temperature) throws TempTooLowException, TempTooHighException { s...
/* * [New BSD License] <<<<<<< HEAD * Copyright (c) 2011-2012, Brackit Project Team <info@brackit.org> * All rights reserved. * ======= * Copyright (c) 2011-2012, Brackit Project Team <info@brackit.org> * All rights reserved. * >>>>>>> upstream/master * Redistribution and use in source and binary forms, with or...
/* * 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...
/* * Copyright 2016 Code Above Lab 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 agr...
package p005cm.aptoide.p006pt.app; import java.util.List; import org.jacoco.agent.p025rt.internal_8ff85ea.Offline; import p005cm.aptoide.p006pt.app.view.donations.Donation; import p005cm.aptoide.p006pt.app.view.donations.DonationsService; import p026rx.Single; /* renamed from: cm.aptoide.pt.app.AppCoinsManager */ pub...
/* * Copyright (c) 2022 Rollczi */ package dev.rollczi.antilegs.commands; import dev.rollczi.antilegs.config.PluginConfig; import dev.rollczi.litecommands.valid.messages.LiteMessage; import dev.rollczi.litecommands.valid.messages.MessageInfoContext; import panda.utilities.text.Joiner; public class LitePermissionMe...
package com.haulmont.cuba.core.global.queryconditions; import com.google.common.base.Strings; import javax.annotation.Nullable; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Condition that represents parts of a JPQL query: "where" and option...
package org.andengine.engine.options.resolutionpolicy; import org.andengine.opengl.view.RenderSurfaceView; import android.view.View.MeasureSpec; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 11:23:00 - 29.03.2010 */ public class RatioResolutionPolicy extends Base...
//,temp,sample_5054.java,2,8,temp,sample_3389.java,2,10 //,3 public class xxx { public void exceptionCaught(IoSession session, Throwable cause) throws Exception { if (cause instanceof IOException) { log.info("ioexceptions are automatically handled by mina"); } } };
package org.wildfly.swarm.ts.javaee.jaxrs.jsonb; import com.google.gson.JsonElement; import com.google.gson.JsonParser; import org.apache.http.client.fluent.Request; import org.jboss.arquillian.container.test.api.RunAsClient; import org.jboss.arquillian.junit.Arquillian; import org.junit.Test; import org.junit.runner....
package com.jamieswhiteshirt.hardhatsteve.common.item; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.entity.EquipmentSlot; import net.minecraft.item.ArmorMaterial; import net.minecraft.recipe.Ingredient; import net.minecraft.sound.SoundEvent; import net.minecraft.util.Lazy;...
class e0BG3 { } class pq3GK8 { } class QOLBYHZDjRPIL { public static void wGON (String[] jm29U) { void[][][] c = new void[ -l5()[ 932.uY9Lc()]].EPkIkeCgBYOL(); int[] UYVKofWR; void xSVomuF = false.SmLvJkLNdkSa = -this.rv6RpPfHTp; void[] haiw = -true.xLsb6tQqUn(); VDN...
/** * Copyright (c) 2003-2005 , David A. Czarnecki * All rights reserved. * * Portions Copyright (c) 2003-2005 by Mark Lussier * * 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...
package my.admin.core.exception; public class BusinessException extends RuntimeException { public BusinessException(String msg) { super(msg); } }
/* * Copyright 2002-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package org.webswing.toolkit; import java.awt.Cursor; import java.awt.datatransfer.Transferable; import java.awt.dnd.DragGestureEvent; import java.awt.dnd.InvalidDnDOperationException; import java.util.Map; import org.webswing.toolkit.util.Util; @SuppressWarnings("restriction") public class WebDragSourceContextPeer ...
package com.aek.ebey.assets.service.feign; import java.util.List; import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestMapping; import ...
/* * 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 itx.examples.springboot.security.springsecurity.config; import itx.examples.springboot.security.springsecurity.services.UserAccessService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annot...
package com.quorum.tessera.api.exception; import com.quorum.tessera.enclave.EnclaveNotAvailableException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import javax.ws.rs.ext.ExceptionMapper; impor...
package com.yyxnb.rx.task; /** * 通用的Rx异步执行任务,在io线程中进行数据处理,在ui线程中刷新ui */ public abstract class RxAsyncTask<T, R> implements IRxIOTask<T, R>, IRxUITask<R> { /** * IO执行任务的入参 */ private T InData; /** * IO执行任务的出参,UI执行任务的入参 */ private R OutData; public RxAsyncTask(T inData) { ...
/* * Copyright 2016 Victor Albertos * * 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.zou.designPattern.create.abstractFactory; import com.zou.designPattern.entity.Fruit; public class AbstractFactoryTest { public static void main(String[] args) { AbstractFactory appleFactory = new AppleFactory(); Fruit fruit = appleFactory.getFruit(); fruit.draw(); Bag ...
/** * Copyright (C) 2014 Xillio (support@xillio.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* 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...
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.com/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
/* * Copyright (c) 2019-2020. Ivan Vakhrushev and others. * https://github.com/mfvanek/pg-index-health * * This file is a part of "pg-index-health" - a Java library for * analyzing and maintaining indexes health in PostgreSQL databases. * * Licensed under the Apache License 2.0 */ package io.github.mfvanek.pg....
/******************************************************************************* * Copyright (c) 2000, 2011 IBM Corporation and others. * 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, an...
/* * Copyright 2020 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 i...
/* * 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 ...
/* * Copyright 2006-2021 The JGUIraffe Team. * * 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...
package com.algamoneyapi.model; import javax.annotation.Generated; import javax.persistence.metamodel.SingularAttribute; import javax.persistence.metamodel.StaticMetamodel; @Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") @StaticMetamodel(Permissao.class) public abstract class Permissao_ { ...
/* * 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.axway.apim.adapter.jackson; import java.io.IOException; import com.axway.apim.api.model.User; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; public class UserSerializer extends StdSeri...
package org.yarnandtail.andhow.api; /** * Trims raw Strings brought in by Loaders to remove whitespace. * * @author ericeverman */ public interface Trimmer { /** * Trims the raw string to remove whitespace * * @param raw Null and empty strings will generally return null unless noted. * @return A strin...
/** * Passwords lab for CS 1. * * In this lab, you will write methods that will simulate account creation and passwords in order to practice working with classes and branching. * * @author Clay_Roberson * clayroby@rams.colostate.edu * @version 202010 */ import java.util.Random; import java.util.Scanner...
package org.cugos.parboiledwkt; import org.junit.Test; import org.parboiled.Parboiled; import org.parboiled.parserunners.ReportingParseRunner; import org.parboiled.support.ParsingResult; import static org.junit.Assert.*; public class PolyHedralSurfaceTest { @Test public void empty() { WKTParser pars...
import vtk.vtkNativeLibrary; import vtk.vtkRenderWindow; import vtk.vtkRenderWindowInteractor; import vtk.vtkRenderer; import vtk.vtkActor; import vtk.vtkNamedColors; import vtk.vtkPolyDataMapper; import vtk.vtkMultiBlockPLOT3DReader; import vtk.vtkStructuredGridGeometryFilter; public class ReadPLOT3D { // --------...
/* * Copyright 2020, 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...
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
package edu.utn.error; import java.util.HashMap; public class OperationError { private HashMap<Integer, String> errors; public HashMap<Integer, String> getErrors() { if (errors == null) { errors = new HashMap<>(); } return errors; } ...
/* * Copyright (C) 2011 Benoit GUEROUT <bguerout at gmail dot com> and Yves AMSELLEM <amsellem dot yves at gmail dot com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:/...
package app.commerceio.spring.data.search; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class MapperTest { @Test void flatMapper() { Mapper mapper = Mapper.flatMapper() .mapping("address.streetNumber", "addressEntity.streetNumber", n...
/* 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 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 ...
/* * 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 2018, Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.operator.common.process; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import java.io.File; import java.io.IOExcepti...
package com.pizzaiolo.authorization.services.interfaces; import com.pizzaiolo.authorization.exceptions.ResourceNotFoundException; import java.util.List; import com.pizzaiolo.authorization.models.dtos.UpdatePasswordDto; import com.pizzaiolo.authorization.models.dtos.UpdateRolDto; import com.pizzaiolo.authorization.mod...
package com.helloweather.android.hello_db; import org.litepal.crud.DataSupport; public class County extends DataSupport { private int id; private String countyName; private String weatherId; private int locationId; public void setId(int id) { this.id = id; } public int getId() { ...
/* * Copyright (C) 2013-2015 RoboVM AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...