text
stringlengths
3
1.18M
package quickdb.complexDataStructure.model; import java.util.ArrayList; import quickdb.annotation.Column; /** * * @author Diego Sarmentero */ public class SamePrimitiveCollection { private int id; private String name; @Column(collectionClass="java.lang.Integer") private ArrayList<Integer> numbers1...
package quickdb.complexDataStructure.model; public class PersonComplex { private int id; private String name; private String surname; public PersonComplex() { } public PersonComplex(String name, String surname) { this.name = name; this.surname = surname; } public voi...
package quickdb.complexDataStructure.model; public class AddressComplex { public int id; public String street; public int number; public AddressComplex() { } public AddressComplex(String street, int number) { this.street = street; this.number = number; } public int g...
package quickdb.complexDataStructure.model; import java.util.ArrayList; public class Customer extends PersonComplex{ private int id; private String email; private AddressComplex address; private ArrayList buy; public Customer() { } public Customer(String name, String surname, String ema...
package quickdb.complexDataStructure.model; /** * * @author Diego Sarmentero */ public class SonReferenceParent { private int id; private String valueReferenceParent; public void setId(int id) { this.id = id; } public void setValueReferenceParent(String valueReferenceParent) { ...
package quickdb.complexDataStructure.model; import java.util.ArrayList; import quickdb.annotation.Column; import quickdb.annotation.Table; @Table public class Buy { private int id; private String article; private double price; @Column(collectionClass="java.lang.Integer") private ArrayList<Integer...
package quickdb.complexDataStructure.model; /** * * @author Diego Sarmentero */ public class ParentCollection { private int id; private String names; public void setId(int id) { this.id = id; } public void setNames(String names) { this.names = names; } public int getI...
package com.example.bitcoin; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.StatusLine; import org.apache.http.client.ClientProtocolExcepti...
package com.example.bitcoin; public class Converter { public static double bitcoinToPLN(double bitcoin, double price) { return bitcoin*price; } public static double plnToBitcoin(double pln, double price) { return (1/price)*pln; } }
package com.example.bitcoin; import android.os.Bundle; import android.os.StrictMode; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.RadioButton; import android.widget.TextView; public class MainActivity extends Activity...
package gs.gui; import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.ArrayList; import javax.swing.BorderFactory; import javax.swing.DefaultListModel; import javax.swing.JLabel; ...
package gs.gui; import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.text.NumberFormat; import java.util.ArrayList; import javax.swing.BorderFactory; import javax.swing.DefaultListModel; import javax.swing.JButton; i...
package gs.gui; import java.awt.BorderLayout; import java.awt.Graphics; import java.awt.GridLayout; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.ArrayList; import javax.swing.BorderFactory; import javax.swing.DefaultListModel; ...
package gs.gui; import java.awt.BorderLayout; import java.awt.Color; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTabbedPane; public class AdminWindow extends JFrame { JTabbedPane editPane; J...
package gs.gui; import javax.swing.JFrame; public class GameServer { public static void main(String[] args) { ConnectionController connection = new ConnectionController(); AdminWindow aframe = new AdminWindow(connection); aframe.setVisible(false); ConnectionWi...
package gs.gui; import java.awt.BorderLayout; import java.awt.Graphics; import java.awt.GridLayout; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.ArrayList; import javax.swing.BorderFactory; import javax.swing.DefaultListModel; ...
package gs.gui; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; public class ConnectionController { Connection connection; public boolean connect(String ip, String port, Str...
package gs.gui; import java.awt.BorderLayout; import java.awt.GridLayout; 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.JPanel; import javax.swing.JPasswordField; import javax.sw...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
package pt.training.maven.jee.model; import java.util.List; import javax.enterprise.context.RequestScoped; import javax.enterprise.inject.Produces; import javax.inject.Inject; import javax.inject.Named; import javax.persistence.EntityManager; public class WidgetListProducer { @Inject @WidgetRepository...
package pt.training.maven.jee.model; import javax.ejb.Stateless; import javax.enterprise.inject.Produces; import javax.enterprise.inject.Disposes; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; @Stateless public class WidgetRepositoryProducer { // NOTE cannot use pr...
package pt.training.maven.jee.model; import javax.annotation.PostConstruct; import javax.enterprise.inject.Model; import javax.validation.constraints.Digits; import javax.validation.constraints.NotNull; import javax.validation.constraints.Pattern; import org.hibernate.validator.constraints.Email; import org....
package pt.training.maven.jee.model; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import javax.inject.Qualifier; @Qualifier @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMET...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
/** * Copyright 2011 Joao Miguel Pereira * * 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...
package pt.training.maven.jee.web; import javax.enterprise.context.RequestScoped; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; @Path("/members") @RequestScoped public class MemberResourceRESTService { //placeholder to confirm JAX-RS is working as expected. @GET ...
package pt.training.maven.jee.web; import javax.annotation.PostConstruct; import javax.enterprise.inject.Model; import javax.validation.constraints.Digits; import javax.validation.constraints.NotNull; import javax.validation.constraints.Pattern; import org.hibernate.validator.constraints.Email; import org.hi...
package pt.trainings.maven.scratch; public class Greetings { private static final String GREETING = "Hello "; public String sayHello(String string) { return GREETING + (string != null ? string : "Jonh Doe"); } }
package pt.trainings.maven.templating; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
/** * Copyright 2011 Joao Miguel Pereira * * 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 appli...
package models; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; public abstract class Evaluate { public final static int HN_STRAIGHT_FLUSH = 8; public final static int HN_FOUR = 7; public final static int HN_FULL = 6; public final ...
package models; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Random; import controllers.Game; /** * */ /** * @author Michal * */ public class Table { //sta�e public final byte GS_STOPPED = 0; public fina...
package models; /** * */ /** * @author Micha� * */ import java.util.ArrayList; import java.util.List; public abstract class Player implements Comparable<Player> { Table gameTable; List<Card> playerCards; public String playerName; int tokens; int victories = 0; Boolean enabled = tru...
package models; /** * @author Micha� * */ public class Card implements Comparable<Integer> { private int suit; //kolor private int figure; //figura private int cardID; //unikalne ID karty private String fileName; //nazwa pliku z grafika karty //sta�e final static int F_JACK = 11; final...
package models; public class HandScore implements Comparable<HandScore> { public final static int HN_STRAIGHT_FLUSH = 8; public final static int HN_FOUR = 7; public final static int HN_FULL = 6; public final static int HN_FLUSH = 5; public final static int HN_STRAIGHT = 4; public fina...
package models; public class Tester { public static void main(String[] args) { Table mytable; mytable = new Table("Andrzej","Zbyszek","Ania","Olaf",false,false,false,false,300,10); mytable.start(); System.out.println(mytable.currentPlayer); mytable.playerLeave(mytable.currentPlay...
/** * */ package models; import java.util.ArrayList; import java.util.List; import java.util.Random; /** * @author Administrator * */ public class AdvancedBot extends Player { public final byte MO_FOLD = 0; public final byte MO_BET = 1; public final byte MO_CHECK = 2; public final byte M...
package models; /** * @author Micha� * */ import java.util.ArrayList; import java.util.List; import java.util.Stack; import java.util.Random; public class Deck { Stack<Card> cardStack; //stos List<Card> cardSet; //ulozona talia Random generator; //gen. liczb pseudolosowych Deck() thr...
/** * */ package models; import java.util.*; import models.Table; import play.*; import play.libs.*; import play.libs.F.*; import play.mvc.*; import views.html.*; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.*; import controllers.Clients; import co...