text stringlengths 10 2.72M |
|---|
package com.zubiri.geometria;
/*
* Clase para obtener resultados de distintas operaciones aritméticas.
*/
public class Circulo {
private double radio;
//Método que calcula el area de un circulo.
public double area () {
double result = 0;
result = this.getRadio()*this.getRadio()* Math.PI;
return result;
}
//... |
package cn.edu.ncu.collegesecondhand.ui.my.login;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
... |
package xdroid.adapter;
import android.view.View;
public interface IAdapter<D, V extends View> {
void setBinder(ViewBinder<D, V> binder);
void setViewTypeResolver(ViewTypeResolver<D> viewTypeResolver);
void setLayoutId(int layoutId);
void putLayoutId(int viewType, int layoutId);
}
|
package com.pykj.design.principle.dependenceinversion.example;
/**
* @description: TODO
* @author: zhangpengxiang
* @time: 2020/4/19 19:49
*/
public class Tom {
public void studyJavaCourse() {
System.out.println("Tom 在学习Java的课程");
}
public void studyPythonCourse() {
System.out.println... |
package com.awstechguide.cms.springjpah2.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.awstechguide.cms.springjpah2.entity.Role;
public interface RoleRepository extends JpaRepository<Role, Integer>{
Role findByRoleName(String name);
Role findByRoleCd(String role);
}
|
package lyrth.makanism.bot.commands.owner;
import discord4j.core.object.entity.channel.MessageChannel;
import lyrth.makanism.api.BotCommand;
import lyrth.makanism.api.GuildModule;
import lyrth.makanism.api.annotation.CommandInfo;
import lyrth.makanism.api.object.AccessLevel;
import lyrth.makanism.api.object.CommandCtx... |
package com.examples.mockito;
public class MyClass {
private int uniqueId;
private String thisString;
int getUniqueId() {
return uniqueId;
}
void setUniqueId(int uniqueId) {
this.uniqueId = uniqueId;
}
void testing(int uniqueId) {
this.uniqueId = uniqueId;
}
... |
package com.eshop.exception;
public class NoProductInBasketException extends RuntimeException {
}
|
package pl.dopiatku.byle.api;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class FrydayApplicationTests {
@Test
void contextLoads() {
}
}
|
package state;
import org.apache.flink.api.common.state.BroadcastState;
import org.apache.flink.api.common.state.MapStateDescriptor;
import org.apache.flink.api.common.state.ReadOnlyBroadcastState;
import org.apache.flink.streaming.api.datastream.BroadcastStream;
import org.apache.flink.streaming.api.datastream.DataSt... |
package com.giladkz.verticalEnsemble.Operators.UnaryOperators;
import com.giladkz.verticalEnsemble.Data.ColumnInfo;
import com.giladkz.verticalEnsemble.Data.Dataset;
import com.giladkz.verticalEnsemble.Operators.Operator;
import java.util.List;
/**
* Created by giladkatz on 20/02/2016.
*/
public abstract class Una... |
package com.esum.backup.vo;
import java.util.LinkedHashMap;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
/**
* Copyright(c) eSum Technologies., Inc. All rights reserved.
*/
public class IgnoreCaseMap extends LinkedHashMap<String, Object> {
private static final long serialVersionUID = 3478489... |
package com.fearefull.dotaanalyser;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import and... |
package com.cs.administration.player;
import com.cs.persistence.Country;
import com.cs.player.Address;
import com.cs.player.BasicAddressDto;
import org.hibernate.validator.constraints.NotEmpty;
import javax.annotation.Nonnull;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElem... |
package org.yxm.modules.ting;
import org.yxm.modules.ting.entity.ting.SongBillListEntity;
public interface IMusicView {
void onInitMusicListSuccess(SongBillListEntity songBillListEntity);
}
|
package com.citibank.ods.entity.pl;
import com.citibank.ods.common.entity.BaseODSEntity;
import com.citibank.ods.entity.pl.valueobject.BaseTbgOfficerEntityVO;
//
//©2002-2007 Accenture. All rights reserved.
//
/**
* [Class description]
*
*@see package com.citibank.ods.entity.pl;
*@version 1.0
*@a... |
/**
Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks. Tasks could be done without original order. Each task could be done in one interval. For each interval, CPU could finish one task or just be idle.
However, there is a non-neg... |
package br.com.mixfiscal.prodspedxnfe.gui.backbean;
import br.com.mixfiscal.prodspedxnfe.gui.util.Constantes;
import br.com.mixfiscal.prodspedxnfe.gui.util.Utils;
import br.com.mixfiscal.prodspedxnfe.services.relatorio.ImportarExcelParaAtualizarBase;
import br.com.mixfiscal.prodspedxnfe.services.relatorio.RelatorioDeb... |
package cat_tests.trash;
import cat_tests.model.SectionData;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.model.Filters;
import org.bson.Document;
import java.io.File;
import java.io.FileWriter;
im... |
package com.ibisek.outlanded.components;
import android.view.View;
public abstract class LayoutableDialogFragmentController {
protected LayoutableDialogFragment dialog;
/**
* @param dialog
*/
public void init(LayoutableDialogFragment dialog) {
this.dialog = dialog;
}
/**
* @param view... |
<<<<<<< HEAD
package com.example.sieunhan.github_client.api;
=======
package com.example.sieunhan.github_client.api;
>>>>>>> rebuilt-version
import java.util.Collection;
import java.util.Iterator;
import java.util.NoSuchElementException;
<<<<<<< HEAD
/**
* Created by dannyle on 03/12/2016.
*/
public abstract clas... |
/* RepeatableReader.java
Purpose:
Description:
History:
Fri Mar 14 11:47:38 2008, Created by tomyeh
Copyright (C) 2008 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
pac... |
package com.raymon.api.demo.leetcodedemo;
import java.util.ArrayList;
import java.util.List;
/**
* @author :raymon
* @date :Created in 2019/7/12 11:23
* @description:给定两个数组,编写一个函数来计算它们的交集。
* @modified By:
* @version: 1.0$
*/
public class Intersect {
public static int[] intersect(int[] nums1, int[] nums2) {
... |
/**
* project name:saas
* file name:CorsConfiguration
* package name:com.cdkj.product.config
* date:2018/3/25 下午2:45
* author:bovine
* Copyright (c) CD Technology Co.,Ltd. All rights reserved.
*/
package com.cdkj.config;
import com.cdkj.common.interceptor.CommonInterceptor;
import org.springframework.context.an... |
package com.vipvideo.util.web.mahua;
import android.app.Application;
import com.alibaba.fastjson.JSON;
import com.lixh.app.BaseApplication;
import java.io.InputStream;
/**
* Created by LIXH on 2018/12/26.
* email lixhVip9@163.com
* des
*/
public class MhSdk {
static MhSdk sdk;
Application application;
... |
/*
* Copyright 2002-2022 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 com.git.cloud.resmgt.network.model.vo;
import com.git.cloud.resmgt.network.model.po.RmNwConvergePo;
/**
* @Description
* @author make
* @version v1.0 2015-3-6
*/
public class RmNwConvergeVo extends RmNwConvergePo implements java.io.Serializable{
/**
* 数据中心名称(中文)
*/
private String d... |
package com.test.promanage.po;
import java.util.Date;
public class TableFile {
private Integer fileid;
private String filename;
private String filepath;
private String proid;
private String userid;
private Integer taskid;
private Date createtime;
private String intro;
publi... |
package com.icanit.app_v2.service.factory;
import android.content.Context;
import com.icanit.app_v2.exception.AppException;
import com.icanit.app_v2.service.DataService;
import com.icanit.app_v2.service.UserService;
import com.icanit.app_v2.sqlite.ShoppingCartDao;
import com.icanit.app_v2.sqlite.ShoppingCartS... |
package nh.automation.tools.serviceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.github.pagehelper.PageHelper;
import net.sf.json.JSONArray;
import... |
package com.eshop.service.impl;
import com.eshop.dao.ProductDAO;
import com.eshop.domain.CategoryOfProduct;
import com.eshop.domain.Product;
import com.eshop.domain.ProductParameteres;
import com.eshop.jms.MessageSender;
import com.eshop.service.ProductService;
import org.springframework.beans.factory.annotation.Autow... |
package pl.pionwit.android.server.db;
public class DBQuery {
public final static String QUERY_ID_NAMBERS = "SELECT * FROM pionwit_db.idnamber;";
public final static String QUERY_ID_NAMBERS_TO_CONTRAGENT = "SELECT * FROM pionwit_db.idnamber where contragent_id=";
public final static String QUERY_COUNTRYS... |
package com.shwetansh.covid_19tracker;
public class ModelVaccinated {
private String country, timeline;
public ModelVaccinated() {
}
public ModelVaccinated(String country, String timeline) {
this.country = country;
this.timeline = timeline;
}
public String getCou... |
/*
* Copyright 2002-2023 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 com.lti.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Pro... |
package com.example.jordi.printerpartner.activities;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
impo... |
package com.gome.manager.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
public class ObjectBean {
private int oid;
private String title;
private String discribe;
private Timestamp createTime;
private String remark;
private int state;
private String an... |
package viewGraphic;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.s... |
package com.codingchili.instance.model.spells;
import com.codingchili.instance.scripting.Scripted;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.codingchili.core.configuration.Configurable;
import com.codingchili.core.configuration.CoreStrings;
im... |
package com.dbs.portal.database.to.common;
public enum YesNoType {
Yes("Y","common.yes"), No("N","common.no");
private String yesOrNo;
private String messageKey;
private YesNoType(String yesOrNo, String messageKey){
this.yesOrNo = yesOrNo;
this.messageKey = messageKey;
}
public String ge... |
package modelo;
import java.awt.Image;
import java.awt.Rectangle;
import javax.swing.ImageIcon;
public class Enemy {
private int x, y, dx, dy, height, width;
private Image imageEnemy;
private boolean isVisible;
private static final int VELOCITY = 2;
public Enemy(int x, int y) {
this.x = x;
... |
package ir.shayandaneshvar.jottery.models;
import lombok.*;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.time.LocalDate;
import java.util.List;
@Entity
@Getter
@Setter
@AllArgsConstructor
... |
/**
* Copyright 2017 伊永飞
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package peace.developer.serj.photoloader.fragments;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android... |
package com.citibank.ods.modules.client.curacctprmntinstr.functionality.valueobject;
import java.math.BigInteger;
import com.citibank.ods.common.dataset.DataSet;
import com.citibank.ods.common.functionality.valueobject.BaseODSFncVO;
//
//©2002-2007 Accenture. All rights reserved.
//
/**
*
* @see pack... |
package beans;
import java.io.Serializable;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.SessionScoped;
import dao.Makalel... |
/**
*
*/
package de.mapsmodule.maps.client.model;
import de.smartmirror.smf.client.model.Model;
/**
* @author julianschultehullern
*
*/
public interface MapsModel extends Model {
String getDefaultLocation();
void setDefaultLocation(String defaultLocation);
void setCurrentPlace(String currentPlace);
St... |
package me.bayanov.shapes;
public class Square implements Shape {
private double side;
public Square(double side) {
this.side = side;
}
@Override
public double getWidth() {
return side;
}
@Override
public double getHeight() {
return side;
}
@Override
... |
package org.carpark.barrier;
import java.util.Date;
/**
* The test class EntryBarrierTest.
*
* @author Sian Turner
* @version 12/04/05
*/
public class EntryBarrierTest extends junit.framework.TestCase {
private EntryBarrier ent1;
/**
* Default constructor for test class EntryBarrierTest
*/... |
package org.jaxws.util.lang;
import org.apache.commons.lang.StringUtils;
/**
*
* @author chenjianjx
*
*/
public class ClassNameUtils {
/**
* com.sun.Hello => com/sun
*
* @param className
* @return
*/
public static String getRelativeDir(String className) {
int lastIndexOfPoint = className.last... |
package com.lenovohit.hcp.finance.web.rest;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.... |
package strategydemo;
public interface DiscountStrategy {
public float applyDiscount(float price);
}
|
package dk.webbies.tscreate.analysis.methods.contextSensitive.combined;
import dk.webbies.tscreate.Options;
import dk.webbies.tscreate.analysis.HeapValueFactory;
import dk.webbies.tscreate.analysis.TypeAnalysis;
import dk.webbies.tscreate.analysis.TypeFactory;
import dk.webbies.tscreate.analysis.methods.contextSensiti... |
package yahoofinance;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TimeZone;
import java.util.logging.Level;
/**
*
* @author S... |
package com.wuqiushan.server.QSHttp;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.FileOutputStream;
import java.io.IOException;
import... |
package com.dmtrdev.monsters.sprites.enemies.golems;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.BodyDef;
import com.badlogic.gdx.physics.box2d.CircleShape;
import com.badlogic.gdx.physic... |
package validation;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.event.EventType;
import javafx.scene.control.Control;
import validation.exceptions.ValidationException;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.ut... |
package cs3500.singleMoveModel;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Tests for APile abstract class.
*/
public class APileTest {
// Tests the toString method.
@Test
public void testToString01() {
Pile cascade = new CascadePile();
cascade.push(new Card(RankType.KI... |
package lab7;
public class CS401StackArrayImpl<E> implements CS401StackInterface<E>
{
private int num_elements;
private int max_elements;
private E[] elements;
public CS401StackArrayImpl()
{
max_elements = 10;
num_elements = 0;
elements = (E[]) new Object[max_elements];
}
/**
... |
package chess.board;
public class BoardRow {
}
|
package week9.homework;
import week9.homework.classesforserialize.Adress;
import week9.homework.classesforserialize.Person;
import java.util.*;
public class Main {
public static void main(String[] args) {
Serializer jsonSerializerStrategy = new JSONSerializer();
Serializer xmlSerializerStrategy =... |
package commands;
import menus.Menu;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.command.BasicCommand;
import actionEngines.ActionEngine;
import actionEngines.MenuActionEngine;
public class MenuOpenCommand extends BasicCommand implements GenericCommand{
private Menu menu;
public MenuOpenC... |
package com.onightperson.hearken.ipc.messenger;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.support.annotation.Nullable;
import android.util.Log;
/**
* Created by liubaozhu on 1... |
package com.gaoshin.cj.dao.impl;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.gaoshin.cj.dao.AdvertiserDao;
import com.gaoshin.cj.entity.Advertiser;
import com.gaoshin.cj.entity.Link;
@Repository("advertiserDao")
public class AdvertiserDaoImpl extends GenericDaoImpl implements... |
package com.engeto.example;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;
public class Homework2 {
public static void printHomework() {
// 2. Napište program, který přečte soubor (priklad2.txt) a spočítá počet z... |
package com.qqq.stormy.activity;
import android.app.ListActivity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import com.qqq.stormy.R;
import com.qqq.stormy.adapter.DailyAdapter;
import com.qqq.stormy.model.day.DailyData;
import java.util.List;
public class Da... |
package com.energytrade.app.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import jav... |
public class Shorty extends Person implements SpecialAction{
public Shorty(String name){
this.setName(name);
System.out.println(this.getName() + " was created");
}
public String appeared(String how){
return this.getName() + " appeared " + how;
}
@Override
publi... |
package com.citibank.ods.persistence.pl.dao;
import java.math.BigInteger;
import com.citibank.ods.common.dataset.DataSet;
import com.citibank.ods.entity.pl.BaseTplEntryInterColumnEntity;
import com.citibank.ods.entity.pl.BaseTplEntryInterEntity;
/**
* @author m.nakamura
*
* Interface para acesso ao ba... |
package com.classroom.services.domain.model.repositories;
import java.util.List;
import com.classroom.services.domain.model.ExamResults;
import com.classroom.services.domain.model.Exams;
public interface IExamResultsRepository extends IBaseRepository<ExamResults>{
ExamResults getExamResultDetails(Integer student... |
package com.interview.microsoft.design.logger;
public interface Logger {
/**
* When a process starts, it calls 'start' with processId and startTime.
*/
void start(String processId, long startTime);
/**
* When the same process ends, it calls 'end' with processId and endTime.
*/
void end(String processId, ... |
package com.example.mdt;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.preference.PreferenceManager;
import android.telephony.NeighboringCellInfo;
import android.telephony.TelephonyManage... |
/*
* Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.stdext.translation.out;
import pl.edu.icm.unity.server.translation.out.OutputTranslationAction;
import pl.edu.icm.unity.server.translation.out.OutputTranslationAction... |
package de.scads.gradoop_service.server.helper.filtering.pojos;
import de.scads.gradoop_service.server.helper.filtering.enums.BinaryBooleanOperation;
import java.io.Serializable;
/**
* POJO for handling logic between operations.
*/
public class FilterEvalElement implements Serializable {
public final BinaryBoo... |
package com.practicalddd.cargotracker.booking.domain.model;
import java.util.Collections;
import java.util.List;
public class Itinerary {
private List<Leg> legs = Collections.emptyList();
public Itinerary() {
// Nothing to initialize.
}
public Itinerary(List<Leg> legs) {
this.legs =... |
package com.itheima;
import com.itheima.service.IAccountService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/... |
package com.example.htw.currencyconverter.model;
import android.support.annotation.NonNull;
import com.google.gson.Gson;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseEx... |
package br.com.mixfiscal.prodspedxnfe.dao.own;
import br.com.mixfiscal.prodspedxnfe.dao.util.ConstroyerHibernateUtil;
import br.com.mixfiscal.prodspedxnfe.domain.own.ClassificacaoTributaria;
import br.com.mixfiscal.prodspedxnfe.domain.own.ClassificacaoTributariaProduto;
import br.com.mixfiscal.prodspedxnfe.domain.own.... |
package app.akexorcist.d2dcontroller;
import java.io.IOException;
import java.util.ArrayList;
import android.content.Context;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.view.View;
import android.wi... |
/*
* Copyright 2015 Zbynek Vyskovsky mailto:kvr000@gmail.com http://kvr.znj.cz/ http://github.com/kvr000/
*
* 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... |
package com.example.ecommerceapp;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget... |
package etc;
public interface DInterface {
public void m2();
}
|
package com.example.thread;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* Created by zhaoningqiang on 16/7/7.
*/
public class CyclicBarrierTest {
public static void main(String[] args) {
ExecutorService executorServi... |
/*
* 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 Windows;
import java.io.FileNotFoundException;
import java.util.logging.Level;
import java.util.logging.Logger;
impo... |
package video.api.android.sdk.domain.analytic;
public class AnalyticReferrer {
private String url;
private String medium;
private String source;
private String search_term;
public AnalyticReferrer(String url, String medium, String source, String search_term) {
this.url = url;
this... |
/**
* FileName: KafkaTopicEnum
* Author: yangqinkuan
* Date: 2019-1-13 18:06
* Description: kafka主题枚举
*/
package com.ice.find.util.kafka;
public enum KafkaTopicEnum {
/**
* 2xxxx代表用户模块类事件,如注册,登陆,找回密码等
*
*
* */
/* 2xxxx*/
REGISTRY_MAIL_SEND("user_mail","20001"),
AA_MAIL... |
package com.lgbear.weixinplatform.api.domain;
public abstract class WeixinMessage {
private String toUserName;
private String fromUserName;
private String createTime;
protected String msgType;
public static final String TEXT = "text";
public static final String IMAGE = "image";
public static final String LOCAT... |
package com.droid.btkeyboard;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;
import com.droid.keys.NumericKeyboard;
import com.droid.keys.QwertyKeyboard;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle s... |
package stacksnqueues;
import static org.junit.Assert.*;
import org.junit.Test;
public class HistogramTest {
// @Test
// public void testExample() {
// assertEquals(12,Histogram.findArea(new int[]{6,2,5,4,5,1,6}));
// }
//
@Test
public void testMinimum() {
int[] array =new int[]{6,2,4,3,4,1,1,1,1,1,1};
a... |
package interfaces;
import java.util.ArrayList;
import org.newdawn.slick.command.Command;
public interface CommandProvider {
public ArrayList<Command> getCommands();
}
|
/**
* Copyright 2014 Bill McDowell
*
* This file is part of theMess (https://github.com/forkunited/theMess)
*
* 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.... |
// Copyright 2016 The WWU eLectures Team All rights reserved.
//
// Licensed under the Educational Community 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://opensource.org/licenses/ECL-2.0
//
// Unless ... |
package com.base.widget.cobe.ptr.header;
import android.content.Context;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import com.base.widget.cobe.pt... |
package com.utils.redis.command;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import org.springframework.data.redis.core.query.SortQuery;
/**
* Interface Key Command Operations.
* <p>
* http://doc.redisfans.com/
* </p>
*
* @author memory 2017年5月11日 下午9:05:38
* @version V1.0
* @m... |
package com.nexlesoft.tenwordsaday_chiforeng.fragment;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Date;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import com.nexleso... |
package com.example.bootcamp;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.ann... |
public abstract class Enemy extends Base {
public abstract void attack(Base player);
}
|
package test.AbstractFactory.button;
import test.AbstractFactory.button.inter.Button;
/**
* Spring按钮:具体产品
* @author lho
*
*/
public class SpringButton implements Button {
@Override
public void display() {
System.out.println("显示浅绿色按钮。");
}
}
|
/*
* (C) Copyright 2018 Fresher Academy. All Rights Reserved.
*
* @author viettn.admin
* @date Apr 20, 2018
* @version 1.0
*/
package edu.fa.pattern.adapter;
import edu.fa.service.EmployeeService;
import edu.fa.service.HrService;
public class ClassAdapterService extends HrService implements EmployeeService{
p... |
package product;
//abstract product
public interface Product {
// ...
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.