public class Field<T>
extends java.lang.Object
EventType
.
Note that the easiest way to create Field objects is to use FieldTypes
to get
the required FieldType then call the FieldType.newField(String)
helper method to
create the Field.
For example, to create a field object whose type is an Apama sequence of integers:
Field<Long> myField = FieldTypes.sequence(FieldTypes.INTEGER).newField("myField");
Constructor and Description |
---|
Field(java.lang.String name,
FieldType<T> type)
Creates a new field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Method to return the name of the field object
|
FieldType<T> |
getType()
Method to return the FieldType of the field object
|
java.lang.String |
toString()
Returns a String representation of the event type.
|
public Field(java.lang.String name, FieldType<T> type)
Consider using FieldType.newField(String)
as a simpler alternative to calling this constructor.
name
- the field nametype
- the field typepublic java.lang.String getName()
public FieldType<T> getType()
public java.lang.String toString()
toString
in class java.lang.Object
Submit a bug or feature
Copyright (c) 2013-2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.