Class SequenceFieldType<E>

  • Type Parameters:
    E - The Java type used for the elements of this sequence.

    public class SequenceFieldType<E>
    extends FieldType<java.util.List<E>>
    Represents the Apama sequence<type> type, for which values are specified as List objects.
    • Constructor Summary

      Constructors 
      Constructor Description
      SequenceFieldType​(FieldType<E> elementType)
      Construct a new field type representing a sequence whose members are all of a given field type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assertAssignable​(java.lang.Object c, java.lang.String fieldName)
      This method is intended for internal use only and may be removed at any time - do not use.
      java.util.List<E> defaultValue()
      Get the default value for Sequence field type.
      FieldType<E> getElementType()
      Get the type of the elements.
      java.lang.String getName()
      Return the name of this type.
      java.util.List<E> parse​(java.lang.String value)
      Convert a value of this type from the format used in Apama event strings, into a List object.
      java.lang.String toString()
      Returns a String representation of the field type.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SequenceFieldType

        public SequenceFieldType​(FieldType<E> elementType)
        Construct a new field type representing a sequence whose members are all of a given field type. This constructor is provided for backwards compatibility, the recommended way to construct this field type is with FieldTypes.sequence(FieldType).
        Parameters:
        elementType - type of elements this sequence contains
        See Also:
        FieldTypes.sequence(FieldType)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from class: FieldType
        Return the name of this type.
        Overrides:
        getName in class FieldType<java.util.List<E>>
        Returns:
        the type name
      • getElementType

        public FieldType<E> getElementType()
        Get the type of the elements.
        Returns:
        the type of sub-elements
      • assertAssignable

        public void assertAssignable​(java.lang.Object c,
                                     java.lang.String fieldName)
        Description copied from class: FieldType
        This method is intended for internal use only and may be removed at any time - do not use.
        Specified by:
        assertAssignable in class FieldType<java.util.List<E>>
      • parse

        public java.util.List<E> parse​(java.lang.String value)
                                throws ParserRuntimeException
        Convert a value of this type from the format used in Apama event strings, into a List object.
        Overrides:
        parse in class FieldType<java.util.List<E>>
        Parameters:
        value - the value to parse.
        Returns:
        an object specifying the value of the string that was parsed.
        Throws:
        ParserRuntimeException - If the specified value string cannot be parsed.
      • toString

        public java.lang.String toString()
        Description copied from class: FieldType
        Returns a String representation of the field type. Note that this representation will use the Java toString() method to format the results, and is not valid monitorscript.
        Overrides:
        toString in class FieldType<java.util.List<E>>
      • defaultValue

        public java.util.List<E> defaultValue()
        Get the default value for Sequence field type.
        Specified by:
        defaultValue in class FieldType<java.util.List<E>>
        Returns:
        An empty list