public class MFTime extends MField
Constructor and Description |
---|
MFTime()
Default constructor.
|
MFTime(double[] times)
Construct an MFTime field.
|
MFTime(int size,
double[] times)
Construct an MFTime field.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(ConstSFTime time)
Add a new element at the end of the list.
|
void |
addValue(double time)
Add a new element at the end of the list.
|
void |
addValue(SFTime time)
Add a new element at the end of the list.
|
void |
clear()
Removes all fields from the MField.
|
void |
delete(int index)
Deletes a field from the MField.
|
double |
get1Value(int index)
Retrieve a particular element from an MFTime field.
|
int |
getSize()
Number of elements contained in the MField.
|
void |
getValue(double[] times)
Retrieves the complete list of times making up an MFTime field.
|
void |
insertValue(int index,
ConstSFTime time)
Insert a new element at the specified position.
|
void |
insertValue(int index,
double time)
Insert a new element at the specified position.
|
void |
insertValue(int index,
SFTime time)
Insert a new element at the specified position.
|
void |
set1Value(int index,
ConstSFTime time)
Set a specified element in the field.
|
void |
set1Value(int index,
double time)
Set a specified element in the field.
|
void |
set1Value(int index,
SFTime time)
Set a specified element in the field.
|
void |
setValue(ConstMFTime times)
Set the value of the field.
|
void |
setValue(double[] times)
Set the value of the field.
|
void |
setValue(int size,
double[] times)
Set the value of the field.
|
void |
setValue(MFTime times)
Set the value of the field.
|
public MFTime()
public MFTime(int size, double[] times)
size
- Number of values passed in.times
- List of times to initialize object with.public MFTime(double[] times)
times
- List of times to initialize object with.public int getSize()
MField
public void clear()
MField
public void delete(int index)
MField
public void getValue(double[] times)
times
- List of times contained in field.public double get1Value(int index)
index
- Position of desired element.public void setValue(double[] times)
times
- New value for field.public void setValue(int size, double[] times)
size
- Size of new value for field.times
- New value for field.public void setValue(MFTime times)
times
- New value for field.public void setValue(ConstMFTime times)
times
- New value for field.public void set1Value(int index, double time)
index
- Position of element to update.time
- New value for element.public void set1Value(int index, ConstSFTime time)
index
- Position of element to update.time
- New value for element.public void set1Value(int index, SFTime time)
index
- Position of element to update.time
- New value for element.public void addValue(double time)
time
- Element to add.public void addValue(ConstSFTime time)
time
- Element to add.public void addValue(SFTime time)
time
- Element to add.public void insertValue(int index, double time)
index
- Position to insert new element at.time
- Value to insert.public void insertValue(int index, ConstSFTime time)
index
- Position to insert new element at.time
- Value to insert.public void insertValue(int index, SFTime time)
index
- Position to insert new element at.time
- Value to insert.