public final class Record extends NestedObject
Constructor and Description |
---|
Record()
Creates an empty uninitialized record.
|
Record(List<String> _keys,
List<? extends Object> _values)
Creates a new Record with given initial values.
|
Record(String[] _keys,
Object[] _values)
Creates a new Record with given initial values.
|
Modifier and Type | Method and Description |
---|---|
Record |
clone()
Clones this record (shallow copy).
|
Record |
deepClone()
Clones this record (deep copy).
|
Object |
getField(String key)
Retuns the value of a given field.
|
int |
getFieldIndex(String keyStr)
Computes the index of a field.
|
List<String> |
getKeys()
Returns (a copy of) the keys of this Record.
|
List<Object> |
getValues()
Returns (a copy of) the values of this Record.
|
boolean |
isEmpty()
Tests whether the record is empty.
|
void |
putField(String key,
Object value)
Set the value of a field.
|
int |
size()
Returns the size of this recordset.
|
equals, hashCode, toString
public Record()
public Record(String[] _keys, Object[] _values)
_keys
- The keys of the record._values
- The values of the record.
The parameter list must be of the same size.public Record(List<String> _keys, List<? extends Object> _values)
_keys
- The keys of the record._values
- The values of the record.
The parameter list must be of the same size.public Object getField(String key)
key
- The name of the field.public void putField(String key, Object value)
key
- The key of a field.value
- The new value of the field.public List<String> getKeys()
public List<Object> getValues()
public int getFieldIndex(String keyStr)
keyStr
- the key whose value you wantpublic int size()
public boolean isEmpty()
public Record clone()
clone
in interface IIvyDataObject
clone
in class NestedObject
Object.clone()
public Record deepClone()
deepClone
in interface IIvyDataObject
deepClone
in class NestedObject
Copyright © 2024
AXON IVY AG
All Rights Reserved Documentation was generated
on April 28, 2024