Interface NewMethodArgumentsIdentifier


public interface NewMethodArgumentsIdentifier
Strategy interface to distinguish new arguments from ones that have been processed before, e.g. by examining a message flag.
Author:
Dave Syer
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isNew(Object[] args)
    Inspect the arguments and determine if they have never been processed before.
  • Method Details

    • isNew

      boolean isNew(Object[] args)
      Inspect the arguments and determine if they have never been processed before. The safest choice when the answer is indeterminate is 'false'.
      Parameters:
      args - the current method arguments.
      Returns:
      true if the item is known to have never been processed before.