com.sun.j2ee.blueprints.smarticket.ejb.ticketsales
Class Seat
java.lang.Object
|
+--com.sun.j2ee.blueprints.smarticket.ejb.ticketsales.Seat
- All Implemented Interfaces:
- java.io.Serializable
- public class Seat
- extends java.lang.Object
- implements java.io.Serializable
Represents a seat in a theater.
- See Also:
- Serialized Form
Field Summary |
protected int |
row
|
protected int |
seat
|
Constructor Summary |
Seat()
|
Seat(int r,
int s)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
row
protected int row
seat
protected int seat
Seat
public Seat()
Seat
public Seat(int r,
int s)
init
public void init(int r,
int s)
init
public void init(Seat s)
getRow
public int getRow()
getSeat
public int getSeat()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
equals
public boolean equals(Seat s)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002 Sun Microsystems Inc. All rights reserved.