text
stringlengths
10
2.72M
package com.advertising.campaign.models.request; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Getter; import lombok.Setter; import java.sql.Timestamp; @Setter @Getter public class CampaingCreate { public CampaingCreate(String name, int status, Timestamp start_date, Timestamp end_date) { ...
import java.awt.Graphics; import java.awt.Image; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.io.IOException; import javax.imageio.ImageIO; /** * Shoot class represents weapons with direct damage */ public class Shoot extends Weapon{ //Constructor for shoot public...
package elementMapper; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; public class ProductPageElementMapper { @FindBy(css = "h1[itemprop=name]") public WebElement productNamePDP; @FindBy(xpath = "//*[@itemprop=price]") public WebElement itemPrice; @FindBy(css ...
package com.esum.comp.dbm; import org.junit.Test; public class FixedCsvSplitTest { @Test public void split() throws Exception { String msg = new String("test12345한글1234테스트9999".getBytes(), "EUC-KR"); System.out.println(msg.charAt(9)); System.out.println(msg.charAt(10)); System.out.println(msg.charAt(11)...
package exercises.chapter7.ex15.local; import exercises.chapter7.ex15.Exercise15; /** * @author Volodymyr Portianko * @date.created 15.03.2016 */ public class Local extends Exercise15 { public void callProtectedMethod() { System.out.println(protectedString()); } public static void main(String...
package com.yaramobile.app.best.model; /** * Created by me on 12/20/2015. */ public class Store_homeitem_product { public int id; public String name; public String producer_name; public int type; // public int payment_type; public int price; public String avatar; public ...
package br.sceweb.teste; import static org.junit.Assert.assertEquals; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import br.sceweb.model.Convenio; import br.sceweb.model.ConvenioDAO; import br.sceweb.model.Empresa; import br.sceweb.model.EmpresaDAO; public class UC...
package com.proyectogrado.alternativahorario.alternativahorario.web; import com.proyectogrado.alternativahorario.alternativahorario.negocio.FachadaNegocioLocal; import com.proyectogrado.alternativahorario.entidades.Carrera; import com.proyectogrado.alternativahorario.entidades.Clase; import com.proyectogrado.alternati...
/* * 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 com.bionic.bibonline.mb; import com.bionic.bibonline.entities.Users; import com.bionic.bibonline.entitiesbeans.users.UsersFaca...
package fmi; public class ShoppingCartVisitorImpl implements ShoppingCartVisitor{ public int visit(Book book){ int cost = 0; cost = book.getPrice(); if(cost > 50){ cost = cost - 5; } System.out.println( "Visiting Book> "+ book.getIsbnNumber() + " price is: " + cost); return cost; } public ...
package nl.capaxit.mybatisexamples.common.domain; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Created by jamiecraane on 30/06/16. */ public class Document { private Long id; private String title; private String message; private List<DocumentImage> images = ...
package com.example.administrator.listview_callback; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ListView; import android.widget.Toast; import java.util.ArrayList; import java.util.List; public class MainActivity extends AppCompatActivity { private ListView li...
package com.example.demo.models.service.estado; import com.example.demo.models.dao.DIEstado; import com.example.demo.models.entity.Estado; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class SEstadoImpl implements ...
package com.beacon.demo; import android.os.Bundle; import android.os.RemoteException; import android.support.v7.app.AppCompatActivity; import android.widget.ListView; import org.altbeacon.beacon.Beacon; import org.altbeacon.beacon.BeaconConsumer; import org.altbeacon.beacon.BeaconManager; import org.altbeacon.beacon....
package org.contract; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for VehicleType complex type. * * ...
package org.ufla.tsrefactoring.provider; import java.util.ArrayList; import java.util.List; import org.eclipse.jface.viewers.IStructuredContentProvider; import org.ufla.tsrefactoring.dto.ResultTestSmellDTO; import org.ufla.tsrefactoring.enums.TestSmell; import org.ufla.tsrefactoring.javaparser.Analyzer; import org.ec...
package jp.ac.kyushu_u.csce.modeltool.base; import org.eclipse.osgi.util.NLS; public class Messages extends NLS { private static final String BUNDLE_NAME = "jp.ac.kyushu_u.csce.modeltool.base.messages"; //$NON-NLS-1$ public static String CustomFileDialog_0; public static String CustomFileDialog_1; public ...
package com.aof.core.persistence.hibernate; import net.sf.hibernate.HibernateException; import java.io.Serializable; class FindByPrimaryKeyCommand implements Command { public Object execute(java.lang.reflect.Method method, Object[] args, net.sf.hibernate.Session session) throws Exception { try { ...
package mf_plus.model; import java.util.LinkedList; /** * Created by admin on 22.02.2017. */ public class QuotationData { private String number; private String bookingType; private String booker; private String bookerContact; private String account; private String accountContact; privat...
package test; import java.util.ArrayList; public class BookProc { public ArrayList<Book> getList() { // ArrayList 유틸을 사용하여 Book 클래스에 내용을 담고 // 매개변수를 입력할 getList 메서드를 생성 Book bk1 = new Book("java", "kim", 100); Book bk2 = new Book("C++", "lee", 200); Book bk3 = new Book("jsp", "park", 300); // bk 객채를 만들어...
//ACCEPT NUMBER IN IRREGULAR MATRIX CONSIST COLUMAN 2,4 AND 6 RESEPICTULLY CALCULATE AND PRINT SUM AND AVERAGE VALUE OF ELEMENT? import java.util.*; class sum_avg { public static void main(String args[]) { Scanner x=new Scanner(System.in); int r,c; double num[][]=new double [3][]; num[0]=new double...
package com.gaoshin.sorma.addressbook; import android.content.Context; import android.widget.TextView; public class ContactView extends TextView { private Contact contact; public ContactView(Context context) { super(context); } public Contact getContact() { return contact; } ...
package cn.gxh.faceattach.adapter; import android.support.annotation.Nullable; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import java.util.List; import cn.gxh.faceattach.R; import cn.gxh.faceattach.bean.MobileDevicesResponse; /** * 设备管理 */ public ...
package com.example.demo.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.example.demo.entity.*; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import javax.websocket.server.PathParam; import java.util.Lis...
package org.maxhoffmann.dev.Chain; import java.util.ArrayList; import java.util.Set; import java.util.TreeSet; import org.apache.log4j.Logger; import org.maxhoffmann.dev.object.ProcessChainEvaluation; import org.maxhoffmann.dev.object.ProcessChainObject; public class ProcessChainReconfiguration { private static fi...
package kamyshevat.task2; public class Main { public static void main(String[] args) { Container container = new Container(0, 0, 5, 5); Ball ball = new Ball(3, -3, 1, 56, 23); System.out.println(container.collides(ball)); System.out.println(ball.getxDelta()); System.out.prin...
package ch.mitti.cubes; import java.awt.GridLayout; import java.util.ArrayList; import java.util.Random; import javax.swing.JFrame; import ch.mitti.dice.DicePanel; public class GraphicsContainer extends JFrame { private int size; private Square square; private Random r; private ArrayList<Square> squares; pri...
package json; import maps.Point; import java.util.ArrayList; import java.util.List; /** * Created by RENT on 2017-03-22. */ public class PlaceTest { public static void main(String[] args) { Point point = new Point(4,5); Point point1 = new Point(2,7); List<Point>points = new ArrayLi...
package com.gs.tablasco.spark.avro; import org.apache.avro.generic.GenericData; import org.apache.avro.mapred.AvroWrapper; import org.apache.hadoop.io.NullWritable; import org.apache.spark.api.java.function.Function; import scala.Tuple2; import java.util.ArrayList; import java.util.List; class AvroRowsFunction imple...
package com.isg.ifrend.wrapper.mli.request.customer; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(name="SearchCustomer") public class SearchCustomer { private String customerNum; private String applicationNum; private String firstName; private char middleInitial; private String lastName; p...
import java.awt.Rectangle; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.geom.*; import java.awt.image.ImageObserver; import javax.swing.ImageIcon; import javax.swing.Timer; //Amanda coded this class public class Enemy extends ...
package br.com.gt.ws; import javax.jws.WebMethod; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; import br.com.gt.bean.ExameBean; @WebService @SOAPBinding(style = Style.RPC) public interface ExameServer { @WebMethod ExameBean obterExamePorCpf(String cpf); ...
/* * 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 models.designpatterns; import models.adapters.Message; public class Alarm { private int hour; private int minutes; ...
package me.construqt.ciscian.chatter.flavour; import me.construqt.ciscian.chatter.SwitchActions; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class DlinkDgs15xxSwitchChatter extends GenericCiscoFlavourSwitchChatter { private static final Logger LOG = LoggerFactory.getLogger(DlinkDgs15xxSwitchCha...
package com.example.utils; import java.io.IOException; import java.text.ParseException; import java.text.SimpleDateFormat; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson....
package com.limefriends.molde.menu_mypage; import android.app.ProgressDialog; import android.content.Intent; import android.support.annotation.NonNull; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view....
package oop.practice; /** * Created by Roman on 14.08.2016. */ public class Nurse extends Employee { public Nurse(boolean working, long id, String name, String department) { super(working, id, name, department); System.out.println("Nurse in action... "); // here println can be resolved. } ...
package BinaryTrees; import java.util.LinkedList; import java.util.Queue; import java.util.Stack; public class LevelOrderTraversalPrintReverseOrder { public void levelOrderReverseOrder(Node root) { if(root == null) return ; Queue<Node> queue = new LinkedList<>(); Stack<Node> stack = new Stack<>(); ...
/* * 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 com.ut.healthelink.service; import com.ut.healthelink.model.activityReportList; import com.ut.healthelink.model.MoveFilesLog; ...
package com.vietstore.dao; import java.util.List; import javax.persistence.TypedQuery; import javax.transaction.Transactional; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import 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 btnhom1; import java.io.File; import java.io.IOException; import java.util.Arrays; /** * * @author Linh Liv */ public cla...
package org.example.codingtest.oneLevel; public class CaesarPassword { public static void main(String[] args) { String s = "a b c d e f g h i J k l m n o p q r s t u v w x y z"; int n = 1; String solution = solution(s, n); System.out.println(solution); } /** * A - 65 ...
package pages; import org.openqa.selenium.By; import org.openqa.selenium.NoSuchElementException; import org.openqa.selenium.support.ui.Select; public class SiuSpotlightPage extends BasePage { private By activeSIUReferralRowsLocator = By.xpath("//*[@id='tblReferrals']/tbody/tr[contains(td[@id='REFERRALSTATUSCO...
package com.badawy.carservice.adapters; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; i...
/* * LcmsResourceDependencyServiceImpl.java 1.00 2011-09-05 * * Copyright (c) 2011 ???? Co. All Rights Reserved. * * This software is the confidential and proprietary information * of um2m. You shall not disclose such Confidential Information * and shall use it only in accordance with the terms of the licen...
package com.hyokeun.org.page; import java.util.ArrayList; import java.util.List; import org.apache.wicket.Component; import org.apache.wicket.ajax.AbstractDefaultAjaxBehavior; import org.apache.wicket.ajax.AjaxEventBehavior; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.extensions.ajax.mar...
package pkgversion; public class Version1 { @Override public String toString() { return "V1"; } }
import service.RouteGenerator; /** * Created by qiaoruixiang on 14/06/2017. */ public class DijkstraMain { public static void main(String[] args) { RouteGenerator generator = new RouteGenerator(); String route = generator.generateRoute(41.389329, 2.112874, 41.405793, 2.200573, 20160915, 12*360...
package encapsulation; public class Printer { private String name; private boolean duplex; private int pagesprint; private int tonerlvl; public Printer(String name, boolean duplex, int pagesprint, int tonerlvl) { super(); this.name = name; this.duplex = duplex; this.pagesprint = pagesprint; ...
package br.com.projeto.projeto.projetoempresa.Views; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import java.awt.Font; import javax.swing.JTextField; import br.com.projeto.projeto.projetoempresa.controllers.ControllerSetor; import br.com.projeto....
/** * JPA domain objects. */ package com.eikesi.uaa.domain;
/** * */ package com.android.aid; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java....
/* * Copyright (c) 2013-2014, Neuro4j.org * * 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...
/* * 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 lab2; import mybutton.MyButton; import java.awt.*; import javax.swing.*; /** * * @author hugo */ public class Lab2_ram3 ex...
package cn.auto.core.component; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; /** * Created by chenmeng on 2018/9/2. */ public class JsExecutor { private JavascriptExecutor executor; public JsExecutor(WebDriver driver) { ...
public class DisplayThread extends Thread { DisplayThread(){ System.out.println("Thread is created "+Thread.currentThread().getName()); } @Override public void run() { super.run(); System.out.println("Thread is running "+Thread.currentThread().getName()); } }
package com.company.core.action; import com.company.core.constant.Constant; import com.company.core.page.PageResult; import com.opensymphony.xwork2.ActionSupport; /** * 此Action适用于列表显示页, * 可查询分页数据,数据封装在pageResult中, * 可删除选中的行,行数保存在selectedRow中, * @author Dongfuming * @date 2016-5-11 上午9:49:12 */ @SuppressWarnings...
package tienda.estructura; import java.util.Scanner; public class Producto { private String nombre; private String tipo; private int cantidad; private int cantidadPedido; private double precioBase; public Producto(String nombre, String tipo, int cantidad, int cantidadPedido, ...
package timetable; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.TypedQuery; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; @Component public class UserDao { ...
package com.cs.netent.wallet; /** * @author Joakim Gottzén */ public class InvalidCredentialsException extends Exception { private static final long serialVersionUID = 1L; public InvalidCredentialsException(final String message) { super(message); } }
package com.genetic; import java.util.Objects; public class Genome implements Comparable<Genome>{ private String data; private double score; private Genome(){} public static Genome createRandomGenome(String answer){ Genome result = new Genome(); result.data = RandomHelper.getRandomS...
package com.ahmedonics.apps.ultimateutilitymaster.activities.Others; import android.content.SharedPreferences; import android.os.Bundle; import android.view.View; import android.view.WindowManager; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import com.ahmedonics.apps.ul...
package com.delrima.webgene.arch.client.widgets.extensions; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.logging.Logger; import com.delrima.webgene.arch.client.imagebundle.WebGeneImageBundle; import com.delrima.w...
package net.yustinus.crud.backend.beans; import java.util.List; import net.yustinus.crud.backend.dto.MenuDto; public class MenuItemBean { private int parentId; private MenuDto parentMenu; private List<MenuDto> childMenu; public MenuItemBean() { } public MenuDto getParentMenu() { return p...
package net.sduhsd.royr6099.unit4; //© A+ Computer Science - www.apluscompsci.com //Name - //Date - //Class - //Lab - public class Name { private String name; public Name() { name = ""; } public Name(String s) { name = s; } public void setName(String s) { name = s; } public String getF...
package com.beike.dao.impl.lottery; import java.math.BigDecimal; import java.sql.Timestamp; import java.util.List; import java.util.Map; import org.springframework.jdbc.core.simple.ParameterizedBeanPropertyRowMapper; import org.springframework.stereotype.Repository; import com.beike.dao.GenericDaoImpl; import com.be...
package com.osteching.litemongo; import static org.junit.Assert.assertTrue; import java.lang.reflect.Method; import java.util.Map; import org.junit.After; import org.junit.Before; import org.junit.Test; public class EntityPoolTest { @Before public void setUp() throws Exception { EntityPool.put(Per...
package ch05; public class Sonata1 extends Car1 implements Control{ private String name; private Engine2000 engine2000; private Handle handle; @Override public void ¿¢¼¿() { // TODO Auto-generated method stub } @Override public void ºê·¹ÀÌÅ©() { // TODO Auto-generated method stub } }
package com.davivienda.sara.entitys.seguridad; import java.io.Serializable; import java.math.BigInteger; import java.util.Collection; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.per...
package com.redsun.platf.dao.account; import com.redsun.platf.dao.base.impl.PagedDao; import com.redsun.platf.entity.account.Authority; import org.springframework.stereotype.Repository; /** * 授权对象的泛型DAO. * * @author calvin */ @Repository public class AuthorityDao extends PagedDao<Authority, Long> { public Autho...
package handin03; import java.util.Scanner; /** * HoroscopeTesteer test the classes of the horoscope project * @author Peter Tolstrup Aagesen * */ public class HoroscopeTester { public static void main(String[] args) { //Create new Scanner Scanner input = new Scanner(System.in); //Crea...
package com.fb.model.rbac; // _ooOoo_ // o8888888o // 88" . "88 // (| -_- |) // O\ = /O // ____/`---'\____ // . ' \\| |// `. // / ...
package inputscanner; public class InputScanner { public static void main(String[] args) { BMR.Bmg(); } }
package org.kuali.ole.batch.controller; import org.apache.commons.io.IOUtils; import org.kuali.ole.OLEConstants; import org.kuali.ole.batch.bo.OLEBatchProcessJobDetailsBo; import org.kuali.ole.batch.bo.OLEBatchProcessScheduleBo; import org.kuali.ole.batch.document.OLEBatchProcessDefinitionDocument; import org.kuali.ol...
package com.htc.oops; public class Firstpgm { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("first"); } }
package gui; import java.awt.Dimension; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import javax.swing.JPanel; /** * The background panel class contains the background images - wallpaper, poker table and logo - of the G...
package xtrus.user.comp.dbl; import java.io.IOException; import com.esum.framework.common.util.StringUtil; import com.esum.framework.core.component.ComponentException; import com.esum.framework.core.component.config.ComponentConfig; import com.esum.framework.core.config.Configurator; import com.esum.framework.core.ex...
package com.application.db.dto; public class General { private int tag_id; private String name; private String tags; private int image_id; public int getTag_id() { return tag_id; } public void setTag_id(int tag_id) { this.tag_id = tag_id; } public String getName() { return name; }...
public class forloop { public static void main(String[] args){ /*for(int i=0;i<=5;i++){ //System.out.println("the value of i is " +i); System.out.printf("the value of i is %d\n",i); }*/ for(int i=0;i<=3;i++){ for(int j=0;j<=3;j++){ System.o...
package com.myneu.project.Dao; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import com.myneu.project.pojo.Payment; public class PaymentDao { public void paymentStored (Payment payment){ Configuration cfg = new Configuration(); cfg.c...
package data.entity; /** * Code written by: Tony (Zongzheng) Li * Last modified on (MM/DD/YY): 05/14/21 */ public class Agent implements Entity{ /** * Parameters corresponding to the columns in the Agents table. */ private Integer AgentId; private String AgtFirstName; private String AgtMi...
package po; /** * Created by 曹利航 on 2016/10/16 17:16. */ import java.io.Serializable; /** * hotelName 0酒店名称 * roomType 1客房类型 * roomNum 2客房数量 * price 3原始价格 */ public class AvailableRoomPO implements Serializable { private String hotelName; private String roomType; private int r...
/* * 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 com.davivienda.sara.bean.page.contingencia; import com.davivienda.sara.base.ComponenteAjaxObjectContextWeb; import com.davivie...
package com.wirelesscar.dynafleet.api.types; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for getCoveredDistanceFromStatus complex type. * *...
package com.github.fly_spring.demo02.javaconfig; /** * * @author william * */ public class UseFunctionService { private FunctionService funcService; public void setFunctionService(FunctionService functionService) { this.funcService = functionService; } public String sayHello(String name){ return fu...
package com.example.demo.exceptions; import lombok.Getter; import org.springframework.http.HttpStatus; /** * Runtime Exception type used by all components to wrap exception occurred during processing a request. * * @author Narasimha Reddy Guthireddy */ @Getter public class QuestionsException extends RuntimeExcept...
package com.zzh.cloud; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.zuul.EnableZuulProxy; import org.springframework.cloud.netflix.zuul.filters.discovery.PatternServiceRouteMapper; import org.springframe...
package com.zyzd.glidedemo.ui; import android.graphics.Bitmap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageView; import com.bumptech.glide.Glide; import com.bumptech.glide.load.resource.drawable.GlideDraw...
package algorithm.genetic.mutation; public class MutationFactory { public static MutationMethod getDefault() { return new SwapMutation(); } }
package com.pda.pda_android.fragment; import android.app.Fragment; import android.content.DialogInterface; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import com.hss01248.lib.MyDial...
package com.wanshifu.transformers.common.remote.server; public interface RpcServer { void start(final RequestProcessor requestProcessor) throws Exception; void shutdown(); }
package com.learn.leetcode.week2; public class SolutionIsPalindrome { /** * 给定一个字符串,验证它是否是回文串,只考虑字母和数字字符,可以忽略字母的大小写。 * * 说明:本题中,我们将空字符串定义为有效的回文串。 * @param s * @return */ public static boolean isPalindrome(String s) { if(0 == s.length()) return true; int...
package edu.cnm.deepdive.service; import edu.cnm.deepdive.model.Error; import edu.cnm.deepdive.model.Game; import edu.cnm.deepdive.model.Guess; import java.io.IOException; import retrofit2.Response; public class GameRepository { private final CodebreakerServiceProxy proxy; /** * Performs operation on instanc...
package net.piratjsk.rby.util; import org.bukkit.Bukkit; import org.bukkit.Material; import org.bukkit.inventory.ItemStack; import java.util.UUID; public final class SkullUtils { private SkullUtils() { } public static ItemStack setSkullTexture(final ItemStack item, final String value) { if (isPlaye...
package me.ivt.com.ui.parallax; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import java.util.List; /** * desc: */ public class ParallaxAdapter extends FragmentPagerAdapter { private List<ParallaxFragment> mFragments;...
package com.xbang.bootdemo.security.controller; import org.springframework.boot.actuate.endpoint.SecurityContext; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class GrantController { }
package structural.proxy; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import static org.junit.Assert.*; /** * @author Renat Kaitmazov */ @RunWith(JUnit4.class) public final class CommandExecutorProxyTest { private CommandExecutor adminExec...
import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import java.awt.*; import java.util.ArrayList; public class Manejador extends DefaultHandler { private ArrayList<Dias> dias = new ArrayList<Dias>(); private Dias dia; private StringBuilder buffer = ...
package com.laoxu.idjiami.util; public interface AbstractCode { int getCode(); String getDesc(); }
package org.iMage.geometrify; import java.awt.Color; import java.awt.Point; import java.awt.Polygon; /** * A triangle. * * @author Dominic Ziegler, Martin Blersch * @version 1.0 * @param <xPoints> */ public class Triangle<xPoints> implements IPrimitive { /** * Creates a new triangle from the given vertices. ...