Class PayloadMatcherFactory.StringPayloadMatcher

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean comparePayload​(BytesRef source, BytesRef payload)
      This method tests if two BytesRef match.
      private java.lang.String decodeString​(byte[] bytes, int offset, int length)  
      protected abstract boolean stringCompare​(java.lang.String val, java.lang.String threshold)  
      • Methods inherited from class java.lang.Object

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

      • StringPayloadMatcher

        private StringPayloadMatcher()
    • Method Detail

      • comparePayload

        public boolean comparePayload​(BytesRef source,
                                      BytesRef payload)
        Description copied from interface: PayloadMatcher
        This method tests if two BytesRef match.
        Specified by:
        comparePayload in interface PayloadMatcher
        Parameters:
        source - left side of the compare
        payload - right side of the compare
        Returns:
        true if the BytesRefs are matching, otherwise false.
      • decodeString

        private java.lang.String decodeString​(byte[] bytes,
                                              int offset,
                                              int length)
      • stringCompare

        protected abstract boolean stringCompare​(java.lang.String val,
                                                 java.lang.String threshold)