text stringlengths 10 2.72M |
|---|
package com.example.galdino.filmespopulares.telas.detalhesDoFilme;
import com.example.galdino.filmespopulares.dominio.Filme;
import com.example.galdino.filmespopulares.dominio.filmeDetalhe.Result;
import com.example.galdino.filmespopulares.utilities.FilmeApiMvpHelper;
import java.util.List;
import io.reactivex.Singl... |
package cs455.scaling.server;
public class TimeSpan {
private static final long MS_PER_SECOND = 1000;
private static final long MS_PER_MINUTE = MS_PER_SECOND * 60;
private static final long MS_PER_HOUR = MS_PER_MINUTE * 60;
private static final long MS_PER_DAY = MS_PER_HOUR * 24;
private final lon... |
package inheritance2;
public class EmailLogger extends Logger{
@Override // Bu etiketi koymasak da olur fakat kod okunurluğu açısından anlamı : Logger da log methodu olduğunu biliyorum ama ben
// kendi log methodumu yazarak o methodu eziyorum demek.
public void log() {
System.out.println("Email Yollan... |
public class CarteViolet extends Carte
{
private String typeMultiple;
public CarteViolet(String declencheur, String nom, String type, int cout,int piece,String typeMultiple)
{
super(declencheur, nom, type, cout,piece);
this.typeMultiple = typeMultiple;
}
public CarteViolet(CarteViolet carte)
{
super(cart... |
package uk.gov.digital.ho.hocs.search.application.aws;
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.springframew... |
/*
* Copyright (C) 2008 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 app... |
public interface Coffee {
void brewing();
} |
package com.stem.core.interfaces;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface BasicService<T, E> {
public List<E> list(T example);
public E getByPK(Integer id);
public int getTotal(T example);
public int update(@Param("model") E model, @Param("example"... |
/**
* 154. Find Minimum in Rotated Sorted Array II
* 我一开始的思路时把左侧所有相同的跳过,虽然效率差不多,但显然没有这个简洁
*/
class Solution {
public int findMin(int[] nums) {
int left = 0, right = nums.length - 1, m;
while (left < right) {
m = left + (right - left) / 2;
if (nums[m] > nums[right])
... |
package me.jessepayne.pad4j.visualizer.swing.comp;
import me.jessepayne.pad4j.core.object.SimpleLaunchpad;
import me.jessepayne.pad4j.visualizer.swing.VirtualUIManager;
import javax.swing.*;
import java.awt.*;
public class VirtualUIPanel extends JComponent{
private VirtualUIManager uiManager;
public Virtua... |
package com.youthchina.controller;
import com.youthchina.util.AuthGenerator;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.co... |
package ru.kirilushkin.housemanaging.entity;
import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import... |
package com.wisape.android.activity;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.widget.DrawerLayout;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import com.wisape.android.R;
import butterknife.ButterKnife;
impo... |
package lesson18.Ex4;
import java.util.Date;
public class Employee extends Person {
//properties
private static int nextId = 1001;
private String idEMP; //mã nhân viên
private String position; //vị trí công việc
private long wage;
private float experience; //kinh nghiệm
//constructors
pu... |
/*
* 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.
*/
/**
*
* @author javie
*/
public class Asistencia {
private String nombre;
private String curso;
private String mae... |
package com.polyvelo.forms;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
/**
* Classe de base des validateurs de Form.
* Contient une liste d'erreur liées à la validation du formulaire.
* @author Erwan Matrat & Charles Daumont
* @version 1.0
*/
public abstract c... |
package com.av.client.util.sesion;
import java.net.MalformedURLException;
import java.rmi.AccessException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.util.Hashtable;
import java.util.Map;
import org.apache.log4j.Logger;
import com.av.exceptions... |
/*
* [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 te... |
package com.leanstacks.ws.service;
import java.util.Collection;
import javax.persistence.EntityExistsException;
import javax.persistence.NoResultException;
import io.swagger.annotations.Example;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.metrics.CounterSer... |
package com.scnuweb.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.ann... |
package Einkaufszettel.backend.entities;
import java.io.Serializable;
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.Temporal;
... |
package net.julisapp.riesenkrabbe.views.eventViews.overview;
import android.accounts.AccountManager;
import android.content.ContentValues;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.google.fireba... |
/**
* Frame that prompts the user to insert a sale transaction (Sell shares)
*/
package stockorganizer;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import jav... |
package view.guicomponents.mainmenu;
import scriptinterface.ParameterTuple;
import scriptinterface.execution.parseerrors.ParameterParseException;
import view.argumentcomponents.ArgumentComponentManager;
import view.argumentcomponents.ArgumentsPanelSettings;
import view.menuutil.MacroMenu;
import view.userinterf... |
package com.xu.easyweb.service.guide;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: zht
* Date: 12-11-19
* Time: 下午1:20
* To change this template use File | Settings | File Templates.
*/
public interface GuideService {
public void addGuide(String funUrl);
public void addGuide(String ... |
package com.takshine.wxcrm.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.cache.annotation.Cach... |
/*
@author 高季
@date 2020/9/17-22:33
*/
public class hello {
}
|
package net.minecraft.enchantment;
import net.minecraft.inventory.EntityEquipmentSlot;
public class EnchantmentArrowKnockback extends Enchantment {
public EnchantmentArrowKnockback(Enchantment.Rarity rarityIn, EntityEquipmentSlot... slots) {
super(rarityIn, EnumEnchantmentType.BOW, slots);
setName("arrowKno... |
package com.example.springsecurityjwtdemo.exceptions;
public class RecordNotFoundException extends RuntimeException {
}
|
package com.mx.profuturo.bolsa.model.vo.vacancy;
import com.mx.profuturo.bolsa.model.vo.common.CatalogoVO;
public class VacanteListaVacanteVO extends CatalogoVO {
private int idInmueble;
public int getIdSede() {
return idInmueble;
}
public void setIdSede(int idSede) {
this.idInmuebl... |
package com.fleet.word.util;
import freemarker.template.Configuration;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hwpf.HWPFDocument;
import org.apache.poi.hwpf.extractor.WordExtractor;
import org.apache.poi.hwpf.... |
package behavioralPatterns.responsibilityPattern.demo;
public class Clent {
public static void main(String[] args) {
IHandler father = new Father();
Women women = new Women(1,"out");
father.handleMessage(women);
}
}
|
package core.steps;
import core.pages.FormPage;
import static core.TestData.TestVariables.*;
public class AtFormPage {
FormPage atFormPage = new FormPage();
public AtFormPage verifyThatFormTabIsOpened(){
atFormPage.getTitleFromFormTab();
return this;
}
public AtFormPage selectCoun... |
/******************************************************************************
* Product: ADempiere ERP & CRM Smart Business Solution *
* Copyright (C) 2006-2017 ADempiere Foundation, All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
... |
// CArtAgO artifact code for project prjProjectManagement
package workspaces;
import models.Project;
import cartago.Artifact;
import cartago.OPERATION;
import cartago.OpFeedbackParam;
import dao.DAODotProject;
import dao.DAOGeneric;
public class EnvironmentDataProjects extends Artifact {
private DAOGeneric dao... |
package com.xampy.namboo.ui.search.searchFragment;
import android.os.Bundle;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Arr... |
package com.takshine.wxcrm.service;
import javax.servlet.http.HttpServletRequest;
public interface WxReplyService {
/**
* 处理微信发来的请求
*
* @param request
* @return
*/
public String processRequest(String request,HttpServletRequest httprequest);
}
|
package com.cz.android.simplehttp.pool;
import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
public class HttpConnectionPoolTest {
public static void main(String[] args) throws IOException {
ConnectionPool connectionPool = ConnectionPool.getDefault();
Connection connect... |
package org.openhab.support.knx2openhab.model;
import java.util.Map;
import java.util.Objects;
import org.knx.xml.KnxGroupAddressT;
public class KNXItem
{
private final KNXItemDescriptor itemDescriptor;
private final KnxGroupAddressT groupAddress;
private final boolean readable;
private final boolea... |
package com.wincentzzz.project.template.springhack.models;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Builder
@Table(name = "examination")
public class Examination {
... |
package com.lupan.HeadFirstDesignMode.chapter2_observer.interfaces;
/**
* TODO 主题(被观察者)
*
* @author lupan
* @version 2016/3/17 0017
*/
public interface ISubject {
void addObserver(IObserver observer);
void removeObserver(IObserver observer);
void notifyObservers();
}
|
package by.epam.matrix.blocklogic.service;
import by.epam.matrix.blocklogic.entity.Matrix;
/**
* Service class realizes thread logic.
*
* @author Veronika
* @see java.lang.Thread
*/
public class Walker extends Thread {
/**
* Number to put in matrix instead of zero
*/
private int ownNumber;
... |
package com.paleimitations.schoolsofmagic.common.data.books;
import net.minecraft.nbt.CompoundNBT;
public interface IPageSerializable {
CompoundNBT serializeNBT();
void deserializeNBT(CompoundNBT nbt);
}
|
package org.ah.minecraft.machines;
import org.bukkit.Effect;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemStack;
public class PlaceMachine extends Machine {
private ItemStack pickaxe;
public PlaceMachine(Block b) {
... |
package com.flysoloing.stargate.agent.server;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author laitao
* @date 2017-04-11 15:35:07
*/
public class AgentServerHandler extends SimpleChannelInbound... |
/*******************************************************************************
* Copyright 2021 Danny Kunz
*
* 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.... |
package example.jamesb.moviessample.data.sync;
import android.content.Context;
import com.google.common.util.concurrent.ListenableFuture;
import javax.inject.Inject;
import androidx.annotation.NonNull;
import androidx.concurrent.futures.CallbackToFutureAdapter;
import androidx.lifecycle.Observer;
import androidx.pa... |
package models;
public class NoSintatico {
private String simbolo;
private String producao;
public NoSintatico(String simbolo, String producao) {
this.simbolo = simbolo;
this.producao = producao;
}
public String getSimbolo() {
return simbolo;
}
public String getP... |
package model.validations.interfaces;
public interface OnUpdate {
}
|
package com.tencent.mm.memory;
public class o$b implements Comparable {
private String dvr;
public int height;
public int width;
public o$b(int i, int i2) {
this.width = i;
this.height = i2;
this.dvr = String.format("SightBitmapSize: [%s, %s]", new Object[]{Integer.valueOf(i), ... |
package com.tencent.mm.plugin.account.friend.ui;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
class QQFriendUI$5 implements OnMenuItemClickListener {
final /* synthetic */ QQFriendUI eMV;
QQFriendUI$5(QQFriendUI qQFriendUI) {
this.eMV = qQFriendUI;
}
pu... |
package br.com.alura.carteira.service;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.math.BigDecimal;
import java.time.LocalDate;
import javax.persistence.EntityNotFoundException;
import org.junit.jupiter.api.BeforeEach;
import ... |
/*
* ApplicationInjector.java
* This file was last modified at 2018.12.03 20:05 by Victor N. Skurikhin.
* $Id$
* This is free and unencumbered software released into the public domain.
* For more information, please refer to <http://unlicense.org>
*/
package ru.otus.client.gin;
import com.google.gwt.core.client... |
package com.example.demo.core.components.storage;
public class SDD implements Storage{
}
|
package com.example.lab1;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.*;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceStat... |
package com.tencent.mm.plugin.nearlife.ui;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
class NearLifeCreatePoiUI$6 implements OnMenuItemClickListener {
final /* synthetic */ NearLifeCreatePoiUI lEr;
NearLifeCreatePoiUI$6(NearLifeCreatePoiUI nearLifeCreatePoiUI) {
... |
package in.ac.iiitk.messenger;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.suppo... |
package com.tkb.elearning.model;
import java.sql.Timestamp;
public class EnsureRight {
private int id;
private String right_title;
private String right_content;
private Timestamp create_date;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getRight_title()... |
package co.nos.noswallet.persistance.currency;
import android.support.annotation.Nullable;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import co.nos.noswallet.NOSApplication;
public enum CryptoCurrency implements Serializable {
NOLLAR("usd_", "usd", 2, 0, "NOLLAR", "... |
package com.tieto.javabootcamp.service;
import com.tieto.javabootcamp.model.user.User;
import java.util.List;
public interface UserService {
User createUser(User name);
User getUser(String name);
List<User> getUsersByName(String name);
List<User> getAllUsers();
boolean removeUser(String name... |
package com.santander.bi.controllers;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotat... |
package ru.bm.eetp.controler;
import ru.bm.eetp.dto.RequestResult;
import java.net.URI;
public interface ExternalServiceCaller<T> {
abstract RequestResult callExternalService(T body, URI uri);
abstract RequestResult getRequestResult();
}
|
package com.musala.edu.patterns.abstractfactory;
import java.util.Arrays;
import java.util.List;
import com.musala.edu.patterns.abstractfactory.model.Dessert;
import com.musala.edu.patterns.abstractfactory.model.Main;
import com.musala.edu.patterns.abstractfactory.model.Meal;
/**
*
* @author georgi.kav... |
package baekjoon.binary_search;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;
public class Test_10816 {
//이분탐색 문제
//숫자 카운트는 map으로 해결했다
public static voi... |
package task46;
import common.Utils;
import java.util.List;
/**
* @author Igor
*/
public class Main46 {
public static void main(String[] args) {
int number = 9;
List<Integer> primes = Utils.sievePrimes(1_000_000);
while (number < Integer.MAX_VALUE) {
if (!Utils.isPrime(nu... |
package alg.graph;
/**
* 最小生成树API
* @author yang
*
*/
public interface MST {
double weight();
Iterable<Edge> edges();
}
|
package com.tencent.mm.ui.base;
public enum MaskLayout$a {
;
public static int[] crY() {
return (int[]) tzn.clone();
}
static {
tzi = 1;
tzj = 2;
tzk = 3;
tzl = 4;
tzm = 5;
tzn = new int[]{tzi, tzj, tzk, tzl, tzm};
}
}
|
package it.polimi.ingsw.GC_21.EFFECT;
import it.polimi.ingsw.GC_21.ACTION.Action;
import it.polimi.ingsw.GC_21.ACTION.CraftAction;
import it.polimi.ingsw.GC_21.BOARD.CraftType;
import it.polimi.ingsw.GC_21.GAMEMANAGEMENT.Game;
import it.polimi.ingsw.GC_21.PLAYER.Player;
public class CraftInfluencer extends Effect imp... |
/*
* Copyright 2008 Kjetil Valstadsve
*
* 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 agre... |
package cd.com.a.service;
import cd.com.a.model.companyDto;
public interface CompanyService {
public int addCompany(companyDto company);
}
|
package br.com.tobyte.function;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
/**
*
* @author Thiago
*/
public class ByteToImage implements br.com.toby... |
/*
* 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 br.cwi.crescer.utils;
import br.cwi.crescer.repositorio.IO;
/**
*
* @author Érico de Souza Loewe
*/
public class MeuWriter... |
package api.longpoll.bots.methods.impl.stories;
import api.longpoll.bots.http.params.BoolInt;
import api.longpoll.bots.methods.AuthorizedVkApiMethod;
import api.longpoll.bots.methods.VkApiProperties;
import api.longpoll.bots.model.objects.additional.Story;
import api.longpoll.bots.model.objects.additional.VkList;
impo... |
package com.chris.projects.fx.ftp.entity.order;
public class SpotOrder extends Order{
private double filledAmt;
private OrderStatus orderStatu;
public SpotOrder(String orderId, String cloId, String symbol, String dealtCcy, double price, double orderAmt, long timeStamp) {
super(orderId, cloId, symb... |
package com.maoyan.day1;
import com.google.common.base.Optional;
import org.junit.Test;
/**
* Created by jiangdongyu on 2017/4/17.
* NULL语义不清晰 如hashmap中null 可能表示没有键 或者这该键的值为null
* 性能和和速度廉价,而且对象数组中无法避免
* Guava中采用快速失败 除非提供 特定的处理措施
* <p>
* 应该使用特定值来存储null键
* 增加枚举类型表示null
*/
public class UsingAndaAvoidingNull {
... |
package pl.gabinetynagodziny.officesforrent;
import org.modelmapper.ModelMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.... |
package net.crunchdroid.service;
import lombok.AllArgsConstructor;
import net.crunchdroid.dao.AbonneDao;
import net.crunchdroid.model.Abonne;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
@AllArgsConstructor
public class AbonneService {
private AbonneDao abonneDao;
public A... |
package at.ebinterface.validation.web.pages.convert.result;
import org.apache.wicket.markup.html.WebPage;
import at.ebinterface.validation.web.pages.BasePage;
/**
* Used to show the results of the conversion from XRechnung to ebInterface
*
* @author Philip Helger
*/
public final class ResultPageXRechnungToEbi ex... |
package com.fab.devportal.dao;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class ApiDescTbl {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String parentApiName;... |
/*
* 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 com.example.bbx22.projet3.turbines;
import static java.lang.Math.pow;
public class Turbine3 extends Turbine {
public Turbine3(){
}
public double P3(double Sn, double HauteurDeChuteNette)
{
return
5.718 //p00
... |
/*
* DoublyNode represent a node for LinkedList
*
* Author: Gilang Kusuma Jati (gilang.k@samsung.com), SRIN.
*
*/
package datastructurefromlib;
public class DoublyNode<E extends Comparable<E>>
{
DoublyNode<E> prev;
E element;
DoublyNode<E> next;
public DoublyNode(DoublyNode<E> prev, E element, ... |
package com.BasicLearn;
public class CloneDemo implements Cloneable {
private String name ;
private int age;
public String getName() {
return name;
}
public int getAge() {
return age;
}
public CloneDemo(String name, int age) {
this.name = name;
this.age =... |
package com.example.healthmanage.ui.activity.historydata;
import androidx.lifecycle.MutableLiveData;
import com.example.healthmanage.base.BaseViewModel;
import com.example.healthmanage.bean.network.response.HistoryDataResponse;
import com.example.healthmanage.bean.UsersInterface;
import com.example.healthmanage.bean.... |
package com.dict.hm.dictionary.ui;
import android.app.Activity;
import android.app.ListFragment;
import android.os.Bundle;
import com.dict.hm.dictionary.paper.PaperJsonReader;
import com.dict.hm.dictionary.ui.MainActivity;
import com.dict.hm.dictionary.dict.DictManager;
import com.dict.hm.dictionary.dict.parse.DictPa... |
package com.colingodsey.quic.packet.frame;
import io.netty.buffer.ByteBuf;
import com.colingodsey.quic.utils.VariableInt;
public class DataBlocked implements Frame {
public static final int PACKET_ID = 0x14;
final long dataLimit;
public DataBlocked(ByteBuf in) {
Frame.verifyPacketId(in, PACKET_... |
package edu.doumi.ioc.personImpl;
import edu.doumi.ioc.Service.PersonService;
import edu.doumi.ioc.annotation.MyAutowired;
import edu.doumi.ioc.annotation.MyBean;
import edu.doumi.ioc.person.Person;
@MyBean(name="person")
public class Student implements Person {
@MyAutowired
private PersonService service;
... |
package com.nxtlife.mgs.service;
import java.util.List;
import com.nxtlife.mgs.filtering.filter.SessionFilter;
import com.nxtlife.mgs.view.SessionRequest;
import com.nxtlife.mgs.view.SessionResponse;
import com.nxtlife.mgs.view.SuccessResponse;
public interface SessionService {
SessionResponse createSession(Sessio... |
package api.longpoll.bots.validators;
import api.longpoll.bots.converters.json.GsonConverter;
import api.longpoll.bots.converters.json.JsonConverter;
import com.google.gson.JsonElement;
/**
* Default implementation of VK API response validator.
*/
public class DefaultVkApiResponseValidator implements VkApiResponseV... |
package TCP.Object;
import java.io.Serializable;
public class Student implements Serializable {
private String ten;
private int diem;
public Student(String ten, int diem) {
this.ten = ten;
this.diem = diem;
}
public String getTen() {
return ten;
}
public void set... |
import java.util.HashMap;
public class CoinChange {
public static long numWays(int n, long [] coins) {
if (n < 0) {
return 0;
}
return getWays(n, coins, 0, new HashMap<String, Long>());
}
public static long getWays(int n, long[] arr, int number, HashMap<String, Long> m... |
package com.example.uofthacks.boop;
public interface DialogInputInterface {
void onSelectEmail(String email);
}
|
package com.quarklabs.volo.core.modes;
/**
* Created by rudy on 2/16/17.
*/
class SuddenDeath extends GameMode{
public SuddenDeath(GameModeListener gmListener, int score) {
super(gmListener, score);
}
public void execute(buttons tag) {
switch (tag) {
case GOOD: endLife();
... |
package finalProject;
import javax.swing.ImageIcon;
public class JumpStair extends Stair{
public static boolean jumping=false;
public JumpStair() {
spring1();
}
public JumpStair(int x,int y) {
this();
this.x=x;
this.y=y;
}
public void spring1() {
ImageIcon icon=new ImageIcon("imag... |
package InterviewQs;
import java.util.ArrayList;
public class MergeTwoSortedArrays {
public static void main(String ags[]) {
ArrayList<Integer> list1 = new ArrayList<>();
ArrayList<Integer> list2 = new ArrayList<>();
for(int i=1;i<6;i++)
list1.add(i*3);
for(int i=2;i<10;i++)
list2.add(i*2);
ArrayL... |
package br.com.opensig.financeiro.client.controlador.comando;
import java.util.Map;
import br.com.opensig.core.client.controlador.comando.ComandoFuncao;
import br.com.opensig.core.shared.modelo.sistema.SisFuncao;
import br.com.opensig.financeiro.client.visao.form.FormularioRemessa;
import br.com.opensig.financeiro.cl... |
package com.spbsu.flamestream.runtime.serialization;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.ByteBufferInput;
import com.esotericsoftware.kryo.io.ByteBufferOutput;
import com.esotericsoftware.kryo.serializers.ClosureSerializer;
import org.objenesis.strategy.StdInstantiatorStrategy;
... |
package com.ybg.rbac.syspro.service;
import java.util.List;
import com.ybg.rbac.syspro.domain.Syspro;
import com.ybg.rbac.syspro.qvo.SysproQvo;
public interface SysproService {
void update(Syspro bean);
List<Syspro> query(SysproQvo qvo);
}
|
package com.hello.dao;
import com.hello.entity.User;
import org.springframework.stereotype.Repository;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import java.util.List;
@Repository
p... |
package com.redapps.intentsaver;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Environment;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.