Class DefaultBlotterCriteria

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultBlotterCriteria​(com.google.common.collect.ImmutableList<com.caplin.ret.trapi.lbn.Criteria> criteria, DealRecordMatcher dealRecordMatcher)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean filter​(com.m_systems.lbn.spi.record.CDealRecord dealRecord)
      This should return true if the deal record should be processed and shown in the blotter and false otherwise.
      com.google.common.collect.ImmutableList<com.caplin.ret.trapi.lbn.Criteria> getQueryCriteria()
      You should use this method to return an ordered list of Criteria which will be used to create the initial query to LBN for the records to display in the blotter.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • DefaultBlotterCriteria

        public DefaultBlotterCriteria​(com.google.common.collect.ImmutableList<com.caplin.ret.trapi.lbn.Criteria> criteria,
                                      DealRecordMatcher dealRecordMatcher)
    • Method Detail

      • getQueryCriteria

        public com.google.common.collect.ImmutableList<com.caplin.ret.trapi.lbn.Criteria> getQueryCriteria()
        Description copied from interface: BlotterCriteria
        You should use this method to return an ordered list of Criteria which will be used to create the initial query to LBN for the records to display in the blotter.

        All returned records will be passed through the BlotterCriteria.filter(CDealRecord) method and displayed on the blotter only if they pass.

        The main intention of the returned criteria is to reduce the amount of records that need returning by LBN and processing by the Adapter.

        Specified by:
        getQueryCriteria in interface BlotterCriteria
      • filter

        public boolean filter​(com.m_systems.lbn.spi.record.CDealRecord dealRecord)
        Description copied from interface: BlotterCriteria
        This should return true if the deal record should be processed and shown in the blotter and false otherwise. All deals, from the initial query submitted and updates from LBN, will be passed through this filter.
        Specified by:
        filter in interface BlotterCriteria
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object