Class BrokerField

  • Direct Known Subclasses:
    NativeField

    public class BrokerField
    extends java.lang.Object
    This class is a data structure giving a field's type and value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static BrokerField NOT_FOUND  
      short type
      The field type.
      java.lang.Object value
      The field value.
    • Constructor Summary

      Constructors 
      Constructor Description
      BrokerField()
      Create an empty field object.
      BrokerField​(short field_type, java.lang.Object field_value)
      Create an field object setting both the type and value.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NOT_FOUND

        protected static final BrokerField NOT_FOUND
      • type

        public short type
        The field type. Takes values such as BrokerTypeDef.FIELD_TYPE_INT.
      • value

        public java.lang.Object value
        The field value. The object class depends on the type:
        FIELD_TYPE_BYTE->Byte, FIELD_TYPE_SHORT->Short, FIELD_TYPE_INT->Integer, FIELD_TYPE_LONG->Long, FIELD_TYPE_FLOAT->Float, FIELD_TYPE_DOUBLE->Double, FIELD_TYPE_BOOLEAN->Boolean, FIELD_TYPE_DATE->BrokerDate, FIELD_TYPE_CHAR->Character, FIELD_TYPE_STRING->String, FIELD_TYPE_UNICODE_CHAR->Character, FIELD_TYPE_UNICODE_STRING->String, FIELD_TYPE_STRUCT->BrokerEvent
    • Constructor Detail

      • BrokerField

        public BrokerField()
        Create an empty field object.
      • BrokerField

        public BrokerField​(short field_type,
                           java.lang.Object field_value)
        Create an field object setting both the type and value.