text stringlengths 10 2.72M |
|---|
package model;
public class Episodio {
private Visualitzacio vist;
private Valoracio nota;
private String title, data, duration, idioma, description, idSerie, numTemporada;
private Subscripcio subscripcio;
public Episodio (String title, String duration, String idioma, String description, String d... |
package com.accp.domain;
public class Category {
private String cayid;
private String cayname;
private Integer ineid;
public String getCayid() {
return cayid;
}
public void setCayid(String cayid) {
this.cayid = cayid;
}
public String getCayname() {
return ca... |
package com.n26.challenge.statistics.repository;
import java.time.Duration;
import java.util.Collection;
import com.n26.challenge.statistics.model.Transaction;
/**
* @author dsakho
*
*/
public interface TransactionDao {
Collection<Transaction> findAll();
Collection<Transaction> findAllByDuration(Duratio... |
package com.tencent.mm.plugin.bbom;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.ui.chatting.r;
class d$1 implements OnClickListener {
final /* synthetic */ d heq;
d$1(d dVar) {
this.heq = dVar;
}
public final void onClick(View view) {
r.d... |
package principles.p2p;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
@Slf4j
public class SimpleSocketServer {
private int port;
private String host;
private TCPListener tcpListener;
public SimpleSocketServer(String host, ... |
package kg.inai.equeuesystem.models;
import lombok.*;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.*;
import java.util.Date;
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
p... |
/*
* Copyright (c) 2016. Universidad Politecnica de Madrid
*
* @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es>
*
*/
package org.librairy.modeler.lda.models;
import lombok.Data;
import java.io.Serializable;
/**
* Created on 01/09/16:
*
* @author cbadenes
*/
@Data
public class Text implements Serializabl... |
package com.tencent.mm.ui.tools;
import android.os.Message;
import com.tencent.mm.sdk.platformtools.ag;
import com.tencent.mm.sdk.platformtools.x;
import java.lang.ref.WeakReference;
public class MMGestureGallery$l extends ag {
private boolean ccd;
private long jFr;
WeakReference<MMGestureGallery> tyY;
... |
package com.dezzmeister.cryptopix.main.session;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.widget.Toast;
import com.dezzmeister.cryptopix.main.images.ImageData;
import java.io.File;
import java.io.FileInputStream;
impo... |
package ls.example.t.zero2line.net;
import android.annotation.SuppressLint;
import android.os.Build;
import android.support.annotation.NonNull;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.security.GeneralSecurityException;
import java.security.SecureRandom;
import java... |
/* Marginal Tax Rate
* Single Married Filing Jointly or Qualifying Widow(er) Married Filing Separately Head of Household
10% $0 – $8,350 $0 – $16,700 $0 – $8,350 $0 – $11,950
15% $8,351 – $33,950 $16,701 – $67,900 $8,351 – $33,950 $11,951 – $45,500
25% $33,951 – $82,2... |
/*
* 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 pe.gob.onpe.adan.dao.adan.impl;
import java.util.List;
import org.springframework.stereotype.Repository;
import pe.gob.onpe.ad... |
import java.io.*;
import java.util.*;
public class SecondMostFreNum {
// second most number in arrays
public static int secondMostFrequent(int[] arr) {
// Use set to detect data presented or not
Set<Integer> set = new HashSet<Integer>();
// Use map's (key;value) pair to remember the count
Map... |
package com.hooper.dining;
import java.util.Random;
import java.util.EnumSet;
import java.awt.Graphics;
import java.awt.Color;
import java.awt.Polygon;
import static java.lang.Math.PI;
import static java.lang.Math.sin;
import static java.lang.Math.cos;
/**
* Misc. constants and methods for the Scenario
*
* @autho... |
package com.ak.profile_management.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.sp... |
package com.spbsu.flamestream.runtime.master.acker.api;
import com.spbsu.flamestream.core.data.meta.GlobalTime;
import com.spbsu.flamestream.runtime.master.acker.NodeTimes;
public class MinTimeUpdate {
private final int trackingComponent;
private final GlobalTime minTime;
private final NodeTimes nodeTimes;
p... |
import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Font;
import javax.swing.border.MatteBorder;
public class FeedListItem extends JPanel {
public FeedL... |
package Chapter5Review;
//E5.18
import java.util.Scanner;
public class OldTaxTester {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Enter your income: ");
int income = in.nextInt();
OldTax calculator = new OldTax(income);
... |
package org.motechproject.server.exception;
import org.motechproject.server.util.RCTError;
public class RCTControlGroupNotFoundException extends RCTRegistrationException {
public RCTControlGroupNotFoundException() {
super(RCTError.CONTROL_GROUP_NOT_FOUND);
}
}
|
package commandline.language.parser.specific;
import commandline.exception.ArgumentNullException;
import commandline.language.parser.ArgumentParseException;
import commandline.language.parser.ArgumentParser;
import org.jetbrains.annotations.NotNull;
import java.util.regex.Pattern;
/**
* User: gno, Date: 09.07.13 - ... |
package com.wzy.property_source;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Envir... |
package COM.JambPracPortal.MODEL;
public class subjectreg {
private int sid;
private String subject;
private int year;
private int time;
public int getSid() {
return this.sid;
}
public String getSubject() {
return this.subject;
}
public void setSubject(Str... |
package interviews.others;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
public class Tile {
public static void main(String[] args) {
Tile app = new Tile();
int[] case1 = null;
int[] case2 = new int[]{};
int[] case3 = new int[]{0... |
package com.duofei;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* nacos 服务发现
* @author duofei
* @date 2019/11/12
*/
@SpringBootApplication
@EnableDiscoveryClient... |
package com.itheima.redbaby.bean.order;
public class Logistic {
private String response;
private LogisticItem logistics;
public String getResponse() {
return response;
}
public void setResponse(String response) {
this.response = response;
}
public LogisticItem getLogistics() {
return logistics;
}
pu... |
package com.example.homestay_kha.Model;
import android.location.Location;
import android.location.OnNmeaMessageListener;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;
import androidx.annotation.NonNull;
import com.example.homestay_kha.Controller.Interface.Hotel_Interface;
import c... |
package com.project.common_basic.network;
import android.content.Context;
import com.jakewharton.retrofit.Ok3Client;
import com.project.common_basic.exception.NearLogger;
import com.project.common_basic.network.header.RequestHeader;
import java.util.ArrayList;
import java.util.List;
import okhttp3.OkHttpClient;
im... |
package zm.gov.moh.core.repository.database.entity.domain;
import androidx.room.*;
import com.squareup.moshi.Json;
@Entity(tableName = "role")
public class Role {
@PrimaryKey
@ColumnInfo(name = "role")
@Json(name = "role")
private String role;
@ColumnInfo(name = "describe")
@Json(name = "de... |
package com.cxjd.nvwabao.bean;
/**
* Created by 李超 on 2017/12/1.
*/
/**
*
* 该类是左边列表选项的抽象类
*
*/
public class ListView {
//选项的名字
private String name;
//选项的图片,备用项
//private int imageId;
public ListView(String name) {
this.name = name;
// this.imageId = imageId;
}
p... |
class ForTest
{
public static void main(String[] args)
{
int x=1;
for (System.out.println("x-test-初始化表达式");x<3;System.out.println("x-test-循环表达式"))
{
System.out.println("x-test-我应该出现在初始化表达式之后循环表达式之前");
x ++;
}
// for (只要是合法的表达式就行;判断语句;只要是合法的表达式就行)
// for 循环机制就是先进行一次初始化表达式,接着进入循环体-... |
package com.example.roy1473.restaurantresearcher.Models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by Roy1473 on 2017/03/19.
*/
public class Photo {
@SerializedName("pc")
@Expose
private Pc pc;
@SerializedName("mobile")
@Expose
... |
package org.nyer.sns.core;
/**
* 微博服务请求的响应
* @author leiting
*
*/
public class WeiboResponse {
public static WeiboResponse NO_TOKEN_RESPONSE;
static {
NO_TOKEN_RESPONSE = new WeiboResponse();
NO_TOKEN_RESPONSE.setStatus(WeiboProtocal.AUTH_ERROR);
}
private int status;
private boolean localError;
priva... |
package com.javed.jkclasses;
import java.util.HashMap;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
public class EditStudent extends Activity{
EditText studentName,phone;
DBContr... |
package org.switchyard.quickstarts.helloworld.file.notifier;
public interface DisplayRouterListener {
String displayMessage(String message) throws Exception;
}
|
package com.tencent.mm.plugin.appbrand.jsapi.bluetooth;
import com.tencent.mm.plugin.appbrand.jsapi.a;
import com.tencent.mm.plugin.appbrand.jsapi.bluetooth.ble.sdk.d.b;
import com.tencent.mm.plugin.appbrand.l;
import com.tencent.mm.sdk.platformtools.x;
import java.util.HashMap;
import java.util.Map;
import org.json.J... |
/*
Author: Lord Faiz Batton
*/
public class PrimeClient {
public static void main(String[] args){
Socket socket = new ServerSocket(args[0], 9999);
BufferedReader from_server = new BufferedReader(new InputStreamReader(socket.getInputStream()));
PrintWriter to_server = new PrintWriter(soc... |
package com.zinnaworks.nxpgtool.api;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import com.zinnaworks.nxpgtool.exception.DataNotValidException;
public class IFParser {
public Map<String, Object> parse(String testUrl) throws FileNotFoundExcepti... |
package View;
import java.awt.Color;
import java.awt.Font;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
@SuppressWarnings("serial")
public class G... |
package dev.schoenberg.kicker_stats;
public interface PersistenceTest {}
|
package org.maven.ide.eclipse.authentication.internal;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.equinox.security.storage.EncodingUtils;
import org.eclipse.equinox.securi... |
package test3.suiteEx;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeSuite... |
package org.mycompany;
public class MyBeanClass {
public void test_bean() {
System.out.println("This is my bean that will be used in camel route");
}
public void secondMethod() {
System.out.println("This is second method in bean");
}
}
|
package com.tencent.mm.plugin.remittance.bankcard.ui;
import android.app.Activity;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager.LayoutParams;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.wallet_core.ui.WalletBaseUI;
import ... |
/* Implement the "notify me when the item is in stock" feature in amazon.com */
package com.mobcrush.internship;
import java.util.ArrayList;
import java.util.Collections;
/**
*
* @author Ushang-PC
*/
public class ProductNotifierSolution implements ProductNotifier{
// Assuming arraylist of all customers wh... |
package com.gnomikx.www.gnomikx;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import ... |
public class QuePedoPerro {
public static void main(String[] args) {
System.out.println("Que paaaaan");
}
} |
package co.aurasphere.courseware.java.ws.soap.client;
import java.rmi.RemoteException;
import org.tempuri.CalculatorSoapProxy;
/**
* Client of a calculator SOAP web service. The SOAP client has been generated
* with Eclipse by right clicking on the WSDL and selecting Web Service >
* Generate client.
*
* @see <... |
package org.training.model.entities;
/**
* Created by nicko on 1/24/2017.
*/
public class Item {
private Integer id;
private Double price;
private String name;
private Integer weight;
public Integer getWeight() {
return weight;
}
public void setWeight(Integer weight) {
t... |
package servlets;
import models.UserDAO;
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.PrintWriter;
@WebServlet(name = "LoginServlet"... |
package com.sporsimdi.action.facade;
import java.util.List;
import com.sporsimdi.model.entity.Telefon;
import com.sporsimdi.model.type.Status;
import com.sporsimdi.model.type.TelefonTipi;
public interface TelefonFacade {
public void persist(Telefon telefon);
public void merge(Telefon telefon);
... |
/*
* GNUnetWebUI - A Web User Interface for P2P networks. <https://gitorious.org/gnunet-webui>
* Copyright 2013 Sébastien Moratinos <sebastien.moratinos@gmail.com>
*
*
* This file is part of GNUnetWebUI.
*
* GNUnetWebUI is free software: you can redistribute it and/or modify
* it under the terms ... |
package com.yida.design.responsibility.demo;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import com.yida.design.responsibility.demo.handler.Father;
import com.yida.design.responsibility.demo.handler.Handler;
import com.yida.design.responsibility.demo.handler.Husband;
import co... |
package com.rofour.baseball.service.order.impl;
import com.rofour.baseball.dao.order.bean.TbTask;
import com.rofour.baseball.dao.order.bean.TbTaskSub;
import com.rofour.baseball.dao.order.mapper.TbTaskSubMapper;
import com.rofour.baseball.service.order.TbTaskSubService;
import org.springframework.beans.factory.annotat... |
package com.tencent.mm.plugin.appbrand.jsapi.video;
import com.tencent.mm.plugin.appbrand.page.p$d;
import com.tencent.mm.sdk.platformtools.x;
class a$3 implements p$d {
final /* synthetic */ AppBrandVideoView gbm;
final /* synthetic */ a gbn;
a$3(a aVar, AppBrandVideoView appBrandVideoView) {
th... |
package net.liuzd.spring.boot.v2.domain.enums;
public enum Rating {
TERRIBLE, POOR, AVERAGE, GOOD, EXCELLENT
} |
package com.lbsp.promotion.coreplatform.listener;
import com.fasterxml.jackson.core.type.TypeReference;
import com.lbsp.promotion.core.service.task.TaskQueueService;
import com.lbsp.promotion.core.service.task.TaskService;
import com.lbsp.promotion.coreplatform.job.LoadTask;
import com.lbsp.promotion.entity.model.Task... |
package com.wonders.task.marquee.execute;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Properties;
import org.... |
package com.api_fluxoDeCaixaSimples.fluxoDeCaixaSimples.dto;
import java.math.BigDecimal;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.api_fluxoDeCaixaSimples.fluxoDeCaixaSimples.entities.Produto;
public class N... |
package tree;
/**
* @author: ZhiHao
* @date: 2021/1/7
* @version: 1.0
*/
public class Demo6 {
public static void main(String[] args) {
//初始化节点
SubStudent student1 = new SubStudent(1, "1");
SubStudent student2 = new SubStudent(2, "3");
SubStudent student3 = new SubStudent(3, "6"... |
public class ConcreteHandler3 extends Handler {
@Override
protected Level getHandlerLevel() {
return Level.THREE;
}
@Override
protected Response echo() {
System.out.println("ConcreteHandler3 echo...");
return null;
}
}
|
package com.example.deepakrattan.datepicker;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.DatePicker;
import android.widget.TextView;
import android.widget.TimePicker;
public class MainActivity extends AppCompatActivity {
private DatePicker datePicker;
priva... |
package com.espendwise.manta.web.resolver;
import com.espendwise.manta.util.alert.ArgumentedMessage;
import com.espendwise.manta.util.alert.ArgumentedMessageImpl;
import com.espendwise.manta.util.arguments.Args;
import com.espendwise.manta.util.arguments.StringArgument;
import com.espendwise.manta.util.arguments.Stri... |
package vmesnik;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.LinkedList;
import java.util.List;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JM... |
/*************************************************************************
*
* Pace University
* Fall 2019
*
* Team Authors: Jack Bonnelycke
*
* Problem: Create a calculator for your final grade, GPA, and total percent
* Description: The app I used to use for this got deleted off the iOS app
* store,... |
package com.xhpower.qianmeng.controller;
import javax.servlet.http.HttpServletRequest;
import com.xhpower.qianmeng.entity.User;
public class BaseController {
/**
* @Fields NO_LOGIN : TODO(没有登录)
*/
public static final String NO_LOGIN="403";
/**
* @Fields SYS_ERR : TODO(系统错误)
*/
public stat... |
package com.tencent.mm.plugin.sns.ui;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ListView;
import com.tencent.mm.ab.e;
import com.t... |
public class Main {
public static void main(String[] args) {
CalculateSalary calculate = new CalculateSalary(20, 2);
System.out.println(calculate.calculateSalary(2));
//calculate.setBaseSalary(20);
//calculate.setExtraHours(1);
//Browser object = new Browser();
//ob... |
package polydungeons.client.ber;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.render.OverlayTexture;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.VertexConsumerProvider;
import net.mi... |
/**
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.bd.presenter.impl.classification.model;
import net.nan21.dnet.core.api.annotation.Ds;
import net.nan21.dnet.core.api.annotation.DsField;
import ... |
package br.com.tela.cadastro;
import java.awt.EventQueue;
import javax.swing.JInternalFrame;
import java.awt.Color;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import br.com.classes.Animais;
import br.com.util.AN;
import br.c... |
package com.study.spring.bean;
import com.study.spring.discount.DiscountPolicy;
import com.study.spring.discount.FixDiscountPolicy;
import com.study.spring.discount.RateDiscountPolicy;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.sprin... |
package com.xunlei.mcp.test.cases.apple2.file;
import static org.junit.Assert.*;
import net.sf.json.JSONObject;
import org.junit.Test;
import com.xunlei.mcp.test.modules.base.BaseCase;
import com.xunlei.mcp.test.modules.utils.Constant;
public class CheckNew extends BaseCase {
@Test(summary = "检查是否有新视频", expectedRe... |
package com.zhonghuilv.shouyin.controller;
import com.zhonghuilv.shouyin.common.BasicController;
import com.zhonghuilv.shouyin.mapper.OrderDetailsMapper;
import com.zhonghuilv.shouyin.pojo.OrderDetails;
import com.zhonghuilv.shouyin.result.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.Api... |
package usn.entity;
public class UsnOperation {
public static boolean validateString(String usn) {
Boolean b=usn.matches("[12][A-Z]{2}/d{2}[('CS'|'IS'|'EC'|'ME')]/d{3}");
// if (usn != null) {
//
// if (usn.length() == 10) {
// System.out.println(usn.charAt(0));
// if (usn.charAt(0) == 1) {
// if ((u... |
package com.tencent.tencentmap.mapsdk.a;
import android.content.Context;
import com.tencent.map.lib.util.StringUtil;
import com.tencent.wcdb.database.SQLiteGlobal;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
public class pq implements pm {
private static final String[] a = new String... |
package com.company;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Scanner;
public class PersonExample {
static List<Person> personList = new ArrayList<>();
public static void main(String[] args) {
String input = "";
while (!input.equals("quit"))... |
package mapsynq.qa.pageobjects;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import mapsynq.qa.testbase.BaseClass;
import mapsynq.qa.utilities.ReuseableComponents;
public class MapsynqSigninPage extends BaseClass{
publi... |
package com.cg.javafullstack.Lamda;
public interface MyCircle {
double area(double r);
}
|
package com.gdcp.weibo.web.frontend;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframe... |
package com.tencent.mm.plugin.appbrand.dynamic.widget;
import android.os.Bundle;
public interface b$a {
void f(int i, Bundle bundle);
}
|
package pl.ark.chr.buginator.gateway;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer;
import org.springframework.boot.actuate.health.HealthEndpoint;
import org.spring... |
package com.smxknife.java2.thread.waitnotify;
/**
* @author smxknife
* 2019/9/24
*/
public class _Run_wait_notify_with_inner_object_lock {
public static void main(String[] args) {
Obj obj = new Obj();
new Thread(() -> obj.doWaitWithInnerObjectLock(), "th-1").start();
new Thread(() -> obj.doNotifyWithInnerO... |
package com.xinyan.flutter_app.plugin;
import android.app.Activity;
import android.content.Intent;
import com.xinyan.flutter_app.view.WebViewActivity;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.PluginRegistry;
public class FlutterPlugin... |
package org.ecsoya.yamail.runnable;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.ecsoya.yamail.YamailCore;... |
package com.tencent.mm.plugin.webview.ui.tools;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
import com.tencent.mm.plugin.webview.ui.tools.WebViewUI.23.44;
import com.tencent.mm.plugin.webview.ui.tools.jsapi.d;
import com.tencent.mm.plugin.webview.ui.tools.jsapi.i.a;
import com.t... |
package br.ufrgs.rmpestano.intrabundle.jasper;
import br.ufrgs.rmpestano.intrabundle.i18n.MessageProvider;
import br.ufrgs.rmpestano.intrabundle.metric.MetricsCalculation;
import br.ufrgs.rmpestano.intrabundle.model.*;
import br.ufrgs.rmpestano.intrabundle.model.enums.FileType;
import br.ufrgs.rmpestano.intrabundle.mo... |
package Componentes;
public class impresion {
public static void main(String[] arg) {
imprimir();
}
private static void imprimir(){
int matriz[][] = new int[2][2];
matriz[0][0] = 1;
matriz[0][1] = 2;
matriz[1][0] = 3;
matriz[1][1] = 4;
for(int i = 0; i < matriz.length; i+... |
package cn.com.paner.dao;
public interface SpitterDAO {
public void addSpitter(Spitter spitter);
public Spitter getSpitterById(int id);
public void namedAddSpitter(Spitter spitter);
public void saveSpitter(Spitter spitter);
}
|
package com.komaxx.komaxx_gl.util.nodes;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;
import com.komaxx.komaxx_gl.RenderContext;
import com.komaxx.komaxx_gl.RenderProgram;
import com.komaxx.komaxx_gl.primitives.ColorQuad;
import com.komaxx.komaxx_gl.scenegraph.ARenderProgramStore;
import com.komaxx.komax... |
package com.fleet.filter.config.filter;
import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.annotation.Order;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import java.io.IOExcepti... |
package com.prudential.car.dao.entity;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;
@Entity
public class CarRentalRecord {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@ManyToOne
private Car car;
private Date startRentalDate;
privat... |
package com.waes.backend.controllers;
import com.waes.backend.exceptions.AlreadyRegisteredException;
import com.waes.backend.exceptions.ErrorDetails;
import com.waes.backend.exceptions.UsernameNotFoundException;
import com.waes.backend.logging.Logging;
import org.springframework.http.HttpStatus;
import org.springfram... |
package org.sero.cash.superzk.crypto.ecc;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.sero.cash.superzk.crypto.Blake;
import org.sero.cash.superzk.util.Arrays;
import org.spongycastle.util.encoders.Hex;
public class TestBlake {
@Test
public void testBlake2b() {
byte[... |
package com.wellhope.dubbospringbootprovider.service;
import com.alibaba.dubbo.config.annotation.Service;
import com.wellhope.user.UserService;
/**
* @author GaoJ
* @create 2021-03-01 10:39
*/
@Service(version = "2.0.0")//version解决灰度发布问题
public class UserServiceImpl2 implements UserService {
@Override
publ... |
package pl.apso.tests.invest;
import org.junit.Test;
import pl.apso.tests.invest.math.Amount;
import java.util.Collections;
import java.util.List;
import static java.util.Arrays.asList;
import static org.assertj.core.api.Assertions.assertThat;
import static pl.apso.tests.invest.FundType.*;
import static pl.apso.test... |
package com.timmy.highUI.motionEvent.slideConflict;
import android.support.v4.view.ViewPager;
import android.support.v4.widget.ViewDragHelper;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Scroller;
import com.timmy.R;
/**
* 事件冲突
*/
public class SlideConflictActiv... |
package lesson38.LyThuyet;
import java.util.ArrayList;
/**
* Ví dụ về giới hạn trên
*/
public class UpperBroundWildcard {
public static double averageValue(ArrayList<? extends Number> list) { //ví dụ về giới hạn trên
//khi extends Number là lớp lớn nhất trong kiểu số thì
// ngoài các kiểu int, ... |
package entity;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import db.DBConn;
public class Admin {
int aid;
String password;
String aname;
int pnumber;
public Admin(int aid,String password,String aname,int pnumber){
this.password=pass... |
package klaicm.backlayer.tennisscores.services.jpadata;
import klaicm.backlayer.tennisscores.model.Match;
import klaicm.backlayer.tennisscores.repositories.MatchRepository;
import klaicm.backlayer.tennisscores.services.MatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframew... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package mvirtual.catalog.heritage;
/**
*
* @author fabricio
*/
enum AccessConditions {
FREE ("FREE", 0L),
UNDER_CONSULT ("UNDER_CONSULT", 1L),
NO_ACCESS ("NO_ACCESS", 2L),
COPY_ACCESS ("COPY_ACCESS",... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.