Developing Apama Applications > Developing Apama Applications in EPL > EPL Methods Quick Reference > sequence methods
sequence methods
Method
Result
append(item)
Appends the item to the end of the operand.
appendSequence(sequence)
Appends the sequence to the end of the operand..
canParse(string)
Returns a boolean true if the argument can be successfully parsed to create a sequence object.
clear()
Sets the size of the sequence to 0, deleting all entries.
clone()
Returns a new sequence that is an exact copy.
indexOf(item)
Returns as an integer the location of the first matching item.
insert(item, integer)
Inserts the item specified in the location indicated by the second argument.
parse(string)
Returns the sequence object represented by the argument.
remove(integer)
Removes the nth element in the sequence, moves all the elements above it down, which reduces the size by 1. The first element in a sequence is at location 0.
reverse()
Reverses the order of the items in the sequence.
setCapacity(integer)
Sets the amount of memory initially allocated for the sequence.
setSize(integer)
Sets the number of elements in the sequence.
size()
Returns as an integer the number of elements in the sequence.
sort()
Sorts the sequence in ascending order.
toString()
Converts the sequence to a string.
[integer]
Retrieves or overwrites the sequence entry located at the index specified. EPL sequence elements are indexed from 0
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.