text
stringlengths
10
2.72M
package com.bluecode.mhmd.prototypes; import android.app.Activity; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; import android.os.Handler; import android...
package com.wangzhu.other; /** * Created by wang.zhu on 2021-03-09 17:27. **/ public class OuterClassBean { private int a = 1; private static int b = 20; private static final int c = 30; static void outerStaticMethod() { } void outerMethod() { } /** * 静态内部类 * 可以有自己的成员变...
package com.java9whatsnew.language_improvements; import java.util.Optional; public class OptionalOr { public static void main(String[] args) { // antes, no java 8 Optional<Book> localFallback = Optional.of(Book.getBook()); Book bestBookBefore = getBestOffer() .orElse(getExternalOffer().orElse(localF...
package com.ethan.df.singleton_pattern; import java.io.ObjectStreamException; /** * 饿汉单例模式 */ public class HungrySingleton { private static final HungrySingleton mInstance = new HungrySingleton(); private HungrySingleton() { } public static HungrySingleton getInstance() { return mInstance;...
package com.penglai.haima.adapter; import androidx.annotation.Nullable; import android.widget.TextView; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com.penglai.haima.R; import com.penglai.haima.bean.ProductSelectBean; import java.util.List; /** ...
package jadx.core.statistics; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import jadx.core.codegen.ArgTypes; import jadx.core.codegen.CodeWriter; import jadx.core.codegen.ConditionGen; import jadx.core.codegen.InsnGen; import jadx.core.codegen.MethodGen; import j...
package mod6AI.ai; import java.util.*; import java.util.stream.Collectors; /** * Created by Student on 24-11-2014. */ public abstract class Tokenizer { /** * Splits the input String in separate words, cast them to lower and strips all non alphanumerical characters. * @param in a String. * @retur...
package org.toptaxi.taximeter.adapters; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; ...
package com.megathrone.tmall.controller; import com.megathrone.tmall.pojo.Product; import com.megathrone.tmall.pojo.ProductImage; import com.megathrone.tmall.service.ProductImageService; import com.megathrone.tmall.service.ProductService; import com.megathrone.tmall.util.ImageUtil; import com.megathrone.tmall.util.Up...
package com.example.myapplication.edit; import androidx.work.OneTimeWorkRequest; import androidx.work.PeriodicWorkRequest; import androidx.work.WorkManager; import com.example.myapplication.data.db.dao.PersonDao; import com.example.myapplication.data.db.entity.Patients; import com.example.myapplication.utils.Constan...
/* * * This software is the confidential and proprietary information of * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement */ package com.sshfortress.common.filter; import javax.servlet.http.Cookie; import javax.servlet.http....
package com.stylefeng.guns.rest.film.bean.rebuild; import java.io.Serializable; /** * @Author: xf * @Date: 2019/6/7 9:39 */ public class Actor implements Serializable { //private int uuid; private String actorName; private String actorImg; private String roleName; /*public int getUuid() { ...
/** * Copyright 2014 Bill McDowell * * This file is part of theMess (https://github.com/forkunited/theMess) * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www....
package com.arthur.leetcode; /** * @title: No124 * @Author ArthurJi * @Date: 2021/4/9 12:49 * @Version 1.0 */ public class No124 { public static void main(String[] args) { } public class TreeNode { int val; TreeNode left; TreeNode right; TreeNode() { } ...
public class UseFinally { public static void main(String[] args) { try // Unchecked Exception { int a=100, b=0, c; c=a/b; System.out.println(c); } catch(AssertionError e) { System.out.println(e); System.out.println("Display"); } finally // Finally block will alw...
package ehwaz.problem_solving.ds.arrays.SparseArrays; import java.util.*; /** * Created by Sangwook on 2016-04-05. */ public class SparseArrays { public static int[] solveProb(String[] inputLines, int numOfStr, String[] queryLines, int numOfQuery) { int[] results = new int[numOfQuery]; Map<Stri...
package work; @FunctionalInterface // contains a single method only public interface Myinter { public abstract void sayHello(); } // create a seperate class and implement the interface // anonymous call for implementing interface
package com.socialportal.domain.blog.infrastructure.seach; import com.socialportal.domain.blog.model.BlogEntry; import org.springframework.stereotype.Component; @Component public class BlogEntrySearchDtoFactory { public BlogEntrySearchDto createBlogEntrySearchDto(BlogEntry blogEntry) { BlogEntrySearchDto...
/* * @(#) IMessageLogService.java * Copyright (c) 2006 eSumTech Co., Ltd. All Rights Reserved. */ package com.esum.wp.ims.procstatus.service; import java.io.IOException; import com.esum.appframework.service.IBaseService; /** * * @author bhyoo@esumtech.com * @version $Revision: 1.1 $ $Date: 2008/07/31 01:50:...
/****************************************************************************** * __ * * <-----/@@\-----> * * <-< < \\// > >-> * ...
/* * Created on Mar 1, 2007 * */ package com.citibank.ods.entity.pl.valueobject; /** * @author fernando.salgado */ public class TplCustomerPrvtEntityVO extends BaseTplCustomerPrvtEntityVO { }
import java.util.ArrayList; import java.util.Comparator; /** * Given an array of integers, sort the array into a wave like array and return it, In other words, arrange the elements into a sequence such that a1 >= a2 <= a3 >= a4 <= a5..... */ public class WaveArray { public ArrayList<Integer> wave(ArrayList<Inte...
/* ***************************************************************************/ package com.abstracts.neo.pages; /* ***************************************************************************/ /* ***************************************************************************/ import com.abstracts.neo.modules.SettingsSideN...
/** * */ package com.parlourforu.rest; import java.util.List; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.R...
package com.goldenasia.lottery.data; import com.google.gson.annotations.SerializedName; /** * Created by ACE-PC on 2016/5/4. */ public class Options { /** * rebate : 0.120 * prize : 1940 */ @SerializedName("rebate") private double rebate;//·µµã @SerializedName("prize") private do...
package fr.skytasul.quests.structure; import java.util.Comparator; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.stream.Collectors; import org.apache.commons.lang.Validate; import org.bukkit.configuration.Co...
/* * 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 asignacion5; /** * * @author hendryf * 24.09.21 * @param <AnyType> Tipo de dato que almacena el nodo */ publ...
package mx.infornet.smartgym; import android.app.Dialog; import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.graphics.Color; import andro...
package spring.cache.model; import java.lang.reflect.Method; import org.springframework.cache.interceptor.KeyGenerator; import lombok.NoArgsConstructor; import lombok.extern.slf4j.Slf4j; @NoArgsConstructor @Slf4j public class CustomKeyGenerator implements KeyGenerator { private static final String KEY_DELIMITER...
import java.util.*; public class Knapsack { static int optimalWeight(int W, int[] w) { //write you code here int result = 0; for (int i = 0; i < w.length; i++) { if (result + w[i] <= W) { result += w[i]; } } return result; } public st...
package com.lenovohit.hcp.appointment.manager; import com.lenovohit.hcp.appointment.model.RegInfo; import com.lenovohit.hcp.base.model.HcpUser; import com.lenovohit.hcp.base.model.HisOrder; import com.lenovohit.hcp.payment.model.HcpOrder; /** * * @description 挂号接口操作类,挂号的业务操作接口 * @author jatesun * @version 1.0.0 ...
package com.example.covid_19.Activites; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.os.Bundle; import android.text.Editable; import android.text.TextWatcher; import android.view.View; import ...
import java.awt.Color; /** * Snake * * This class holds information needed to create/get/manipulate instances of a Snake object. */ import java.awt.Graphics; public class Snake extends GameObj { public static final int SIZE = 20; // LEFT = 1; // RIGHT = 2; // UP = 3; // DOWN = 4; privat...
package com.metoo.foundation.domain; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import com.metoo.core.constant.Globals; import ...
/* * 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 armexperiment; /** * * @author Athena */ public class FacePair{ private final Face presFace; priva...
import java.util.Scanner; class BirthdayExceptDemo { public static void main(String[] args) { boolean isAgain=false; Scanner scanner=new Scanner(System.in); do { System.out.println("Input the year month and day the person birth in:"); int year = Integer.parseInt( scanner.next()); ...
package a3.logic; import a3.behaviour.Explore; import a3.memory.CollectiveMemory; import static a3.utility.Action.getRandomAction; import static a3.utility.Debug.println; import aiantwars.EAction; import aiantwars.IAntInfo; import aiantwars.ILocationInfo; import java.util.List; /** * @author Tobias Jacobsen */ publ...
package com.pos.porschetower.datamodel; /** * Created by coala on 10/19/2020. */ public class ShowroomItem { public String img_url; public String car_name; public String status_description; public String car_status; public int btn_color; public int btn_txt_color; }
package generating; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Random; public class DeliveryDateColumnGenerator implements ColumnGenerator{ private SimpleDateFormat sdf = new SimpleDateFormat(); public String generateColumnValue(Calendar[] benchTime, String[] tradeDate, ...
package xtrus.user.comp.ua.table; import com.esum.framework.common.sql.Record; import com.esum.framework.core.component.ComponentException; import com.esum.framework.core.component.table.InfoRecord; public class UaSvrInfoRecord extends InfoRecord { private static final long serialVersionUID = 1L; private String...
package com.zhouqi.schedule.trigger.impl; import com.zhouqi.entity.CfgTask; import org.apache.commons.lang3.StringUtils; import org.quartz.SimpleScheduleBuilder; import org.quartz.TriggerBuilder; /** * ${DESCRIPTION} * * @author zhouqi * @date 2018/4/13 9:19 */ public class SimpleTriggerExpression extends Abstra...
package com.sap.als.persistence; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; @Entity @NamedQueries({ @NamedQuery(name =...
package com.test.base; import com.test.SolutionA; import junit.framework.TestCase; public class Example extends TestCase { private SolutionA solution; @Override protected void setUp() throws Exception { super.setUp(); } public void testSolutionA() { solut...
/** * Support for <a href='http://xmpp.org/extensions/xep-0077.html'>XEP-0077: In-Band Registration</a>. */ package tigase.jaxmpp.core.client.xmpp.modules.registration;
import javax.swing.JOptionPane; public class grade_enter_app { public static void main(String[] args) { final int MAX_AMOUNT = 10; String[] names = new String[MAX_AMOUNT]; double[] grades = new double[MAX_AMOUNT]; enterGrades(names, grades); } public static void enterGrades(String[] name...
/** * Copyright (C) 2008 Atlassian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
package com.BasicJava; public class DowhileExample { public static void main(String[] args) { int k=10; do { System.out.println("web driver"); k--; } while(k>10); } }
package com.fei.repo; import com.fei.model.User; import java.sql.*; /** * Created by freddy on 4/2/2017. */ public class Mysql { private Connection getDbConnection() throws Exception{ try { // Grab login info for MySQL from the credentials node String hostname = System.getenv("...
package web.inject; import java.util.EnumSet; import javax.inject.Named; import javax.inject.Singleton; import javax.servlet.DispatcherType; import javax.servlet.ServletContextListener; import com.google.inject.AbstractModule; import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject....
package gui; import java.awt.EventQueue; import java.awt.Font; 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.JTextField; import da.WarehouseDA; public class AddWarehouse exte...
package info.finny.msvc.service; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; public interface WordFeignClient { @RequestMapping (method= RequestMethod.GET, value = "/") public String getWord(); }
package chen.shu.hex_empire_v1; public enum State { MENU(), MAP(), PLAY(); }
package com.example.simpledashcam; import android.view.View; import android.widget.AdapterView; public class CameraListAdaptorItemSelected implements AdapterView.OnItemSelectedListener { public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { } ...
package com.maco.juegosEnGrupo.server.dominio; import java.io.IOException; import java.util.Random; import org.json.JSONException; import org.json.JSONObject; import com.maco.blackjack.jsonMessage.BlackJackBoardMessage; import com.maco.tresenraya.jsonMessages.TresEnRayaBoardMessage; import com.maco.tresenraya.jsonMe...
import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.PrintWriter; import org.semanticweb.owlapi.apibinding.OWLManager; import org.semanticweb.owlapi.model.IRI; import org.semanticweb.owlapi.model.OWLOntology; import org.semanticweb.owlapi.model.OWLOntologyCreationEx...
package psoft.backend.exception.comentario; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(HttpStatus.BAD_REQUEST) public class ComentarioInvalidoException extends RuntimeException { public ComentarioInvalidoException(String s) { } }
package id.bts.PiWebRestIoT.util; public enum SwitchStatus { OFF, ON }
package dk.jrpe.monitor.ejb.remote; import javax.ejb.Remote; /** * * @author Jörgen Persson */ @Remote public interface MonitorSessionBeanRemote { String test(); }
package pro2e.teamX.userinterface; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Box; import javax.swing.JCheckBox; import javax.swing.JLabel; ...
package com.krixon.ecosystem.profiling.domain; import lombok.Getter; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; import javax.validation.constraints.NotNull; @Entity @Getter @DiscriminatorValue("textual") public class TextualAnswer extends Answer { @NotNull private String va...
package com.cbsystematics.edu.eshop.service; import com.cbsystematics.edu.eshop.dao.IUserDAOImpl; import com.cbsystematics.edu.eshop.entities.User; import java.util.List; public class IUserServiceImpl implements IUserService { private IUserDAOImpl userDAO; public IUserServiceImpl() { this.userDAO =...
package com.dh.comunicacao.comunicacaofragmentfragment; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.app.AppCompatActivity; import com.dh.comunicacao.R; public class MainActivity extends AppCompatActivity implements FirstFragmentListener { private FirstFragment fir...
/* * Copyright 2013-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0. * Unless required by applicable law or agreed...
package com.legaoyi.persistence.jpa.service.impl; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation....
/* * Copyright 2014 Victor Melnik <annimon119@gmail.com>, and * individual contributors as indicated by the @authors tag. * * 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...
package com.ccspace.facade.domain.common.enums.singleton; import com.ccspace.facade.domain.common.threadlocals.BaseLockSign; import com.ccspace.facade.domain.common.threadlocals.DemoRedisLockSign; /** * @AUTHOR CF 获取对应threadLocal的单例对象 * @DATE Created on 2018/4/4 11:30. */ public enum SingletonLocal { INSTANC...
package com.socialteinc.socialate; import android.app.ProgressDialog; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.support.design.widget.Snackbar; import android.support.v4.content....
package com.fz.dao; import com.fz.pojo.OrderDetail; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; /** * @author: FZ * @date: 2021/4/16 21:46 * @description: */ public interface OrderDetailDao extends JpaRepository<OrderDetail,String > { List<OrderDetail> findByOrderId...
package ru.r2cloud.ssdv; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import org.junit.Test; public class Base40Test { @Test public void test() { assertEquals("SORA", Base40.decode(0x000e7240)); } @Test public void testInvalid() { assertNull(Base40.decode(0L)); ...
package cn.xeblog.xechat.domain.vo; import cn.xeblog.xechat.enums.CodeEnum; import cn.xeblog.xechat.enums.inter.Code; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Getter; import lombok.Setter; import lombok.ToString; import java.io.Serializable; /** * 响应数据结构 * * @author yanpanyi * @date 201...
/** * All rights Reserved, Designed By www.tydic.com * @Title: ItemParamServiceImpl.java * @Package com.taotao.service.impl * @Description: TODO(用一句话描述该文件做什么) * @author: axin * @date: 2018年12月11日 下午11:09:38 * @version V1.0 * @Copyright: 2018 www.hao456.top Inc. All rights reser...
/** * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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://ww...
package com.example.hp.iris; import android.Manifest; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.speech.tts.TextToSpe...
package com.eigenmusik.api.sources.dropbox; import com.dropbox.core.*; import com.dropbox.core.v1.DbxClientV1; import com.dropbox.core.v1.DbxEntry; import com.dropbox.core.v2.DbxClientV2; import com.eigenmusik.api.config.EigenMusikConfiguration; import com.eigenmusik.api.sources.*; import com.eigenmusik.api.tracks.Tra...
package ntou.cs.java2021.ex6; import java.io.IOException; import java.nio.file.Paths; import java.util.ArrayList; import java.util.NoSuchElementException; import java.util.Scanner; public class PlayerInfoReader { private Scanner input; private String fileName; // target file name public PlayerInfoReader(...
public class Boss4 extends Alien { public static int speed = 1; public static final int tSpeed = 1; public int i = 0; private int mHealth; public Boss4(int x, int y, int health) { super(x, y, health); this.mHealth = health; initAlien(); }...
package laptrinhjavaweb.service; import java.util.List; import laptrinhjavaweb.model.CategoryModel; public interface ICategoryService { List<CategoryModel> findAll(); CategoryModel findOne(Long id); CategoryModel findOneByCode(String code); }
package com.asterixcode.asterixfoodapi.infrastructure.repository; import com.asterixcode.asterixfoodapi.domain.model.Kitchen; import com.asterixcode.asterixfoodapi.domain.repository.KitchenRepository; import org.springframework.dao.EmptyResultDataAccessException; import org.springframework.stereotype.Component; impor...
package org.point85.domain.plant; import java.util.ArrayList; import java.util.List; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; import org.point85.domain.dto.EnterpriseDto; @Entity @DiscriminatorValue(Enterprise.ENTER_VALUE) public class Enterprise extends PlantEntity { public st...
package com.example.asus.myapp.Student; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Base64; import android.view.Menu; import android.view.Menu...
package com.mycompany.time_table_management_system.db.model; // Generated Aug 2, 2015 2:18:56 PM by Hibernate Tools 3.6.0 /** * EquipmentId generated by hbm2java */ public class EquipmentId implements java.io.Serializable { private String serialNo; private String modelNo; public EquipmentId() { ...
package com.st.common.util; import org.dom4j.*; import org.dom4j.io.OutputFormat; import org.dom4j.io.SAXReader; import org.dom4j.io.XMLWriter; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.util.*; import java.util.Map.Entry; /** * 提供Map<String,Object>转XML,XML转Map...
package com.example.reminiscence; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; public class GalleryActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate...
package net.depaoli.googlebook.application; import android.app.Application; import com.squareup.leakcanary.LeakCanary; import net.depaoli.googlebook.application.dagger.AppComponent; import net.depaoli.googlebook.application.dagger.AppModule; import net.depaoli.googlebook.application.dagger.DaggerAppComponent; publi...
package br.edu.unoescsmo.aluga.repository; import org.springframework.data.jpa.repository.JpaRepository; import br.edu.unoescsmo.aluga.model.Cliente; public interface ClienteRepository extends JpaRepository<Cliente, Long> { }
package com.gsitm.auth.service; import com.gsitm.auth.dao.AuthDao; import com.gsitm.reserv.vo.EmpVO; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; /** * @author : 이창주 * @programName : Aut...
package com.zjf.myself.codebase.fragment; import android.text.Html; import android.view.View; import android.widget.CheckBox; import android.widget.EditText; import android.widget.TextView; import com.zjf.myself.codebase.R; import com.zjf.myself.codebase.activity.LoginAct; import com.zjf.myself.codebase.application....
package com.esum.framework.jdbc; import java.sql.Connection; import java.sql.SQLException; import java.util.List; import java.util.Map; /** * Jdbc Operations. */ public interface JdbcOperations { //------------------------------------------------------------------------- // execute methods //-------------------...
package clone.timesheet; import java.time.LocalDate; import java.time.LocalDateTime; public class TimeSheetItem { private String employee; private String project; private LocalDateTime from; private LocalDateTime to; public TimeSheetItem(String employee, String project, LocalDateTime from, LocalD...
package com.mc.library.domain; import com.google.gson.annotations.SerializedName; /** * Created by dinghui on 2016/10/27. */ public class Result<T> { @SerializedName("code") public int code; @SerializedName("message") public String msg; @SerializedName("result") public T data; @Override...
import java.util.ArrayList; /** * Eine Klasse zur Verwaltung von Audiotracks. * Die einzelnen Tracks können abgespielt werden. * * @author David J. Barnes und Michael Kölling. * @version 31.07.2011 */ public class MusikSammlung { // Eine ArrayList, in der die Musik-Tracks gespeichert werden können. priv...
package com.yuneec.widget; import android.content.Context; import android.graphics.Canvas; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.ViewConfiguration; import android.view.ViewParent; import android.widget.SeekBar; public class VerticalSeekBar extends SeekBar { private...
/* * Copyright (c) 2003 - 2016 Tyro Payments Limited. * Lv1, 155 Clarence St, Sydney NSW 2000. * All rights reserved. */ package com.github.rogeralmeida.faulttolerance.yelp.model; import lombok.Data; @Data public class Business { private Integer rating; private String price; private String phone; ...
package coinpurse; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import coinpurse.strategy.GreedyWithdraw; import coinpurse.strategy.RecursiveWithdraw; import coinpurse.strategy.WithdrawStrategy; /** * A purse contains coins and banknote...
package com.alex.pets; public interface Alive { void kill(); boolean isAlive(); }
package com.alibaba.druid.pool.ha.node; import org.junit.Test; import java.util.List; import java.util.Properties; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; public class NodeEventTest { @Test public void testGetEventListFromProperties_emptyProperties() { ...
package coin.coininventory.entity; import javax.persistence.*; @Entity @Table(name = "coinlocation") public class CoinLocation { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long coinlocationid; @ManyToOne(cascade = CascadeType.MERGE, fetch = FetchType.EAGER) @JoinColumn(name ...
import java.io.BufferedReader; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; public class BlockHandler { private BlockChain blockChain = BlockChain.getInstance(); public void createTransaction(BufferedReader input) throws IOException { String from, to; ...
package model_checker; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collection; import java.util.EmptyStackException; import java.util.HashMap; import java.util.HashSet; import java.util.Ha...
package iit.android.settings; import iit.android.swarachakra.R; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceFragment; public class UserSettings extends PreferenceFragment { private static SharedPreferences prefs; SharedPreferences.Editor editor; public ...