|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ref_send.brand.Amount<T>
T
- unit
typepublic class Amount<T>
A typed long
value.
Field Summary | |
---|---|
Brand<T> |
unit
unit of value |
long |
value
number of units |
Constructor Summary | |
---|---|
Amount(Brand<T> unit,
long value)
Constructs an instance. |
Method Summary | |
---|---|
int |
compareTo(Amount<T> o)
|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Brand<T> unit
value
public final long value
Constructor Detail |
---|
public Amount(Brand<T> unit, long value)
unit
- unit
value
- value
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface Selfless
hashCode
in class java.lang.Object
public int compareTo(Amount<T> o) throws WrongBrand
compareTo
in interface java.lang.Comparable<Amount<T>>
WrongBrand
|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.