|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.metdata.Ensemble
public class Ensemble
A class for holding an ensemble of Quantitys and
Values. Each Quantity can have only one associated
Value.
| Constructor Summary | |
|---|---|
Ensemble()
Create a new Ensemble |
|
| Method Summary | |
|---|---|
Set |
entrySet()
Get the set of Values in the Ensemble. |
boolean |
equals(Object oo)
See if the Object in question is equal to this Ensemble. |
StringBuffer |
format(StringBuffer buf)
Format the entire Ensemble. |
protected StringBuffer |
formatEntry(StringBuffer buf,
Map.Entry entry)
Format the Entry. |
Value |
get(Quantity qq)
Get the Value of a Quantity from the Ensemble |
Value |
get(String qstr)
Get the Value from the Ensemble by Quantity name |
int |
hashCode()
Return the hash code for this object. |
boolean |
isEmpty()
See if this ensemble is empty |
Set |
keySet()
Get the set of Quantitys in the Ensemble. |
Value |
put(Quantity qq,
Value vv)
Put a Quantity in the Ensemble |
Value |
put(String qstr,
int vv,
String uStr)
Pust a Quantity into the Ensemble. |
int |
size()
Get the size of the ensemble. |
String |
toString()
Return a String representation of this Ensemble |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Ensemble()
| Method Detail |
|---|
public Value put(String qstr,
int vv,
String uStr)
Quantity into the Ensemble.
qstr - quantity namevv - quantity valueuStr - unit name
public Value put(Quantity qq,
Value vv)
Quantity in the Ensemble
qq - Quantityvv - Value
public Value get(Quantity qq)
Quantity from the Ensemble
qq - Quantity to look up
public Value get(String qstr)
Value from the Ensemble by Quantity name
qstr - quantity name
public boolean isEmpty()
public int size()
public Set keySet()
Quantitys in the Ensemble.
public Set entrySet()
Values in the Ensemble.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object oo)
equals in class Objectoo - Object in question
protected StringBuffer formatEntry(StringBuffer buf,
Map.Entry entry)
buf - StringBuffer for formattingentry - Entry to format
public StringBuffer format(StringBuffer buf)
buf - StringBuffer to put formatted entries into
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||