edu.cuny.cat.core
Class Shout.MutableShout
java.lang.Object
edu.cuny.cat.core.Shout
edu.cuny.cat.core.Shout.MutableShout
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Shout>
- Enclosing class:
- Shout
public static class Shout.MutableShout
- extends Shout
A Shout that is publically mutable.
- Author:
- Steve Phelps
- See Also:
- Serialized Form
Fields inherited from class edu.cuny.cat.core.Shout |
child, CREATED, id, isBid, MATCHED, parent, PENDING, PLACED, price, quantity, REJECTED, specialist, state, TRACE, trader |
Methods inherited from class edu.cuny.cat.core.Shout |
clone, compareTo, equals, getChild, getId, getParent, getPrice, getQuantity, getSpecialist, getState, getStateDescription, getTrader, isAsk, isBid, isMatched, isValid, maxPrice, maxPrice, minPrice, minPrice, satisfies, setChild, setParent, setSpecialist, setState, setTrader, splat, split, toPrettyString, toString, totalVolume |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Shout.MutableShout
public Shout.MutableShout()
Shout.MutableShout
public Shout.MutableShout(Shout existing)
setPrice
public void setPrice(double price)
- Overrides:
setPrice
in class Shout
setId
public void setId(java.lang.String shoutId)
- Overrides:
setId
in class Shout
setQuantity
public void setQuantity(int quantity)
- Overrides:
setQuantity
in class Shout
setIsBid
public void setIsBid(boolean isBid)
- Overrides:
setIsBid
in class Shout
copyFrom
public void copyFrom(Shout other)
- Overrides:
copyFrom
in class Shout