com.devexperts.qd
Interface DataObjField

All Superinterfaces:
DataField
All Known Implementing Classes:
AbstractDataObjField, ByteArrayField, CharArrayField, MarshalledObjField, PlainObjField, StringField, VoidObjField

public interface DataObjField
extends DataField

The DataObjField defines identity and access API for Obj-fields.


Method Summary
 boolean equals(java.lang.Object value1, java.lang.Object value2)
          Compares two specified field values for equality.
 java.lang.Object parseString(java.lang.String value)
          Parses string representation of specified field value.
 java.lang.Object readObj(com.devexperts.io.BufferedInput in)
          Reads field value from specified data input and returns it to the caller.
 java.lang.Object readObj(java.io.DataInput in)
          Deprecated. Use readObj(BufferedInput) which is faster.
 java.lang.String toString(java.lang.Object value)
          Returns string representation of specified field value.
 void writeObj(com.devexperts.io.BufferedOutput out, java.lang.Object value)
          Writes specified field value into specified buffered output.
 void writeObj(java.io.DataOutput out, java.lang.Object value)
          Deprecated. Use writeObj(BufferedOutput, Object) which is faster.
 
Methods inherited from interface com.devexperts.qd.DataField
getIndex, getLocalName, getName, getRecord, getSerialType
 

Method Detail

toString

java.lang.String toString(java.lang.Object value)
Returns string representation of specified field value. This method is used for debugging purposes.


parseString

java.lang.Object parseString(java.lang.String value)
Parses string representation of specified field value. This method is used for debugging purposes.

Throws:
java.lang.IllegalArgumentException - if string cannot be parsed.

equals

boolean equals(java.lang.Object value1,
               java.lang.Object value2)
Compares two specified field values for equality. This method is used for implementation of ticker contract.


writeObj

void writeObj(java.io.DataOutput out,
              java.lang.Object value)
              throws java.io.IOException
Deprecated. Use writeObj(BufferedOutput, Object) which is faster.

Writes specified field value into specified data output.

Throws:
java.io.IOException - as specified data output does.

writeObj

void writeObj(com.devexperts.io.BufferedOutput out,
              java.lang.Object value)
              throws java.io.IOException
Writes specified field value into specified buffered output.

Throws:
java.io.IOException - as specified data output does.

readObj

java.lang.Object readObj(java.io.DataInput in)
                         throws java.io.IOException
Deprecated. Use readObj(BufferedInput) which is faster.

Reads field value from specified data input and returns it to the caller.

Throws:
java.io.IOException - as specified data input does.

readObj

java.lang.Object readObj(com.devexperts.io.BufferedInput in)
                         throws java.io.IOException
Reads field value from specified data input and returns it to the caller.

Throws:
java.io.IOException - as specified data input does.