text stringlengths 3 1.18M |
|---|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.repository;
import java.util.List;
/**
*
* @author boniface
*/
public interface DAO<T, ID> {
public T findById(final ID id);
public List<T> findAll();
public void persis... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.repository;
import java.io.Serializable;
/**
*
* @author boniface
*/
public interface GenericDAO < T extends Serializable > extends DAO< T, Long>{
void setClazz( final Class< T > claz... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.repository.jpa;
import com.startup.musicstore.repository.GenericDAO;
import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Pe... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
/**
*
* @author linda
*/
public interface OrderAmountService {
public void calculateOrderAmount();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
/**
*
* @author linda
*/
public interface PostAlbumRatingsService {
public void PostAlbumRatings(Long AlbumID, int rating);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
import java.util.List;
/**
*
* @author boniface
*/
public interface Service<T, ID> {
public T findById(final ID id);
public List< T> findAll();
public void per... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
/**
*
* @author linda
*/
public interface AlbumRatingService {
public int getAlbumRating(Long albumID);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
import com.startup.musicstore.model.Customer;
import com.startup.musicstore.model.Orders;
import com.startup.musicstore.services.UnpaidStatusService;
import com.sta... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
import com.startup.musicstore.model.Customer;
import com.startup.musicstore.model.CustomerAddress;
import com.startup.musicstore.services.CustomerDetails;
import co... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
import com.startup.musicstore.model.Customer;
import com.startup.musicstore.model.OrderItem;
import com.startup.musicstore.model.Orders;
import com.startup.musicsto... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
import com.startup.musicstore.model.Album;
import com.startup.musicstore.model.AlbumCategory;
import com.startup.musicstore.model.MarketingInformation;
import com.s... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
import com.startup.musicstore.model.Album;
import com.startup.musicstore.model.AlbumCategory;
import com.startup.musicstore.model.Track;
import com.startup.musicsto... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
import com.startup.musicstore.model.Album;
import com.startup.musicstore.model.Customer;
import com.startup.musicstore.model.OrderItem;
import com.startup.musicstor... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
import com.startup.musicstore.model.CreditCard;
import com.startup.musicstore.model.Customer;
import com.startup.musicstore.model.CustomerInvoice;
import com.startu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
import com.startup.musicstore.model.Album;
import com.startup.musicstore.model.AlbumCategory;
import com.startup.musicstore.services.CategoryMostSales;
import com.s... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
import com.startup.musicstore.model.Album;
import com.startup.musicstore.model.Customer;
import com.startup.musicstore.model.OrderItem;
import com.startup.musicstor... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
import com.startup.musicstore.app.exceptions.MarketInformationPendingException;
import com.startup.musicstore.model.Album;
import com.startup.musicstore.model.Review;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
/**
*
* @author linda
*/
public class HashMapExplanations
{
//
//
// In first example of HashMap, we will create and add object into our Map. Always use... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.Impl;
import com.startup.musicstore.app.exceptions.CreditCardRejectionException;
import com.startup.musicstore.model.CreditCard;
import com.startup.musicstore.services.CreditCardA... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
import com.startup.musicstore.model.Customer;
import com.startup.musicstore.model.CustomerAddress;
/**
*
* @author linda
*/
public interface CustomerDetails {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud;
import com.startup.musicstore.model.CustomerInvoice;
import com.startup.musicstore.services.Service;
/**
*
* @author boniface
*/
public interface CustomerInvoiceCrudServ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud;
import com.startup.musicstore.model.CreditCard;
import com.startup.musicstore.services.Service;
/**
*
* @author boniface
*/
public interface CreditCardCrudService extend... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud;
import com.startup.musicstore.model.Customer;
import com.startup.musicstore.services.Service;
/**
*
* @author boniface
*/
public interface CustomerCrudService extends Se... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud;
import com.startup.musicstore.model.Orders;
import com.startup.musicstore.services.Service;
/**
*
* @author boniface
*/
public interface OrdersCrudService extends Servic... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud.Impl;
import com.startup.musicstore.model.CreditCard;
import com.startup.musicstore.repository.GenericDAO;
import com.startup.musicstore.services.crud.CreditCardCrudService;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud.Impl;
import com.startup.musicstore.model.OrderItem;
import com.startup.musicstore.repository.GenericDAO;
import com.startup.musicstore.services.crud.OrderItemCrudService;
im... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud.Impl;
import com.startup.musicstore.model.Customer;
import com.startup.musicstore.repository.GenericDAO;
import com.startup.musicstore.services.crud.CustomerCrudService;
impo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud.Impl;
import com.startup.musicstore.model.AlbumCategory;
import com.startup.musicstore.repository.GenericDAO;
import com.startup.musicstore.services.crud.AlbumCategoryCrudSer... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud.Impl;
import com.startup.musicstore.model.Orders;
import com.startup.musicstore.repository.GenericDAO;
import com.startup.musicstore.services.crud.OrdersCrudService;
import j... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud.Impl;
import com.startup.musicstore.model.Review;
import com.startup.musicstore.repository.GenericDAO;
import com.startup.musicstore.services.crud.ReviewCrudService;
import j... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud.Impl;
import com.startup.musicstore.model.CustomerInvoice;
import com.startup.musicstore.repository.GenericDAO;
import com.startup.musicstore.services.crud.CustomerInvoiceCru... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud.Impl;
import com.startup.musicstore.model.MarketingInformation;
import com.startup.musicstore.repository.GenericDAO;
import com.startup.musicstore.services.crud.MarketingInfo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud.Impl;
import com.startup.musicstore.model.Album;
import com.startup.musicstore.repository.GenericDAO;
import com.startup.musicstore.services.crud.AlbumCrudService;
import jav... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud.Impl;
import com.startup.musicstore.model.Track;
import com.startup.musicstore.repository.GenericDAO;
import com.startup.musicstore.services.crud.TrackCrudService;
import jav... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud;
import com.startup.musicstore.model.Review;
import com.startup.musicstore.services.Service;
/**
*
* @author boniface
*/
public interface ReviewCrudService extends Servic... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud;
import com.startup.musicstore.model.Album;
import com.startup.musicstore.services.Service;
/**
*
* @author boniface
*/
public interface AlbumCrudService extends Service<... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud;
import com.startup.musicstore.model.Track;
import com.startup.musicstore.services.Service;
/**
*
* @author boniface
*/
public interface TrackCrudService extends Service<... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud;
import com.startup.musicstore.model.OrderItem;
import com.startup.musicstore.services.Service;
/**
*
* @author boniface
*/
public interface OrderItemCrudService extends ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud;
import com.startup.musicstore.model.AlbumCategory;
import com.startup.musicstore.services.Service;
/**
*
* @author boniface
*/
public interface AlbumCategoryCrudService ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services.crud;
import com.startup.musicstore.model.MarketingInformation;
import com.startup.musicstore.services.Service;
/**
*
* @author boniface
*/
public interface MarketingInformati... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
/**
*
* @author linda
*/
public interface SuccessfulPurchaseService {
public void PayInvoice();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
/**
*
* @author linda
*/
public interface AlbumSalesService {
public void AlterAlbumSales();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
import java.util.Map;
/**
*
* @author linda
*/
public interface CategoryMostSales {
public Map<String, Integer> getMostSalesPerAlbumCategory();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
import com.startup.musicstore.model.Album;
import java.util.List;
/**
*
* @author linda
*/
public interface GenderPurchaseService {
public List<Album> getGe... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
/**
*
* @author linda
*/
public interface SampleURLService {
public String getSampleURL(Long albumID, int trackNumber);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
import com.startup.musicstore.model.Customer;
import com.startup.musicstore.model.Orders;
import java.util.List;
/**
*
* @author linda
*/
public interface Unpai... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.services;
import java.math.BigDecimal;
import java.util.Date;
/**
*
* @author boniface
*/
public interface CreditCardApprovalService {
public String processPayment(String number, B... |
/**
* Copyright (c) 2010 David Dearing
*/
package com.dpdearing.sandbox.gpsemulator.client;
import com.dpdearing.sandbox.gpsemulator.common.LocationServiceAsync;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.event.dom.client.ChangeEvent;
i... |
/**
* Copyright (c) 2010 David Dearing
*/
package com.dpdearing.sandbox.gpsemulator.server;
import java.io.IOException;
import com.dpdearing.sandbox.gpsemulator.common.LocationService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import de.mud.telnet.TelnetWrapper;
/**
* The server ... |
/**
* Copyright (c) 2010 David Dearing
*/
package com.dpdearing.sandbox.gpsemulator.common;
import java.io.IOException;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
/**
* The client side stub for the RPC service.
*/
@RemoteSe... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
* Enemigo Class
* @author Hugo Armando Rodíguez Flores
* @version May 23th 2013
*/
public abstract class Enemigo extends Ninja
{
private int move; //Type of move
private int randomizeTiming; /... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
* I represent a lake
* @author (your name)
* @version May 20th 2013
*/
public class Lago extends Decoracion
{
private ArrayList<GreenfootImage> lake; //Stores the images for the lake
/**
* Thi... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* MagicJar class
* @author Hugo Armando Rodríguez Flores
* @version April 15th 2013
*/
public class MagicJar extends Antidoto
{
}
|
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.*;
/**
* I display a message on the screen
* @author Hugo Armando Rodríguez Flores
* @version April 26th 2013
*/
public class Mensaje extends Actor
{
/**
* @param aString is a string that is going to... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
* I am the visual representation of Thomas life.
* @author Hugo Armando Rodríguez Flores
* @version May 26th 2013
*/
public class Lifebar extends Actor
{
private ArrayList<GreenfootImage> lifeBar;
/... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* I represent the records
* @author Hugo Armando Rodríguez Flores
* @version May 25th 2013
*/
public class Records extends Actor
{
private UserInfo information; //A reference to UserInfo class
/**
* Puts the rec... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* I am Gigante
* @author Hugo Armando Rodríguez Flores
* @version May 25th 2013
*/
public class Gigante extends Jefe
{
/**
* Defines the properties for Gigante
*/
public Gigante()
{
supe... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
* I represent a button
* @author Hugo Armando Rodríguez Flores
* @version May 15th 2013
*/
public class Boton extends Actor
{
private ArrayList<GreenfootImage> buttons; //ArrayList that holds the ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Defines a Jefe
* @author Hugo Armando Rodríguez Flores
* @version May 26th 2013
*/
public abstract class Jefe extends Enemigo
{
private int lifePercentage; //All bosses have a resistance
/**
* Constr... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* I am a rock
* @author Hugo Armando Rodríguez Flores
* @version April 17th 2013
*/
public class Roca extends Decoracion
{
}
|
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* I am a Cuchillo
* @author Hugo Armando Rodriguez Flores
* @version April 25th 2013
*/
public class Cuchillo extends Actor
{
private boolean direction; //This is direction is going to take the knife
private Gre... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Antidoto class
* @author Hugo Armando Rodriguez Flores
* @version April 15th 2013
*/
public class Antidoto extends Actor
{
}
|
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.*;
import java.util.*;
/**
* Escenario Class
* @author Flores Hugo Armando Rodriguez
* @version May 26th 2013
*/
public class Escenario extends World
{
private ArrayList<Boton> buttons; //Stores buttons
privat... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
* Edificio Class
* @author Hugo Armando Rodríguez Flores
* @version May 6th 2013
*/
public class Edificio extends Decoracion
{
private ArrayList<GreenfootImage> building; //Stores the images for t... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* I am the arabian Swordsman!
* @author Hugo Armando Rodríguez Flores
* @version May 24th 2013
*/
public class Swordsman extends Jefe
{
/**
* Defines the Swordman properties
*/
public Swordsman()
{
su... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.*;
/**
* I represent a timer that counts backwards
* @author Hugo Armando Rodríguez Flores
* @version May 13th 2013
*/
public class Timer extends Actor
{
private long startTime; //This takes the start time from the ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Buck Class
* @author Hugo Armando Rodríguez Flores
* @version May 23th 2013
*/
public class Buck extends Ordinario
{
/**
* Gives the properties to an instance of this class.
*/
public Buck()
{
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* I am the back of the score
* @author Hugo Armando Rodríguez Flores
* @version May 14th 2013
*/
public class ScoreBack extends Actor
{
}
|
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Decoracion class
* @author Hugo Armando Rodríguez Flores
* @version May 11th 2013
*/
public class Decoracion extends Actor
{
/**
* Detects when a knife has touched this piece of Decoracion
*/
public... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Julius class
* @author Hugo Armando Rodríguez Flores
* @version May 23th 2013
*/
public class Julius extends Ordinario
{
/**
* Gives the properties to an instance of this class.
*/
public Julius()
{
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Rick Class
* @author Hugo Armando Rodríguez Flores
* @version May 23th 2013
*/
public class Rick extends Ordinario
{
private boolean stoppedSpinning; //Become true when Rick has stopped spinning
/**
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* I am the boss of bosses: Mr. Z
* @author Hugo Armando Rodríguez Flores
* @version May 21th 2013
*/
public class MrZ extends Jefe
{
/**
* Defines all the properties for Mr. Z
*/
public MrZ()
{
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* I am a simple bridge
* @author Hugo Armando Rodríguez
* @version May 24th 2013
*/
public class Puente extends Decoracion
{
}
|
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* DoomJar class
* @author Hugo Armando Rodríguez Flores
* @version April 15th 2013
*/
public class DoomJar extends Antidoto
{
}
|
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Thomas class
* @author Hugo Armando Rodríguez Flores
* @version 15 de Abril de 2013
*/
public class Thomas extends Ninja
{
private int lifePercentage; //Life starts at 100%
private int lives; //Starts with 3 lives
pr... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class defines the movement for the basic enemies
* @author Hugo Armando Rodríguez Flores
* @version May 22th 2013
*/
public abstract class Ordinario extends Enemigo
{
/**
* Gives the proper sequence to the... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
* Ninja Class
* @author Hugo Armando Rodriguez Flores
* @version April 23th 2013
*/
public abstract class Ninja extends Actor
{
private int moveCounter; //counter that indicates a movement image to be displa... |
package il.ac.technion;
import org.springframework.stereotype.Repository;
@Repository
public class TableDao extends Dao<Table> {
}
|
package il.ac.technion;
import java.util.ArrayList;
import java.util.Collection;
public class Table implements IDaoStorable {
private int size;
private int id;
private ArrayList<Guest> guests = new ArrayList<Guest>(size);
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = si... |
package il.ac.technion;
import org.springframework.stereotype.Repository;
@Repository
public class GuestDao extends Dao<Guest> {
} |
package il.ac.technion;
import java.util.ArrayList;
public class Dao<Type extends IDaoStorable> {
protected ArrayList<Type> objects = new ArrayList<Type>();
public void saveObject(Type o) {
o.setId(objects.size() + 1);
objects.add(o);
}
public Type getObjectById(int id) {
if (id > 0 && id <= objects.size(... |
package il.ac.technion;
import java.util.ArrayList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.Reques... |
package il.ac.technion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springfra... |
package il.ac.technion;
public interface IDaoStorable {
public void setId(int id);
public int getId();
}
|
package il.ac.technion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Handles requ... |
package il.ac.technion;
import java.util.HashSet;
public class Guest implements IDaoStorable {
private String name;
private int age;
private int id;
private HashSet<Guest> dislikes = new HashSet<Guest>();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
p... |
/**
* WeddingSits - Software Design, 236700 - Technion
*
* Author: Assaf Israel, 2012
*/
package il.ac.technion.wedding;
import java.util.ArrayList;
import java.util.Collection;
import com.google.java.contract.Ensures;
import com.google.java.contract.Invariant;
import com.google.java.contract.Requires;
/**
* ... |
/**
* WeddingSits - Software Design, 236700 - Technion
*
* Author: Assaf Israel, 2012
*/
package il.ac.technion.wedding;
import com.google.java.contract.Ensures;
import com.google.java.contract.Invariant;
import com.google.java.contract.Requires;
@Invariant({
"name != null",
"!name.isEmpty()... |
/**
* WeddingSits - Software Design, 236700 - Technion
*
* Author: Assaf Israel, 2012
*/
package il.ac.technion.wedding;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import com.google.java.contract.Ensures;
import com.google.java.contract.Invariant;
import co... |
/**
* WeddingSits - Software Design, 236700 - Technion
*
* Author: Assaf Israel, 2012
*/
package il.ac.technion.heuristic;
import il.ac.technion.wedding.Guest;
import il.ac.technion.wedding.Person;
import il.ac.technion.wedding.Table;
import java.util.Collection;
import java.util.LinkedList;
import com.google.j... |
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamSource;
import org.dom4j.Document;
import org.... |
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.str... |
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamSource;
import org.dom4j.Document;
import org.... |
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamSource;
import org.dom4j.Document;
import org.... |
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.str... |
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamSource;
import org.dom4j.Document;
import org.... |
/*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed... |
/*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed... |
/*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed... |
/*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.