|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Weight
public class Weight
Field Summary | |
---|---|
private int |
myOunces
|
private int |
myPounds
|
Constructor Summary | |
---|---|
Weight()
|
|
Weight(int x)
|
|
Weight(int x,
int y)
|
|
Weight(Weight arg)
|
Method Summary | |
---|---|
int |
compareTo(Weight w)
|
int |
getOunces()
|
int |
getPounds()
|
void |
setOunces(int x)
|
void |
setPounds(int x)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int myPounds
private int myOunces
Constructor Detail |
---|
public Weight()
public Weight(int x)
public Weight(int x, int y)
public Weight(Weight arg)
Method Detail |
---|
public int getPounds()
public int getOunces()
public void setPounds(int x)
public void setOunces(int x)
public int compareTo(Weight w)
compareTo
in interface java.lang.Comparable<Weight>
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |