All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class busrider.Item

java.lang.Object
   |
   +----busrider.Indexed
           |
           +----busrider.Item

public class Item
extends Indexed
This immutable class represents a named and indexed item.


Constructor Index

 o Item(String, int)
constructs an object.

Method Index

 o equals(Object)
compares for content equality.
 o getName()
returns the name.

Constructors

 o Item
 public Item(String name,
             int index)
constructs an object.

Methods

 o equals
 public boolean equals(Object ob)
compares for content equality.

Overrides:
equals in class Indexed
 o getName
 public String getName()
returns the name.


All Packages  Class Hierarchy  This Package  Previous  Next  Index