|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hu.birot.OTKit.dataType.FormValuePair
public class FormValuePair
A new immutable data type: a pair whose first element is a Form
and whose second value is a double
. It can be used for
several purposes, such as defining a MapForm
, using lists
of FormValuePairs.
Constructor Summary | |
---|---|
FormValuePair(Form frm)
Construct a FormValuePair from the form frm . |
|
FormValuePair(Form frm,
double v)
Construct a FormValuePair from the form frm and the
value v . |
|
FormValuePair(java.lang.String str)
Construct a FormValuePair from the string frm . |
|
FormValuePair(java.lang.String str,
double v)
Construct a FormValuePair from the string frm and the
value v . |
Method Summary | |
---|---|
Form |
form()
Returns the form of this form-value pair. |
double |
value()
Returns the value of this form-value pair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormValuePair(Form frm, double v)
FormValuePair
from the form frm
and the
value v
.
frm
- Form of the FormValuePair to be constructed.v
- Value of the FormValuePair to be constructed.public FormValuePair(Form frm)
FormValuePair
from the form frm
.
The value will be the default value 0
.
frm
- Form of the FormValuePair to be constructed.public FormValuePair(java.lang.String str, double v)
FormValuePair
from the string frm
and the
value v
. The form of the FormValuePair will be a string form
containing the string frm
.
str
- String of the Form in the FormValuePair to be constructed.v
- Value of the FormValuePair to be constructed.public FormValuePair(java.lang.String str)
FormValuePair
from the string frm
.
The form of the FormValuePair will be a string form
containing the string frm
. The value will be the default value 0.
str
- String of the Form in the FormValuePair to be constructed.Method Detail |
---|
public Form form()
public double value()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |