text
stringlengths
7
995k
package com.mliuxb.okhttpdemo0923; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.webkit.WebView; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; public class GetSyncActivity extends AppCompatActivity { private stat...
/* * This Java source file was generated by the Gradle 'init' task. */ package com.github.negokaz.wiremock.transformer; import com.github.tomakehurst.wiremock.junit.WireMockRule; import io.restassured.RestAssured; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import static com.github.tomakeh...
package io.spotnext.core.infrastructure.maven.xml; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for Val...
package br.jus.tst.esocialjt.negocio; import java.util.ArrayList; import java.util.List; import javax.persistence.EntityManager; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springfr...
// // ======================================================================== // Copyright (c) 1995-2019 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the ter...
package com.dogukano.csvassessment.model; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.math.BigDecimal; import java.util.Date; import ...
/* * Copyright 2012-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
package net.gegy1000.earth.server.world.data.op; import net.gegy1000.terrarium.server.world.data.DataOp; import net.gegy1000.terrarium.server.world.data.raster.FloatRaster; import net.gegy1000.terrarium.server.world.data.raster.ShortRaster; import net.minecraft.util.math.MathHelper; public final class ScaleValueOp { ...
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package android.support.coreutils; public final class R { public static final class attr { public static final int font = 0...
/* * Copyright 2016 The gRPC 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 agree...
/* * ==================================================================== * 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 license...
import java.util.concurrent.Semaphore; public class worker2 extends Thread { private Semaphore s0; private Semaphore s1; private Semaphore s2; private String sw; private int period = 100; public worker2(Semaphore sa, Semaphore sb, Semaphore sc, int p, String st){ s0 = sa; s1 = sb; s2 = sc; period = p; ...
package org.motechproject.mds.exception.object; import org.motechproject.mds.exception.MdsException; /** * Thrown when there was a problem with property creation. */ public class PropertyCreationException extends MdsException { private static final long serialVersionUID = 7421929879285823353L; public Prop...
// 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 writi...
/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ package org.appcelerator.titanium.util; import java.io.BufferedInputStream; impo...
/** * Copyright (c) 2016 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 applicab...
/** * Copyright © 2020 ForgeRock AS (obst@forgerock.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...
/* * Copyright (c) 2020. AxonIQ * * 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...
package com.sloth.functions.http; import com.sloth.functions.http.AbsDefaultApiModule; /** * Author: Carl * Version V1.0 * Date: 2020/9/29 19:07 * Description: * Modification History: * Date Author Version Description * -----------------------------------------------------...
/* * 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 Pravega Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/*********************************************************************************************************************** * Copyright (C) 2010-2013 by the Stratosphere project (http://stratosphere.eu) * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi...
/* * Copyright (C) 2014 The Android Open Source Project * Copyright (c) 1994, 2013, 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 Publi...
package ru.job4j.array; public class MatrixCheck { public static boolean isWin(char[][] board) { boolean result = false; int countRow; int countCell; for (int row = 0; row < board.length; row++) { countRow = 0; countCell = 0; for (int cell = 0; ce...
/* * Copyright (c) 2010-2022 Mark Allen, Norbert Bartels. * * 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, ...
/** * Copyright (C) 2011 Pierre-Yves Ricau (py.ricau at gmail.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 ...
package com.github.wz2cool.dynamic.model; /** * @author Frank */ public class PropertyInfo { private String propertyName; private Class ownerClass; public String getPropertyName() { return propertyName; } public void setPropertyName(String propertyName) { this.propertyName = pro...
package bio.singa.mathematics.combinatorics; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; import static org.junit.jupiter.api.Assertions.assertEquals; import static org...
/* * 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) 2015 Red Hat, 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...
package ru.ztrap.rxslideup; import android.os.Looper; import io.reactivex.Observer; /** * @author zTrap * date 30.05.2017. */ final class ThreadUtils { static boolean checkNotMainThread(Observer<?> observer) { if (Looper.myLooper() != Looper.getMainLooper()) { observer.onError(new Ill...
package com.atguigu.gulimall.product.dao; import com.atguigu.gulimall.product.entity.AttrAttrgroupRelationEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 属性&属性分组关联 * * @author yjh * @email y1291249384@gmail.com * @date 2021-12-22 20:05:04 */ @M...
/* * 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");...
/* * 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 @ 2015 Atlassian Pty 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 ag...
/*************************************************************************** * Copyright 2017 Kieker Project (http://kieker-monitoring.net) * * 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 a...
package com.huaweicloud.sdk.projectman.v4.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Objects; import java.util.function.Consumer; /** Request Object */ public class ListProjectWorkHoursRequest { @JsonInclude(JsonInclude.Incl...
package testRetroFit; import android.app.Fragment; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Typeface; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Vi...
/* * This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file * at the root of this project for more details. */ package io.github.nucleuspowered.nucleus.api.core.exception; /** * Exception that indicates that the modules have already been loaded and can no longer be altered. *...
/* * JBoss, Home of Professional Open Source. * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify i...
package top.ctong.gulimall.product.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.healthcareapis.generated; import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections ListByService. */ publ...
package May2021GoogLeetcode; public class _0551StudentAttendanceRecordI { public static void main(String[] args) { System.out.println(checkRecord("PPALLP")); System.out.println(checkRecord("PPALLL")); } public static boolean checkRecord(String s) { } }
/** * 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...
/* * @(#)XMMConstants.java 2010-5-27 * * Copyright (C) 2008-2011, * LingCloud Team, * Institute of Computing Technology, * Chinese Academy of Sciences. * P.O.Box 2704, 100190, Beijing, China. * * http://lingcloud.org * */ package org.lingcloud.molva.xmm.util; /** * <strong>Purpose:</strong><br> ...
/* * 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 The ModiTect 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 l...
package org.ilastik.ilastik4ij; import io.scif.io.ByteArrayHandle; import io.scif.io.IRandomAccess; import net.imagej.Dataset; import net.imagej.ImageJ; import net.imagej.ImgPlus; import net.imglib2.img.display.imagej.ImageJFunctions; import net.imglib2.type.NativeType; import net.imglib2.type.numeric.RealType; 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 ...
/** * This document is a part of the source code and related artifacts * for CollectionSpace, an open source collections management system * for museums and related institutions: * * http://www.collectionspace.org * http://wiki.collectionspace.org * * Copyright 2009 University of California at Berkeley *...
/* * #%L * ********************************************************************************************************************* * * NorthernWind - lightweight CMS * http://northernwind.tidalwave.it - git clone https://bitbucket.org/tidalwave/northernwind-src.git * %% * Copyright (C) 2011 - 2021 Tidalwave s.a.s....
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v9/common/offline_user_data.proto package com.google.ads.googleads.v9.common; public interface UserAttributeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v9.common.UserAttribute) ...
/* * Copyright (c) 2016 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.security.api; import java.util.Collection; /** * @author semancik * */ @FunctionalInterface public i...
package com.alipay.api.response; import com.alipay.api.AlipayResponse; /** * ALIPAY API: koubei.marketing.campaign.member.template.bind response. * * @author auto create * @since 1.0, 2019-01-07 20:51:15 */ public class KoubeiMarketingCampaignMemberTemplateBindResponse extends AlipayResponse { private stat...
/** * File Name: ByteUtils.java * Date: 2019-08-21 14:35:52 */ package me.belucky.easytool.util; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOExc...
package di.uoa.gr.m151.socialapp.service; import di.uoa.gr.m151.socialapp.DTO.FeedPostDTO; import di.uoa.gr.m151.socialapp.DTO.FeedReactionDTO; import di.uoa.gr.m151.socialapp.Helper.FeedPostDTOComparator; import di.uoa.gr.m151.socialapp.Helper.InitialDummyScoringStrategy; import di.uoa.gr.m151.socialapp.Helper.Scorin...
package ru.dpohvar.varscript.caller; import ru.dpohvar.varscript.workspace.CallerScript; public class FlushTask implements Runnable{ private final CallerScript caller; public FlushTask(CallerScript script) { this.caller = script; } @Override public void run() { caller.flush(); ...
package net.gvsun.gswork.vo.common; import java.io.Serializable; public class AuthorityVo implements Serializable { private Integer id; private String authorityName; private String cname; private Integer userCount; private Integer nowAuthority; private String authorityType; public Integer...
/** * Copyright (c) 2016-2020, Mihai Emil Andronache * 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 of source code must retain the above copyright notice, this * list o...
/* * Copyright (c) 2016 Razeware LLC * * 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, publis...
package org.geojson.jackson; import com.fasterxml.jackson.databind.ObjectMapper; import org.geojson.GeoJsonObject; import org.geojson.Coordinate; import org.geojson.Point; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.as...
package br.com.alura.cliente; import java.io.IOException; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.fluent.Form; import org.apache.http.client.fluent.Request; public class ClienteWebService { public static void main(String[] args) throws Exception { String conteudo = R...
package fr.insa.h4401.gfaim; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.AsyncTask; import java.io.IOException; import java.net.URL; /** * Created by Pierre on 02/01/2016. */ public class BitmapGetter extends AsyncTask<URL, Void, Bitmap> { @Override protected Bi...
package com.zuehlke.carrera.javapilot.services; import akka.actor.ActorRef; import com.zuehlke.carrera.relayapi.messages.*; import com.zuehlke.carrera.simulator.config.SimulatorProperties; import com.zuehlke.carrera.simulator.model.PilotInterface; import com.zuehlke.carrera.simulator.model.RaceTrackSimulatorSystem; im...
package uk.co.ribot.androidboilerplate.util; import android.annotation.TargetApi; import android.app.Activity; import android.app.ActivityManager; import android.content.ContentResolver; import android.content.ContentUris; import android.content.Context; import android.content.Intent; import android.content.pm.Applica...
/* * Copyright 2021 LinkedIn Corp. * * 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...
package org.nutz.castor.castor; import java.sql.Timestamp; import java.util.Calendar; import org.nutz.castor.Castor; public class Timestamp2Calendar extends Castor<Timestamp, Calendar> { @Override public Calendar cast(Timestamp src, Class<?> toType, String... args) { Calendar c = Calendar.getInstance(); c.set...
package com.yydcdut.demo; import android.content.pm.ApplicationInfo; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget....
/* * Copyright 2019-2020 Zheng Jie * * 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 agree...
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package io.quarkus.quartz.runtime; import java.util.Map; import java.util.Optional; import io.quarkus.runtime.annotations.ConfigDocMapKey; import io.quarkus.runtime.annotations.ConfigItem; import io.quarkus.runtime.annotations.ConfigPhase; import io.quarkus.runtime.annotations.ConfigRoot; @ConfigRoot(phase = ConfigP...
/* * Copyright (C) 2020 Temporal Technologies, Inc. All Rights Reserved. * * Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Modifications copyright (C) 2017 Uber Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not * use this f...
package nl.arjanfrans.maze.game.data; import com.badlogic.gdx.math.MathUtils; import nl.arjanfrans.maze.assets.Assets; import nl.arjanfrans.maze.game.data.characters.Arjan; import nl.arjanfrans.maze.game.events.NextLevel; import nl.arjanfrans.maze.game.events.StartLevel; import nl.arjanfrans.maze.game.map.EventTile; i...
/** * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.financial.credit.creditdefaultswapoption.greeks; /** * */ public class ThetaCreditDefaultSwapOption { }
package org.hl7.fhir.r4.model.codesystems; /* Copyright (c) 2011+, HL7, Inc. 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 of source code must retain the above copyr...
/* * MIT License * * Copyright (c) 2017 * * 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, p...
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
/* * Licensed 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.rtk.simpleconfig_wizard; import android.graphics.drawable.Drawable; public class ConfigurationDevice { public static class DeviceInfo { private int aliveFlag; private String name; private String IP; private String macAdrress; private int securityType; private Drawable img; private boolea...
/******************************************************************************* * 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 (c) 2017 FIRST. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaimer below) provided that * the following conditions are met: * * Redistributions of source code must retain the above cop...
package io.swagger.client.model; import io.swagger.client.model.Category; import java.util.*; import io.swagger.client.model.Tag; import io.swagger.annotations.*; import com.google.gson.annotations.SerializedName; @ApiModel(description = "") public class Pet { /** **/ @ApiModelProperty(value = "...
/*-------------------------------------------------------------------------+ | | | Copyright 2005-2011 The ConQAT Project | | | | Licensed u...
package net.minecraft.entity.ai.brain.task; import com.google.common.collect.ImmutableMap; import java.util.Optional; import net.minecraft.entity.ai.brain.BrainUtil; import net.minecraft.entity.ai.brain.memory.MemoryModuleStatus; import net.minecraft.entity.ai.brain.memory.MemoryModuleType; import net.minecraft.entity...
/** * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending */ package io.deephaven.uri.resolver; import java.net.URI; import java.util.Set; /** * A URI resolver resolves {@link URI URIs} into {@link Object objects}. */ public interface UriResolver { /** * The supported schemes. * * @...
package com.vladsch.flexmark.html; import com.vladsch.flexmark.html.renderer.DelegatingNodeRendererFactory; import com.vladsch.flexmark.html.renderer.NodeRenderer; import com.vladsch.flexmark.html.renderer.NodeRendererFactory; import com.vladsch.flexmark.util.data.DataHolder; import com.vladsch.flexmark.util.dependenc...
/* * Copyright (c) 2000, 2013, 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 ...
package uk.co.caeldev.builder4test; import java.util.function.Function; public class ListBuilder<K> { private final Function<LookUp, K> creator; private ListBuilder(Function<LookUp, K> creator) { this.creator = creator; } protected static <K> ListBuilder<K> listBuilder(Function<LookUp, K> c...
package org.ent.net.io.parser; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; import java.util.List; import java.util.Map; import java.util.Set; import org.ent.net.Manner; import org.ent.net.Net; import org.ent.net.node.BNode; import org.en...
/** * OpenAtlasForAndroid Project * The MIT License (MIT) Copyright (OpenAtlasForAndroid) 2015 Bunny Blue,achellies * <p> * 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 restric...
/* * 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...
package com.manso.mytickets.utils; import com.google.zxing.BarcodeFormat; import com.google.zxing.MultiFormatWriter; import com.google.zxing.WriterException; import com.google.zxing.common.BitMatrix; import android.content.Context; import android.graphics.Bitmap; import android.util.DisplayMetrics; public class Barc...
package com.cashier.util; import java.security.MessageDigest; public class MD5Util { /*** * MD5加密 生成32位md5码 * @param 待加密字符串 * @return 返回32位md5码 */ public static String md5Encode(String inStr) throws Exception { MessageDigest md5 = null; try { md5 = MessageDiges...
/** * This file is licensed under the University of Illinois/NCSA Open Source License. See LICENSE.TXT for details. */ package edu.illinois.keshmesh.detector.tests.lck06j; import org.junit.Before; /** * * @author Mohsen Vakilian * @author Stas Negara * */ public class LCK06JTests { public static class LCK0...
/* * Copyright 2018 tomoncle * * 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 w...
package com.shailendher.tracer.util; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import com.google.common.base.Stopwatch; import me.tongfei.progressbar.ProgressBar; public class Statistics { private static Stopwatch stopwatch = Stopwatch.createUnstarted(); //delegate ...
package com.blog.controller.portal; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.blog.controller.ServletImpl; import co...
/* * 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.example.kelly.mmelk.data; import android.content.Context; import android.util.Log; import com.github.mikephil.charting.components.AxisBase; import com.github.mikephil.charting.formatter.IAxisValueFormatter; /** * Created by Mahesh Gaya on 12/13/16. */ /** * custom Axis formatter for x-axis */ public...
package com.github.daggerok.resources; import com.github.daggerok.services.MyBusinessLogic; import javax.ejb.Stateless; import javax.inject.Inject; import javax.json.Json; import javax.json.JsonObject; import javax.ws.rs.Consumes; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import j...