text stringlengths 10 2.72M |
|---|
/*
* 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 controller.admin;
import entity.Products;
import entity.Sizes;
import java.sql.SQLException;
import java.util.List;
import jav... |
package com.example.mergetablelayout_slidelayout_inflater;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.TableLayout;
public class TableLayoutChild extends TableLayout {
public TableLayoutChild(Context context) {
super(context);
}
public Tabl... |
package ftnbooking.rating.service;
import javax.jws.WebService;
import ftnbooking.rating.contracts.IRatingService;
import ftnbooking.rating.model.RatingData;
@WebService(endpointInterface = "ftnbooking.rating.contracts.IRatingService")
public class RatingService implements IRatingService{
@Override
public double ... |
package br.ufs.livraria.dao;
import javax.ejb.Stateless;
import br.ufs.livraria.modelo.Endereco;
@Stateless
public class EnderecoDAO extends DAO<Endereco> {
private static final long serialVersionUID = 1L;
public EnderecoDAO() {
super(Endereco.class);
}
} |
package com.osce.api.biz.plan.template;
import com.osce.dto.biz.plan.template.TdInsStationDto;
import com.osce.dto.biz.plan.template.TdModelInfo;
import com.osce.dto.biz.plan.template.TemplateDto;
import com.osce.dto.common.PfBachChangeStatusDto;
import com.osce.result.PageResult;
import com.osce.vo.biz.plan.template.... |
package com.microsilver.mrcard.basicservice.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class UserSimpleDto {
@ApiModelProperty(value = "用户id")
private Long userId;
@ApiModelProperty(value = "用户token")
private String userToken;
@ApiModelProperty(value = "是否启用")
private ... |
package stubs;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.ap... |
package com.kodilla.good.patterns.challenges.firstChallenge;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class MainRunner {
private static final String SEPARATOR = " ! ";
public static void main(String[] args){
Map<String, List... |
package principal;
public class Constantes {
public static final int LADO_CARTA = 72;
public static final int ALTO_CARTA = 96;
public static final String RUTA_CARTAS = "/Assets/cartas/naipes.png";
public static final String NOMBRE_JUEGO = "Truco UCAB";
public static final int ALTO_PANTALLA = 512;
public ... |
package com.smxknife.jvm.demo01;
/**
* 模拟java虚拟机抛出StackOverflowError
* 1 前提条件:
* 1.1 栈容量大小是固定的,通过-Xss128k来控制jvm为每个线程分配的内存大小
* 2 模拟的原理:
* 2.1 jvm对java虚拟机栈只会有两种操作,以栈帧为单位入栈和出栈
* 2.2 那么只需要控制每个线程内存的大小,禁止出栈,不断进行入栈操作,就会出现该错误
* 3 栈帧是在何时产生:
* 3.1 栈帧是随着方法调用而创建,方法结束而销毁(无论是否异常)
* 4 结论:
* 4.1 基于以上思路,采用递归的方式,不断的进行方法调用而不进行... |
package mx.com.azaelmorales.yurtaapp;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
... |
package com.yixin.kepler.common;/**
* Created by liushuai2 on 2018/6/7.
*/
import com.yixin.kepler.common.enums.RuleTypeEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.Assert;
import java.util.Map;
/**
* Package : com.yixin.kepler.common
*
* @author YixinCapital --... |
package it.polimi.se2019.model.grabbable;
/**
* Ammo tile represents an ammo tile that can be picked up from a square. It contains an ammo box and optionally a power up card
*
* @author Eugenio Ostrovan
* @author Fabio Mauri
*/
public class AmmoTile extends Grabbable{
/**
* The ammunition box contained in th... |
package com.bnuz.outdooractivitymanagementsystem.Presenter.impl;
import android.os.Looper;
import com.bnuz.outdooractivitymanagementsystem.Model.impl.ManagementAModelImpl;
import com.bnuz.outdooractivitymanagementsystem.Model.inter.IManagementAModel;
import com.bnuz.outdooractivitymanagementsystem.Presenter.callback.... |
/*
* Copyright (C), 2013-2014, 上海汽车集团股份有限公司
* FileName: UserLoginInfoVo.java
* Author: baowenzhou
* Date: 2015年08月27日 上午10:36:47
* Description: //模块目的、功能描述
* History: //修改记录
* <author> <time> <version> <desc>
* 修改人姓名 修改时间 版本号 描述
*/
package com.xj... |
package com.pangpang6.hadoop.sort;
public interface ISegment extends Comparable<ISegment> {
}
|
package model;
import java.time.LocalDate;
public class Emprestimo {
private LocalDate dataInicial;
private LocalDate dataFinal;
private String identificacao;
private Equipamento equipamento;
private Funcionario funcionario;
public Emprestimo(LocalDate dataInicial, LocalDate dataFinal, String identificacao... |
package universe;
public class Universe {
public static void main(String[] args) {
}
}
|
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.w... |
package com.codeapin.dicodingmovieapp.data.local;
import android.database.Cursor;
import android.net.Uri;
import android.provider.BaseColumns;
public final class DatabaseContract {
private DatabaseContract() {
}
public static class MovieColumns implements BaseColumns {
public static final Uri ... |
/*
* Copyright (c) 2014 Anthony Benavente
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
package com.smxknife.java2.nio.selector;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
/**
* @author smxknife
* 2020/10/14
*/
public class _15_ServerSocketChannel_RegisterToSame... |
package laserlight;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.Random;
public final class LaserGun extends GameObjects {
private Laser offspringLight;
private Point smerHlavne = new Point(1, 0);
private Color[] barv... |
package com.linda.framework.rpc.service;
import com.linda.framework.rpc.*;
import com.linda.framework.rpc.filter.RpcFilter;
import com.linda.framework.rpc.filter.RpcFilterChain;
import com.linda.framework.rpc.monitor.StatMonitor;
import com.linda.framework.rpc.net.RpcSender;
import com.linda.framework.rpc.server.Abstr... |
package com.jim.multipos.utils.rxevents.product_events;
import com.jim.multipos.data.db.model.ProductClass;
import com.jim.multipos.data.db.model.products.Category;
/**
* Created by Sirojiddin on 27.02.2018.
*/
public class ProductClassEvent {
private ProductClass productClass;
private int type;
publi... |
import java.awt.*;
import javax.swing.*;
public class Line_Basic extends JPanel{
/**
* @param args
*/
public static void main(String[] args) {
JFrame theGUI = new JFrame();
theGUI.setTitle("Here's some lines");
theGUI.setSize(100, 100);
theGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
... |
package fr.lteconsulting.formations;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet( "/raz" )
@Sup... |
package com.eluniversal.test.fragments;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
... |
package digitalInnovation.javaBasico;
import java.util.Calendar;
public class Aula_02_Calendar {
public static void main(String[] args) {
//instanciando um objeto do tipo Calendar
Calendar agora = Calendar.getInstance();
System.out.println(agora);
System.out.println("A data de hoje: " + agora.getTime(... |
package com.angrykings;
import org.andengine.entity.scene.background.AutoParallaxBackground;
/**
* Created by Shivan on 24.01.14.
*/
public class AngryParallaxBackground extends AutoParallaxBackground {
public AngryParallaxBackground(float pRed, float pGreen, float pBlue, float pParallaxChangePerSecond) {
... |
package de.madjosz.adventofcode.y2020;
import static org.junit.jupiter.api.Assertions.assertEquals;
import de.madjosz.adventofcode.AdventOfCodeUtil;
import java.util.List;
import org.junit.jupiter.api.Test;
class Day14Test {
@Test
void day14() {
List<String> lines = AdventOfCodeUtil.readLines(2020,... |
package com.example.amtis2;
public class Amtis {
private int id;
private String name;
private String address;
private String destination;
private String date;
public Amtis(int id, String name, String address, String destination, String date) {
this.id = id;
this.name = name;
... |
package ars.ramsey.interviewhelper.model;
import io.reactivex.Observable;
/**
* Created by Ramsey on 2017/5/9.
*/
public interface ArticalsSource {
Observable getTasks(String id,int limit,int offset);
}
|
package sample.artik.cloud.healthbook;
/**
* Constants for the Sample.
*
* @author Maneesh Sahu
*/
public class Constants {
public static final String CLIENT_ID = "4ac0a3bd4f7c4ecd8542bd6905197acb";
public static final String AUTHORIZATION_IMPLICIT_SERVER_URL = "https://accounts.artik.cloud/authorize";... |
package Presentación;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.eve... |
package com.dollarapi.demo.repository;
import com.dollarapi.demo.model.Dollar;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
import org.springf... |
package eleccionesunimet;
import java.io.*;
public class Vectores implements Serializable {
private int[]indexCedula = new int[6000];
private int[]indexNombre = new int[6000];
private int[]indexApellido = new int[6000];
private Estudiantes[] vecEstudiantes = new Estudiantes[6000];
private int cont... |
package com.sky.grpc;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.MockitoAnnotations;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Compone... |
package Creational.SIngleton;
// Pitfalls : this implementation is lazy loading.
// This can be broken in multithreaded environment as access to getInstance method is not synchronized
// to make this thread safe, use Synchronized keyword on getInstance method.
public class SingletonLazy {
private static Singleton... |
package beans;
import lombok.Data;
import util.Default;
@Data
public class StudentHirerehire {
private String id;
private String rowstamp;
private String firstname;
private String middlename;
private String lastname;
private String employeeid;
private String department;
private String title;
privat... |
package com.hb.rssai.presenter;
import com.hb.rssai.constants.Constant;
import com.hb.rssai.view.iView.ICollectionView;
import java.util.HashMap;
import java.util.Map;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
/**
* Created by Administrator on 2017/8/15.
*/
public class Col... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package textrpg.rooms;
/**
* User: katchk
* Date: 05.04.14
* Time: 18:10
*/
/*
* In the future this one and another one scenarios will be
* described in .txt or in other file format
* and will be readed and created dynamically using
* the JSON or other tools.
* I think it will be cool, because other users will
* ... |
package com.cyyz.cy_system.common.mapper;
import com.cyyz.cy_system.domain.*;
import org.apache.ibatis.annotations.*;
import java.util.List;
/**
* @Author: SHZ
* @Description:
* @Date: Created in 2018-03-22 12:21
*/
public interface TestRepo {
@Select("SELECT * FROM sa_stampquote")
List<sa_StampQuote> CG... |
package life;
import java.util.ArrayList;
import java.util.List;
public class Cell {
private final List<Cell> neigbours = new ArrayList<Cell>();
private final char c;
public Cell(char c) {
this.c = c;
}
public char value() {
return c;
}
public void addNeigbour(Cell cell) {
neigbours.add(cell);
}
... |
package com.in_prototype.sample_android_image_creator;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.Gravity;
import android.view.Motio... |
package com.rudecrab.springsecurity.security;
import com.rudecrab.springsecurity.model.entity.Resource;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.access.SecurityConfig;
import org.springframework.security.acce... |
package trivago.util;
import trivagoTestPages.BaseTest;
public class TestUtil extends BaseTest{
public TestUtil() {
super();
}
public static long PAGE_LOAD_TIMEOUT = 20;
public static long IMPLICIT_WAIT = 10;
}
|
package auth;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.IOException;
import java.io.StringWriter;
import java.net.Socket;
import org.apache.commons.io.IOUtils;
/**
*
* Ejecuta un nuevo hilo para procesar una conexion entrante
*/
public class Hilo implements Runnable {
/** Referen... |
/**
*
*/
package com.cnk.travelogix.v2.controller;
import de.hybris.platform.commercefacades.user.data.CountryData;
import de.hybris.platform.commercewebservicescommons.dto.user.CountryWsDTO;
import de.hybris.platform.webservicescommons.cache.CacheControl;
import de.hybris.platform.webservicescommons.cache.CacheCont... |
package lecture14Cuncurrent;
import java.io.File;
import java.lang.reflect.Proxy;
import java.util.concurrent.atomic.AtomicInteger;
public class CacheProxy {
public static volatile AtomicInteger ramCacheCount = new AtomicInteger(0);
public static volatile AtomicInteger fileCacheCount = new AtomicInteger(0);
... |
package com.yinghai.a24divine_user.module.order.detail.mvp;
import com.example.fansonlib.base.BaseModel;
import com.example.fansonlib.http.HttpResponseCallback;
import com.example.fansonlib.http.HttpUtils;
import com.example.fansonlib.utils.SharePreferenceHelper;
import com.yinghai.a24divine_user.bean.NoDataBean;
impo... |
/*
* 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 pt.mleiria.mlalgo.preprocess;
import org.apache.commons.math3.stat.descriptive.SummaryStatistics;
import static java.lang.Mat... |
package net.exacode.bootstrap.web.config;
public class ApplicationProfiles {
public static final String DEVELOPMENT = "development";
public static final String TEST = "test";
public static final String PRODUCTION = "production";
}
|
package rontikeky.beraspakone.Fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TableLayout;
import android.widget.T... |
package com.houzhi.send.analyse;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StreamTokenizer;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java... |
/**
* MainMenuState
*
* This is the state for the main menu
* Makes clickable menu button things
* Mostly taken from a tutorial
*
*/
package com.cyclight;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.Input;
import org.new... |
/*
* Copyright (c) 2020, Matthew Weis, Kansas State University
* 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 copyright notice, ... |
public class NodeList{
Node nextNode = null;
Node previousNode = null;
} |
package cn.creable.android.demo2;
import java.util.Timer;
import java.util.TimerTask;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.BitmapDrawable;
import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.wid... |
package api.longpoll.bots.methods.impl.messages;
import api.longpoll.bots.http.params.AttachableParam;
import api.longpoll.bots.http.params.BoolInt;
import api.longpoll.bots.methods.AuthorizedVkApiMethod;
import api.longpoll.bots.methods.VkApiProperties;
import api.longpoll.bots.model.response.IntegerResponse;
import... |
package pl.sidor;
import pl.sidor.model.Book;
import pl.sidor.service.BookDAOImpl;
import java.util.List;
public class Test {
public static void main(String[] args) {
// AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(WebConfig.class);
... |
package welcome;
public class StackImp {
int sizeMax;
int top;
String arr[];
public StackImp(int n)
{
sizeMax=n;
arr=new String[sizeMax];
top=0;
}
public void push(String str)
{
if(top<sizeMax)
{
arr[top]=str;
top++;
System.out.println("element is pushed "+str)... |
package com.dealership.util;
import java.util.Calendar;
/**
* Created by alpha on 2015/1/4.
*/
public class Tools {
public static String getCurrentDate(){
Calendar calendar = Calendar.getInstance();
System.out.println(calendar.get(Calendar.DAY_OF_MONTH));
System.out.println(calendar.get... |
/*
* 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 replace;
public class replaceSpace{
String str;
int count;
public replaceSpace(String s, int n){
str = s;
count = n;
}
public String replace(){
String newString = "";
for(int i = 0;i<count;i++){
if(str.charAt(i) == 32){
newString = newString +"%20";
}
else{
newString = ne... |
package com.andy.springbootcasclient.service;
import com.andy.springbootcasclient.domain.Student;
import com.andy.springbootcasclient.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* User: andy
* Date: 2019/7/31
* Time: 15:10
... |
package br.udesc.model.dao.GLPK;
import br.udesc.model.dao.CursoJpaController;
import br.udesc.model.dao.DisciplinaJpaController;
import br.udesc.model.dao.PessoaHorarioPreferenciaJpaController;
import br.udesc.model.dao.ProfessorJpaController;
import br.udesc.model.dao.RestricaoDisciplinaJpaController;
import ... |
package com.portmods.SC;
import com.portmods.SC.block.ModBlocks;
import com.portmods.SC.item.ModItems;
import com.portmods.SC.lib.Reference;
import com.portmods.SC.network.PacketHandler;
import com.portmods.SC.proxy.CommonProxy;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml... |
/*
*
* Copyright 2018 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 ap... |
public class emp1 {
int eno;
String ename;
address addr;
public emp1(int eno, String ename, address addr) {
this.eno = eno;
this.ename = ename;
this.addr = addr;
}
public int getEno() {
return eno;
}
public void setEno(int eno) {
this.eno = eno;
... |
package com.ice2systems.voice;
import java.util.LinkedList;
import java.util.List;
public class TextLog {
private int id = -1;
private TimeSlot startTime;
private TimeSlot endTime;
private List<Monolog> monologs = new LinkedList<Monolog>();
public static class Builder {
private int id;
private TimeSlot... |
package com.handsome.qhb.bean;
import java.io.Serializable;
/**
* Created by zhang on 2016/3/16.
*/
public class Address implements Serializable{
private int aid;
private String recePhone;
private String receName;
private String receAddr;
public int getAid() {
return aid;
}
pu... |
package com.witt.datatype;
public class DataType {
public static void main(String[] args) {
// 1
byte b1 = 'a', b2 = 127, b3 = '$';
// 2
short s1 = 32767, s2 = 'a', s3 = '$';
// 4
int i1 = -2147483647, i2 = 'a';
// 8
long l1 = 9223372036854775807L;
... |
package com.it.userportrait.reduce;
import com.it.userportrait.analy.BrushEntity;
import org.apache.commons.lang.StringUtils;
import org.apache.flink.api.common.functions.ReduceFunction;
public class HighFrequencyAnlayReduce implements ReduceFunction<BrushEntity> {
@Override
public BrushEntity reduce(BrushE... |
package com.tencent.mm.plugin.appbrand.ui.recents;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;
import an... |
package demo.kanban.contract.moscow.resource.column;
import org.springframework.hateoas.Link;
import org.springframework.hateoas.Resource;
/**
* Created by xchou on 4/18/16.
*/
public class ColumnResource extends Resource<Column> {
public ColumnResource(Column content, Link... links) {
super(content, l... |
package com.tencent.mm.g.a;
public final class hu$a {
public String bKW;
}
|
package com.app.artclass.fragments;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.RequiresApi;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import a... |
package com.one.sugarcane.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
@Entity
@Table(name="SELL... |
package com.tencent.mm.plugin.freewifi.ui;
import android.view.View;
import com.tencent.mm.g.a.bh;
import com.tencent.mm.plugin.freewifi.ui.a.2;
import com.tencent.mm.sdk.b.a;
import com.tencent.mm.sdk.platformtools.ah;
import com.tencent.mm.sdk.platformtools.x;
class a$2$1 implements Runnable {
final /* syntheti... |
package sample;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
p... |
package com.android.mycourse.notepad;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
i... |
package calculadora.operadoresmatrizes;
import calculadora.colecoes.Elemento;
import calculadora.colecoes.Matriz;
import calculadora.excecoes.MatrizInvalidaException;
public class DeterminantePorSarrus<T> implements OperadorUnario<T> {
@Override
public Matriz<T> calcula(Matriz<T> m) {
if (m.getTamanhoLinhas() !=... |
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other 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 requi... |
package com.store.dao;
import java.util.List;
import com.store.pojo.Building;
/**
* 区域类的 dao层
* @author Administrator
*
*/
public interface BuildingDao {
/**
* 添加区域的方法
* @param building
* @return 是否添加成功
*/
public boolean addBuilding(Building building);
/**
* 更新区域的方法
* @param ... |
package at.fhj.swd.selenium;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import at.fhj.swd.selenium.pageobjects.LoginPage;
import at.fh... |
package br.com.codenation.model;
import br.com.codenation.repository.ProductRepository;
import br.com.codenation.repository.ProductRepositoryImpl;
import javax.swing.text.html.Option;
import java.util.Optional;
public class OrderItem {
private Long productId;
private Long quantity;
private ProductRepository rep... |
package com.tencent.mm.wallet_core.ui;
public interface MMScrollView$a {
}
|
package LeetCode.Trees;
import java.util.HashMap;
public class DisjointSets {
class NodeD{
long data;
NodeD parent;
int rank;
NodeD(){}
}
public HashMap<Long, NodeD> map = new HashMap<>();
public void makeSet(long val){
NodeD node = new NodeD();
node.data = val;
node.parent = no... |
package design;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
// 295 https://leetcode.com/problems/find-median-from-data-stream/
public class MedianFinder {
private static Map<Integer, Integer> map = new TreeMap<>();
private int count = 0;
// Adds a number into the data structure.... |
/* M86Asm
*
* A rudimentary assembler for Micro86 instructions.
*
* Author: Humam Rashid
*
* Assignment: 03-M86Asm
*
* Class: CISC-3160, Programming Languages
*/
import java.io.*;
import java.util.*;
import java.text.*;
public class M86Asm {
private boolean showData = false;
private Micr... |
package br.com.labbs.workout.httpclientbattle;
import br.com.labbs.workout.httpclientbattle.shared.HttpClient;
import skinny.http.HTTP;
import skinny.http.Request;
import skinny.http.Response;
public class Skinny implements HttpClient<Request, Response> {
private static final String SKINNY = "Skinny";
privat... |
package io.flexio.services.api.documentation.handlers;
import io.flexio.services.api.documentation.Exceptions.ResourceNotFoundException;
import io.flexio.services.api.documentation.ResourcesManager.ResourcesManager;
import io.flexio.services.api.documentation.ResourcesManager.TestResourcesManager;
import io.flexio.ser... |
package br.ita.sem2dia1.AprofundandoClassesJava.escola;
//passo 1 programamos de forma estruturada para comparar
//passo 2 programamos de forma O.O para comparar
public class Principal {
public static void main(String[] args) {
Aluno samuel = new Aluno();
samuel.bim1=60;
samuel.bim2=80;
samuel.bi... |
package com.company.util;
import java.io.*;
/**
* Created by daisongsong on 2017/5/16.
*/
public class FileUtil {
public static String readFile(String path) {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
File f = new File(path);
InputStream inputStream = n... |
package com.monitora.monitoralog.domain.model;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.pers... |
package me.solidev.library.ui.widget.subscribeview;
/**
* Created by _SOLID
* Date:2016/10/17
* Time:16:54
* Desc:
*/
public interface SubscribeItem {
//频道所属类别
String getCategory();
void setCategory(String category);
//频道标题
void setTitle(String title);
String getTitle();
//是否固定
... |
package com.xuecheng;
import com.mongodb.client.gridfs.GridFSBucket;
import com.mongodb.client.gridfs.GridFSDownloadStream;
import com.mongodb.client.gridfs.model.GridFSFile;
import com.xuecheng.test.freemarker.FreemarkerTestApplication;
import freemarker.cache.StringTemplateLoader;
import freemarker.template.Configur... |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.io.ByteArrayOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintStream;
import org.junit.FixMethodOrder;
import org.junit.Test;
/**
* This BigNumArithmetic class tests the a “Big... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.