T - public class Countable<T> extends Object implements Comparable<Countable<T>>
| Constructor and Description |
|---|
Countable(T id,
int amount)
Construct the object.
|
public Countable(T id, int amount)
id - amount - public T getID()
public void setID(T id)
id - the id to setpublic int getAmount()
public void setAmount(int amount)
amount - the amount to setpublic void decrement()
public void increment()
Copyright © 2010-2014. All Rights Reserved.