JML

org.jmlspecs.samples.prelimdesign
Interface Money

All Superinterfaces:
Cloneable, JMLType, Serializable
All Known Subinterfaces:
MoneyComparable, MoneyOps
All Known Implementing Classes:
MoneyAC, MoneyComparableAC, USMoney

public interface Money
extends JMLType


Method Summary
 long cents()
           
 Object clone()
          Return a clone of this object.
 long dollars()
           
 boolean equals(Object o2)
          Test whether this object's value is equal to the given argument.
 
Methods inherited from interface org.jmlspecs.models.JMLType
hashCode
 

Method Detail

dollars

public long dollars()

cents

public long cents()

equals

public boolean equals(Object o2)
Description copied from interface: JMLType
Test whether this object's value is equal to the given argument.

Specified by:
equals in interface JMLType

clone

public Object clone()
Description copied from interface: JMLType
Return a clone of this object.

Specified by:
clone in interface JMLType

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.