FileDocCategorySizeDatePackage
Widget.javaAPI DocExample600Sat Sep 12 03:01:00 BST 1998None

Widget

public class Widget extends Object

Fields Summary
public String
name
public int
price
Constructors Summary
public Widget(String name, int price)

    this.name = name;
    this.price = price;
    
Methods Summary
public booleanequals(java.lang.Object object)

    return 
      object instanceof Widget 
      && name.equals( ( (Widget)object ).name );
    
public inthashCode()

    return name.hashCode();
    
public java.lang.StringtoString()

    return "Widget( " + name + ", " + price + " )";