text
stringlengths
10
2.72M
package resources; import java.util.MissingResourceException; import java.util.ResourceBundle; import exceptions.ResourceBundleException; /** * The purpose of this class is to manage accessing the resource bundle. It * restricts the use of ResourceBundle to only getString. Additionally, it throws * customized er...
/* * 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 junit.framework.TestCase; import pt.mleiria.mlalgo.core.Transformer; import pt.mleiria.m...
interface AdderInterface{ public int add(int x, int y); public int add(int n); } public class myAdder implements AdderInterface{ int x, y, t = 0; public int add(int x, int y) { return x+y; } public int add(int n) { for(int i = 1;i<=n;i++) { t+=i; } return t; } public static void main(String[] args) {...
package com.tencent.mm.plugin.music.model.notification; import com.tencent.mm.sdk.platformtools.ah; import com.tencent.mm.sdk.platformtools.x; class MMMusicPlayerService$1 implements Runnable { final /* synthetic */ MMMusicPlayerService lzp; MMMusicPlayerService$1(MMMusicPlayerService mMMusicPlayerService) {...
package com.sunshine.grpc.example.interceptor.server; import com.google.protobuf.StringValue; import com.sunshine.grpc.example.ordermanagement.CombinedShipment; import com.sunshine.grpc.example.ordermanagement.Order; import com.sunshine.grpc.example.ordermanagement.OrderManagementGrpc; import io.grpc.stub.StreamObserv...
package com.flutterwave.raveandroid.validators; import java.util.regex.Pattern; import javax.inject.Inject; public class BvnValidator { @Inject public BvnValidator() { } public boolean isBvnValid(String bvn) { if (bvn != null) { return Pattern.matches("\\d{11}", bvn); } ...
package com.google.android.gms.common.stats; import com.google.android.gms.c.j; public final class c { public static j<Integer> aPP = j.a("gms:common:stats:max_num_of_events", Integer.valueOf(100)); public static final class a { public static j<Integer> aPQ = j.a("gms:common:stats:connections:level",...
package com.tencent.mm.pluginsdk.ui.applet; import com.tencent.mm.pluginsdk.ui.applet.s.a; class a$4 implements a { final /* synthetic */ a qIg; a$4(a aVar) { this.qIg = aVar; } public final void ea(boolean z) { a.a(this.qIg, z, this.qIg.qIa, this.qIg.eNh); } }
/*write by bao 2015/07/31 add function fragment 2015/08/05 04:16 add function network */ package com.example.weq498.testfragment; import android.app.Fragment; import android.app.FragmentManager; import android.content.Intent; import android.os.Handler; import android.os.Message; import android.support.v7.app.ActionBa...
package tw.org.iii.java; public class Brad29 { public static void main(String[] args) { int a = 1; while (a < 10) { System.out.println(a++); } System.out.println("---"); int b = 1; for (;b < 10;) { System.out.println(b++); } } }
package ua.edu.ucu.autocomplete; import static org.hamcrest.Matchers.containsInAnyOrder; import org.junit.Test; import static org.hamcrest.Matchers.stringContainsInOrder; import static org.junit.Assert.*; import org.junit.Before; import ua.edu.ucu.tries.RWayTrie; /** * @author Andrii_Rodionov */ public class Pr...
package com.cms.common.controller; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java....
package net.doepner.ws.model; /** * TODO */ public enum Label { APPROV, ARCHAIC, DATED, DIALECT, DEROGATORY, EUPHEMISM, FIGURATIVE, FORMAL, INFORMAL, IRONIC, JOC, OFFENSIVE, PROPR, RHETORIC, SEXIST, SLANG, TABOO, TECHNICAL; }
package com.lxr.iot.bootstrap.channel; import com.lxr.iot.bootstrap.bean.WillMeaasge; import com.lxr.iot.bootstrap.BaseApi; import com.lxr.iot.bootstrap.ChannelService; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringU...
package cn.edu.sdjzu.xg.bysj.dao; //201902104050 姜瑞临 import cn.edu.sdjzu.xg.bysj.domain.GraduateProjectCategory; import util.Condition; import util.JdbcHelper; import util.Pagination; import java.sql.*; import java.util.Collection; import java.util.HashSet; public final class GraduateProjectCategoryDao { //本类的一个对...
package com.lfd.day0000_01_tools.utils; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; /** * Created by Administrator on 2015/1/24. */ public class IOUtils { /** * 将输入流转换为UTF-8编码的字符串 * @param inputStream 输入流 * @return UTF-8编码的字符串 ...
/** * 常量定义 * * @author xkzhangsan */ package com.xkzhangsan.time.constants;
package com.tencent.mm.pluginsdk.ui.chat; import com.tencent.mm.pluginsdk.ui.chat.m.a; class ChatFooter$1 implements a { final /* synthetic */ ChatFooter qMv; ChatFooter$1(ChatFooter chatFooter) { this.qMv = chatFooter; } public final void clear() { ChatFooter chatFooter = this.qMv; ...
package com.arkaces.aces_marketplace_api.contract; import lombok.Data; import java.util.Map; @Data public class CreateContractRequest { private String label; private Map<String, Object> arguments; }
package com.mxfit.mentix.menu3.Utils; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import com.mxfit.mentix.menu3.Beans.PreRun; import com.mxfit.mentix.menu3.Beans.Tr...
package br.com.vvcurso.services; import java.util.List; import java.util.Set; import br.com.vvcurso.model.Pedido; public interface InterfacePedidoDataSource { public List<Pedido> lerArquivo(); //public void gravarArquivo(Pedido pedido); public void gravarMemoria(Pedido pedido); void gravarArquivo(Set<Pedido> li...
package com.ace.easyteacher.Activity; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import an...
package ch.epfl.seti.shared; import com.google.gwt.user.client.rpc.IsSerializable; public class NoTaskAvailableException extends Exception implements IsSerializable { private static final long serialVersionUID = -3819683331742618238L; }
package com.ben.web.servlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class SimpleControllerHandlerAdapter implements HandlerAdapter{ public ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Controller handler) { // TODO Aut...
package com.ibiscus.myster.model.survey.item; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; @Entity(name = "FileItem") @DiscriminatorValue("FILE") public class FileItem extends AbstractSurveyItem { FileItem() { super(); } public FileItem(long id, long categoryId, ...
package com.tencent.mm.ab; import com.tencent.mm.hardcoder.HardCoderJNI; import com.tencent.mm.kernel.g; import com.tencent.mm.plugin.report.f; import com.tencent.mm.plugin.zero.a.e; import com.tencent.mm.pointers.PByteArray; import com.tencent.mm.protocal.MMProtocalJni; import com.tencent.mm.protocal.c.asr; import co...
package com.avantir.qrcode.generator; import com.avantir.qrcode.utils.StringUtils; import java.util.Map; public class ArcaMerchAcctInfoTemplate extends EmvTlv { private final String arcaAppId; private final String acquirerId; private final String merchantId; private final String ptsp; private f...
package com.appdear.client.commctrls; import java.io.InputStream; import java.lang.ref.WeakReference; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Handler; import android.os.Message; import android.util.AttributeSet; import android.view.Layou...
package org.apache.commons.net.tftp; public class TFTPPacketException extends Exception { private static final long serialVersionUID = -8114699256840851439L; public TFTPPacketException() {} public TFTPPacketException(String message) { super(message); } } /* Location: C:\Users\BSV\AppDa...
package edu.view.ui.teacher; import edu.config.PropertyLoader; import edu.curd.operation.teacher.ManageTeacher; import edu.data.service.ManageTeacherService; import edu.data.service.impl.ManageTeacherServiceImpl; import edu.view.ui.MainForm; import java.awt.Dimension; import java.awt.Toolkit; import java.awt.event.Act...
/* * Copyright (c) 2008-2011 by Jan Stender, * Zuse Institute Berlin * * Licensed under the BSD License, see LICENSE file for details. * */ package org.xtreemfs.mrc.operations; import org.xtreemfs.common.ReplicaUpdatePolicies; import org.xtreemfs.common.xloc.ReplicationFlags; import org.xtreemfs.f...
package com.summer.dao.demo.component; import com.summer.web.basic.rest.SummerRequestFilter; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * 配置过滤器 * * @author luke */ @Configu...
/* * 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 id.co.ahm.sd.nis.app020.dao; import id.co.ahm.jxf.dao.DefaultDao; import id.co.ahm.jxf.dto.DtoParamPaging; import id.co.ahm.sd...
package reverse_integer; public class Solution { public int reverse(int x) { long r = 0; while (x != 0) { r = r * 10 + x % 10; x /= 10; } return r > Integer.MAX_VALUE || r < Integer.MIN_VALUE ? 0 : (int) r; } public static void main(String[] args) { System.out.println(new Solution().reverse(1563847...
package sample; public class Extensions { private String[] video = { "3g2", "3gp", "aaf", "asf", "avchd", "avi", "drc", "flv", "m2v", "m4p", "m4v", "mkv", "mng", "mov", "mp2", "mp4", ...
package jp.personal.server.domain.repository.room.impl; import java.util.List; import java.util.stream.Stream; import javax.persistence.EntityManager; import org.eclipse.collections.api.list.ImmutableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository...
package it.mobistego.fragments; import android.Manifest; import android.app.Activity; import android.app.AlertDialog; import android.app.Fragment; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.database.Cursor; import android.net.Uri; imp...
package com.training.ee.ejb; public class MyStatelessProxy extends MyStateless { @Override public int calcAdd(final int a, final int b) { MyStateless my1 = new MyStateless(); //MyStateless my1 = EJBContext.getBean(); return my1.calcAdd(a, ...
package com.papadogiannis.entities; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; import java.io.Serializable; import java.util.Date; import java.util.Set; @Entity @Table(name="accounts") @Data @AllArgsConstructor @NoArgsConstructor public class A...
package com.tfjybj.integral.model.ColleagueResult; import lombok.Data; import lombok.NoArgsConstructor; import lombok.ToString; import lombok.experimental.Accessors; import java.util.List; /** * @program: integralV3.0-sprint1.0 * @description: 项目组内数据汇总 * @author: 谷浩樟 * @create: 2019-09-13 09:53 **/ @NoArgsConst...
package practico6; public class TestMatriz { public static void main(String[] args) { Matriz mtrz= new Matriz(); mtrz.armar(); } }
package com.设计模式.迭代器模式; /** * 设计了一个迭代器 * 书橱类,使用迭代器来放书 * 接口:Aggregate作为一个拥有迭代器的汇聚类,Iterator迭代器接口 * 实现类:Book作为书的实体类,BookShelf作为书橱实体类实现了汇聚接口,BookShelfIterator作为书橱的迭代器实现了迭代器接口 * @author wicks * */ public class Main { public static void main(String[] args) { BookShelf bookShelf = new BookShel...
package br.com.zup.zupacademy.daniel.mercadolivre.validadores; import br.com.zup.zupacademy.daniel.mercadolivre.produto.ProdutoRequest; import org.springframework.stereotype.Component; import org.springframework.validation.Errors; import org.springframework.validation.Validator; @Component public class Caracteristica...
package com.bnr.android.criminalintent; import android.app.Fragment; public class CrimeListActivity extends SingleFragmentActivity { @Override protected CrimeListFragment createFragment() { return new CrimeListFragment(); } }
package com.mobica.rnd.parking.parkingbe.service; import com.mobica.rnd.parking.parkingbe.model.User; public interface UserService { User addNewUserAccount(User user); }
package com.zihui.cwoa.system.pojo; import java.util.List; public class sys_project { private Integer projectId; private String projectName; //项目名称 private String projectIntroduction; //项目介绍 private String projectAddress; //项目地址 private Integer status; //状态 private Strin...
/* * Ada Sonar Plugin * Copyright (C) 2010 Akram Ben Aissi * dev@sonar.codehaus.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or...
package net.sssanma.mc.listener; import net.sssanma.mc.utility.NMSUtil; import net.sssanma.mc.utility.NMSUtil.MinecraftInventory; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.inventory.ClickType; import org.bukkit.event.inventory.InventoryClickEvent; import org.bukkit...
package net.minecraft.network.play.server; import java.io.IOException; import javax.annotation.Nullable; import net.minecraft.network.INetHandler; import net.minecraft.network.Packet; import net.minecraft.network.PacketBuffer; import net.minecraft.network.play.INetHandlerPlayClient; import net.minecraft.util.ResourceL...
package com.example.demo.service.imp; import com.example.demo.service.async; import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.AsyncResult; import org.springframework.stereotype.Service; import java.util.concurrent.Future; @Service("async") public class asyncImp...
package etäpäivä1; /** * Matkustaja luokka, etäpäivän harjoituksiin. * Alustajina oletus (tyhjä), sekä parametreina String nimi, double paikanHinta, String kohde parametrit ottava. * * @author Jukka Vuorinen * @package Etäpäivä1 * @version 0.1 * @since 25.9.2015 */ public class Matkustaja { private String ni...
package com.xiruan.demand.demand.job; import com.xiruan.demand.entity.automation.HIPIJobRun; import com.xiruan.demand.entity.automation.HIPISysDict; import com.xiruan.demand.entity.automation.JobSchedule; import com.xiruan.demand.entity.automation.JobTemplate; import com.xiruan.demand.repository.HIPIJobRunDao; import ...
public class FullStackException extends Exception { }
package pms.controller; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bin...
package co.uniqueid.authentication.client.companies; import co.uniqueid.authentication.client.UniqueIDGlobalVariables; import co.uniqueid.authentication.client.utilities.ConvertJson; import com.google.gwt.json.client.JSONObject; import com.google.gwt.json.client.JSONString; public class GetFirstCompany { ...
package com.horical.hrc7.suppliertest; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import com.horical.hrc7.supplier.app.AppManager; import com.horical.hrc7.supplier.network_api.login.dto.UserDTO; import org.junit.Test; import ...
package com.appsnipp.homedesign2.Activity; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; import androidx.annotation.NonNull; import com.appsnipp.homedesign2.Adapter.UserRankingAdapter; import com.appsnipp.homedesign2.Entity.History; import com.appsnipp.home...
package tests; import model.*; import java.util.List; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.*; @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class TestKnight { Board board = Board.getBoard(); @Test public void test1_jump() { int row = 7; int col = 6; List<In...
package com.tencent.mm.plugin.appbrand.page; import android.animation.ObjectAnimator; import android.content.Context; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.view.ViewGroup.LayoutParams; import android.view.animation.DecelerateInterpolator; impor...
package com.tencent.mm.ui.widget.progress; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable.Creator; import android.view.View.BaseSavedState; class MMProgressWheel$WheelSavedState extends BaseSavedState { public static final Creator<MMProgressWheel$WheelSavedState> CREATOR = ne...
package hirondelle.web4j.database; import java.util.*; import java.util.logging.*; import java.sql.Connection; import hirondelle.web4j.util.Util; import hirondelle.web4j.util.Args; /** Perform the simplest kinds of transactions. <P>Executes a number of SQL statements, in the same order as passed to the...
// Sun Certified Java Programmer // Chapter 1, P41 // Declarations and Access Control public class IllegalClass { public abstract void doIt(); }
package ru.lischenko_dev.fastmessenger.vkapi; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.StringWriter; import java.util.regex.Matcher; import java.util.regex.Pattern; import ru.lischenko_dev.fastmessenger.vkapi.models.VKAttachm...
package com.liyinghua.dao; import java.util.List; import org.apache.ibatis.annotations.Param; import com.liyinghua.entity.Category; public interface CategoryMapper { /** * * @Title: getCategoryByChannelId * @Description: 通过频道id 获取 频道中的分类列表 * @param channelId * @return * @return: List ...
package com.jjw.sparkCore.others.partitioner; public class test { public static void main(String[] args) { // System.out.println("afdaabc".hashCode()); System.out.println("afdaabc".hashCode()%7); // System.out.println((-101)%4); // SparkConf conf = new SparkConf(); // conf.setMaster("local").setApp...
package cn.ehanmy.hospital.mvp.ui.holder; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.jess.arms.base.BaseHolder; import com.jess.arms.di.component.AppComponent; import com.jess.arms.http.imageloader.ImageLoader; import com.jess.arms.http.imageloader.glide.Imag...
package com.trix.vtufinal; /** * Created by jeevan on 25/08/17. */ public class tb { String usn; String marks; tb(String usn) { this.usn=usn; } public String getMarks() { return marks; } public String getUsn() { return usn; } public void setMarks(Str...
package com.espendwise.manta.model.data; // Generated by Hibernate Tools import com.espendwise.manta.model.TableObject; import com.espendwise.manta.model.ValueObject; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.pe...
/* This file is part of xpeppers.phoneBook Copyright 2015 Micheli Luca 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 requ...
package com.nuuedscore.service; import java.util.List; import com.nuuedscore.domain.StudentResource; /** * Student Resource Service Interface * * @author PATavares * @since Feb 2021 * */ public interface IStudentResourceService { List<StudentResource> findAll(); }
package pro.eddiecache.ioc.xml; import org.dom4j.Document; public interface IDocumentHolder { Document getDocument(String filePath); }
package org.browsexml.timesheetjob.model; import java.util.Date; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; // Generated Feb 6, 2009 11:36:48 AM by Hibernate Tools 3.2.2.GA /** * HoursWorked generated by hbm2java */ public class HoursWorkedReport implements java.io.Serial...
package Numbers; public class ReplaceDigits { public static void main(String[] args) { int num =1234; String s= Integer.toString(num); String str=""; for(int i=0;i<s.length();i++) { if(s.charAt(i)=='4') str =str+"0"; else str=str+s.charAt(i); } System.out.println(str); } }
package uiLayer.uiChartecCode; import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.SwingUtilities; import javax.swing.border.EmptyBorder; import...
package com.carousell.marketplace.service; import com.carousell.marketplace.dao.User; import com.carousell.marketplace.error.exception.UserAlreadyExistException; import com.carousell.marketplace.error.exception.UserNotFoundException; import com.carousell.marketplace.repository.UserRepository; import com.carousell.mark...
package com.example.spring_security_basic; import com.example.spring_security_basic.entities.AppUser; import com.example.spring_security_basic.repositories.AppUserRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.crypto.password.PasswordEncoder; import org.s...
package commandlineparser.handlers; import commandlineparser.Product; import commandlineparser.StorageManager; import commandlineparser.parser.*; import java.util.Arrays; import java.util.List; public class ListCommandHandler implements CommandHandler { private StorageManager storageManager; private final Li...
package com.smxknife.patterns.singleton.demo02; import java.util.Objects; /** * @author smxknife * 2019-06-18 */ public class Mode_LazyInitializationCanPreventReflect2 { static { System.out.println("构造初始化"); if (Objects.nonNull(LazyInitializationHolder.INSTANCE)) { throw new RuntimeException("不可实例化多个单例");...
package com.athbk.ultimatetablayout; /** * Created by tranquanghung on 8/28/17. */ public interface OnClickTabListener { void onClickTab(int currentPos); }
package nyc.c4q.ramonaharrison.accesscats; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import nyc.c4q.ramonaharrison.accesscats.model.Cat; import static nl.qbusict.cupboard.CupboardFactory.cupboard; /** * Created by Ramona Harriso...
package com.steatoda.commons.fields.service.crud; import java.util.List; import java.util.Set; import com.steatoda.commons.fields.FieldEnum; import com.steatoda.commons.fields.FieldGraph; import com.steatoda.commons.fields.HasEntityFields; /** * {@link CRUDFieldsService} implementation that delegates all calls to a...
package com.jpnouchi.app.client.dao; import com.jpnouchi.app.base.dao.GenericDAO; import com.jpnouchi.app.client.model.Control; /** * Created with IntelliJ IDEA. * User: Jose * Date: 20/06/13 * Time: 12:21 AM * To change this template use File | Settings | File Templates. */ public interface ControlDAO extends ...
/* * Sonar JavaScript Plugin * Copyright (C) 2011 Eriks Nukis * dev@sonar.codehaus.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License,...
/** * */ package org.opentosca.instancedata.service.impl.persistence; import java.net.URI; import java.util.List; import javax.persistence.Query; import javax.xml.namespace.QName; import org.opentosca.model.instancedata.IdConverter; import org.opentosca.model.instancedata.ServiceInstance; import org.slf4j.Logger;...
package com.encheres.vente_aux_encheres.packageServeur; public class Chronometre { private long depart = 0; private long fin = 0; //Durée en seconde private long duree = 0; public void start() { depart=System.currentTimeMillis()/1000; fin=0; duree=0; } public void stop() { if(depart==0) {return;} f...
package com.gtfs.dao.impl; import java.io.Serializable; import java.util.Date; import java.util.List; import org.apache.log4j.Logger; import org.hibernate.Criteria; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.h...
package arrayiterator; public class arrayiterator { private int index; private int [] arr; public arrayiterator(int [] array) throws Exception{ // TODO Auto-generated constructor stub index = 0; arr = array; } public boolean hasNext() { if (index < arr.length) { return true; } return false; } pub...
package communication.packets.response; import communication.enums.PacketType; import communication.enums.RequestResult; import communication.packets.ResponsePacket; /** * A packet indicating that the former request was valid i.e. it was processed. * In general this packet has the general {@link PacketType#VALID_RE...
package pl.rogalik.objects; import pl.rogalik.environ1.game_map.map_objects.entities.Entity; /** * Class representing hero controlled by player */ public class Hero extends Creature { private int hunger = 100; private final String name; public Hero(Entity pos, String name) { super(pos); ...
package com.cs4125.bookingapp.ui.main; import android.content.Intent; import android.os.Bundle; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.lifecycle.LiveData; import androidx.lifecycle.ViewModelProvider; import androidx.lifecycle.ViewModelProviders; import androidx.nav...
package com.tencent.mm.plugin.freewifi; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.net.ConnectivityManager; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Build.VERSION; import android.telephony.TelephonyManage...
package com.tencent.mm.ui.contact.a; import android.content.Context; import com.tencent.mm.ui.contact.a.a.a; public final class i extends a { public int jxE; public boolean jxF; a umP = new a(this); private b umR = new b(this); public i(int i) { super(1, i); } public final void c...
package de.ybroeker.assertions.json; import org.junit.jupiter.api.Test; class JsonMapAssertTest { @Test void testJsonContainingEmptyObject() { JsonAssert.assertThat("{\"test\":{}}").jsonPathAsMap("$.test").isEmpty(); } }
package com.yuecheng.yue.ui.presenter; import android.content.Context; import com.yuecheng.yue.ui.activity.YUE_ISettingsView; import com.yuecheng.yue.ui.activity.impl.YUE_LoginActivity; import com.yuecheng.yue.ui.bean.YUE_SPsave; import com.yuecheng.yue.ui.interactor.YUE_ISettingsViewInteractor; import com.yuecheng.y...
package com.movietoy.api.domain.weeklyBoxOffice; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; public interface WeeklyMovieRepository extends JpaRepository<WeeklyMovie, Long> { Li...
/* * 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 Entidades; /** * * @author EdHam */ public class entDetalleReceta { private int id_det_receta; private int id_rece...
package Module2_OOP.ExtraTasks.Lesson4.E_ticket; public class Train { public int seatCount; private String numberId; public Train(String numberId, int seatCount) { this.numberId = numberId; this.seatCount = seatCount; } public String getNumberId() { return numberId; } ...
package simulated_annealing; public class City { private int x; private int y; public City(){ this.x = (int) (Math.random() * 100); this.y = (int) (Math.random() * 100); System.out.println("City : " + x + " - " + y); } public int getX() { return this.x; } ...
package com.tencent.mm.ui.chatting; import android.view.View; import android.view.View.OnClickListener; class TextPreviewUI$6 implements OnClickListener { final /* synthetic */ TextPreviewUI tNo; TextPreviewUI$6(TextPreviewUI textPreviewUI) { this.tNo = textPreviewUI; } public final void onC...
package com.SkyBlue.base.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestAttribute; import org.springframework.web.bind.annotation.RequestMapping; import com.SkyB...