org.apache.geode.security.query.data

## Class PdxTrade

- java.lang.Object
- - org.apache.geode.security.query.data.PdxTrade

- All Implemented Interfaces:
    java.io.Serializable, PdxSerializable

      public class PdxTrade
      extends java.lang.Object
      implements PdxSerializable, java.io.Serializable

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PdxTrade()`
    `PdxTrade(java.lang.String id, java.lang.String cusip, int shares, int price)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `fromData(PdxReader reader)` Deserializes the PDX fields using the given reader.
    `java.lang.String` | `getCusip()`
    `void` | `toData(PdxWriter writer)` Serializes the PDX fields using the given writer.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PdxTrade

          public PdxTrade()

    - #### PdxTrade

          public PdxTrade(java.lang.String id,
                          java.lang.String cusip,
                          int shares,
                          int price)

  - ### Method Detail

    - #### getCusip

          public java.lang.String getCusip()

    - #### toData

          public void toData(PdxWriter writer)

      Description copied from interface: `PdxSerializable`
      Serializes the PDX fields using the given writer.
      Specified by:
        `toData` in interface `PdxSerializable`
      Parameters:
        `writer` - the `PdxWriter` to use to write the PDX fields.

    - #### fromData

          public void fromData(PdxReader reader)

      Description copied from interface: `PdxSerializable`
      Deserializes the PDX fields using the given reader.
      Specified by:
        `fromData` in interface `PdxSerializable`
      Parameters:
        `reader` - the `PdxReader` to use to read the PDX fields.