|
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.Objectorg.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 - unitvalue - value| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in interface SelflesshashCode 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.