public class ArrayRecord extends BaseRecord
Record which uses an
array of Objects as the storage for the attribute values.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>state| Constructor and Description |
|---|
ArrayRecord(Record object)
Construct a new ArrayRecord as a deep clone of the attribute values.
|
ArrayRecord(RecordDefinition recordDefinition)
Construct a new empty ArrayRecord using the recordDefinition.
|
ArrayRecord(RecordDefinition recordDefinition,
Map<String,? extends Object> values) |
| Modifier and Type | Method and Description |
|---|---|
ArrayRecord |
clone()
Create a clone of the object.
|
<T> T |
getValue(int index)
Get the value of the attribute with the specified index.
|
List<Object> |
getValues()
Get the values of all attributes.
|
int |
hashCode() |
void |
setValue(int index,
Object value)
Set the value of the attribute with the specified name.
|
getRecordDefinition, getState, setStatecompareTo, delete, entrySet, equals, get, getByte, getDouble, getFactory, getFieldTitle, getFloat, getGeometryValue, getIdentifier, getIdentifier, getIdentifier, getIdValue, getInteger, getLong, getShort, getString, getTypeName, getValue, getValueByPath, getValueMap, hasField, hasValue, hasValuesAny, isModified, isValid, isValid, put, setGeometryValue, setIdentifier, setIdValue, setValue, setValueByPath, setValueByPath, setValues, setValues, setValues, setValues, setValuesByPath, toString, updateStateclear, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitclear, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, valuespublic ArrayRecord(Record object)
clone() method.object - The object to clone.public ArrayRecord(RecordDefinition recordDefinition)
recordDefinition - The recordDefinition defining the object type.public ArrayRecord(RecordDefinition recordDefinition, Map<String,? extends Object> values)
public ArrayRecord clone()
clone in interface Recordclone in class AbstractRecordpublic <T> T getValue(int index)
index - The index of the attribute.public List<Object> getValues()
getValues in interface RecordgetValues in class AbstractRecordpublic int hashCode()
public void setValue(int index,
Object value)
index - The index of the attribute. param value The attribute value.value - The new value.Copyright © 2015 Revolution Systems Inc.. All rights reserved.