text stringlengths 7 995k |
|---|
/* 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 gwt.material.design.demo.client.application.dto;
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2016 GwtMaterialDesign
* %%
* 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
... |
/*
* Copyright (c) 2012, Apptentive, Inc. All Rights Reserved.
* Please refer to the LICENSE file for the terms and conditions
* under which redistribution and use of this file is permitted.
*/
package com.apptentive.android.dev;
import android.content.ActivityNotFoundException;
import android.content.ComponentNa... |
package com.bergerkiller.templates;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.bergerkiller.bukkit.common.Common;
import com.bergerkiller.bukkit.common.server.CommonServer;
import com.bergerki... |
/*******************************************************************************
* 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.
*
*... |
// Copyright 2018 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.bitmovin.api.sdk.encoding.configurations.audio.dolbyDigital;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import feign.Param;
import feign.QueryMap;
import feign.RequestLine;
import feign.Body;
import feign.Headers;
import com.bitmovin.api.sdk.model.*;
imp... |
package sayHelloExtended;
public class Chinese extends BasePerson implements Person {
public Chinese(String name) {
super(name);
}
@Override
public String sayHello() {
return "Djydjybydjy";
}
} |
package edu.escuelaing.arem.app;
import org.junit.Assert;
import org.junit.Test;
/**
* Unit test for simple App.
*/
public class AppTest{
/**
* Test for add Nodes in the LinkedList
*/
@Test
public void deberiaAgregarNodo(){
LinkedList lista = new LinkedList();
lista.addNode((... |
package com.tritondigital.sdksample.player;
import android.os.Bundle;
import androidx.mediarouter.media.MediaItemMetadata;
import android.widget.EditText;
import com.tritondigital.player.StreamUrlBuilder;
import com.tritondigital.player.TritonPlayer;
import com.tritondigital.sdksample.R;
import com.tritondigital.util... |
package com.java3y.austin.handler.deduplication.limit;
import cn.hutool.core.util.IdUtil;
import com.java3y.austin.common.domain.TaskInfo;
import com.java3y.austin.handler.deduplication.DeduplicationParam;
import com.java3y.austin.handler.deduplication.service.AbstractDeduplicationService;
import com.java3y.austin.sup... |
/*
*
* Copyright 2008 The Ant-Contrib 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 applica... |
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (4.3.1).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.redhat.mercury.service.contactdialog.handler;
import com.redhat.mercury.service.contactdialog.model.InlineObject;
import com.redh... |
/*******************************************************************************
* Copyright (c) 2010 Haifeng Li
*
* 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... |
/*
* 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.lamdaer.polyv.live.bean.request.interactive;
import cn.hutool.json.JSONUtil;
import com.lamdaer.polyv.live.bean.request.PolyvLiveBaseRequest;
import java.util.ArrayList;
/**
* 设置抽奖中奖者信息
* http://dev.polyv.net/2019/liveproduct/l-api/zbhd/tjzjxx/
*
* @author lamdaer
* createTime 2020/5/22
*/
public c... |
package com.project.convertedCode.globalNamespace.functions;
import com.project.convertedCode.globalNamespace.namespaces.PHPUnit.namespaces.Framework.classes.Assert;
import com.runtimeconverter.runtime.tools.PackedVaradicArgs;
import com.runtimeconverter.runtime.functions.FunctionBaseRegular;
import com.project.conver... |
package com.mantou.boot.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mantou.boot.dto.param.SysUserParamDTO;
import com.mantou.boot.entity.SysUser;
import java.util... |
package v11;
import java.io.*;
import java.nio.*;
import java.nio.channels.FileChannel;
public class ReadPrimesMixedData
{
public static void main(String[] args)
{
File aFile = new File("C:/Beg Java Stuff/primes.txt");
FileInputStream inFile = null;
try
{
inFile = new FileInputStream(aFil... |
package com.lframework.xingyun.api.bo.basedata.storecenter;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lframework.common.constants.StringPool;
import com.lframework.starter.mybatis.service.IUserService;
import com.lframework.starter.web.bo.BaseBo;
import com.lframework.starter.web.dto.UserDto;
impo... |
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.apachehttpclient.v4_0;
import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.implementsInterface;
import static io.opentelemetry.javaagent.extension.matcher... |
/**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.model.black;
import static com.opengamma.engine.value.ValueRequirementNames.PRESENT_VALUE;
import java.util.Collections;
import java.util.... |
/*
* Copyright 2019 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 applica... |
/*
* Original author: Daniel Jaschob <djaschob .at. uw.edu>
*
* Copyright 2018 University of Washington - Seattle, WA
*
* 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
*
* ... |
/**
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
*/
package com.jeesite.modules.aa.dao;
import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.aa.entity.CarInfo;
import com.jeesite.modules.aa.entity.Paper;
import org.apache.ibati... |
/*
* This file was last modified at 2021.03.07 23:13 by Victor N. Skurikhin.
* This is free and unencumbered software released into the public domain.
* For more information, please refer to <http://unlicense.org>
* RecordDaoImpl.java
* $Id$
*/
package su.svn.daybook.domain.dao.db.db.custom;
import io.r2dbc.spi... |
/*
Copyright 2013 Sebastián Katzer
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 ... |
/* Copyright (c) 2014, 2015 Qualcomm Technologies Inc
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... |
package com.stratagile.qlink.entity;
public class TransactionInfo {
private AllWallet.WalletType transactionType;
private String transactionToken;
private String transactionValue;
private String transationHash;
private String from;
private String to;
private long timestamp;
private Stri... |
package org.hl7.fhir.r5.model;
/*-
* #%L
* org.hl7.fhir.r5
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* 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.a... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
package org.glob3.mobile.generated;
public class ResizerImageBuilder_ImageListener extends IImageListener
{
private final String _imageName;
private IImageBuilderListener _listener;
private final boolean _deleteListener;
public ResizerImageBuilder_ImageListener(String imageName, IImageBuilderListener listener... |
package com.example.mdtest.PageThree;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import com.example.m... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 预点餐设置中,单个自提时段模型
*
* @author auto create
* @since 1.0, 2020-08-06 17:08:33
*/
public class TimePeriod extends AlipayObject {
private static final long serialVersionUID = 4819663356861735335L... |
/*
* TouchGraph Software License
*
*
* Copyright (c) 2001 Alexander Shapiro. 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. Redistributions of source code must retain the above c... |
package com.abmodi.trinity.expression;
import com.abmodi.trinity.expression.Expression;
public class Attribute extends Expression {
String name;
Expression child;
public Attribute(String name, Expression child) {
this.name = name;
this.child = child;
this.addChild(child);
}
... |
/*
* 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 ma... |
package org.bigdata.zczw.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import org.bigdata.zczw.R;
import io.rong.imkit.widget.AsyncImageView;
import io.rong.imlib.model.UserInfo;
/**
* Created by zhjchen on 8/12/15.
*/
public cl... |
/*
* 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 2020 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package com.google.cloud.healthcare.fdamystudies.model;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.... |
/**
* Copyright 2015-2016 Red Hat, Inc, and individual contributors.
*
* 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.kickstarter.libs;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.kickstarter.libs... |
/**
* Copyright (c) 2011 Martin Geisse
*
* This file is distributed under the terms of the MIT license.
*/
package name.martingeisse.reporting;
/**
* This class wraps an invocation ("cycle") of the reporting system and is
* used by the client to configure and run the reporting system.
*/
public class Reporting... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.packtpub.client.rpc;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.packtpub.client.dto.BranchDTO;
import com.packtpub.client.dto.UsersDTO;
import java.util.HashMap;
/**
*
* @author Sham... |
package com.java110.web.components.parkingArea;
import com.java110.core.context.IPageData;
import com.java110.web.smo.parkingArea.IAddParkingAreaSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
/**
* 添... |
/*
* Copyright 2002-2012 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... |
/*
* Copyright © EMC Corporation. All rights reserved.
*/
package radl.common.xml;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util... |
/**
* Copyright 2009 The Apache Software Foundation
*
* 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... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 The Voxel Plugineering Team
*
* 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 ri... |
package com.master.keymanagementserver.kms.helpers;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import static org.junit.Assert.assertEquals;
/**
* LogEncoderHelper Tester.
*
* @author <Authors name>
* @version 1.0
* @s... |
package frc.team555.robot.auto;
import frc.team555.robot.components.CubeIntake;
import frc.team555.robot.components.MainLift;
import frc.team555.robot.utils.Side;
import org.montclairrobotics.sprocket.auto.AutoMode;
import org.montclairrobotics.sprocket.auto.states.DriveEncoderGyro;
import org.montclairrobotics.sprock... |
package com.iaz.HIgister.data.model.LastFM;
import org.simpleframework.xml.Root;
@Root(name = "results", strict = false)
public class Results
{
private Trackmatches trackmatches;
public Trackmatches getTrackmatches ()
{
return trackmatches;
}
public void setTrackmatches (Trackmatches t... |
package com.github.yuri0x7c1.ofbiz.explorer.common.ui.view;
import org.vaadin.viritin.label.MLabel;
import org.vaadin.viritin.layouts.MHorizontalLayout;
import com.vaadin.shared.ui.MarginInfo;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Component;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.L... |
package eu.chargetime.ocpp.model.core;
import eu.chargetime.ocpp.PropertyConstraintException;
import eu.chargetime.ocpp.model.Validatable;
import eu.chargetime.ocpp.utilities.MoreObjects;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.Xml... |
/*
* Copyright 1999-2018 Alibaba Group Holding 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 applica... |
package com.jdd.free.ireader.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
imp... |
/*
* Copyright (c) 2017, 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.apache.org/li... |
/*******************************************************************************
* Copyright 2016, 2017 vanilladb.org contributors
*
* 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
*
* ... |
/*
* Copyright (C) 2020 by 52 North Initiative for Geospatial Open Source Software GmbH
*
* Contact: Andreas Wytzisk
* 52 North Initiative for Geospatial Open Source Software GmbH
* Martin-Luther-King-Weg 24
* 48155 Muenster, Germany
* info@52north.org
*
* Licensed under the Apache License, Version 2.0 (the "L... |
/*
* Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
/*
* This source code is provided to illustrate the usage of a given feature
* or technique and has b... |
/*
* Copyright (C) 2013 The Android Open Source Project
* Copyright (C) 2017 CentraleSupélec
*
* 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/LI... |
/*
* Copyright © 2021 ProStore
*
* 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... |
/*
* 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 (C) 2014 Divide.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import commands.*;
import coordinates.Coordinates;
import directions.Direction;
import plateaus.MarsPlateau;
import rovers.MarsRover;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
//CommandParser parser = new CommandParser();
//pa... |
/*
* Copyright 1997-2011 teatrove.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 applicable law o... |
/*
* Copyright (C) 2012 TopCoder Inc., All Rights Reserved.
*/
package gov.medicaid.controllers.admin;
import gov.medicaid.controllers.ControllerHelper;
import gov.medicaid.controllers.dto.StatusDTO;
import gov.medicaid.entities.CMSUser;
import gov.medicaid.entities.SearchResult;
import gov.medicaid.entities.UserSea... |
package com.grabarski.mateusz.domain;
/**
* Created by Mateusz Grabarski on 19.07.2018.
*/
public class CityNameDistrict {
private String name;
private String district;
public CityNameDistrict() {
}
public CityNameDistrict(String name, String district) {
this.name = name;
this.... |
/*
* 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.alipay.api.domain;
import java.util.Date;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 公奕测试
*
* @author auto create
* @since 1.0, 2020-06-10 10:14:01
*/
public class AlipayGongyi... |
/*******************************************************************************
* 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.
*
*... |
/**
* 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... |
/*
* #%L
* ImgLib2: a general-purpose, multidimensional image processing library.
* %%
* Copyright (C) 2009 - 2016 Tobias Pietzsch, Stephan Preibisch, Stephan Saalfeld,
* John Bogovic, Albert Cardona, Barry DeZonia, Christian Dietz, Jan Funke,
* Aivar Grislis, Jonathan Hale, Grant Harris, Stefan Helfrich, Mark Hi... |
/*
* Copyright 2015-present Facebook, 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... |
// @@@ START COPYRIGHT @@@
//
// 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... |
/**
* Copyright (c) 2011, SOCIETIES Consortium (WATERFORD INSTITUTE OF TECHNOLOGY (TSSG), HERIOT-WATT UNIVERSITY (HWU), SOLUTA.NET
* (SN), GERMAN AEROSPACE CENTRE (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.) (DLR), Zavod za varnostne tehnologije
* informacijske družbe in elektronsko poslovanje (SETCCE), INSTIT... |
package com.oocourse.uml2.utils.filesystem;
import java.io.File;
public class FileUtils {
/**
* 判断是否为文件
*
* @param filename 文件
* @return 是否为文件
*/
public static boolean isFile(String filename) {
return new File(filename).isFile();
}
/**
* 判断文件是否存在
*
* @p... |
/**
* Copyright 2015 David Karnok and 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
*
* Unless required by applicable l... |
package com.squins.common;
public class SomeClass {
public int sum(int x, int y) {
return 2;
}
public void referenceDrawableFromR() {
System.out.println("Reference drawable!" + com.squins.common.R.drawable.sample);
}
} |
package com.dianping.cat.consumer;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.Map;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.beanutils.Method... |
package cn.itcast_03;
import java.io.File;
import java.io.FilenameFilter;
/*
* 需求:请把d盘目录下所有的.jpg结尾的文件名称给输出出来
* A方案思路:
* 先获取所有的文件或者文件夹的File数组,在遍历的时候,依次判断,如果满足条件,就输出。
* B方案思路:
* 先判断满足条件吗?如果满足,就往数组里面方法,最后直接遍历即可。
*
* 要想实现B方案,就必须知道一个东西:FilenameFilter 文件名称过滤器。
*/
public class FileTest2 {
public static void mai... |
package interceptor;
import java.util.Map;
import javax.swing.JOptionPane;
import com.opensymphony.xwork2.*;
import com.opensymphony.xwork2.interceptor.Interceptor;
import entity.User;
public class ShopingIntercepter implements Interceptor{
public void destroy() {
// TODO Auto-generated method stub
}
public... |
package com.eduellery.reportaggregation.controller;
import com.eduellery.reportaggregation.model.Product;
import com.eduellery.reportaggregation.service.DummyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web... |
package com.sourcegraph.javagraph;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
/**
* This class generates Sourcefile for Android Support framework because it needs special treatment, such as
* - there is no need to r... |
package nerve.network.pocbft.model.dto.input;
/**
* 停止节点参数类
* Stop Node Parameter Class
*
* @author: Jason
* 2018/11/12
* */
public class StopAgentDTO {
private int chainId;
private String address;
private String password;
public int getChainId() {
return chainId;
}
public void s... |
/*
* Copyright 2014 Matteo Bernacchia <kikijikispaccaspecchi@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 ... |
package application.filters;
import domain.filters.INotifier;
import domain.filters.types.RangeFilter;
public class PriceFilter extends RangeFilter {
public PriceFilter(Object id, String name, INotifier notifier) {
super(id, name, notifier);
}
} |
//=============================================================================
// Copyright 2006-2010 Daniel W. Dyer
//
// 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.... |
package org.tlh.shopping.config;
import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation... |
package com.imooc.example.order.query;
import com.imooc.example.order.event.saga.OrderCreatedEvent;
import com.imooc.example.order.event.OrderFailedEvent;
import com.imooc.example.order.event.OrderFinishedEvent;
import com.imooc.example.user.event.saga.OrderPaidEvent;
import org.axonframework.eventhandling.EventHandl... |
/*
* Copyright 2017 Google LLC
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following discl... |
/**
* 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 fr.marissel.kafka;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class KafkaApplication {
public static void main(String[] args) {
SpringApplication.run(KafkaApplication.class, args);
}
} |
package seedu.scheduler.logic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.NoSuchElementException;
import org.junit.Before;
import ... |
package com.gbourquet.yaph.serveur.password.in;
import java.util.List;
import com.gbourquet.yaph.serveur.in.AbstractAction;
import com.gbourquet.yaph.serveur.metier.generated.PasswordCard;
import com.gbourquet.yaph.serveur.metier.generated.PasswordField;
import com.gbourquet.yaph.serveur.password.out.SavePasswordResu... |
/*
*
*
*
* Apache License
* Version 2.0, January 2004
* http://www.apache.org/licenses/
*
* TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
*
* 1. Definitions.
*
* "License" shall mean the term... |
/*********************************************************************************
* (Compare loans with various interest rates) Rewrite Programming Exercise 5.21 *
* to create a GUI, as shown in Figure 16.41b. Your program should let the user *
* enter the loan amount and loan period in the number of years from tex... |
/*
* Copyright 2020 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 a... |
/*
* 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 pja18_30042020.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.... |
/*
* MIT License
*
* Copyright (c) 2021 MASES s.r.l.
*
* 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, cop... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.