text stringlengths 3 1.18M |
|---|
package cn._2dland.http;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
public class Cookie {
public String name;
public String value;
public String domain;
public String path;
public long expires;
private ... |
package cn._2dland.http;
public class NameValuePair implements Comparable<NameValuePair> {
public String name;
public String value;
public NameValuePair() {}
public NameValuePair(String name, String value) {
this.name = name;
this.value = value;
}
public void set(String name, String value){
... |
package cn._2dland.oauth;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import cn._2dland.http.HttpClient;
import cn._2dland.http.method.HttpMethod;
import cn._2dland.util.SignatureAlgorithm;
import cn._2dland.util.SignatureAlgorithmFactory;
import cn.... |
package cn._2dland.util;
/**
* 签名算法工厂
*
* @author deadblue
*/
public final class SignatureAlgorithmFactory {
/** 算法名:HMAC-SHA1*/
public static final String ALGORITHM_HMAC_SHA1 = "HMAC-SHA1";
/**
* 获取签名算法
*
* @param name 算法名
* @return
*/
public static SignatureAlgorithm getAlgorith... |
package cn._2dland.util;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
public class Base64 {
private static final String BASE64_CHAR = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
/**
* Base64编码
*
* @param b
* @return
*/
public static String enc... |
package cn._2dland.util;
import javax.crypto.Mac;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
/**
* HMAC-SHA1签名算法
*
* @author deadblue
*/
public class HMAC_SHA1 extends SignatureAlgorithm {
/** 算法内部名 */
private static final String ALGORITHM_NAME = "HmacSHA1";
@Over... |
package cn._2dland.util;
/**
* 签名算法抽象类
*
* @author deadblue
*/
public abstract class SignatureAlgorithm {
/**
* 签名
*
* @param key 密钥
* @param content 内容
* @return
*/
abstract public String signature(byte[] key, byte[] content);
}
|
package cn._2dland.util;
import java.util.BitSet;
public class URIEncoder {
/** 16进制字符 */
private static final String HEX_CHARS = "0123456789ABCDEF";
/** 保留字符(不转码) */
private static BitSet reservedChars = null;
static {
// 设置保留字符
reservedChars = new BitSet(256);
reservedChars.set('a', 'z'... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
package org.json;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.io.StringWriter;
/**
* Test class. This file is not formally a member of the org.json library.
* It is just a casual test tool.
*/
@SuppressWarnings("unchecked")
public class Test {
/**
... |
package org.json;
/**
* The <code>JSONString</code> interface allows a <code>toJSONString()</code>
* method so that a class can change the behavior of
* <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>,
* and <code>JSONWriter.value(</code>Object<code>)</code>. The
* <code>toJSONString... |
package org.json;
import java.io.IOException;
import java.io.Writer;
/*
Copyright (c) 2006 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including witho... |
package org.json;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in... |
package org.json;
/**
* The JSONException is thrown by the JSON.org classes when things are amiss.
* @author JSON.org
* @version 2008-09-18
*/
public class JSONException extends Exception {
/**
*
*/
private static final long serialVersionUID = 0;
private Throwable cause;
/**
* C... |
package org.json;
/*
Copyright (c) 2006 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... |
package org.json;
/*
Copyright (c) 2008 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
package cn._2dland.tools;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@SuppressWarnings("serial")
public class SinaServlet extends HttpServlet {
priva... |
package cn._2dland.tools;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletReque... |
package cn._2dland.tools;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.... |
package cn._2dland.access.jdo;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
@PersistenceCapable(identityType = IdentityType.APPLICA... |
package cn._2dland.access.jdo;
import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;
public class PMFactory {
private final static PersistenceManagerFactory pmfInstance = JDOHelper.getPersistenceManagerFactory("transactions-optional");
public static PersistenceManagerFactory getPMFInstanc... |
package cn._2dland.access.jdo;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
@PersistenceCapable(identityType = IdentityType.APPLICA... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Una torreta es una ametralladora autónoma fija.
*
*/
public class Torreta1 extends Unidad
{
private int turnosParaDisparar = 0;
private GreenfootSound sonidoDisparo,
sonidoExplosion;
... |
import greenfoot.*;
import java.lang.Math;
/**
* Tanque ligero.
* Unidad muy poderosa, aunque algo lenta.
*
* @author Mario Alberto Valencia Valero
*/
public class Tanque_ligero extends Unidad
{
private int turnosParaDisparar = 0;
private GreenfootSound sonidoDisparo,
soni... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Un robot grande.
* Es la unidad más poderosa de todas. Tiene un lanza-misiles y una ametralladora.
*
* @author Mario Alberto Valencia Valero
*/
public class Mech2 extends Unidad
{
private int turnosParaDisparar ... |
import greenfoot.*;
import java.awt.Color;
/**
* Representa un mensaje a mostrar en pantalla.
*
* @author Mario Alberto Valencia Valero
*/
public class Mensaje extends Actor
{
private String msg;
private GreenfootImage img;
/**
* Constructor
*
* @param msg mensaje a m... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* BMP significa Boyevaya Mashina Pekhoty, que se traduce como "Unidad Anti Infantería"
*
* @author Mario Alberto Valencia Valero
*/
public class BMP extends Unidad
{
private int turnosParaDisparar = 0;
private ... |
import greenfoot.*;
import java.util.List;
import java.util.ArrayList;
import java.util.HashSet;
import java.lang.Math;
/**
* Mapa en el que se desarrolla el combate.
*
* @author Mario Alberto Valencia Valero
*
*/
public class Mapa extends World
{
protected int nivel = 1; /** Nivel que se está... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Portada del juego, con el menú.
*
* @author Mario Alberto Valencia Valero
*/
public class Portada extends World
{
private BotonMenu jugar, instrucciones, creditos;
private BotonMenu pantallaInstrucciones, panta... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Un jeep.
* Los jeeps son unidades muy veloces y baratas. Tienen una ametralladora.
*
* @author Mario Alberto Valencia Valero
*/
public class Jeep extends Unidad
{
private int turnosParaDisparar = 0;
private G... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Una fábrica es un edificio que puede producir unidades.
*
* @author Mario Alberto Valencia Valero
*/
public class Fabrica extends Edificio
{
private GreenfootImage img,
imgSel; /** imagen cuando ... |
import greenfoot.*;
import java.util.List;
import java.util.ArrayList;
public class Mapa3 extends Mapa
{
public Mapa3()
{
super(700, 400);
prepare();
nivel = 3;
}
private void prepare()
{
addObject( new Ciudad(Unidad.C... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Representa una roca.
*
* @author Mario Alberto Valencia Valero
*/
public class Roca2 extends Actor
{
public Roca2()
{
getImage().scale( (int)(getImage().getWidth()*.5), (int)(getImage().getHeight()... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Una bala.
*/
public class Bala extends Actor
{
protected Unidad.Color color; /** color de la unidad que disparó la bala */
protected int maxdist = 200; /** distancia máxima que viaja antes de desaparecer */
pro... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* HQ representa el cuartel general (Head Quarters)
*
* @author Mario Alberto Valencia Valero
*/
public class HQ extends Edificio
{
/**
* Constructor
* @param color color del edificio
*/
public ... |
import greenfoot.*;
/**
* Bala disparada por un tanque
*/
public class Bala_tanque extends Bala
{
/**
* Constructor
* @param col color de la unidad que disparó
* @param dir dirección de la bala
*/
public Bala_tanque(Unidad.Color col, int dir ){
super(col, dir);
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Un cañon antitanque controlado por dos soldaditos.
* Efectivo contra tanques, pero se mueve muy lento.
*
* @author Mario Alberto Valencia Valero
*/
public class ArmaAntitanque extends Unidad
{
private int turnosPa... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Marca que indica que una unidad está seleccionada.
*
* @author Mario Alberto Valencia Valero
*/
public class Seleccion extends Actor
{
private GreenfootImage img;
public Seleccion()
{
img = ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Representa una montaña
*
* @author Mario Alberto Valencia Valero
*/
public class Montaña extends Actor
{
/**
* Constructor
*/
public Montaña()
{
getImage().scale( (int)(getImage().getW... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Una unidad AntiAérea.
* Esta unidad es de posición fija, y tiene una doble ametralladora de largo alcance.
*
* @author Mario Alberto Valencia Valero
*/
public class ArmaAntiaerea extends Unidad
{
private int tur... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Representa un edificio.
*
* @author Mario Alberto Valencia Valero
*/
public class Edificio extends Actor
{
protected Unidad.Color col;
protected int captura = 100; /** cuanto falta para capturar el edificio */
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Representa la animación del disparo.
*
* @author Mario Alberto Valencia Valero
*/
public class Disparo extends Actor
{
private int turnos = 1; /** Turnos antes de desaparecer */
/**
* Constructor
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Palmera here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Palmera extends Actor
{
/**
* Act - do whatever the Palmera wants to do. This metho... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Una ciudad.
*
* @author Mario Alberto Valencia Valero
*/
public class Ciudad extends Edificio
{
/**
* Constructor
* @param color color del edificio
*/
public Ciudad(Unidad.Color color)
{... |
import greenfoot.*;
import java.lang.Math;
import java.util.List;
/**
* Un soldado.
* Solo son efectivos contra otros soldados. Son las únicas unidades que pueden capturar edificios.
*
* @author Mario Alberto Valencia Valero
*/
public class Soldado extends Unidad
{
private int turnosParaDisparar ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Representa unos árboles.
*
* @author Mario Alberto Valencia Valero
*/
public class Arboles extends Actor
{
/**
* Constructor
*/
public Arboles()
{
getImage().scale( (int)(getImage().ge... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Un misil.
*
* @author Mario Alberto Valencia Valero
*/
public class Misil extends Bala
{
/**
* Constructor.
* @param col color de la unidad que lo disparó
* @param dir direccion del misil
*... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Representa el lugar donde impacta una bala de ametralladora.
*
* @author Mario Alberto Valencia Valero
*/
public class ImpactoBala extends Actor
{
private int turnos = 1; /** turnos antes de desaparecer */
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Representa una explosión del impacto de un misil o bala de tanque.
*
* @author Mario Alberto Valencia Valero
*/
public class PequeñaExplosion extends Actor
{
private int turnos = 3; /** turnos antes de desaparecer ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Representa un objeto que se muestra en un menú.
*
* @author Mario Alberto Valencia Valero
*/
public class BotonMenu extends Actor
{
/**
* Constructor
* @param img La imagen que representa al botón.
... |
import greenfoot.*;
import java.util.List;
import java.util.ArrayList;
public class Mapa2 extends Mapa
{
public Mapa2()
{
super(700, 400);
prepare();
nivel = 2;
}
private void prepare()
{
addObject( new Montaña(), 25, 75);
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class APC here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class APC extends Unidad
{
int turnosParaDisparar = 0;
GreenfootSound sonidoDisparo,
... |
import greenfoot.*;
import java.util.List;
import java.lang.Math;
/**
* Unidad de combate
*/
public abstract class Unidad extends Actor
{
public enum Color { ROJO, VERDE, GRIS };
public enum Accion { MOVER, CAPTURAR, ATACAR };
protected Color color;
protected Accion acc;
... |
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot)
import java.awt.Color;
import java.awt.Graphics;
/**
* Muestra un prefijo, seguido de un número.
* @author Mario Alberto Valencia Valero
*/
public class Contador extends Actor
{
private int valor = 0;
private String texto;
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Un robot mediano. Posee dos ametralladoras.
*
* @author Mario Alberto Valencia Valero
*/
public class Mech1 extends Unidad
{
private int turnosParaDisparar = 0;
private GreenfootSound sonidoDisparo,
... |
import greenfoot.*;
import java.util.List;
import java.util.ArrayList;
/**
* Primer mapa.
*
* @author Mario Alberto Valencia Valero
*/
public class Mapa1 extends Mapa
{
/**
* Constructor
*/
public Mapa1()
{
super(700, 400);
prepare();
... |
package com.tucanstubs.android_wheresmystuff.activities;
import java.text.ParseException;
import com.tucanstubs.android_wheresmystuff.R;
import com.tucanstubs.android_wheresmystuff.login.Login;
import com.tucanstubs.android_wheresmystuff.login.LoginException;
import android.app.Activity;
import android.os.Bundle;
i... |
package com.tucanstubs.android_wheresmystuff.activities;
import java.text.ParseException;
import com.tucanstubs.android_wheresmystuff.R;
import com.tucanstubs.android_wheresmystuff.login.Login;
import com.tucanstubs.android_wheresmystuff.login.LoginException;
import android.app.Activity;
import android.content.Inte... |
package com.tucanstubs.android_wheresmystuff.activities;
import java.util.List;
import com.tucanstubs.android_wheresmystuff.R;
import com.tucanstubs.android_wheresmystuff.login.User;
import com.tucanstubs.android_wheresmystuff.database.UserHelper;
import android.app.Activity;
import android.os.Bundle;
import android.... |
package com.tucanstubs.android_wheresmystuff.activities;
import java.util.ArrayList;
import java.util.List;
import com.tucanstubs.android_wheresmystuff.R;
import com.tucanstubs.android_wheresmystuff.login.User;
import com.tucanstubs.android_wheresmystuff.database.ItemHelper;
import com.tucanstubs.android_wheresmystuf... |
package com.tucanstubs.android_wheresmystuff.activities;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import com.tucanstubs.android_wheresmystuff.R;
import com.tucanstubs.android_wheresmystuff.database.ItemHelper;
import com.tu... |
package com.tucanstubs.android_wheresmystuff.activities;
import java.util.List;
import com.tucanstubs.android_wheresmystuff.R;
import com.tucanstubs.android_wheresmystuff.database.UserHelper;
import com.tucanstubs.android_wheresmystuff.items.Item;
import com.tucanstubs.android_wheresmystuff.login.User;
import... |
package com.tucanstubs.android_wheresmystuff.activities;
/**
* This interface is where all the tags for passing information between activities are defined.
* Each tag is used to map information in the bundle. For example the USERNAME tag maps to the
* user name of the currently logged in user.
* @author team 37
*... |
package com.tucanstubs.android_wheresmystuff.activities;
import java.util.List;
import com.tucanstubs.android_wheresmystuff.R;
import com.tucanstubs.android_wheresmystuff.database.ItemHelper;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.v... |
package com.tucanstubs.android_wheresmystuff.activities;
import com.tucanstubs.android_wheresmystuff.R;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
/**
*
* Launching point of the application. Called when the application starts up.
* @author tea... |
package com.tucanstubs.android_wheresmystuff.activities;
import java.util.Date;
import com.tucanstubs.android_wheresmystuff.R;
import com.tucanstubs.android_wheresmystuff.database.ItemHelper;
import com.tucanstubs.android_wheresmystuff.database.UserHelper;
import com.tucanstubs.android_wheresmystuff.items.*;
import co... |
package com.tucanstubs.android_wheresmystuff.activities;
import java.util.List;
import com.tucanstubs.android_wheresmystuff.R;
import com.tucanstubs.android_wheresmystuff.database.UserHelper;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.v... |
package com.tucanstubs.android_wheresmystuff.items;
/**
* This class is used to handle exceptions dealing with items
* @author team 37
* @version 1.0 04/08/2013
*/
public class ItemException extends Exception {
String message;
/**
* Creates a new ItemException with the given message
* @param me... |
package com.tucanstubs.android_wheresmystuff.items;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
/**
* This class represents a generic Item. It is abstract because we will never make a generic Item, only
* lost items and found items. It defines all the relevant fields for an item incl... |
package com.tucanstubs.android_wheresmystuff.items;
import java.util.Date;
/**
* Subclass of item, represents a lost item
* @author team 37
* @version 1.0 02/25/2013
*/
public class LostItem extends Item{
private double reward;
private ItemType type;
/**
* Creates a new lost item with inputed info
* @par... |
package com.tucanstubs.android_wheresmystuff.items;
/**
* Enumerated types for item categories
* @author team 37
* @version 1.0 04/08/2013
*/
public enum ItemType {
KEEPSAKE,
HEIRLOOM,
MISC;
}
|
package com.tucanstubs.android_wheresmystuff.items;
import java.util.Date;
/**
* Subclass of items that represents a Found Item
* @author team 37
* @version 1.0 2/25/2012
*/
public class FoundItem extends Item{
private ItemType type;
/**
* Creates a found item with the inputed info
* @param name item's na... |
package com.tucanstubs.android_wheresmystuff.items;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
/**
* Service provider class for filtering items on the myItems screen
* @author team 37
* @version 1.0 4/4/2013
*
*/
public class Filter ... |
package com.tucanstubs.android_wheresmystuff.items;
import java.util.Date;
/**
* A subclass of item that represents a donation.
* @author team 37
* @version 1.0 2/25/2012
*/
public class Donation extends Item{
/**
* Create a donation object with info matching the inputed info.
* @param name item name
* @p... |
package com.tucanstubs.android_wheresmystuff.items;
import java.util.Date;
/**
* Subclass of item, represents a request
* @author team 37
* @version 1.0 02/25/2013
*/
public class Request extends Item{
/**
* creates a new request with the inputed info
* @param name
* @param description
* @param locatio... |
package com.tucanstubs.android_wheresmystuff.login;
/**
* This class is used for handling exceptions at login.
* @author team 37
* @version 1.0 2/21/2013
*
*/
@SuppressWarnings("serial")
public class LoginException extends Exception {
String message;
/**
* Creates a new LoginException with the given message... |
package com.tucanstubs.android_wheresmystuff.login;
/**
* Admin is a subclass of user. Admins have all of the functionality of a user in addition to the added
* privileges of being able to add, remove, and lock user accounts.
*
* @author team 37
* @version 1.0 2/21/2013
*
*/
public class Admin ext... |
package com.tucanstubs.android_wheresmystuff.login;
import java.text.ParseException;
import com.tucanstubs.android_wheresmystuff.database.UserHelper;
import android.content.Context;
/**
* The Login class is a gateway in between the users and the WheresMyStuff app.
* The Login class has the ability to add a ... |
package com.tucanstubs.android_wheresmystuff.login;
import java.util.*;
import com.tucanstubs.android_wheresmystuff.items.*;
/**
* This Class represents a Where'sMyStuff user. Users have a userName, password, email, and account state.
* They also have a list of all items that they have found and a list of it... |
package com.tucanstubs.android_wheresmystuff.database;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.StringTokenizer;
import com.tucanstubs.android_wheresmystuff.items.Donation;
import com.tucanstubs.andro... |
package com.tucanstubs.android_wheresmystuff.database;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import com.tucanstubs.android_wheresmystuff.items.Item;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import andr... |
package com.tucanstubs.android_wheresmystuff.database;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Class to keep track of the table and column names of both tables
* in Where's My stuff (Users and Items). Objects of this class ... |
package com.tucanstubs.android_wheresmystuff.database;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import com.tucanstubs.android_wheresmystuff.items.Item;
import com.tucanstubs.android_wheresmystuff.login.Admin;
import com.tucanstubs.android_wheresmystuff.login.User;
import an... |
package edu.gatech.oad.antlab.pkg1;
/**
* CS2340 Ant Lab
*
* AntLab11.java helper class
* @author Robert
* @version 1.0
*/
public class AntLab11 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
return "C... |
package edu.gatech.oad.antlab.pkg1;
/**
* CS2335 Ant Lab
*
* AntLab12.java helper class
*/
public class AntLab12 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
return " You";
}
} |
package edu.gatech.oad.antlab.pkg1;
//if you get an error on this import
//you do not have resources.jar on the classpath
import edu.cs2335.antlab.pkg3.*;
import edu.gatech.oad.antlab.person.*;
import edu.gatech.oad.antlab.pkg2.*;
/**
* CS2335 Ant Lab
*
* Prints out a simple message gathered from all ... |
package edu.gatech.oad.antlab.pkg2;
/**
* CS2340 Ant Lab
*
* AntLab11.java helper class
*
* @author Robert
* @version 1.0
*/
public class AntLab21 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
retu... |
package edu.gatech.oad.antlab.pkg2;
/**
* CS2335 Ant Lab
*
* AntLab11.java helper class
*
* @author Robert
* @version 1.0
*/
public class AntLab22 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
retu... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 1
* returns their name and a
* modified string
*
* @author Bob
* @version 1.1
*/
public class Person1 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons
* na... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 3
* returns their name and a
* reversed string
*
* @author Bob
* @version 1.1
*/
public class Person3 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons
* name
* @param... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 5
* returns their name and a
* modified string
*
* @author Bob
* @version 1.1
*/
public class Person5 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons
* na... |
package edu.gatech.oad.antlab.person;
import java.util.Random;
/**
* A simple class for person 2
* returns their name and a
* modified string
*
* @author Bob
* @version 1.1
*/
public class Person2 {
/** Holds the persons real name */
private String name;
/**
* The constructor, take... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.