public class Invoice extends Object
Constructor and Description |
---|
Invoice()
Create a new invoice.
|
Invoice(String name,
double price)
Create a new invoice.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Test for equality.
|
String |
getName()
Get the name.
|
double |
getPrice()
Get the price.
|
int |
hashCode()
Get the hashcode.
|
void |
setName(String name)
Set the name.
|
void |
setPrice(double price)
Set the price.
|
String |
toString()
Get the string representation.
|
public Invoice()
public Invoice(String name, double price)
public String getName()
public void setName(String name)
name
- The name to set.public double getPrice()
public void setPrice(double price)
price
- The price to set.public boolean equals(Object obj)
Copyright © 2012. All Rights Reserved.