- TIBCO BusinessEvents®
- Standard
- Instance
- PropertyArray

# Instance.PropertyArray

## Description

Utility Functions to Operate on PropertyArray types of Concepts

## Functions

Name | Signature and Synopsis
--- | ---
`appendBoolean` | `void appendBoolean (PropertyArrayBoolean arr, boolean value, long time)` Creates a new propertyAtomBoolean of value with initial history timestamp time and appends to the end of the PropertyArray. Or by doing instanceX.arr[instanceX.arr@length] = value, the engine uses system current time.
`appendConceptReference` | `void appendConceptReference (PropertyArrayConceptReference arr, Concept instance, long time)` Creates a new `PropertyAtomConceptReference` set to `instance` with initial history timestamp time and adds it to the end of the PropertyArray `arr`. Or by doing instanceX.arr[instanceX.arr@length] = instance, the engine uses system current time.
`appendContainedConcept` | `void appendContainedConcept (PropertyArrayContainedConcept arr, ContainedConcept instance, long time)` Creates a new `PropertyAtomContainedConcept` set to `instance` with initial history timestamp time and adds it to the end of the PropertyArray `arr`. Or by doing instanceX.arr[instanceX.arr@length] = instance, the engine uses system current time.
`appendDateTime` | `void appendDateTime (PropertyArrayDateTime arr, DateTime value, long time)` Creates a new propertyAtomDateTime of value with initial history timestamp time and appends to the end of the PropertyArray. Or by doing instanceX.arr[instanceX.arr@length] = value, the engine uses system current time.
`appendDouble` | `void appendDouble (PropertyArrayDouble arr, double value, long time)` Creates a new propertyAtomDouble of value with initial history timestamp time and appends to the end of the PropertyArray. Or by doing instanceX.arr[instanceX.arr@length] = value, the engine uses system current time.
`appendInt` | `void appendInt (PropertyArrayInt arr, int value, long time)` Creates a new propertyAtomInt of value with initial history timestamp time and appends to the end of the PropertyArray. Or by doing instanceX.arr[instanceX.arr@length] = value, the engine uses system current time.
`appendLong` | `void appendLong (PropertyArrayLong arr, long value, long time)` Creates a new propertyAtomLong of value with initial history timestamp time and appends to the end of the PropertyArray. Or by doing instanceX.arr[instanceX.arr@length] = value, the engine uses system current time.
`appendString` | `void appendString (PropertyArrayString arr, String value, long time)` Creates a new propertyAtomString of value with initial history timestamp time and appends to the end of the PropertyArray. Or by doing instanceX.arr[instanceX.arr@length] = value, the engine uses system current time.
`clear` | `void clear (PropertyArray arr)` Removes all elements from `arr`. For a Concept Array, you will have to loop and delete each instance using: `Instance.PropertyArray.removeContainedConcept()` or `Instance.PropertyArray.removeConceptReference()`.
`delete` | `void delete (PropertyArray arr, int index)` Deletes the array element in `arr` located at `index` and shifts any subsequent elements to the left (subtracts one from their indices)
`indexOfBoolean` | `int indexOfBoolean(PropertyArrayBoolean arr, boolean value)` Returns the index in the PropertyArrayBoolean of the first occurrence of the specified boolean value, or -1 if the PropertyArrayBoolean does not contain this boolean value.
`indexOfConceptReference` | `int indexOfConceptReference(PropertyArrayConceptReference arr, Concept instance)` Returns the index in the PropertyArrayConceptReference of the first occurrence of the specified Concept instance, or -1 if the PropertyArrayConceptReference does not contain this Concept instance.
`indexOfContainedConcept` | `int indexOfContainedConcept(PropertyArrayContainedConcept arr, ContainedConcept instance)` Returns the index in the PropertyArrayContainedConcept of the first occurrence of the specified ContainedConcept instance, or -1 if the PropertyArrayContainedConcept does not contain this ContainedConcept instance.
`indexOfDateTime` | `int indexOfDateTime(PropertyArrayDateTime arr, DateTime value)` Returns the index in the PropertyArrayDateTime of the first occurrence of the specified DateTime value, or -1 if the PropertyArrayDateTime does not contain this DateTime value.
`indexOfDouble` | `int indexOfDouble(PropertyArrayDouble arr, double value)` Returns the index in the PropertyArrayDouble of the first occurrence of the specified double value, or -1 if the PropertyArrayDouble does not contain this double value.
`indexOfInt` | `int indexOfInt(PropertyArrayInt arr, int value)` Returns the index in the PropertyArrayInt of the first occurrence of the specified int value, or -1 if the PropertyArrayInt does not contain this int value.
`indexOfLong` | `int indexOfLong(PropertyArrayLong arr, long value)` Returns the index in the PropertyArrayLong of the first occurrence of the specified long value, or -1 if the PropertyArrayLong does not contain this long value.
`indexOfString` | `int indexOfString(PropertyArrayString arr, String value)` Returns the index in the PropertyArrayString of the first occurrence of the specified String value, or -1 if the PropertyArrayString does not contain this String value.
`removeBoolean` | `boolean removeBoolean (PropertyArrayBoolean arr, boolean value)` Removes the first occurrence of PropertyAtomBoolean for which the current value equals to `value` from a PropertyArrayBoolean. It returns true and shifts all the subsequent array elements PropertyAtomBoolean to the left (substracts one to their indices) if the PropertyAtomBoolean is found, false otherwise.
`removeConceptReference` | `boolean removeConceptReference (PropertyArrayConceptReference arr, Concept instance)` Removes the first occurrence of PropertyAtomConceptReference for which the current value is set to `instance` from a PropertyArrayConceptReference. It returns true and shifts all the subsequent array elements PropertyAtomConceptReference to the left (substracts one to their indices) if the PropertyAtomConceptReference is found, false otherwise.
`removeContainedConcept` | `boolean removeContainedConcept (PropertyArrayContainedConcept arr, ContainedConcept instance)` Removes the first occurrence of PropertyAtomContainedConcept for which the current value is set to `instance` from a PropertyArrayContainedConcept. It returns true and shifts all the subsequent array elements PropertyAtomContainedConcept to the left (substracts one to their indices) if the PropertyAtomContainedConcept is found, false otherwise. Also, the concept instance is deleted from cache at the end of RTC with cache only mode.
`removeDateTime` | `boolean removeDateTime (PropertyArrayDateTime arr, DateTime value)` Removes the first occurrence of PropertyAtomDateTime for which the current value equals to `value` from a PropertyArrayDateTime. It returns true and shifts all the subsequent array elements PropertyAtomDateTime to the left (substracts one to their indices) if no PropertyAtomDateTime is found, false otherwise.
`removeDouble` | `boolean removeDouble (PropertyArrayDouble arr, double value)` Removes the first occurrence of PropertyAtomDouble for which the current value equals to `value` from a PropertyArrayDouble. It returns true and shifts all the subsequent array elements PropertyAtomDouble to the left (substracts one to their indices) if the PropertyAtomDouble is found, false otherwise.
`removeInt` | `boolean removeInt (PropertyArrayInt arr, int value)` Removes the first occurrence of PropertyAtomInt for which the current value equals to `value` from a PropertyArrayInt. It returns true and shifts all the subsequent array elements PropertyAtomInt to the left (substracts one to their indices) if the PropertyAtomInt is found, false otherwise.
`removeLong` | `boolean removeLong (PropertyArrayLong arr, long value)` Removes the first occurrence of PropertyAtomLong for which the current value equals to `value` from a PropertyArrayLong. It returns true and shifts all the subsequent array elements PropertyAtomLong to the left (substracts one to their indices) if the PropertyAtomLong is found, false otherwise.
`removeString` | `boolean removeString (PropertyArrayString arr, String value)` Removes the first occurrence of PropertyAtomString for which the current value equals to `value` from a PropertyArrayString. It returns true and shifts all the subsequent array elements PropertyAtomString to the left (substracts one to their indices) if the PropertyAtomString is found, false otherwise.
`toArrayBoolean` | `boolean[] toArrayBoolean(PropertyArrayBoolean arr)` Returns a boolean[] containing all of the boolean values in a PropertyArrayBoolean in the correct order
`toArrayConcept` | `Concept[] toArrayConcept(PropertyArrayConcept arr)` Returns a Concept[] containing all of the instances in a PropertyArrayConcept in the correct order
`toArrayContainedConcept` | `ContainedConcept[] toArrayContainedConcept(PropertyArrayContainedConcept arr)` Returns a ContainedConcept[] containing all of the instances in a PropertyArrayContainedConcept in the correct order
`toArrayDateTime` | `DateTime[] toArrayDateTime(PropertyArrayDateTime arr)` Returns a DateTime[] containing all of the DateTime values in a PropertyArrayDateTime in the correct order
`toArrayDouble` | `double[] toArrayDouble(PropertyArray arr)` Returns a double[] containing all of the double values in a PropertyArray in the correct order.
`toArrayInt` | `int[] toArrayInt(PropertyArray arr)` Returns a int[] containing all of the int values in a PropertyArray in the correct order
`toArrayLong` | `long[] toArrayLong(PropertyArray arr)` Returns a long[] containing all of the long values in a PropertyArray in the correct order
`toArrayString` | `String[] toArrayString(PropertyArray arr)` Returns a String[] containing all of the String values in a PropertyArray in the correct order